Compare commits

..
27 Commits
Author SHA1 Message Date
bot-githubaction 65a6ba9f1d [bot] Update dist directory 2026-10-28 11:51:46 +00:00
35eba4f16a Combined dependency updates (#1105)
Combines several open bot PRs into one:

- Bump Gradle Wrapper from 9.7.1 to 9.8.2 (squashed): closes #1098,
closes #1099, closes #1100, closes #1101, closes #1102
- Bump the github-actions group (`init-integ-test` action): closes #1096
- Bump references to Develocity Gradle plugin from 4.6.0 to 4.6.1:
closes #1103
- Bump the npm-dependencies group with 10 updates: closes #1097

Notes:
- `nock` moves from 14 to 15, a major version bump. Tests that intercept
HTTP requests are the most likely to break.
- Local `npm run build` (prettier + eslint + esbuild) passes under node
24.22.1. Locally, jest passed 490/491. The one failure is `fetches
wrapper jar checksums for snapshots`, which hits the live
services.gradle.org API and timed out at 60s on a slow connection. I
didn't check whether it also fails on `main`, so CI will settle it.

Also included:
- Switch the solutions Develocity server URL from
`ge.solutions-team.gradle.com` to `solutions.develocity.cloud`. The old
host now 308-redirects to the new one. `@actions/http-client` strips the
`Authorization` header on a cross-host redirect, so the short-lived
token request failed with a 401, which broke all the Develocity
injection integ tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
2026-10-28 05:38:06 -06:00
Louis Jacomet 1cff18a4cf Update known wrapper checksums (#1075)
Automatically generated pull request to update the known wrapper
checksums.
2026-10-20 11:04:45 +02:00
bot-githubaction 399f0d30ea Update known wrapper checksums 2026-10-20 08:56:20 +00:00
Gašper Kojek ecf8cf2dce Bump references to Develocity Gradle plugin from 4.5.1 to 4.6.0 (#1080)
This PR bumps references to Develocity Gradle plugin from 4.5.1 to
4.6.0.
2026-10-15 12:54:53 +02:00
bot-githubaction d740e82d59 Bump references to Develocity Gradle plugin from 4.5.1 to 4.6.0 2026-09-25 02:19:55 +00:00
Clay Johnson f9f39a915c Bump references to Develocity Gradle plugin from 4.5.0 to 4.5.1 (#1072)
This PR bumps references to Develocity Gradle plugin from 4.5.0 to
4.5.1.
2026-09-11 06:37:09 -05:00
bot-githubaction a3a36e1bf4 Bump references to Develocity Gradle plugin from 4.5.0 to 4.5.1 2026-09-10 02:20:44 +00:00
Daz DeBoerandClaude Opus 5 3f5f9adaf7 Document the new Gradle signing key for dependency verification (#1071)
Follow-up to #1069, which bumped the
`github-dependency-graph-gradle-plugin` default to `1.5.0`.

`1.5.0` is signed with a **new** Gradle signing subkey, and the key
currently documented in `docs/setup-gradle.md` has been revoked
upstream. Without this docs change, the snippet we publish will fail
dependency verification for Dependency Graph generation.

I verified the published signatures rather than relying on the
changelog:

| Artifact | Issuer key | |
|---|---|---|
| `github-dependency-graph-gradle-plugin:1.5.0` | `D9B2DFBD9F3298BA` |
new |
| `github-dependency-graph-gradle-plugin:1.4.2` | `893A028475557671` |
old |
| `develocity-gradle-plugin:4.5.0` | `893A028475557671` | old |

So the docs now list **both** keys instead of swapping one for the
other. The Develocity Gradle plugin (`com.gradle`) is still signed with
the old key, so replacing it outright would have broken Develocity
injection for builds with dependency verification enabled.

Docs-only change; no source or `dist` impact.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 18:57:35 -06:00
bot-githubaction b031f6d1a9 [bot] Update dist directory 2026-09-08 00:39:22 +00:00
Daz DeBoerandClaude Opus 5 5bc4175609 Bump dependency-graph-gradle-plugin to 1.5.0 (#1069)
Updates the default version of the [GitHub Dependency Graph Gradle
Plugin](https://plugins.gradle.org/plugin/org.gradle.github-dependency-graph-gradle-plugin)
applied by the `dependency-submission` init-script from `1.4.2` to
`1.5.0`.

`1.5.0` is the latest version published to the Gradle Plugin Portal.

Users can still override this via the `dependency-graph-plugin.version`
input parameter (`DEPENDENCY_GRAPH_PLUGIN_VERSION`), so this only
changes the default.

## Notes

The init-script is read at runtime from `sources/src/resources` rather
than being inlined into the bundle, so this single source change is the
whole fix — no `dist` update is needed for the new version to take
effect (CI refreshes `dist` as usual).

## Verification

- `npm run check` (prettier + eslint) passes
- `npm run test`: 489 passed. The 2 failing wrapper-validation suites
are pre-existing network-dependent failures on this machine — confirmed
identical on a clean tree with this change stashed
- Confirmed `1.5.0` is published to the plugin portal (and that a bogus
version 404s, so the check is meaningful)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 18:38:40 -06:00
f3ff59b4e4 Combined automated updates: wrapper checksums, npm dependencies, setup-java (#1070)
Combines three pending automated update PRs into a single pull request
so they can be reviewed and merged together.

Supersedes:

- #1045 — Update known wrapper checksums
- #1066 — Bump the npm-dependencies group in /sources (eslint 10.9.1 →
10.10.0, globals 17.11.0 → 17.12.0)
- #1067 — Bump actions/setup-java from 5.7.0 to 6.0.0 in the
github-actions group

Each original commit is cherry-picked unchanged; there were no
overlapping files or conflicts.

## Verification

- `./build install` (clean install + format + lint + compile) passes.
- `./build test`: 490/491 pass. The single failure is
`wrapper-validation/checksums.test.ts › fetches wrapper jar checksums
for snapshots`, a pre-existing network-dependent failure on this machine
— it fails identically with `main`'s checksums file, so it is unrelated
to these changes.
- `dist/` is intentionally untouched; CI regenerates it.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-07 18:38:22 -06:00
Daz DeBoerandClaude Opus 5 7927085475 Update .tool-versions: node 24.18.0, gradle 9.7.1, java 17 (#1068)
The pins in `.tool-versions` had drifted well behind what CI and the
Gradle wrappers use. One of
them was not just stale but broken.

## node 24.3.0 → 24.18.0

CI runs `node-version: 24`, which resolves to a much newer 24.x. That
gap is not harmless: it
recently masked a real CI failure outright, because jest 30.5.0's
breakage of nock interception
reproduces on 24.18.0 but not on 24.3.0. A local run that passes is
worth something again.

Verified with a clean `./build install` and repeated `./build test` runs
on both versions. Both show
the same stable core of two failures — the network-dependent
wrapper-validation checksum tests —
plus an occasional third flake in the same area that varies between runs
and between node versions.
Nothing attributable to the bump.

## java liberica-11 → liberica-17

This pin was broken. The init-scripts wrapper is on Gradle 9.7.1, which
refuses to run a build on
JVM 11:

```
Gradle requires JVM 17 or later to run.
Your build is currently configured to use JVM 11.
```

So `./build init-scripts` could not have worked with the pinned
toolchain. `./gradlew --version`
*does* start under JVM 11 and reports successfully, which is likely how
the pin survived unnoticed —
only an actual build fails.

17 matches what `ci-init-script-check.yml` provisions, so local runs
mirror CI. Verified with a
clean `./gradlew check` in `sources/test/init-scripts`: BUILD SUCCESSFUL
in 3m57s.

Java 21 was also tried and passes (3m53s), so moving further later is
unblocked. 17 is chosen only
to track CI.

## gradle 8.14.2 → 9.7.1

Follows the wrappers, which the workflow samples and init-scripts tests
are now on. This matches how
the file has been maintained before (e.g. "Use Gradle 8.14 everywhere").
Nothing in `./build`
invokes the asdf gradle — every path goes through `./gradlew` — so this
only keeps ad-hoc CLI use
consistent.

## Notes

`ci-check-and-unit-test.yml` still provisions `gradle-version: '8.14.2'`
for its unit-test job.
That may be equally stale, but it is a CI behaviour change rather than
local tooling, so it is left
alone here.

One flaky run was seen while verifying: two `TestDevelocityInjection`
cases against Gradle 6.0.1
failed once, then passed on re-run and on repeat clean builds. Unrelated
to these version changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 17:59:30 -06:00
bot-githubaction c3897a4e73 [bot] Update dist directory 2026-09-07 22:59:44 +00:00
6b92be1905 Update dependencies (#1065)
Rolls the outstanding dependency updates into a single change, along
with fixes for two breaking
changes they brought with them.

## Gradle Wrapper 9.6.1 → 9.7.1

Updated in all five wrapped projects: `sources/test/init-scripts` and
the `gradle-plugin`,
`groovy-dsl`, `java-toolchain` and `kotlin-dsl` workflow samples.

## GitHub Actions

- `actions/setup-java` v5.7.0 → v6.0.0
- `github/codeql-action/init` and `github/codeql-action/analyze`
re-pinned to a newer v3.29.5 commit

## npm dependencies

- `@typescript-eslint/eslint-plugin` 8.66.0 → 8.69.0
- `esbuild` 0.28.1 → 0.28.2
- `eslint` 10.8.0 → 10.9.1
- `globals` 17.9.0 → 17.11.0

`jest` stays at 30.4.2 and `@jest/globals` at 30.4.1 — see below.

## setup-java v6 needs signature verification disabled for EOL JDKs

v6 enables `verify-signature` by default. Temurin 16 and 20 are EOL and
publish no signatures, so
the toolchain-detection job could no longer install them:

```
Java setup process failed due to: Input 'verify-signature' is enabled,
but no signature URL was found for Temurin version 16.0.2+7.
```

Verification is disabled for those two steps only. The Java 17 and
matrix steps still verify.

## jest is held at 30.4.x because 30.5.0 breaks nock

jest 30.5.0 reworked the ESM module registry (ES modules keyed by full
URL, modules shared across
overlapping CommonJS/ESM graphs). nock ends up patching a different
module instance than the one
`@actions/http-client` reaches undici through, so it no longer
intercepts anything: all five mocked
tests in `short-lived-token.test.ts` silently hit the real network and
resolve `null`. Two further
tests in that file keep passing only vacuously — they assert `null`,
which is also what an
unintercepted request returns.

Bisected on node 24.18.0, changing only the jest version:

| jest | result |
| --- | --- |
| 30.5.0 | 5 failed, 38 passed |
| 30.4.2 | 43 passed |

nock 15.0.0 does not fix it, so this cannot be resolved by moving nock
forward. The node version
matters too: 24.3.0 masks the failure completely, which is why it
reproduced only in CI.

Because `jest` is an exactly-pinned direct devDependency, the pin by
itself holds the entire test
runtime at 30.4.x — `jest-cli`, `jest-runtime`, `jest-environment-node`,
`@jest/core`,
`@jest/transform`, `@jest/types`, `expect` and `jest-util` all resolve
to 30.4.x with no `overrides`
block. Nothing in the tree forces jest forward; only dependabot proposes
it. So the constraint is
expressed in `.github/dependabot.yml`, alongside the existing
`typescript` and `@types/node`
entries, ignoring `jest` and `@jest/globals` `>=30.5.0` with a comment
recording when it can be
lifted.

`pretty-format` is left to float to 30.5.1 via the types-only
`@types/jest`; it renders test output
and has no bearing on nock or module resolution.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 16:58:55 -06:00
bot-githubaction 0d208da058 [bot] Update dist directory 2026-09-07 22:35:18 +00:00
e49d0a36a8 Report EOL and maintenance status for Gradle versions (#1057)
This PR reports the support status of every Gradle version used in a
workflow:

- **End-of-life** — two or more major versions behind the latest
release.
- **Out of date** — one major version behind the latest release, or more
than two minor versions behind on the current major.

The information is surfaced as job annotations and in the Job Summary:
an icon beside the Gradle version in the build results table, and a
message below it.

| version kind | job annotation | version table | below the table |
| ------ | ----- | ---- | --------- |
| EOL | warning | ⚠️ | expandable section, pointing to the Gradle
Security Subscription |
| Out of date | notice | ℹ️ | one-line legend, pointing to the Gradle
release lifecycle docs |
| Current | none | — | — |

A single expandable section covers every end-of-life version, naming
them in its summary line and listing the affected release lines in its
body. The upgrade legend likewise appears once per job, however many
versions carry the info icon.

Notes on what is deliberately *not* reported:

- **Patch releases.** Only the major and minor version are considered,
so being on `9.7.0` when `9.7.1` exists is not flagged.
- **Pre-releases.** Release candidates, milestones and snapshots are
never reported, so testing against a nightly or an RC produces no
annotations.

The latest Gradle release is determined from the wrapper checksum data
already bundled with the action, so no network access is required. That
data is refreshed weekly, and the two-minor grace band absorbs the lag.

Note that the annotations are emitted independently of
`add-job-summary`: setting it to `never` suppresses the Job Summary
itself, but the warning and notice annotations remain.

### Examples

The `demo-job-summary` workflow has a `support-status-eol-and-outdated`
job that builds with three end-of-life versions (`6.9.4`, `7.4`,
`7.6.6`), two out-of-date versions (`8.0.2`, `8.14.5`) and the current
release, so all three statuses appear in one summary:

* **Job Summary**:
https://github.com/gradle/actions/actions/runs/34166688755#summary-101879071306
* **Annotations**:
https://github.com/gradle/actions/actions/runs/34166688755/job/101879071306
(expand annotations)

That workflow is never triggered automatically; run it manually against
a branch to review the rendering.

### Implementation

* Adds `GradleVersion`, parsing and ordering versions the same way
Gradle's own `org.gradle.util.GradleVersion` does. This replaces the
previous `versionIsAtLeast` helper and removes the `semver` dependency.
* Adds `gradle-support-status.ts`, which owns the classification policy
and both of its presentations (annotations and Job Summary section)
behind a three-function API, so `job-summary.ts` only asks for the icon
and the rendered block.

### Testing

* Unit tests for version ordering, classification, the annotations and
the rendered summary.
* `integ-test-gradle-support-status.yml`, which derives its expected
versions from the bundled release data so the assertions cannot drift
from the action's own view, then asserts against the real job log.
* The demo workflow job linked above, for reviewing the rendering by
eye.

Documented under [Build
reporting](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#gradle-version-support-status)
in `docs/setup-gradle.md`.

---------

Co-authored-by: Louis Jacomet <louis@gradle.com>
Co-authored-by: Daz DeBoer <daz@gradle.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 16:34:26 -06:00
Christoph Obexer 575435b1ea Use the root-qualified :wrapper task (#1064)
Replaces the unqualified `wrapper` task name with the
root-project-qualified
`:wrapper` in the two places this repo names it:

- `.github/workflows/demo-job-summary.yml` — the kotlin-dsl sample
invocation
- `docs/wrapper-validation.md` — the guidance for regenerating an
unverifiable
  `gradle-wrapper.jar`

An unqualified `wrapper` matches the task in every project of a
multi-project
build. The root-qualified form is unambiguous, matches the gradle/gradle
convention, and is required under Configure on Demand.

Part of the org-wide rollout tracked in gradle/gradle-private#5228;
original
issue gradle/gradle#37761.

Signed-off-by: Christoph Obexer <cobexer@gradle.com>
2026-09-07 14:42:32 -06:00
bot-githubaction a27deee331 [bot] Update dist directory 2026-09-01 21:00:35 +00:00
Daz DeBoerandClaude Opus 5 02d4784b6e Relax Develocity access key format validation (#1061)
Develocity access keys have the format `server=key[;server=key]*`. The
short-lived-token code validated that format with:

```
/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/
```

This is too strict about `key`, and an OIDC token value fails it. There
were two independent problems:

1. `\w+` rejects the `.`, `-`, `_` and `=` padding a JWT contains.
2. Even had the regex passed, `parse` split each entry with
`hostKey.split('=')` and took `pair[1]`, so a key containing `=` would
have been **silently truncated** — a worse failure than rejection, since
the mangled key would then be sent to the server.

## Change

Drop `accessKeyRegexp` and the separate `isValid` gate; validate
structurally in `parse` instead, asserting only what is needed to split
the value:

- split on `;`, then split each entry on its **first** `=` only
- hostname: non-empty and free of whitespace (it cannot contain `=` or
`;` by construction)
- key: non-empty and free of whitespace — nothing else is assumed about
its shape

Two small intentional behaviour deltas beyond the fix:

- The whole value is now trimmed, so a trailing newline on a secret no
longer rejects the key. Internal whitespace still rejects.
- Empty entries (`host=key;`, `;host=key`) still reject, as before.

## Testing

Added cases to `short-lived-token.test.ts`: a JWT-shaped key value,
first-separator-only splitting (`host1=a=b==` → key `a=b==`),
surrounding-whitespace tolerance, a `raw()` round-trip preserving `==`
padding, and a table of nine rejection cases. 32 tests pass; prettier,
eslint and `./build` are clean.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-01 20:59:47 +00:00
bot-githubaction 346a44564f [bot] Update dist directory 2026-08-25 15:45:34 +00:00
Daz DeBoerandClaude Sonnet 5 910b061d4d Add cache-provider: external to skip Gradle User Home caching (#1059)
Users relying on an external mechanism to save/restore Gradle User Home
(e.g. Develocity Artifact Cache) previously had to set cache-disabled:
true, which is confusing since caching isn't actually disabled — it's
just not managed by this action — and the Job Summary misleadingly
reported caching as "Disabled".

cache-provider: external skips Gradle User Home restore/save (same as
cache-disabled) but reports a distinct "External" status in the Job
Summary, explaining that caching is handled by another provider.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 09:44:41 -06:00
bot-githubaction 4ca152ae04 [bot] Update dist directory 2026-08-25 14:40:34 +00:00
Daz DeBoerandClaude Sonnet 5 eed01f09d3 Add action heading to Gradle job summary (#1058)
Job summaries from setup-gradle/dependency-submission had no top-level
heading, so they read poorly when another action's summary content lands
in the same job. Name the action explicitly so the block is attributable
when summaries are stacked.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 14:39:48 +00:00
dependabot[bot] 889dc537cf Bump the npm-dependencies group in /sources with 3 updates (#1038)
Bumps the npm-dependencies group in /sources with 3 updates:
[@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver),
[@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)
and [globals](https://github.com/sindresorhus/globals).

Updates `@types/semver` from 7.7.1 to 7.8.0
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/semver">compare
view</a></li>
</ul>
</details>
<br />

Updates `@typescript-eslint/eslint-plugin` from 8.65.0 to 8.66.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/releases">@​typescript-eslint/eslint-plugin's
releases</a>.</em></p>
<blockquote>
<h2>v8.66.0</h2>
<h2>8.66.0 (2026-08-03)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>typescript-estree:</strong> handle import.defer() as
ImportExpression (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12609">#12609</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-conversion]
ignore shadowed built-ins (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12590">#12590</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-nullish-coalescing] handle
shadowed Boolean calls (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12591">#12591</a>)</li>
<li><strong>eslint-plugin:</strong> [no-useless-default-assignment]
don't report defaults used by other overloads (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12607">#12607</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-parameters]
check MappedType key remapping (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12588">#12588</a>)</li>
<li><strong>eslint-plugin:</strong> [class-literal-property-style]
preserve type annotations and don't drop decorators (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12617">#12617</a>)</li>
<li><strong>website:</strong> list
<code>onUnsupportedTypeScriptVersion</code> in parser options (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12585">#12585</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Evyatar Daud <a
href="https://github.com/StyleShit"><code>@​StyleShit</code></a></li>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
<li>Steffen Schroeder</li>
<li>송재욱</li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.66.0">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md">@​typescript-eslint/eslint-plugin's
changelog</a>.</em></p>
<blockquote>
<h2>8.66.0 (2026-08-03)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [class-literal-property-style]
preserve type annotations and don't drop decorators (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12617">#12617</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-parameters]
check MappedType key remapping (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12588">#12588</a>)</li>
<li><strong>eslint-plugin:</strong> [no-useless-default-assignment]
don't report defaults used by other overloads (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12607">#12607</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-nullish-coalescing] handle
shadowed Boolean calls (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12591">#12591</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-conversion]
ignore shadowed built-ins (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12590">#12590</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Evyatar Daud <a
href="https://github.com/StyleShit"><code>@​StyleShit</code></a></li>
<li>송재욱</li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.66.0">GitHub
Releases</a> for more information.</p>
<p>You can read about our <a
href="https://typescript-eslint.io/users/versioning">versioning
strategy</a> and <a
href="https://typescript-eslint.io/users/releases">releases</a> on our
website.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/e51b11ba3ab31837762c675f62f0d4dcb1abc4fb"><code>e51b11b</code></a>
chore(release): publish 8.66.0</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/20cb15e6dbed8f42b7857a75e34f96d231b95449"><code>20cb15e</code></a>
chore(eslint-plugin): split prefer-optional-chain.test.ts in multiple
files (...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/780a8c52d54fcb6420232b2f53974959a9b26dff"><code>780a8c5</code></a>
docs(eslint-plugin): [member-ordering] add lacking commas in default
member t...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/08dd427202e08de304cf172472e3a97de3f382cf"><code>08dd427</code></a>
fix(eslint-plugin): [class-literal-property-style] preserve type
annotations ...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/6be25d3b45f189d0c71018fb4ba7a2c9be4e14de"><code>6be25d3</code></a>
fix(eslint-plugin): [no-unnecessary-type-parameters] check MappedType
key rem...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/8826d0ebf7ff178afb6b0e72bf22d9132e4c83a2"><code>8826d0e</code></a>
fix(eslint-plugin): [no-useless-default-assignment] don't report
defaults use...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/7aecc1c44e60bc4b47402ce63a79587746766d9f"><code>7aecc1c</code></a>
fix(eslint-plugin): [prefer-nullish-coalescing] handle shadowed Boolean
calls...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/5ffa76049a0dd6c73ba9c0a7e8388ab1324f740f"><code>5ffa760</code></a>
fix(eslint-plugin): [no-unnecessary-type-conversion] ignore shadowed
built-in...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/f282f84df6418d405c5fbaa4312bf6c951b34957"><code>f282f84</code></a>
chore(eslint-plugin): fix all
<code>eslint-plugin/require-test-error-positions</code> (#...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/c8cafa4ae9a0b57a64ba23659eba25a01301684a"><code>c8cafa4</code></a>
docs: [unified-signatures] caveats regarding signatures merging (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12581">#12581</a>)</li>
<li>See full diff in <a
href="https://github.com/typescript-eslint/typescript-eslint/commits/v8.66.0/packages/eslint-plugin">compare
view</a></li>
</ul>
</details>
<br />

Updates `globals` from 17.8.0 to 17.9.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sindresorhus/globals/releases">globals's
releases</a>.</em></p>
<blockquote>
<h2>v17.9.0</h2>
<ul>
<li>Update globals (2026-08-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/348">#348</a>)
5a958ed</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.8.0...v17.9.0">https://github.com/sindresorhus/globals/compare/v17.8.0...v17.9.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sindresorhus/globals/commit/8e7b9358b190d26acca88cc2804707fbcd90a229"><code>8e7b935</code></a>
17.9.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/5a958ed06064fb879b64416655109d8eaffd2611"><code>5a958ed</code></a>
Update globals (2026-08-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/348">#348</a>)</li>
<li>See full diff in <a
href="https://github.com/sindresorhus/globals/compare/v17.8.0...v17.9.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-06 19:21:58 -06:00
dependabot[bot] 968aeb62d7 Bump the github-actions group across 3 directories with 6 updates (#1039)
Bumps the github-actions group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [gradle/actions/setup-gradle](https://github.com/gradle/actions) |
`6.2.0` | `6.3.0` |
| [github/codeql-action/init](https://github.com/github/codeql-action) |
`4.37.4` | `4.37.5` |
|
[github/codeql-action/analyze](https://github.com/github/codeql-action)
| `4.37.4` | `4.37.5` |
| [actions/setup-java](https://github.com/actions/setup-java) | `5.6.0`
| `5.7.0` |
| [gradle/actions/wrapper-validation](https://github.com/gradle/actions)
| `6.2.0` | `6.3.0` |

Bumps the github-actions group with 1 update in the
/.github/actions/build-dist directory:
[actions/setup-node](https://github.com/actions/setup-node).
Bumps the github-actions group with 1 update in the
/.github/actions/init-integ-test directory:
[actions/setup-java](https://github.com/actions/setup-java).

Updates `gradle/actions/setup-gradle` from 6.2.0 to 6.3.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gradle/actions/releases">gradle/actions/setup-gradle's
releases</a>.</em></p>
<blockquote>
<h2>v6.3.0</h2>
<h2>Highlights</h2>
<h3>Enhanced Caching: Windows fixes and a cache-protocol bump</h3>
<p>This release updates <code>gradle-actions-caching</code> to
<strong>v1.0.0</strong> (up from v0.7.0), which fixes two significant
caching defects, both most visible on Windows:</p>
<ul>
<li>
<p><strong>Cache entries failed to store at all on Windows.</strong>.
Every entry failed
with <code>Path Validation Error: Path(s) specified in the action for
caching do(es) not exist</code>, even though the Gradle User Home was
fully intact. Nothing was stored, so
every downstream job ran against an empty Gradle User Home. The cause
was a nested,
unpatched copy of <code>@actions/glob</code> combined with a silently
swallowed <code>require()</code> in
the bundle, which left Windows path separators unnormalized.</p>
</li>
<li>
<p><strong>Cache cleanup deleted instrumented jars that were in
use.</strong> A bug in key
hashing for paths shorter than 64 characters made cleanup judge freshly
created
<code>caches/jars-9</code> entries as unused and remove them, so the
<code>instrumented-jars</code> entry
was never saved and every job re-instrumented its classpaths.</p>
<p>Also included: cache entry names are now consistent between the save
and restore
reports — restore previously fell back to showing the raw glob pattern
(e.g.
<code>/home/runner/.gradle/caches/modules-*/files-*/*/*/*/*/</code>)
instead of <code>dependencies</code>.</p>
</li>
</ul>
<blockquote>
<p>[!IMPORTANT]
<strong>Existing cache entries are invalidated by this release.</strong>
The cache protocol
version was bumped to <code>v2</code>, so the first run after upgrading
will be a cache miss
and will repopulate the cache. No configuration changes are
required.</p>
</blockquote>
<h3>Basic caching warns instead of failing silently</h3>
<p>The basic (open-source) caching provider now emits a warning and
reports
<code>(Entry not saved: save failed)</code> in the Job Summary when a
cache save fails, rather
than reporting success (<a
href="https://redirect.github.com/gradle/actions/issues/1028">#1028</a>).</p>
<h3>Dependency submission works with Isolated Projects</h3>
<p><code>dependency-submission</code> now disables Isolated Projects via
a promoted property, so
dependency graph generation works on builds that enable it (<a
href="https://redirect.github.com/gradle/actions/issues/1025">#1025</a>).
Thanks to <a
href="https://github.com/reinsch82"><code>@​reinsch82</code></a> for the
contribution.</p>
<h3>Updated defaults</h3>
<ul>
<li>Injected Develocity Gradle plugin: <strong>4.4.2 →
4.5.0</strong></li>
<li>36 new known-good wrapper checksums added for
<code>wrapper-validation</code></li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>Render configuration-cache status in the caching Job Summary by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/989">gradle/actions#989</a></li>
<li>Update gradle-actions-caching library to v0.8.0 by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/993">gradle/actions#993</a></li>
<li>Support experimental project-entry caching (configuration-cache +
build-logic) by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/994">gradle/actions#994</a></li>
<li>Update gradle-actions-caching library to v0.9.0 by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/996">gradle/actions#996</a></li>
<li>Disable Isolated Projects via promoted property in
dependency-submission by <a
href="https://github.com/reinsch82"><code>@​reinsch82</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/1025">gradle/actions#1025</a></li>
<li>Add Windows coverage for caching via a new smoke-test suite by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/1027">gradle/actions#1027</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gradle/actions/commit/9c971963bec38e04b3d30dcc455b5382be2fdbfb"><code>9c97196</code></a>
Bump the github-actions group across 2 directories with 9 updates (<a
href="https://redirect.github.com/gradle/actions/issues/1024">#1024</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/760e4a476b57fc6216ff816bbd682e14f43f66ee"><code>760e4a4</code></a>
Bump the npm-dependencies group across 1 directory with 2 updates (<a
href="https://redirect.github.com/gradle/actions/issues/1037">#1037</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/73e4c4222be7ce7f3685c9277a9e698ea3a28534"><code>73e4c42</code></a>
Update gradle-actions-caching library to v1.0.0 (<a
href="https://redirect.github.com/gradle/actions/issues/1029">#1029</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/a9d14388b4a819d9b607d85c115000e421e46eec"><code>a9d1438</code></a>
Add dependabot ignore rules for TypeScript 7.x and
<code>@​types/node</code> 25.x/26.x</li>
<li><a
href="https://github.com/gradle/actions/commit/68f37005d75fc0fdb3e66cc267d1f007b3de27d1"><code>68f3700</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/5971332a8f9f37459fbe710cc8b2ec8f125cdf54"><code>5971332</code></a>
Bump Gradle Wrapper to 9.6.1, wrapper checksums, and Develocity plugin
to 4.5...</li>
<li><a
href="https://github.com/gradle/actions/commit/b5bc804016a397046a67d7f83089c374ff4af6a7"><code>b5bc804</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/dcbab4e9198b2315584afbb3d582bdaa2a7aee42"><code>dcbab4e</code></a>
Bump npm-dependencies group with TypeScript 6.0.3,
<code>@​types/node</code> 24.x, and secu...</li>
<li><a
href="https://github.com/gradle/actions/commit/ca8d95717f747a46ed048a911f0e8a348829aef1"><code>ca8d957</code></a>
Move non-smoke restore-gradle-home tests back to the integ-test suite
(<a
href="https://redirect.github.com/gradle/actions/issues/1032">#1032</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/4318659b28d9d152a98ad848b621397f3e386420"><code>4318659</code></a>
[bot] Update dist directory</li>
<li>Additional commits viewable in <a
href="https://github.com/gradle/actions/compare/3f131e8634966bd73d06cc69884922b02e6faf92...9c971963bec38e04b3d30dcc455b5382be2fdbfb">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action/init` from 4.37.4 to 4.37.5
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action/init's
releases</a>.</em></p>
<blockquote>
<h2>v4.37.5</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action/init's
changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a
href="https://github.com/github/codeql-action/releases">releases
page</a> for the relevant changes to the CodeQL CLI and language
packs.</p>
<h2>[UNRELEASED]</h2>
<p>No user facing changes.</p>
<h2>4.37.6 - 04 Aug 2026</h2>
<ul>
<li>Changed the default filepath for the new remote file address format
that was introduced in CodeQL Action 4.37.0 / 3.37.0 to
<code>.github/codeql-config.yml</code> to align it with the suggested
path that is used elsewhere. <a
href="https://redirect.github.com/github/codeql-action/pull/4070">#4070</a></li>
</ul>
<h2>4.37.5 - 03 Aug 2026</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
<h2>4.37.4 - 29 Jul 2026</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>4.37.3 - 22 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.37.2 - 21 Jul 2026</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>4.37.1 - 16 Jul 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>4.37.0 - 08 Jul 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>4.36.3 - 01 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.2 - 04 Jun 2026</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/github/codeql-action/commit/d1ba80a13dd99fba24a470575428917156a28b43"><code>d1ba80a</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4067">#4067</a>
from github/update-v4.37.5-1cd4d01d5</li>
<li><a
href="https://github.com/github/codeql-action/commit/e74600b0d945db9734eb044f95cd43f34b773451"><code>e74600b</code></a>
Update changelog for v4.37.5</li>
<li><a
href="https://github.com/github/codeql-action/commit/1cd4d01d58f636bbdbffbfd3c121b3446d07e9f3"><code>1cd4d01</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4061">#4061</a>
from github/henrymercer/turbo-system</li>
<li><a
href="https://github.com/github/codeql-action/commit/d2bfc30bc3373a3ec945dc3f93bc8b8f07fa16b9"><code>d2bfc30</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4050">#4050</a>
from github/mbg/status/registries</li>
<li><a
href="https://github.com/github/codeql-action/commit/68028fcb1605f3cdd37e4e1845c3f78af017a3ea"><code>68028fc</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4062">#4062</a>
from github/sam-robson/migrate-enterprise-release-pat</li>
<li><a
href="https://github.com/github/codeql-action/commit/c29563eeaafbc75499c7bb0d74bf77b3506c1cbd"><code>c29563e</code></a>
ci: use federated enterprise release PAT</li>
<li><a
href="https://github.com/github/codeql-action/commit/155e5229973b426bd1ae2f83bb1bf42417fa2a8f"><code>155e522</code></a>
Link the PR from the changelog entry</li>
<li><a
href="https://github.com/github/codeql-action/commit/2d3b351ea6452a9b21346f8d64567e5b833924de"><code>2d3b351</code></a>
Handle network errors when streaming the CodeQL bundle download</li>
<li><a
href="https://github.com/github/codeql-action/commit/5d3eb98e4a780bfe1a53f57fbdc278ea5da1274b"><code>5d3eb98</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4055">#4055</a>
from github/dependabot/npm_and_yarn/npm-minor-203262...</li>
<li><a
href="https://github.com/github/codeql-action/commit/c5f739bd6460e096aaf40962517e46a846b8b6b1"><code>c5f739b</code></a>
Merge branch 'main' into
dependabot/npm_and_yarn/npm-minor-2032624187</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/f205ea1c3313d32999d8d6a48b4f6530d4437b38...d1ba80a13dd99fba24a470575428917156a28b43">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action/analyze` from 4.37.4 to 4.37.5
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action/analyze's
releases</a>.</em></p>
<blockquote>
<h2>v4.37.5</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action/analyze's
changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a
href="https://github.com/github/codeql-action/releases">releases
page</a> for the relevant changes to the CodeQL CLI and language
packs.</p>
<h2>[UNRELEASED]</h2>
<p>No user facing changes.</p>
<h2>4.37.6 - 04 Aug 2026</h2>
<ul>
<li>Changed the default filepath for the new remote file address format
that was introduced in CodeQL Action 4.37.0 / 3.37.0 to
<code>.github/codeql-config.yml</code> to align it with the suggested
path that is used elsewhere. <a
href="https://redirect.github.com/github/codeql-action/pull/4070">#4070</a></li>
</ul>
<h2>4.37.5 - 03 Aug 2026</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
<h2>4.37.4 - 29 Jul 2026</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>4.37.3 - 22 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.37.2 - 21 Jul 2026</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>4.37.1 - 16 Jul 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>4.37.0 - 08 Jul 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>4.36.3 - 01 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.2 - 04 Jun 2026</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/github/codeql-action/commit/d1ba80a13dd99fba24a470575428917156a28b43"><code>d1ba80a</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4067">#4067</a>
from github/update-v4.37.5-1cd4d01d5</li>
<li><a
href="https://github.com/github/codeql-action/commit/e74600b0d945db9734eb044f95cd43f34b773451"><code>e74600b</code></a>
Update changelog for v4.37.5</li>
<li><a
href="https://github.com/github/codeql-action/commit/1cd4d01d58f636bbdbffbfd3c121b3446d07e9f3"><code>1cd4d01</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4061">#4061</a>
from github/henrymercer/turbo-system</li>
<li><a
href="https://github.com/github/codeql-action/commit/d2bfc30bc3373a3ec945dc3f93bc8b8f07fa16b9"><code>d2bfc30</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4050">#4050</a>
from github/mbg/status/registries</li>
<li><a
href="https://github.com/github/codeql-action/commit/68028fcb1605f3cdd37e4e1845c3f78af017a3ea"><code>68028fc</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4062">#4062</a>
from github/sam-robson/migrate-enterprise-release-pat</li>
<li><a
href="https://github.com/github/codeql-action/commit/c29563eeaafbc75499c7bb0d74bf77b3506c1cbd"><code>c29563e</code></a>
ci: use federated enterprise release PAT</li>
<li><a
href="https://github.com/github/codeql-action/commit/155e5229973b426bd1ae2f83bb1bf42417fa2a8f"><code>155e522</code></a>
Link the PR from the changelog entry</li>
<li><a
href="https://github.com/github/codeql-action/commit/2d3b351ea6452a9b21346f8d64567e5b833924de"><code>2d3b351</code></a>
Handle network errors when streaming the CodeQL bundle download</li>
<li><a
href="https://github.com/github/codeql-action/commit/5d3eb98e4a780bfe1a53f57fbdc278ea5da1274b"><code>5d3eb98</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4055">#4055</a>
from github/dependabot/npm_and_yarn/npm-minor-203262...</li>
<li><a
href="https://github.com/github/codeql-action/commit/c5f739bd6460e096aaf40962517e46a846b8b6b1"><code>c5f739b</code></a>
Merge branch 'main' into
dependabot/npm_and_yarn/npm-minor-2032624187</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/f205ea1c3313d32999d8d6a48b4f6530d4437b38...d1ba80a13dd99fba24a470575428917156a28b43">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-java` from 5.6.0 to 5.7.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-java/releases">actions/setup-java's
releases</a>.</em></p>
<blockquote>
<h2>v5.7.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Fix npm audit failures on releases/v5 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1154">actions/setup-java#1154</a></li>
<li>Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1151">#1151</a>:
Fix missing wrapper cache distributions by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1153">actions/setup-java#1153</a></li>
<li>Deprecate legacy Adopt distributions in v5 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1186">actions/setup-java#1186</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-java/compare/v5.6.0...v5.7.0">https://github.com/actions/setup-java/compare/v5.6.0...v5.7.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-java/commit/b6effb05e454b25005698d916606bdc6ffcbf961"><code>b6effb0</code></a>
Deprecate legacy Adopt distributions in v5 (<a
href="https://redirect.github.com/actions/setup-java/issues/1186">#1186</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/e498d2a66a953492f322542257b22125c989b422"><code>e498d2a</code></a>
Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1151">#1151</a>:
Fix missing wrapper cache distributions (<a
href="https://redirect.github.com/actions/setup-java/issues/1153">#1153</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/6a3384db745932178632d0e22b2bd28cad1678e6"><code>6a3384d</code></a>
Fix npm audit failures on releases/v5 (<a
href="https://redirect.github.com/actions/setup-java/issues/1154">#1154</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-java/compare/03ad4de0992f5dab5e18fcb136590ce7c4a0ac95...b6effb05e454b25005698d916606bdc6ffcbf961">compare
view</a></li>
</ul>
</details>
<br />

Updates `gradle/actions/wrapper-validation` from 6.2.0 to 6.3.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gradle/actions/releases">gradle/actions/wrapper-validation's
releases</a>.</em></p>
<blockquote>
<h2>v6.3.0</h2>
<h2>Highlights</h2>
<h3>Enhanced Caching: Windows fixes and a cache-protocol bump</h3>
<p>This release updates <code>gradle-actions-caching</code> to
<strong>v1.0.0</strong> (up from v0.7.0), which fixes two significant
caching defects, both most visible on Windows:</p>
<ul>
<li>
<p><strong>Cache entries failed to store at all on Windows.</strong>.
Every entry failed
with <code>Path Validation Error: Path(s) specified in the action for
caching do(es) not exist</code>, even though the Gradle User Home was
fully intact. Nothing was stored, so
every downstream job ran against an empty Gradle User Home. The cause
was a nested,
unpatched copy of <code>@actions/glob</code> combined with a silently
swallowed <code>require()</code> in
the bundle, which left Windows path separators unnormalized.</p>
</li>
<li>
<p><strong>Cache cleanup deleted instrumented jars that were in
use.</strong> A bug in key
hashing for paths shorter than 64 characters made cleanup judge freshly
created
<code>caches/jars-9</code> entries as unused and remove them, so the
<code>instrumented-jars</code> entry
was never saved and every job re-instrumented its classpaths.</p>
<p>Also included: cache entry names are now consistent between the save
and restore
reports — restore previously fell back to showing the raw glob pattern
(e.g.
<code>/home/runner/.gradle/caches/modules-*/files-*/*/*/*/*/</code>)
instead of <code>dependencies</code>.</p>
</li>
</ul>
<blockquote>
<p>[!IMPORTANT]
<strong>Existing cache entries are invalidated by this release.</strong>
The cache protocol
version was bumped to <code>v2</code>, so the first run after upgrading
will be a cache miss
and will repopulate the cache. No configuration changes are
required.</p>
</blockquote>
<h3>Basic caching warns instead of failing silently</h3>
<p>The basic (open-source) caching provider now emits a warning and
reports
<code>(Entry not saved: save failed)</code> in the Job Summary when a
cache save fails, rather
than reporting success (<a
href="https://redirect.github.com/gradle/actions/issues/1028">#1028</a>).</p>
<h3>Dependency submission works with Isolated Projects</h3>
<p><code>dependency-submission</code> now disables Isolated Projects via
a promoted property, so
dependency graph generation works on builds that enable it (<a
href="https://redirect.github.com/gradle/actions/issues/1025">#1025</a>).
Thanks to <a
href="https://github.com/reinsch82"><code>@​reinsch82</code></a> for the
contribution.</p>
<h3>Updated defaults</h3>
<ul>
<li>Injected Develocity Gradle plugin: <strong>4.4.2 →
4.5.0</strong></li>
<li>36 new known-good wrapper checksums added for
<code>wrapper-validation</code></li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>Render configuration-cache status in the caching Job Summary by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/989">gradle/actions#989</a></li>
<li>Update gradle-actions-caching library to v0.8.0 by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/993">gradle/actions#993</a></li>
<li>Support experimental project-entry caching (configuration-cache +
build-logic) by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/994">gradle/actions#994</a></li>
<li>Update gradle-actions-caching library to v0.9.0 by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/996">gradle/actions#996</a></li>
<li>Disable Isolated Projects via promoted property in
dependency-submission by <a
href="https://github.com/reinsch82"><code>@​reinsch82</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/1025">gradle/actions#1025</a></li>
<li>Add Windows coverage for caching via a new smoke-test suite by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/1027">gradle/actions#1027</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gradle/actions/commit/9c971963bec38e04b3d30dcc455b5382be2fdbfb"><code>9c97196</code></a>
Bump the github-actions group across 2 directories with 9 updates (<a
href="https://redirect.github.com/gradle/actions/issues/1024">#1024</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/760e4a476b57fc6216ff816bbd682e14f43f66ee"><code>760e4a4</code></a>
Bump the npm-dependencies group across 1 directory with 2 updates (<a
href="https://redirect.github.com/gradle/actions/issues/1037">#1037</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/73e4c4222be7ce7f3685c9277a9e698ea3a28534"><code>73e4c42</code></a>
Update gradle-actions-caching library to v1.0.0 (<a
href="https://redirect.github.com/gradle/actions/issues/1029">#1029</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/a9d14388b4a819d9b607d85c115000e421e46eec"><code>a9d1438</code></a>
Add dependabot ignore rules for TypeScript 7.x and
<code>@​types/node</code> 25.x/26.x</li>
<li><a
href="https://github.com/gradle/actions/commit/68f37005d75fc0fdb3e66cc267d1f007b3de27d1"><code>68f3700</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/5971332a8f9f37459fbe710cc8b2ec8f125cdf54"><code>5971332</code></a>
Bump Gradle Wrapper to 9.6.1, wrapper checksums, and Develocity plugin
to 4.5...</li>
<li><a
href="https://github.com/gradle/actions/commit/b5bc804016a397046a67d7f83089c374ff4af6a7"><code>b5bc804</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/dcbab4e9198b2315584afbb3d582bdaa2a7aee42"><code>dcbab4e</code></a>
Bump npm-dependencies group with TypeScript 6.0.3,
<code>@​types/node</code> 24.x, and secu...</li>
<li><a
href="https://github.com/gradle/actions/commit/ca8d95717f747a46ed048a911f0e8a348829aef1"><code>ca8d957</code></a>
Move non-smoke restore-gradle-home tests back to the integ-test suite
(<a
href="https://redirect.github.com/gradle/actions/issues/1032">#1032</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/4318659b28d9d152a98ad848b621397f3e386420"><code>4318659</code></a>
[bot] Update dist directory</li>
<li>Additional commits viewable in <a
href="https://github.com/gradle/actions/compare/3f131e8634966bd73d06cc69884922b02e6faf92...9c971963bec38e04b3d30dcc455b5382be2fdbfb">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-node` from 6.4.0 to 7.0.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-node/releases">actions/setup-node's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.0</h2>
<h2>What's Changed</h2>
<h3>Enhancements:</h3>
<ul>
<li>Add cache-primary-key and cache-matched-key as outputs by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1577">actions/setup-node#1577</a></li>
<li>Migrate to ESM and upgrade dependencies by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1574">actions/setup-node#1574</a></li>
</ul>
<h3>Bug fixes:</h3>
<ul>
<li>Remove dummy NODE_AUTH_TOKEN export by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1558">actions/setup-node#1558</a></li>
<li>Only use <code>mirrorToken</code> in <code>getManifest</code> if
it's provided by <a
href="https://github.com/deiga"><code>@​deiga</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1548">actions/setup-node#1548</a></li>
</ul>
<h3>Documentation updates:</h3>
<ul>
<li>Add documentation for publishing to npm with Trusted Publisher
(OIDC) by <a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1536">actions/setup-node#1536</a></li>
<li>docs: Update restore-only cache documentation by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1550">actions/setup-node#1550</a></li>
<li>docs: Update caching recommendations to mitigate cache poisoning
risks by <a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1567">actions/setup-node#1567</a></li>
</ul>
<h3>Dependency update:</h3>
<ul>
<li>Upgrade <code>@​actions/cache</code> to 5.1.0, log cache write
denied by <a
href="https://github.com/jasongin"><code>@​jasongin</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1569">actions/setup-node#1569</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1536">actions/setup-node#1536</a></li>
<li><a href="https://github.com/deiga"><code>@​deiga</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1548">actions/setup-node#1548</a></li>
<li><a href="https://github.com/jasongin"><code>@​jasongin</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1569">actions/setup-node#1569</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v7.0.0">https://github.com/actions/setup-node/compare/v6...v7.0.0</a></p>
<h2>v6.5.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Update <code>@​actions/cache</code> to 5.1.0 and add security
overrides for undici and fast-xml-parser by <a
href="https://github.com/HarithaVattikuti"><code>@​HarithaVattikuti</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1579">actions/setup-node#1579</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0">https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/820762786026740c76f36085b0efc47a31fe5020"><code>8207627</code></a>
Migrate to ESM and upgrade dependencies (<a
href="https://redirect.github.com/actions/setup-node/issues/1574">#1574</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/04be95cf3511ea51ebf9f224ddfb99cc7ab87cd4"><code>04be95c</code></a>
Add cache-primary-key and cache-matched-key as outputs (<a
href="https://redirect.github.com/actions/setup-node/issues/1577">#1577</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/7c2c68d20d402ed6a201ada70a81341941093140"><code>7c2c68d</code></a>
docs: Update caching recommendations to mitigate cache poisoning risks
(<a
href="https://redirect.github.com/actions/setup-node/issues/1567">#1567</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/6a61c0375d66246de94630495909f12cf8dac84d"><code>6a61c03</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/setup-node/issues/1569">#1569</a>
from jasongin/update-actions-cache-5.1.0</li>
<li><a
href="https://github.com/actions/setup-node/commit/30eb73b41ded577900c1ebf968ef95cdf8f7434f"><code>30eb73b</code></a>
Resolve high-severity audit issues</li>
<li><a
href="https://github.com/actions/setup-node/commit/4e1a87a501d0302f99e30e2748568adcb388d09f"><code>4e1a87a</code></a>
Update dist</li>
<li><a
href="https://github.com/actions/setup-node/commit/360237f0c01778d0c17291f75c56d6feae4f7574"><code>360237f</code></a>
Strict equality</li>
<li><a
href="https://github.com/actions/setup-node/commit/4f8aac5beb2f0854bc79651567a18c67eb0b9de3"><code>4f8aac5</code></a>
Bump <code>@​actions/cache</code> to 5.1.0, log cache write denied</li>
<li><a
href="https://github.com/actions/setup-node/commit/f4a67bbeca970f103397d3d2b9462cf787cd2980"><code>f4a67bb</code></a>
Only use <code>mirrorToken</code> in <code>getManifest</code> if it's
provided (<a
href="https://redirect.github.com/actions/setup-node/issues/1548">#1548</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/0355742c943ddb13ca8a6b700f824231caa91e75"><code>0355742</code></a>
Remove dummy NODE_AUTH_TOKEN export (<a
href="https://redirect.github.com/actions/setup-node/issues/1558">#1558</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/setup-node/compare/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e...820762786026740c76f36085b0efc47a31fe5020">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-java` from 5.6.0 to 5.7.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-java/releases">actions/setup-java's
releases</a>.</em></p>
<blockquote>
<h2>v5.7.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Fix npm audit failures on releases/v5 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1154">actions/setup-java#1154</a></li>
<li>Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1151">#1151</a>:
Fix missing wrapper cache distributions by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1153">actions/setup-java#1153</a></li>
<li>Deprecate legacy Adopt distributions in v5 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1186">actions/setup-java#1186</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-java/compare/v5.6.0...v5.7.0">https://github.com/actions/setup-java/compare/v5.6.0...v5.7.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-java/commit/b6effb05e454b25005698d916606bdc6ffcbf961"><code>b6effb0</code></a>
Deprecate legacy Adopt distributions in v5 (<a
href="https://redirect.github.com/actions/setup-java/issues/1186">#1186</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/e498d2a66a953492f322542257b22125c989b422"><code>e498d2a</code></a>
Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1151">#1151</a>:
Fix missing wrapper cache distributions (<a
href="https://redirect.github.com/actions/setup-java/issues/1153">#1153</a>)</li>
<li><a
href="https://github.com/actions/setup-java/commit/6a3384db745932178632d0e22b2bd28cad1678e6"><code>6a3384d</code></a>
Fix npm audit failures on releases/v5 (<a
href="https://redirect.github.com/actions/setup-java/issues/1154">#1154</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-java/compare/03ad4de0992f5dab5e18fcb136590ce7c4a0ac95...b6effb05e454b25005698d916606bdc6ffcbf961">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-06 19:21:45 -06:00
Daz DeBoerandClaude Opus 5 b7d46eb472 Document immutable releases in the release process
Release immutability is now enabled for this repository, so a published
release permanently locks its Git tag to a commit, and deleting the
release does not free the tag name for reuse.

Reorder the steps so the signed tag is created and pushed before the
release is drafted, and have the draft select that existing tag. Letting
GitHub create the tag at publish time produces an unsigned, lightweight
tag pointing at whatever main resolves to at that moment - both of which
immutability then makes permanent.

Also record that the v6 major tag must never have a release attached:
immutability locks only tags that have a release of their own, which is
what keeps the conventional major-tag force-push legal.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-02 13:54:30 -06:00
79 changed files with 4904 additions and 2508 deletions

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ name: 'Build and upload distribution'
runs:
using: "composite"
steps:
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: npm
+2 -2
View File
@@ -10,7 +10,7 @@ runs:
using: "composite"
steps:
- name: Setup Java
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
distribution: 'temurin'
java-version: ${{ inputs.java-version }}
@@ -23,7 +23,7 @@ runs:
# Downloads a 'dist' directory artifact that was uploaded in an earlier 'build-dist' step
- name: Download dist
if: ${{ env.SKIP_DIST != 'true' && !env.ACT }}
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: dist
path: dist/
+7
View File
@@ -20,6 +20,13 @@ updates:
versions: ["7.x"]
- dependency-name: "@types/node"
versions: ["25.x", "26.x"]
# jest 30.5.0 reworked the ESM module registry, and nock no longer intercepts requests
# made through @actions/http-client (undici): every mocked test silently hits the real
# network instead. nock 15 does not fix it. Drop these two once they interoperate again.
- dependency-name: "jest"
versions: [">=30.5.0"]
- dependency-name: "@jest/globals"
versions: [">=30.5.0"]
- package-ecosystem: "github-actions"
# github-actions with directory: "/" only monitors .github/workflows
# https://github.com/dependabot/dependabot-core/issues/6345
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
distributionSha256Sum=21bd5da2de49b642904077f38c0efdc7778e92b3ed0889392dca61b97e389607
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.2-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
@@ -26,6 +26,33 @@
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
@rem Catch executions from older scripts and ensure they exit cleanly.
@rem This can be removed once we can be reasonably confident that few people
@rem will be migrating directly to this new wrapper.
goto afterSafetyNet
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
goto exitWithErrorLevel
:afterSafetyNet
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
@@ -45,13 +72,14 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -59,13 +87,14 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:execute
@rem Setup the command line
@@ -75,8 +104,9 @@ echo location of your Java installation. 1>&2
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel & goto exitWithErrorLevel
@rem This label must not be changed. We rely on old scripts being able to jump to this point.
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
distributionSha256Sum=21bd5da2de49b642904077f38c0efdc7778e92b3ed0889392dca61b97e389607
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.2-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+41 -11
View File
@@ -26,6 +26,33 @@
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
@rem Catch executions from older scripts and ensure they exit cleanly.
@rem This can be removed once we can be reasonably confident that few people
@rem will be migrating directly to this new wrapper.
goto afterSafetyNet
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
goto exitWithErrorLevel
:afterSafetyNet
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
@@ -45,13 +72,14 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -59,13 +87,14 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:execute
@rem Setup the command line
@@ -75,8 +104,9 @@ echo location of your Java installation. 1>&2
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel & goto exitWithErrorLevel
@rem This label must not be changed. We rely on old scripts being able to jump to this point.
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.5.0"
id "com.gradle.develocity" version "4.6.1"
id "com.gradle.common-custom-user-data-gradle-plugin" version "2.4.0"
}
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
distributionSha256Sum=21bd5da2de49b642904077f38c0efdc7778e92b3ed0889392dca61b97e389607
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.2-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
@@ -26,6 +26,33 @@
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
@rem Catch executions from older scripts and ensure they exit cleanly.
@rem This can be removed once we can be reasonably confident that few people
@rem will be migrating directly to this new wrapper.
goto afterSafetyNet
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
goto exitWithErrorLevel
:afterSafetyNet
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
@@ -45,13 +72,14 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -59,13 +87,14 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:execute
@rem Setup the command line
@@ -75,8 +104,9 @@ echo location of your Java installation. 1>&2
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel & goto exitWithErrorLevel
@rem This label must not be changed. We rely on old scripts being able to jump to this point.
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
distributionSha256Sum=21bd5da2de49b642904077f38c0efdc7778e92b3ed0889392dca61b97e389607
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.2-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+41 -11
View File
@@ -26,6 +26,33 @@
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
@rem Catch executions from older scripts and ensure they exit cleanly.
@rem This can be removed once we can be reasonably confident that few people
@rem will be migrating directly to this new wrapper.
goto afterSafetyNet
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
goto exitWithErrorLevel
:afterSafetyNet
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
@@ -45,13 +72,14 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -59,13 +87,14 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:execute
@rem Setup the command line
@@ -75,8 +104,9 @@ echo location of your Java installation. 1>&2
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel & goto exitWithErrorLevel
@rem This label must not be changed. We rely on old scripts being able to jump to this point.
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,5 +1,5 @@
plugins {
id("com.gradle.develocity") version "4.5.0"
id("com.gradle.develocity") version "4.6.1"
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.4.0"
}
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.5.0"
id "com.gradle.develocity" version "4.6.1"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.5.0"
id "com.gradle.develocity" version "4.6.1"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.5.0"
id "com.gradle.develocity" version "4.6.1"
}
develocity {
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
cache-dependency-path: sources/package-lock.json
- name: Setup Gradle
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
with:
+2 -2
View File
@@ -35,7 +35,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v3.29.5
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v3.29.5
with:
languages: ${{ matrix.language }}
config: |
@@ -43,4 +43,4 @@ jobs:
- sources/src
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v3.29.5
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v3.29.5
+2 -2
View File
@@ -36,14 +36,14 @@ jobs:
sources/test/init-scripts/**
- name: Setup Java
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
- name: Run integration tests
+1
View File
@@ -36,6 +36,7 @@ jobs:
other-integ-tests:
permissions:
contents: write
actions: read
needs: caching-integ-tests
uses: ./.github/workflows/suite-integ-test-other.yml
concurrency:
+1
View File
@@ -47,6 +47,7 @@ jobs:
other-integ-tests:
permissions:
contents: write
actions: read
needs: caching-integ-tests
uses: ./.github/workflows/suite-integ-test-other.yml
concurrency:
+1 -1
View File
@@ -53,7 +53,7 @@ jobs:
working-directory: sources
env:
NODE_OPTIONS: '-r @gradle-tech/develocity-agent/preload'
DEVELOCITY_URL: 'https://ge.solutions-team.gradle.com'
DEVELOCITY_URL: 'https://solutions.develocity.cloud'
DEVELOCITY_ACCESS_KEY: '${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}'
- name: Copy the generated sources/dist directory to the top-level dist
+1 -1
View File
@@ -12,6 +12,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: gradle/actions/wrapper-validation@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
- uses: gradle/actions/wrapper-validation@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
with:
allow-checksums: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+91 -1
View File
@@ -46,7 +46,7 @@ jobs:
run: |
./gradlew tasks --no-daemon
./gradlew help check
./gradlew wrapper --gradle-version 8.7 --gradle-distribution-sha256-sum 544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d
./gradlew :wrapper --gradle-version 8.7 --gradle-distribution-sha256-sum 544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d
- name: Fail groovy-dsl project
working-directory: .github/workflow-samples/groovy-dsl
continue-on-error: true
@@ -57,6 +57,79 @@ jobs:
build-root-directory: .github/workflow-samples/groovy-dsl
dependency-graph: generate-and-upload
# Exercises every Gradle version support status in a single Job Summary: end-of-life versions all
# share one expandable section and are each marked with a warning sign, out-of-date versions share
# a single info sign and legend, and the current version is left unmarked.
# Three end-of-life versions and two out-of-date ones exercise the plural wording throughout, and
# the two 7.x versions alongside a 6.x one check that each affected release line is named once,
# as "Gradle 6.x and 7.x releases".
# Versions are picked relative to Gradle 9.x being current; revisit once Gradle 10 is released.
support-status-eol-and-outdated:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Java 11, since Gradle 6.x cannot run on the Java 17 used elsewhere in this workflow.
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
java-version: '11'
- name: Setup Gradle 6.9.4 (end-of-life)
uses: ./setup-gradle
with:
gradle-version: '6.9.4'
- name: Build with Gradle 6.9.4
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
- name: Setup Gradle 7.4 (end-of-life)
uses: ./setup-gradle
with:
gradle-version: '7.4'
- name: Build with Gradle 7.4
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
- name: Setup Gradle 7.6.6 (end-of-life)
uses: ./setup-gradle
with:
gradle-version: '7.6.6'
- name: Build with Gradle 7.6.6
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
- name: Setup Gradle 8.0.2 (out of date)
uses: ./setup-gradle
with:
gradle-version: '8.0.2'
- name: Build with Gradle 8.0.2
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
- name: Setup Gradle 8.14.5 (out of date)
uses: ./setup-gradle
with:
gradle-version: '8.14.5'
- name: Build with Gradle 8.14.5
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
# Gradle 9 and later require Java 17
- name: Setup Java 17
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle current (no status reported)
uses: ./setup-gradle
with:
gradle-version: current
- name: Build with the current Gradle version
working-directory: .github/workflow-samples/no-wrapper
run: gradle help
successful-builds-with-no-summary:
needs: build-distribution
runs-on: ubuntu-latest
@@ -132,6 +205,23 @@ jobs:
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
cache-provider-external:
needs: build-distribution
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-provider: external
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
basic-caching:
needs: build-distribution
runs-on: ubuntu-latest
@@ -134,6 +134,30 @@ jobs:
script: |
core.setFailed('No Build Scan detected')
# Test that build scans are captured when caching is external
caching-config-cache-provider-external:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-provider: external
- name: Build using Gradle wrapper
id: gradle
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew help
- name: Check Build Scan url is captured
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
# Test seed the cache with cache-write-only and verify with cache-read-only
caching-config-seed-write-only:
env:
@@ -65,15 +65,19 @@ jobs:
uses: ./.github/actions/init-integ-test
- name: Setup Java 16
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: 'temurin'
java-version: 16
# Temurin 16 is EOL and publishes no signatures: setup-java v6 enables verify-signature by default
verify-signature: false
- name: Setup Java 20
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: 'temurin'
java-version: 20
# Temurin 20 is EOL and publishes no signatures: setup-java v6 enables verify-signature by default
verify-signature: false
- name: Setup Gradle
uses: ./setup-gradle
- name: List detected toolchains
@@ -0,0 +1,148 @@
name: Test Gradle support status reporting
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
skip-dist:
type: boolean
default: false
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: gradle-support-status-${{ inputs.cache-key-prefix }}
permissions:
contents: read
jobs:
report-outdated-versions:
runs-on: ubuntu-latest
outputs:
prev-oldest: ${{ steps.versions.outputs.prev-oldest }}
prev-newest: ${{ steps.versions.outputs.prev-newest }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
# Derived from the bundled release data so the expectations cannot drift from the action's own view.
- name: Determine versions for each support status
id: versions
run: |
set -euo pipefail
eval "$(jq -r '
[ .[].version
| select(test("^[0-9]+\\.[0-9]+(\\.[0-9]+)?$"))
| {v: ., k: (((split(".") | map(tonumber)) + [0, 0, 0]) | .[0:3])}
]
| sort_by(.k) as $finals
| ($finals | last) as $latest
| [$finals[] | select(.k[0] == $latest.k[0] - 1)] as $prev
| "KNOWN_LATEST=\($latest.v)",
"PREV_OLDEST=\($prev | first | .v)",
"PREV_NEWEST=\($prev | last | .v)"
' sources/src/wrapper-validation/wrapper-checksums.json)"
echo "Known latest : ${KNOWN_LATEST}"
echo "Previous major, oldest : ${PREV_OLDEST}"
echo "Previous major, newest : ${PREV_NEWEST}"
{
echo "prev-oldest=${PREV_OLDEST}"
echo "prev-newest=${PREV_NEWEST}"
} >> "$GITHUB_OUTPUT"
- name: Setup Gradle with an end-of-life version
uses: ./setup-gradle
with:
cache-read-only: false
gradle-version: '7.6.4'
- name: Build with the end-of-life version
working-directory: .github/workflow-samples/no-wrapper
run: gradle help "-DgradleVersionCheck=7.6.4"
- name: Setup Gradle with the oldest release of the previous major
uses: ./setup-gradle
with:
gradle-version: ${{ steps.versions.outputs.prev-oldest }}
- name: Build with the oldest release of the previous major
working-directory: .github/workflow-samples/no-wrapper
run: gradle help "-DgradleVersionCheck=${{ steps.versions.outputs.prev-oldest }}"
- name: Setup Gradle with the newest release of the previous major
uses: ./setup-gradle
with:
gradle-version: ${{ steps.versions.outputs.prev-newest }}
- name: Build with the newest release of the previous major
working-directory: .github/workflow-samples/no-wrapper
run: gradle help "-DgradleVersionCheck=${{ steps.versions.outputs.prev-newest }}"
verify-report:
needs: report-outdated-versions
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- name: Check the support-status report was emitted
env:
GH_TOKEN: ${{ github.token }}
PREV_OLDEST: ${{ needs.report-outdated-versions.outputs.prev-oldest }}
PREV_NEWEST: ${{ needs.report-outdated-versions.outputs.prev-newest }}
run: |
set -euo pipefail
job_id=$(gh api \
"/repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/attempts/${GITHUB_RUN_ATTEMPT}/jobs" \
--paginate --jq '.jobs[] | select(.name | endswith("report-outdated-versions")) | .id')
if [ -z "$job_id" ]; then
echo "Could not find the 'report-outdated-versions' Job in this workflow run"
exit 1
fi
gh api --allow-escape-sequences "/repos/${GITHUB_REPOSITORY}/actions/jobs/${job_id}/logs" > job.log
assert_logged() {
if ! grep -qF -- "$1" job.log; then
echo "Expected the Job log to contain: $1"
echo "--- support-status output found instead ---"
grep -E '##\[(warning|notice)\]|<summary>:warning:|consider upgrading' job.log || echo "(none)"
exit 1
fi
}
refute_logged() {
if grep -qF -- "$1" job.log; then
echo "Did not expect the Job log to contain: $1"
exit 1
fi
}
# The runner renders '::warning::'/'::notice::' into the log as '##[warning]'/'##[notice]'.
assert_logged "##[warning]Gradle 7.6.4 is end-of-life"
assert_logged "##[notice]Gradle ${PREV_OLDEST} is out of date: consider updating to the latest Gradle version."
assert_logged "##[notice]Gradle ${PREV_NEWEST} is out of date: consider updating to the latest Gradle version."
# Out-of-date versions get a notice, never a warning.
refute_logged "##[warning]Gradle ${PREV_OLDEST}"
refute_logged "##[warning]Gradle ${PREV_NEWEST}"
# The job summary is echoed to the log, so the rendered report can be checked directly.
assert_logged "<summary>:warning: Gradle 7.6.4 is end-of-life</summary>"
assert_logged "Update to the latest Gradle version."
assert_logged "<a href=\"https://gradle.org/security-subscription/?utm_source=github-action\">Gradle Security Subscription</a>"
# Table signs: a warning for end-of-life, the info sign for everything still supported.
assert_logged "<td align='center'>7.6.4 :warning:</td>"
assert_logged "<td align='center'>${PREV_OLDEST} :information_source:</td>"
assert_logged "<td align='center'>${PREV_NEWEST} :information_source:</td>"
# One legend for the whole job, no matter how many versions carry the info sign.
legends=$(grep -cF -- "consider upgrading" job.log || true)
if [ "$legends" != "1" ]; then
echo "Expected exactly one upgrade legend, found ${legends}"
exit 1
fi
assert_logged "<p>:information_source: Gradle version is out of date — consider upgrading. See <a href=\"https://docs.gradle.org/current/userguide/feature_lifecycle.html#eol_support\">Gradle release lifecycle</a></p>"
@@ -30,7 +30,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: ['3.16.2', '4.5.0']
plugin-version: ['3.16.2', '4.6.1']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -43,12 +43,12 @@ jobs:
java-version: 11
- plugin-version: '3.16.2'
accessKeyEnv: GRADLE_ENTERPRISE_ACCESS_KEY
- plugin-version: '4.5.0'
- plugin-version: '4.6.1'
accessKeyEnv: DEVELOCITY_ACCESS_KEY
runs-on: ${{ matrix.os }}
env:
DEVELOCITY_INJECTION_ENABLED: true
DEVELOCITY_INJECTION_URL: https://ge.solutions-team.gradle.com
DEVELOCITY_INJECTION_URL: https://solutions.develocity.cloud
DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION: ${{ matrix.plugin-version }}
DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION: '2.2.1'
${{matrix.accessKeyEnv}}: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
@@ -84,7 +84,7 @@ jobs:
inject-develocity-with-access-key:
env:
DEVELOCITY_INJECTION_ENABLED: true
DEVELOCITY_INJECTION_URL: 'https://ge.solutions-team.gradle.com'
DEVELOCITY_INJECTION_URL: 'https://solutions.develocity.cloud'
DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION: ${{ matrix.plugin-version }}
DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION: '2.2.1'
strategy:
@@ -92,7 +92,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: ['3.16.2', '4.5.0']
plugin-version: ['3.16.2', '4.6.1']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -148,7 +148,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [ '3.16.2', '4.5.0' ]
plugin-version: [ '3.16.2', '4.6.1' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -191,7 +191,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [ '3.16.2', '4.5.0' ]
plugin-version: [ '3.16.2', '4.6.1' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -217,7 +217,7 @@ jobs:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
gradle-version: ${{ matrix.gradle }}
develocity-injection-enabled: true
develocity-url: 'https://ge.solutions-team.gradle.com'
develocity-url: 'https://solutions.develocity.cloud'
develocity-plugin-version: ${{ matrix.plugin-version }}
- name: Run Gradle build
id: gradle
@@ -56,7 +56,7 @@ jobs:
run: gradle help "-DgradleVersionCheck=7.1.1"
# Configure JDK 17 for Gradle 9 and later
- name: Setup Java
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: temurin
java-version: 17
@@ -110,7 +110,7 @@ jobs:
uses: ./.github/actions/init-integ-test
- name: Setup Java
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
@@ -28,6 +28,14 @@ jobs:
secrets:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
gradle-support-status:
permissions:
contents: read
actions: read
uses: ./.github/workflows/integ-test-gradle-support-status.yml
with:
skip-dist: ${{ inputs.skip-dist }}
provision-gradle-versions:
uses: ./.github/workflows/integ-test-provision-gradle-versions.yml
with:
+1
View File
@@ -1,3 +1,4 @@
.git
.vscode
.claude
.idea
+3 -3
View File
@@ -1,4 +1,4 @@
# Configuration file for asdf version manager
nodejs 24.3.0
gradle 8.14.2
java liberica-11.0.26+9
nodejs 24.18.0
gradle 9.7.1
java liberica-17.0.14+10
+21 -2
View File
@@ -9,20 +9,39 @@
- If new features have been added, bump the minor version (eg `4.1.1` → `4.2.0`)
- If a new major release is required, bump the major version (eg `4.1.1` → `5.0.0`)
- Note: The gradle actions follow the GitHub Actions convention of including a .0 patch number for the first release of a minor version, unlike the Gradle convention which omits the trailing .0.
- Release immutability is a one-time repository setting (Settings → General → Releases → "Enable release immutability"), and applies to every release published thereafter.
## Release gradle/actions
- Create a tag for the release. The tag should have the format `v6.2.0`
> [!IMPORTANT]
> Releases in this repository are [immutable](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases).
> Once a release is published, its Git tag is permanently locked to a commit and its assets can no
> longer be changed. Deleting the release does not release the tag name for reuse — a mistake in
> `v6.3.0` means the next release must be `v6.3.1`. Everything below is ordered so that the tag is
> correct *before* anything is published.
>
> Drafts are exempt: a draft release, and its tag, can still be edited or deleted freely.
- Create and push the tag for the release **before** drafting it. The tag should have the format `v6.2.0`
- Your HEAD must point at the commit to be released.
- From CLI: `git tag -s -m "v6.2.0" v6.2.0 && git push --tags`
- Note that we sign the tag and set the commit message for the tag to the newly released version.
- Do **not** let GitHub create the tag when the release is published. It creates an unsigned,
lightweight tag pointing at whatever `main` resolves to at that moment — so anything merged
while the draft was open is silently included. Immutability makes both permanent.
- Go to https://github.com/gradle/actions/releases and "Draft new release"
- Use the newly created tag and copy the tag name exactly as the release title.
- Select the existing tag — do not use "Create new tag on publish" — and copy the tag name exactly as the release title.
- Craft release notes content based on issues closed, PRs merged and commits
- Include a Full changelog link in the format https://github.com/gradle/actions/compare/v2.12.0...v3.0.0
- Finalize the notes now, while the release is still a draft.
- Publish the release.
- Confirm immutability took effect: `gh api repos/gradle/actions/releases/tags/v6.2.0 --jq .immutable` should print `true`.
- Force push the `v6` tag (or current major version) to point to the new release. It is conventional for users to bind to a major release version using this tag.
- From CLI: `git tag -f -s -a -m "v6.2.0" v6 && git push -f --tags`
- Note that we sign the tag and set the commit message for the tag to the newly released version.
- Your HEAD must point at the commit to be tagged.
- Never attach a GitHub release to the `v6` tag. Immutability locks only those tags that have a
release of their own, so the major tag remains movable precisely as long as it has none.
## Post release steps
+1
View File
@@ -31,6 +31,7 @@ inputs:
Specifies the caching implementation to use.
'enhanced' (default) uses the full-featured commercial caching service (gradle-actions-caching).
'basic' uses a simple open-source caching implementation based on GitHub Actions cache.
'external' disables Gradle User Home caching by this action, for use when Gradle User Home is already saved and restored by another mechanism (e.g. Develocity Artifact Cache).
required: false
default: 'enhanced'
+171 -159
View File
@@ -1,120 +1,119 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var g6e=Object.create;var pL=Object.defineProperty;var p6e=Object.getOwnPropertyDescriptor;var m6e=Object.getOwnPropertyNames;var E6e=Object.getPrototypeOf,C6e=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},xa=(t,e)=>{for(var r in e)pL(t,r,{get:e[r],enumerable:!0})},I6e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of m6e(e))!C6e.call(t,s)&&s!==r&&pL(t,s,{get:()=>e[s],enumerable:!(n=p6e(e,s))||n.enumerable});return t};var ge=(t,e,r)=>(r=t!=null?g6e(E6e(t)):{},I6e(e||!t||!t.__esModule?pL(r,"default",{value:t,enumerable:!0}):r,t));var Dee=C($p=>{"use strict";var gJt=Q("net"),S6e=Q("tls"),IL=Q("http"),Tee=Q("https"),N6e=Q("events"),pJt=Q("assert"),T6e=Q("util");$p.httpOverHttp=x6e;$p.httpsOverHttp=R6e;$p.httpOverHttps=D6e;$p.httpsOverHttps=k6e;function x6e(t){var e=new Au(t);return e.request=IL.request,e}function R6e(t){var e=new Au(t);return e.request=IL.request,e.createSocket=xee,e.defaultPort=443,e}function D6e(t){var e=new Au(t);return e.request=Tee.request,e}function k6e(t){var e=new Au(t);return e.request=Tee.request,e.createSocket=xee,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||IL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=Ree(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}T6e.inherits(Au,N6e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=yL({request:e},i.options,Ree(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};Au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=yL({},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")),vl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){vl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){vl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return vl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),vl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Au.prototype.removeSocket=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)})}};function xee(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=yL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=S6e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function Ree(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function yL(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,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var vl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?vl=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)}:vl=function(){};$p.debug=vl});var BL=C((EJt,kee)=>{kee.exports=Dee()});var br=C((CJt,vee)=>{vee.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 _t=C((IJt,ste)=>{"use strict";var _ee=Symbol.for("undici.error.UND_ERR"),Qr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[_ee]===!0}[_ee]=!0},Fee=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bL=class extends Qr{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[Fee]===!0}[Fee]=!0},Mee=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),QL=class extends Qr{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[Mee]===!0}[Mee]=!0},Lee=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),wL=class extends Qr{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[Lee]===!0}[Lee]=!0},Uee=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SL=class extends Qr{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[Uee]===!0}[Uee]=!0},Pee=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),NL=class extends Qr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function zHe(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 o=n[i-1].trim();if(kHe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function jHe(){return"allowed"}function KHe(){return"success"}function $He(){return"success"}function XHe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ZHe(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&&EU(t.origin)&&!EU(OI(t))&&(e=null);break;case"same-origin":kS(t,OI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function am(t,e){return t}function e9e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:am(t.domainLookupStartTime,r),domainLookupEndTime:am(t.domainLookupEndTime,r),connectionStartTime:am(t.connectionStartTime,r),connectionEndTime:am(t.connectionEndTime,r),secureConnectionStartTime:am(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function t9e(t){return am(LHe.now(),t)}function r9e(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 Ere(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function n9e(t){return{referrerPolicy:t.referrerPolicy}}function s9e(t){let e=t.referrerPolicy;Vh(e);let r=null;if(t.referrer==="client"){let a=dre();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=mU(r),s=mU(r,!0);n.toString().length>4096&&(n=s);let i=kS(t,n),o=PI(n)&&!PI(t.url);switch(e){case"origin":return s??mU(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 a=OI(t);return kS(n,a)?n:PI(n)&&!PI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function mU(t,e){return Vh(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 PI(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"))}}function i9e(t,e){if(DS===void 0)return!0;let r=Cre(e);if(r==="no metadata"||r.length===0)return!0;let n=a9e(r),s=c9e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=DS.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)),A9e(c,a))return!0}return!1}var o9e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Cre(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=o9e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();fre.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function a9e(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}function c9e(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}function A9e(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 u9e(t){}function kS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function l9e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function d9e(t){return t.controller.state==="aborted"}function h9e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function f9e(t){return OHe[t.toLowerCase()]??t}function g9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Vh(typeof e=="string"),e}var p9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ire(t,e,r=0,n=1){class s{ Line truncated
`);function W9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function J9e(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}function z9e(t,e){_S(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 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(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&FS(t,Y9e,i)||i.position===t.length-4&&FS(t,V9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=j9e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",W9e(u)||(u=""),h=new G9e([d],A,{type:u})):h=L9e(Buffer.from(d)),_S(kre(c)),_S(typeof h=="string"&&kre(h)||P9e(h)),s.push(O9e(c,h,A))}}function j9e(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 o=Am(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wU(o,!0,!0,a=>a===9||a===32),!U9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Am(a=>a===32||a===9,t,e),M9e(o)){case"content-disposition":{if(r=n=null,!FS(t,q9e,e)||(e.position+=17,r=Fre(t,e),r===null))return"failure";if(FS(t,_re,e)){let a=e.position+_re.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Fre(t,e),n===null))return"failure"}break}case"content-type":{let a=Am(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),s=vre(a);break}case"content-transfer-encoding":{let a=Am(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),i=vre(a);break}default:Am(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Fre(t,e){_S(t[e.position-1]===34);let r=Am(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)}function Am(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wU(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)}function FS(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}Mre.exports={multipartFormDataParser:z9e,validateBoundary:J9e}});var dm=C((VJt,Jre)=>{"use strict";var qI=dt(),{ReadableStreamFrom:K9e,isBlobLike:Ure,isReadableStreamLike:$9e,readableStreamClose:X9e,createDeferredPromise:Z9e,fullyReadBody:eGe,extractMimeType:tGe,utf8DecodeBytes:Hre}=vi(),{FormData:Pre}=GI(),{kState:lm}=_l(),{webidl:rGe}=Zn(),{Blob:nGe}=Q("node:buffer"),SU=Q("node:assert"),{isErrored:Gre,isDisturbed:sGe}=Q("node:stream"),{isArrayBuffer:iGe}=Q("node:util/types"),{serializeAMimeType:oGe}=ei(),{multipartFormDataParser:aGe}=Lre(),NU;try{let t=Q("node:crypto");NU=e=>t.randomInt(0,e)}catch{NU=t=>Math.floor(Math.random(t))}var MS=new TextEncoder;function cGe(){}var qre=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Yre;qre&&(Yre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!sGe(e)&&!Gre(e)&&e.cancel("Response object has been garbage collected").catch(cGe)}));function Vre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Ure(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?MS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>X9e(c))},start(){},type:"bytes"}),SU($9e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(iGe(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(qI.isFormDataLike(t)){let c=`----formdata-undici-0${`${NU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
var bWe=Object.create;var q3=Object.defineProperty;var QWe=Object.getOwnPropertyDescriptor;var wWe=Object.getOwnPropertyNames;var NWe=Object.getPrototypeOf,xWe=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var y=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Fa=(t,e)=>{for(var r in e)q3(t,r,{get:e[r],enumerable:!0})},SWe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of wWe(e))!xWe.call(t,s)&&s!==r&&q3(t,s,{get:()=>e[s],enumerable:!(n=QWe(e,s))||n.enumerable});return t};var be=(t,e,r)=>(r=t!=null?bWe(NWe(t)):{},SWe(e||!t||!t.__esModule?q3(r,"default",{value:t,enumerable:!0}):r,t));var tce=y(L0=>{"use strict";var Nsr=Q("net"),PWe=Q("tls"),W3=Q("http"),Zae=Q("https"),MWe=Q("events"),xsr=Q("assert"),FWe=Q("util");L0.httpOverHttp=LWe;L0.httpsOverHttp=_We;L0.httpOverHttps=UWe;L0.httpsOverHttps=OWe;function LWe(t){var e=new id(t);return e.request=W3.request,e}function _We(t){var e=new id(t);return e.request=W3.request,e.createSocket=$ae,e.defaultPort=443,e}function UWe(t){var e=new id(t);return e.request=Zae.request,e}function OWe(t){var e=new id(t);return e.request=Zae.request,e.createSocket=$ae,e.defaultPort=443,e}function id(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||W3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=ece(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}FWe.inherits(id,MWe.EventEmitter);id.prototype.addRequest=function(e,r,n,s){var i=this,o=J3({request:e},i.options,ece(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};id.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=J3({},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")),zh("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){zh("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){zh("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return zh("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),zh(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};id.prototype.removeSocket=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)})}};function $ae(t,e){var r=this;id.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=J3({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=PWe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function ece(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function J3(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,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var zh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?zh=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)}:zh=function(){};L0.debug=zh});var V3=y((Tsr,rce)=>{rce.exports=tce()});var Xr=y((Rsr,nce)=>{nce.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 or=y((Dsr,Sce)=>{"use strict";var sce=Symbol.for("undici.error.UND_ERR"),Zr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[sce]===!0}[sce]=!0},ice=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),j3=class extends Zr{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[ice]===!0}[ice]=!0},oce=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),K3=class extends Zr{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[oce]===!0}[oce]=!0},ace=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),X3=class extends Zr{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[ace]===!0}[ace]=!0},cce=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Z3=class extends Zr{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[cce]===!0}[cce]=!0},Ace=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),$3=class extends Zr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function rVe(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 o=n[i-1].trim();if(OJe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function nVe(){return"allowed"}function sVe(){return"success"}function iVe(){return"success"}function oVe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function aVe(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&&Y4(t.origin)&&!Y4(Hb(t))&&(e=null);break;case"same-origin":rR(t,Hb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function J0(t,e){return t}function cVe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:J0(t.domainLookupStartTime,r),domainLookupEndTime:J0(t.domainLookupEndTime,r),connectionStartTime:J0(t.connectionStartTime,r),connectionEndTime:J0(t.connectionEndTime,r),secureConnectionStartTime:J0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function AVe(t){return J0(zJe.now(),t)}function uVe(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 qAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function lVe(t){return{referrerPolicy:t.referrerPolicy}}function dVe(t){let e=t.referrerPolicy;pp(e);let r=null;if(t.referrer==="client"){let a=FAe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=G4(r),s=G4(r,!0);n.toString().length>4096&&(n=s);let i=rR(t,n),o=Ob(n)&&!Ob(t.url);switch(e){case"origin":return s??G4(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 a=Hb(t);return rR(n,a)?n:Ob(n)&&!Ob(a)?"no-referrer":s}default:return o?"no-referrer":s}}function G4(t,e){return pp(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 Ob(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"))}}function hVe(t,e){if(tR===void 0)return!0;let r=GAe(e);if(r==="no metadata"||r.length===0)return!0;let n=mVe(r),s=pVe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=tR.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)),gVe(c,a))return!0}return!1}var fVe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function GAe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=fVe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();_Ae.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function mVe(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}function pVe(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}function gVe(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 EVe(t){}function rR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function yVe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function CVe(t){return t.controller.state==="aborted"}function IVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function BVe(t){return VJe[t.toLowerCase()]??t}function bVe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return pp(typeof e=="string"),e}var QVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function YAe(t,e,r=0,n=1){class s{ Line truncated
`);function eje(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function tje(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}function rje(t,e){sR(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 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(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&iR(t,ZVe,i)||i.position===t.length-4&&iR(t,$Ve,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=nje(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",eje(u)||(u=""),h=new KVe([d],A,{type:u})):h=zVe(Buffer.from(d)),sR(rue(c)),sR(typeof h=="string"&&rue(h)||JVe(h)),s.push(VVe(c,h,A))}}function nje(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 o=j0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=X4(o,!0,!0,a=>a===9||a===32),!WVe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,j0(a=>a===32||a===9,t,e),YVe(o)){case"content-disposition":{if(r=n=null,!iR(t,XVe,e)||(e.position+=17,r=iue(t,e),r===null))return"failure";if(iR(t,sue,e)){let a=e.position+sue.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=iue(t,e),n===null))return"failure"}break}case"content-type":{let a=j0(c=>c!==10&&c!==13,t,e);a=X4(a,!1,!0,c=>c===9||c===32),s=nue(a);break}case"content-transfer-encoding":{let a=j0(c=>c!==10&&c!==13,t,e);a=X4(a,!1,!0,c=>c===9||c===32),i=nue(a);break}default:j0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function iue(t,e){sR(t[e.position-1]===34);let r=j0(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)}function j0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function X4(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)}function iR(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}oue.exports={multipartFormDataParser:rje,validateBoundary:tje}});var Z0=y((rir,gue)=>{"use strict";var Yb=vt(),{ReadableStreamFrom:sje,isBlobLike:cue,isReadableStreamLike:ije,readableStreamClose:oje,createDeferredPromise:aje,fullyReadBody:cje,extractMimeType:Aje,utf8DecodeBytes:lue}=qo(),{FormData:Aue}=Gb(),{kState:X0}=Wh(),{webidl:uje}=Ws(),{Blob:lje}=Q("node:buffer"),Z4=Q("node:assert"),{isErrored:due,isDisturbed:dje}=Q("node:stream"),{isArrayBuffer:hje}=Q("node:util/types"),{serializeAMimeType:fje}=ro(),{multipartFormDataParser:mje}=aue(),$4;try{let t=Q("node:crypto");$4=e=>t.randomInt(0,e)}catch{$4=t=>Math.floor(Math.random(t))}var oR=new TextEncoder;function pje(){}var hue=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,fue;hue&&(fue=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!dje(e)&&!due(e)&&e.cancel("Response object has been garbage collected").catch(pje)}));function mue(t,e=!1){let r=null;t instanceof ReadableStream?r=t:cue(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?oR.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>oje(c))},start(){},type:"bytes"}),Z4(ije(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(hje(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(Yb.isFormDataLike(t)){let c=`----formdata-undici-0${`${$4(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=MS.encode(A+`; name="${u(l(E))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,g]of t)if(typeof g=="string"){let C=oR.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=MS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
${l(g)}\r
`);d.push(C),i+=C.byteLength}else{let C=oR.encode(`${A}; name="${u(l(E))}"`+(g.name?`; filename="${u(g.name)}"`:"")+`\r
Content-Type: ${g.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=MS.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(Ure(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(qI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:K9e(t)}if((typeof s=="string"||qI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Gre(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function AGe(t,e=!1){return t instanceof ReadableStream&&(SU(!qI.isDisturbed(t),"The body has already been consumed."),SU(!t.locked,"The stream is locked.")),Vre(t,e)}function uGe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function lGe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function dGe(t){return{blob(){return um(this,r=>{let n=Ore(this);return n===null?n="":n&&(n=oGe(n)),new nGe([r],{type:n})},t)},arrayBuffer(){return um(this,r=>new Uint8Array(r).buffer,t)},text(){return um(this,Hre,t)},json(){return um(this,fGe,t)},formData(){return um(this,r=>{let n=Ore(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=aGe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Pre;return i[lm]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Pre;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return um(this,r=>new Uint8Array(r),t)}}}function hGe(t){Object.assign(t.prototype,dGe(t))}async function um(t,e,r){if(rGe.brandCheck(t,r),Wre(t))throw new TypeError("Body is unusable: Body has already been read");lGe(t[lm]);let n=Z9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[lm].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await eGe(t[lm].body,i,s),n.promise)}function Wre(t){let e=t[lm].body;return e!=null&&(e.stream.locked||qI.isDisturbed(e.stream))}function fGe(t){return JSON.parse(Hre(t))}function Ore(t){let e=t[lm].headersList,r=tGe(e);return r==="failure"?null:r}Jre.exports={extractBody:Vre,safelyExtractBody:AGe,cloneBody:uGe,mixinBody:hGe,streamRegistry:Yre,hasFinalizationRegistry:qre,bodyUnusable:Wre}});var Ane=C((WJt,cne)=>{"use strict";var Me=Q("node:assert"),Pe=dt(),{channels:zre}=Zp(),TU=AU(),{RequestContentLengthMismatchError:Wh,ResponseContentLengthMismatchError:jre,RequestAbortedError:nne,InvalidArgumentError:gGe,HeadersTimeoutError:pGe,HeadersOverflowError:mGe,SocketError:hm,InformationalError:fm,BodyTimeoutError:EGe,HTTPParserError:CGe,ResponseExceededMaxSizeError:IGe}=_t(),{kUrl:sne,kReset:ti,kClient:OS,kParser:lr,kBlocking:WI,kRunning:cn,kPending:ine,kSize:Kre,kWriting:Fl,kQueue:Da,kNoRef:YI,kKeepAliveDefaultTimeout:yGe,kHostHeader:BGe,kPendingIdx:bGe,kRunningIdx:To,kError:Ts,kPipelining:HS,kSocket:zh,kKeepAliveTimeoutValue:qS,kMaxHeadersSize:xU,kKeepAliveMaxTimeout:QGe,kKeepAliveTimeoutThreshold:wGe,kHeadersTimeout:SGe,kBodyTimeout:NGe,kStrictContentLength:kU,kMaxRequests:$re,kCounter:TGe,kMaxResponseSize:xGe,kOnError:Xre,kResume:gu,kHTTPContext:one}=br(),_i=Yte(),Zre=Buffer.alloc(0),LS=Buffer[Symbol.species],US=Pe.addListener,RGe=Pe.removeAllListeners,jh=Symbol("kIdleSocketValidation"),Jh=Symbol("kIdleSocketValidationTimeout"),MU=Symbol("kSocketUsed"),RU;async function DGe(){let t=process.env.JEST_WORKER_ID?dU():void 0,e;try{e=await WebAssembly.compile(Jte())}catch{e=await WebAssembly.compile(t||dU())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onStatus(new LS(xc.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Ur.ptr===r),Ur.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onHeaderField(new LS(xc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onHeaderValue(new LS(xc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Ur.ptr===r),Ur.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onBody(new LS(xc.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Ur.ptr===r),Ur.onMessageComplete()||0)}})}var DU=null,vU=DGe();vU.catch();var Ur=null,xc=null,PS=0,Rc=null,kGe=0,VI=1,gm=2|VI,GS=4|VI,_U=8|kGe,FU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[xU])&&e[xU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(_i.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[BGe],i?g+=`connection: upgrade\r
`);d.push(C,g,h),typeof g.size=="number"?i+=C.byteLength+g.size+h.byteLength:f=!0}let m=oR.encode(`--${c}--\r
`);d.push(m),i+=m.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(cue(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Yb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:sje(t)}if((typeof s=="string"||Yb.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!due(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function gje(t,e=!1){return t instanceof ReadableStream&&(Z4(!Yb.isDisturbed(t),"The body has already been consumed."),Z4(!t.locked,"The stream is locked.")),mue(t,e)}function Eje(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function yje(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Cje(t){return{blob(){return K0(this,r=>{let n=uue(this);return n===null?n="":n&&(n=fje(n)),new lje([r],{type:n})},t)},arrayBuffer(){return K0(this,r=>new Uint8Array(r).buffer,t)},text(){return K0(this,lue,t)},json(){return K0(this,Bje,t)},formData(){return K0(this,r=>{let n=uue(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=mje(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Aue;return i[X0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Aue;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return K0(this,r=>new Uint8Array(r),t)}}}function Ije(t){Object.assign(t.prototype,Cje(t))}async function K0(t,e,r){if(uje.brandCheck(t,r),pue(t))throw new TypeError("Body is unusable: Body has already been read");yje(t[X0]);let n=aje(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[X0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await cje(t[X0].body,i,s),n.promise)}function pue(t){let e=t[X0].body;return e!=null&&(e.stream.locked||Yb.isDisturbed(e.stream))}function Bje(t){return JSON.parse(lue(t))}function uue(t){let e=t[X0].headersList,r=Aje(e);return r==="failure"?null:r}gue.exports={extractBody:mue,safelyExtractBody:gje,cloneBody:Eje,mixinBody:Ije,streamRegistry:fue,hasFinalizationRegistry:hue,bodyUnusable:pue}});var vue=y((nir,kue)=>{"use strict";var We=Q("node:assert"),Xe=vt(),{channels:Eue}=U0(),e8=M4(),{RequestContentLengthMismatchError:gp,ResponseContentLengthMismatchError:yue,RequestAbortedError:xue,InvalidArgumentError:bje,HeadersTimeoutError:Qje,HeadersOverflowError:wje,SocketError:$0,InformationalError:ey,BodyTimeoutError:Nje,HTTPParserError:xje,ResponseExceededMaxSizeError:Sje}=or(),{kUrl:Sue,kReset:no,kClient:uR,kParser:Lr,kBlocking:Jb,kRunning:Yn,kPending:Tue,kSize:Cue,kWriting:Jh,kQueue:Zc,kNoRef:zb,kKeepAliveDefaultTimeout:Tje,kHostHeader:Rje,kPendingIdx:Dje,kRunningIdx:_a,kError:Si,kPipelining:lR,kSocket:Ep,kKeepAliveTimeoutValue:hR,kMaxHeadersSize:t8,kKeepAliveMaxTimeout:kje,kKeepAliveTimeoutThreshold:vje,kHeadersTimeout:Pje,kBodyTimeout:Mje,kStrictContentLength:s8,kMaxRequests:Iue,kCounter:Fje,kMaxResponseSize:Lje,kOnError:Bue,kResume:ld,kHTTPContext:Rue}=Xr(),Go=fAe(),bue=Buffer.alloc(0),aR=Buffer[Symbol.species],cR=Xe.addListener,_je=Xe.removeAllListeners,yp=Symbol("kIdleSocketValidation"),ty=Symbol("kIdleSocketValidationTimeout"),c8=Symbol("kSocketUsed"),r8;async function Uje(){let t=process.env.JEST_WORKER_ID?_4():void 0,e;try{e=await WebAssembly.compile(gAe())}catch{e=await WebAssembly.compile(t||_4())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onStatus(new aR(ZA.buffer,i,s))||0},wasm_on_message_begin:r=>(We(pn.ptr===r),pn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onHeaderField(new aR(ZA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onHeaderValue(new aR(ZA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(We(pn.ptr===r),pn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onBody(new aR(ZA.buffer,i,s))||0},wasm_on_message_complete:r=>(We(pn.ptr===r),pn.onMessageComplete()||0)}})}var n8=null,i8=Uje();i8.catch();var pn=null,ZA=null,AR=0,$A=null,Oje=0,Wb=1,ry=2|Wb,dR=4|Wb,o8=8|Oje,a8=class{constructor(e,r,{exports:n}){We(Number.isFinite(e[t8])&&e[t8]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Go.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?m+=`host: ${s}\r
`:m+=t[Rje],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[HS]&&!h[ti]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return zre.sendHeaders.hasSubscribers&&zre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?tne(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?tne(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?rne(f,c.stream(),t,e,h,u,g,l):PGe(f,c,t,e,h,u,g,l):Pe.isStream(c)?UGe(f,c,t,e,h,u,g,l):Pe.isIterable(c)?rne(f,c,t,e,h,u,g,l):Me(!1),!0}function UGe(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"stream body cannot be pipelined");let c=!1,A=new YS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new nne;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[Fl]&&r[cn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Pe.destroy(e,f):Pe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function tne(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[lR]&&!h[no]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let g=A[E+0],C=A[E+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)m+=`${g}: ${C[I]}\r
`;else m+=`${g}: ${C}\r
`}return Eue.sendHeaders.hasSubscribers&&Eue.sendHeaders.publish({request:e,headers:m,socket:h}),!c||d===0?wue(f,null,t,e,h,u,m,l):Xe.isBuffer(c)?wue(f,c,t,e,h,u,m,l):Xe.isBlobLike(c)?typeof c.stream=="function"?Nue(f,c.stream(),t,e,h,u,m,l):Jje(f,c,t,e,h,u,m,l):Xe.isStream(c)?Wje(f,c,t,e,h,u,m,l):Xe.isIterable(c)?Nue(f,c,t,e,h,u,m,l):We(!1),!0}function Wje(t,e,r,n,s,i,o,a){We(i!==0||r[Yn]===0,"stream body cannot be pipelined");let c=!1,A=new fR({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(m){Xe.destroy(this,m)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new xue;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,We(s.destroyed||s[Jh]&&r[Yn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(m){f=m}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function wue(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(We(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[ti]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[no]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[gu]()}catch(c){t(c)}}async function PGe(t,e,r,n,s,i,o,a){Me(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Wh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(We(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[ld]()}catch(c){t(c)}}async function Jje(t,e,r,n,s,i,o,a){We(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new gp;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ti]=!0),r[gu]()}catch(c){t(c)}}async function rne(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Me(c===null),s[Ts]?h(s[Ts]):c=d});s.on("close",A).on("drain",A);let l=new YS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ts])throw s[Ts];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var YS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Fl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ts])throw r[Ts];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[kU])throw new Wh;process.emitWarning(new Wh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ti]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[no]=!0),r[ld]()}catch(c){t(c)}}async function Nue(t,e,r,n,s,i,o,a){We(i!==0||r[Yn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{We(c===null),s[Si]?h(s[Si]):c=d});s.on("close",A).on("drain",A);let l=new fR({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Si])throw s[Si];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var fR=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Jh]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Si])throw r[Si];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[s8])throw new gp;process.emitWarning(new gp)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[no]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===gm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Fl]=!1,e[Ts])throw e[Ts];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Lr].timeout&&r[Lr].timeoutType===ry&&r[Lr].timeout.refresh&&r[Lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Jh]=!1,e[Si])throw e[Si];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[kU])throw new Wh;process.emitWarning(new Wh)}e[lr].timeout&&e[lr].timeoutType===gm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[gu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Fl]=!1,e&&(Me(n[cn]<=1,"pipeline should only contain this request"),s(e))}};cne.exports=vGe});var mne=C((JJt,pne)=>{"use strict";var xo=Q("node:assert"),{pipeline:OGe}=Q("node:stream"),Et=dt(),{RequestContentLengthMismatchError:LU,RequestAbortedError:une,SocketError:JI,InformationalError:UU}=_t(),{kUrl:VS,kReset:JS,kClient:pm,kRunning:zS,kPending:HGe,kQueue:Ml,kPendingIdx:PU,kRunningIdx:ka,kError:_a,kSocket:_n,kStrictContentLength:GGe,kOnError:OU,kMaxConcurrentStreams:gne,kHTTP2Session:va,kResume:Ll,kSize:qGe,kHTTPContext:YGe}=br(),pu=Symbol("open streams"),lne,dne=!1,WS;try{WS=Q("node:http2")}catch{WS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:VGe,HTTP2_HEADER_METHOD:WGe,HTTP2_HEADER_PATH:JGe,HTTP2_HEADER_SCHEME:zGe,HTTP2_HEADER_CONTENT_LENGTH:jGe,HTTP2_HEADER_EXPECT:KGe,HTTP2_HEADER_STATUS:$Ge}}=WS;function XGe(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}async function ZGe(t,e){t[_n]=e,dne||(dne=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=WS.connect(t[VS],{createConnection:()=>e,peerMaxConcurrentStreams:t[gne]});r[pu]=0,r[pm]=t,r[_n]=e,Et.addListener(r,"error",tqe),Et.addListener(r,"frameError",rqe),Et.addListener(r,"end",nqe),Et.addListener(r,"goaway",sqe),Et.addListener(r,"close",function(){let{[pm]:s}=this,{[_n]:i}=s,o=this[_n][_a]||this[_a]||new JI("closed",Et.getSocketInfo(i));if(s[va]=null,s.destroyed){xo(s[HGe]===0);let a=s[Ml].splice(s[ka]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[va]=r,e[va]=r,Et.addListener(e,"error",function(s){xo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_a]=s,this[pm][OU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new JI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[_a]||new JI("closed",Et.getSocketInfo(this));t[_n]=null,this[va]!=null&&this[va].destroy(s),t[PU]=t[ka],xo(t[zS]===0),t.emit("disconnect",t[VS],[t],s),t[Ll]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return oqe(t,...s)},resume(){eqe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function eqe(t){let e=t[_n];e?.destroyed===!1&&(t[qGe]===0&&t[gne]===0?(e.unref(),t[va].unref()):(e.ref(),t[va].ref()))}function tqe(t){xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_n][_a]=t,this[pm][OU](t)}function rqe(t,e,r){if(r===0){let n=new UU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_n][_a]=n,this[pm][OU](n)}}function nqe(){let t=new JI("other side closed",Et.getSocketInfo(this[_n]));this.destroy(t),Et.destroy(this[_n],t)}function sqe(t){let e=this[_a]||new JI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[pm];if(r[_n]=null,r[YGe]=null,this[va]!=null&&(this[va].destroy(e),this[va]=null),Et.destroy(this[_n],e),r[ka]<r[Ml].length){let n=r[Ml][r[ka]];r[Ml][r[ka]++]=null,Et.errorRequest(r,n,e),r[PU]=r[ka]}xo(r[zS]===0),r.emit("disconnect",r[VS],[r],e),r[Ll]()}function iqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function oqe(t,e){let r=t[va],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[VS];l[VGe]=i||`${h}${f?`:${f}`:""}`,l[WGe]=n;let g=B=>{e.aborted||e.completed||(B=B||new une,Et.errorRequest(t,e,B),d!=null&&Et.destroy(d,B),Et.destroy(u,B),t[Ml][t[ka]++]=null,t[Ll]())};try{e.onConnect(g)}catch(B){Et.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[pu],t[Ml][t[ka]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[Ml][t[ka]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[JGe]=s,l[zGe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){lne??=dm().extractBody;let[B,M]=lne(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),iqe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[GGe])return Et.errorRequest(t,e,new LU),!1;process.emitWarning(new LU)}m!=null&&(xo(u,"no body must not have content length"),l[jGe]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[KGe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[kqe]=c??3e5,this[Dqe]=s??3e5,this[vqe]=I??!0,this[_qe]=B,this[YU]=V,this[Pl]=null,this[Pqe]=P>-1?P:-1,this[Hqe]=Z??100,this[Xr]=null,this[Fa]=[],this[Eu]=0,this[Ma]=0,this[$I]=ue=>WU(this,ue),this[Oqe]=ue=>xne(this,ue)}get pipelining(){return this[XS]}set pipelining(e){this[XS]=e,this[$I](!0)}get[ey](){return this[Fa].length-this[Ma]}get[ZI](){return this[Ma]-this[Eu]}get[XI](){return this[Fa].length-this[Eu]}get[Qqe](){return!!this[Xr]&&!this[Em]&&!this[Xr].destroyed}get[qU](){return!!(this[Xr]?.busy(null)||this[XI]>=(Tne(this)||1)||this[ey]>0)}[bqe](e){Rne(this),this.once("connect",e)}[Uqe](e,r){let n=e.origin||this[kc].origin,s=new mqe(n,e,r);return this[Fa].push(s),this[$h]||(Kh.bodyLength(s.body)==null&&Kh.isIterable(s.body)?(this[$h]=1,queueMicrotask(()=>WU(this))):this[$I](!0)),this[$h]&&this[Ol]!==2&&this[qU]&&(this[Ol]=2),this[Ol]<2}async[Mqe](){return new Promise(e=>{this[XI]?this[Pl]=e:e(null)})}async[Lqe](e){return new Promise(r=>{let n=this[Fa].splice(this[Ma]);for(let i=0;i<n.length;i++){let o=n[i];Kh.errorRequest(this,o,e)}let s=()=>{this[Pl]&&(this[Pl](),this[Pl]=null),r(null)};this[Xr]?(this[Xr].destroy(e,s),this[Xr]=null):queueMicrotask(s),this[$I]()})}},Yqe=$S();function xne(t,e){if(t[ZI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[Ma]===t[Eu]);let r=t[Fa].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];Kh.errorRequest(t,s,e)}mu(t[XI]===0)}}async function Rne(t){mu(!t[Em]),mu(!t[Xr]);let{host:e,hostname:r,protocol:n,port:s}=t[kc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(Nne.isIP(o)),r=o}t[Em]=!0,mm.beforeConnect.hasSubscribers&&mm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ul],localAddress:t[KI]},connector:t[jI]});try{let i=await new Promise((o,a)=>{t[jI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ul],localAddress:t[KI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Kh.destroy(i.on("error",wne),new Iqe);return}mu(i);try{t[Xr]=i.alpnProtocol==="h2"?await qqe(t,i):await Gqe(t,i)}catch(o){throw i.destroy().on("error",wne),o}t[Em]=!1,i[Fqe]=0,i[YU]=t[YU],i[Bqe]=t,i[Sqe]=null,mm.connected.hasSubscribers&&mm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ul],localAddress:t[KI]},connector:t[jI],socket:i}),t.emit("connect",t[kc],[t])}catch(i){if(t.destroyed)return;if(t[Em]=!1,mm.connectError.hasSubscribers&&mm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ul],localAddress:t[KI]},connector:t[jI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[ZI]===0);t[ey]>0&&t[Fa][t[Ma]].servername===t[Ul];){let o=t[Fa][t[Ma]++];Kh.errorRequest(t,o,i)}else xne(t,i);t.emit("connectionError",t[kc],[t],i)}t[$I]()}function Sne(t){t[Ol]=0,t.emit("drain",t[kc],[t])}function WU(t,e){t[$h]!==2&&(t[$h]=2,Vqe(t,e),t[$h]=0,t[Eu]>256&&(t[Fa].splice(0,t[Eu]),t[Ma]-=t[Eu],t[Eu]=0))}function Vqe(t,e){for(;;){if(t.destroyed){mu(t[ey]===0);return}if(t[Pl]&&!t[XI]){t[Pl](),t[Pl]=null;return}if(t[Xr]&&t[Xr].resume(),t[qU])t[Ol]=2;else if(t[Ol]===2){e?(t[Ol]=1,queueMicrotask(()=>Sne(t))):Sne(t);continue}if(t[ey]===0||t[ZI]>=(Tne(t)||1))return;let r=t[Fa][t[Ma]];if(t[kc].protocol==="https:"&&t[Ul]!==r.servername){if(t[ZI]>0)return;t[Ul]=r.servername,t[Xr]?.destroy(new Cqe("servername changed"),()=>{t[Xr]=null,WU(t)})}if(t[Em])return;if(!t[Xr]){Rne(t);return}if(t[Xr].destroyed||t[Xr].busy(r))return;!r.aborted&&t[Xr].write(r)?t[Ma]++:t[Fa].splice(t[Ma],1)}}Dne.exports=VU});var JU=C((XJt,kne)=>{"use strict";var ZS=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)}};kne.exports=class{constructor(){this.head=this.tail=new ZS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ZS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var _ne=C((ZJt,vne)=>{var{kFree:Wqe,kConnected:Jqe,kPending:zqe,kQueued:jqe,kRunning:Kqe,kSize:$qe}=br(),Xh=Symbol("pool"),zU=class{constructor(e){this[Xh]=e}get connected(){return this[Xh][Jqe]}get free(){return this[Xh][Wqe]}get pending(){return this[Xh][zqe]}get queued(){return this[Xh][jqe]}get running(){return this[Xh][Kqe]}get size(){return this[Xh][$qe]}};vne.exports=zU});var eP=C((ezt,Yne)=>{"use strict";var Xqe=nm(),Zqe=JU(),{kConnected:jU,kSize:Fne,kRunning:Mne,kPending:Lne,kQueued:ty,kBusy:eYe,kFree:tYe,kUrl:rYe,kClose:nYe,kDestroy:sYe,kDispatch:iYe}=br(),oYe=_ne(),ri=Symbol("clients"),xs=Symbol("needDrain"),ry=Symbol("queue"),KU=Symbol("closed resolve"),$U=Symbol("onDrain"),Une=Symbol("onConnect"),Pne=Symbol("onDisconnect"),One=Symbol("onCo Line truncated
`,"latin1"),r!==null&&s!==r){if(n[s8])throw new gp;process.emitWarning(new gp)}e[Lr].timeout&&e[Lr].timeoutType===ry&&e[Lr].timeout.refresh&&e[Lr].timeout.refresh(),n[ld]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Jh]=!1,e&&(We(n[Yn]<=1,"pipeline should only contain this request"),s(e))}};kue.exports=Hje});var Hue=y((sir,Oue)=>{"use strict";var Ua=Q("node:assert"),{pipeline:Vje}=Q("node:stream"),qt=vt(),{RequestContentLengthMismatchError:A8,RequestAbortedError:Pue,SocketError:Vb,InformationalError:u8}=or(),{kUrl:mR,kReset:gR,kClient:ny,kRunning:ER,kPending:jje,kQueue:Vh,kPendingIdx:l8,kRunningIdx:$c,kError:tA,kSocket:Cs,kStrictContentLength:Kje,kOnError:d8,kMaxConcurrentStreams:Uue,kHTTP2Session:eA,kResume:jh,kSize:Xje,kHTTPContext:Zje}=Xr(),dd=Symbol("open streams"),Mue,Fue=!1,pR;try{pR=Q("node:http2")}catch{pR={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$je,HTTP2_HEADER_METHOD:eKe,HTTP2_HEADER_PATH:tKe,HTTP2_HEADER_SCHEME:rKe,HTTP2_HEADER_CONTENT_LENGTH:nKe,HTTP2_HEADER_EXPECT:sKe,HTTP2_HEADER_STATUS:iKe}}=pR;function oKe(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}async function aKe(t,e){t[Cs]=e,Fue||(Fue=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=pR.connect(t[mR],{createConnection:()=>e,peerMaxConcurrentStreams:t[Uue]});r[dd]=0,r[ny]=t,r[Cs]=e,qt.addListener(r,"error",AKe),qt.addListener(r,"frameError",uKe),qt.addListener(r,"end",lKe),qt.addListener(r,"goaway",dKe),qt.addListener(r,"close",function(){let{[ny]:s}=this,{[Cs]:i}=s,o=this[Cs][tA]||this[tA]||new Vb("closed",qt.getSocketInfo(i));if(s[eA]=null,s.destroyed){Ua(s[jje]===0);let a=s[Vh].splice(s[$c]);for(let c=0;c<a.length;c++){let A=a[c];qt.errorRequest(s,A,o)}}}),r.unref(),t[eA]=r,e[eA]=r,qt.addListener(e,"error",function(s){Ua(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[tA]=s,this[ny][d8](s)}),qt.addListener(e,"end",function(){qt.destroy(this,new Vb("other side closed",qt.getSocketInfo(this)))}),qt.addListener(e,"close",function(){let s=this[tA]||new Vb("closed",qt.getSocketInfo(this));t[Cs]=null,this[eA]!=null&&this[eA].destroy(s),t[l8]=t[$c],Ua(t[ER]===0),t.emit("disconnect",t[mR],[t],s),t[jh]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return fKe(t,...s)},resume(){cKe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function cKe(t){let e=t[Cs];e?.destroyed===!1&&(t[Xje]===0&&t[Uue]===0?(e.unref(),t[eA].unref()):(e.ref(),t[eA].ref()))}function AKe(t){Ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Cs][tA]=t,this[ny][d8](t)}function uKe(t,e,r){if(r===0){let n=new u8(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Cs][tA]=n,this[ny][d8](n)}}function lKe(){let t=new Vb("other side closed",qt.getSocketInfo(this[Cs]));this.destroy(t),qt.destroy(this[Cs],t)}function dKe(t){let e=this[tA]||new Vb(`HTTP/2: "GOAWAY" frame received with code ${t}`,qt.getSocketInfo(this)),r=this[ny];if(r[Cs]=null,r[Zje]=null,this[eA]!=null&&(this[eA].destroy(e),this[eA]=null),qt.destroy(this[Cs],e),r[$c]<r[Vh].length){let n=r[Vh][r[$c]];r[Vh][r[$c]++]=null,qt.errorRequest(r,n,e),r[l8]=r[$c]}Ua(r[ER]===0),r.emit("disconnect",r[mR],[r],e),r[jh]()}function hKe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function fKe(t,e){let r=t[eA],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return qt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],J=A[B+1];if(Array.isArray(J))for(let F=0;F<J.length;F++)l[M]?l[M]+=`,${J[F]}`:l[M]=J[F];else l[M]=J}let d,{hostname:h,port:f}=t[mR];l[$je]=i||`${h}${f?`:${f}`:""}`,l[eKe]=n;let m=B=>{e.aborted||e.completed||(B=B||new Pue,qt.errorRequest(t,e,B),d!=null&&qt.destroy(d,B),qt.destroy(u,B),t[Vh][t[$c]++]=null,t[jh]())};try{e.onConnect(m)}catch(B){qt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[dd],t[Vh][t[$c]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[dd],t[Vh][t[$c]++]=null}),d.once("close",()=>{r[dd]-=1,r[dd]===0&&r.unref()}),!0;l[tKe]=s,l[rKe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=qt.bodyLength(u);if(qt.isFormDataLike(u)){Mue??=Z0().extractBody;let[B,M]=Mue(u);l["content-type"]=M,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!E)&&(g=null),hKe(n)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Kje])return qt.errorRequest(t,e,new A8),!1;process.emitWarning(new A8)}g!=null&&(Ua(u,"no body must not have content length"),l[nKe]=`${g}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[sKe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[OKe]=c??3e5,this[UKe]=s??3e5,this[HKe]=C??!0,this[qKe]=B,this[p8]=J,this[Xh]=null,this[JKe]=H>-1?H:-1,this[jKe]=$??100,this[kn]=null,this[rA]=[],this[fd]=0,this[nA]=0,this[Zb]=fe=>E8(this,fe),this[VKe]=fe=>$ue(this,fe)}get pipelining(){return this[BR]}set pipelining(e){this[BR]=e,this[Zb](!0)}get[tQ](){return this[rA].length-this[nA]}get[eQ](){return this[nA]-this[fd]}get[$b](){return this[rA].length-this[fd]}get[kKe](){return!!this[kn]&&!this[iy]&&!this[kn].destroyed}get[m8](){return!!(this[kn]?.busy(null)||this[$b]>=(Zue(this)||1)||this[tQ]>0)}[DKe](e){ele(this),this.once("connect",e)}[WKe](e,r){let n=e.origin||this[tu].origin,s=new wKe(n,e,r);return this[rA].push(s),this[Ip]||(Cp.bodyLength(s.body)==null&&Cp.isIterable(s.body)?(this[Ip]=1,queueMicrotask(()=>E8(this))):this[Zb](!0)),this[Ip]&&this[Zh]!==2&&this[m8]&&(this[Zh]=2),this[Zh]<2}async[YKe](){return new Promise(e=>{this[$b]?this[Xh]=e:e(null)})}async[zKe](e){return new Promise(r=>{let n=this[rA].splice(this[nA]);for(let i=0;i<n.length;i++){let o=n[i];Cp.errorRequest(this,o,e)}let s=()=>{this[Xh]&&(this[Xh](),this[Xh]=null),r(null)};this[kn]?(this[kn].destroy(e,s),this[kn]=null):queueMicrotask(s),this[Zb]()})}},ZKe=IR();function $ue(t,e){if(t[eQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){hd(t[nA]===t[fd]);let r=t[rA].splice(t[fd]);for(let n=0;n<r.length;n++){let s=r[n];Cp.errorRequest(t,s,e)}hd(t[$b]===0)}}async function ele(t){hd(!t[iy]),hd(!t[kn]);let{host:e,hostname:r,protocol:n,port:s}=t[tu];if(r[0]==="["){let i=r.indexOf("]");hd(i!==-1);let o=r.substring(1,i);hd(Xue.isIP(o)),r=o}t[iy]=!0,sy.beforeConnect.hasSubscribers&&sy.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[Kh],localAddress:t[Xb]},connector:t[Kb]});try{let i=await new Promise((o,a)=>{t[Kb]({host:e,hostname:r,protocol:n,port:s,servername:t[Kh],localAddress:t[Xb]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Cp.destroy(i.on("error",jue),new SKe);return}hd(i);try{t[kn]=i.alpnProtocol==="h2"?await XKe(t,i):await KKe(t,i)}catch(o){throw i.destroy().on("error",jue),o}t[iy]=!1,i[GKe]=0,i[p8]=t[p8],i[RKe]=t,i[PKe]=null,sy.connected.hasSubscribers&&sy.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[Kh],localAddress:t[Xb]},connector:t[Kb],socket:i}),t.emit("connect",t[tu],[t])}catch(i){if(t.destroyed)return;if(t[iy]=!1,sy.connectError.hasSubscribers&&sy.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[Kh],localAddress:t[Xb]},connector:t[Kb],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(hd(t[eQ]===0);t[tQ]>0&&t[rA][t[nA]].servername===t[Kh];){let o=t[rA][t[nA]++];Cp.errorRequest(t,o,i)}else $ue(t,i);t.emit("connectionError",t[tu],[t],i)}t[Zb]()}function Kue(t){t[Zh]=0,t.emit("drain",t[tu],[t])}function E8(t,e){t[Ip]!==2&&(t[Ip]=2,$Ke(t,e),t[Ip]=0,t[fd]>256&&(t[rA].splice(0,t[fd]),t[nA]-=t[fd],t[fd]=0))}function $Ke(t,e){for(;;){if(t.destroyed){hd(t[tQ]===0);return}if(t[Xh]&&!t[$b]){t[Xh](),t[Xh]=null;return}if(t[kn]&&t[kn].resume(),t[m8])t[Zh]=2;else if(t[Zh]===2){e?(t[Zh]=1,queueMicrotask(()=>Kue(t))):Kue(t);continue}if(t[tQ]===0||t[eQ]>=(Zue(t)||1))return;let r=t[rA][t[nA]];if(t[tu].protocol==="https:"&&t[Kh]!==r.servername){if(t[eQ]>0)return;t[Kh]=r.servername,t[kn]?.destroy(new xKe("servername changed"),()=>{t[kn]=null,E8(t)})}if(t[iy])return;if(!t[kn]){ele(t);return}if(t[kn].destroyed||t[kn].busy(r))return;!r.aborted&&t[kn].write(r)?t[nA]++:t[rA].splice(t[nA],1)}}tle.exports=g8});var y8=y((Air,rle)=>{"use strict";var bR=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)}};rle.exports=class{constructor(){this.head=this.tail=new bR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var sle=y((uir,nle)=>{var{kFree:eXe,kConnected:tXe,kPending:rXe,kQueued:nXe,kRunning:sXe,kSize:iXe}=Xr(),Bp=Symbol("pool"),C8=class{constructor(e){this[Bp]=e}get connected(){return this[Bp][tXe]}get free(){return this[Bp][eXe]}get pending(){return this[Bp][rXe]}get queued(){return this[Bp][nXe]}get running(){return this[Bp][sXe]}get size(){return this[Bp][iXe]}};nle.exports=C8});var N8=y((lir,fle)=>{"use strict";var oXe=G0(),aXe=y8(),{kConnected:I8,kSize:ile,kRunning:ole,kPending:ale,kQueued:rQ,kBusy:cXe,kFree:AXe,kUrl:uXe,kClose:lXe,kDestroy:dXe,kDispatch:hXe}=Xr(),fXe=sle(),so=Symbol("clients"),Ti=Symbol("needDrain"),nQ=Symbol("queue"),B8=Symbol("closed resolve"),b8=Symbol("onDrain"),cle=Symbol("onConnect"),Ale=Symbol("onDisconnect"),ule=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};$ie.exports=eO});var mN=C((Tzt,roe)=>{"use strict";var Zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:k7e}=_t(),v7e=ym();toe()===void 0&&eoe(new v7e);function eoe(t){if(!t||typeof t.dispatch!="function")throw new k7e("Argument agent must implement Agent");Object.defineProperty(globalThis,Zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function toe(){return globalThis[Zie]}roe.exports={setGlobalDispatcher:eoe,getGlobalDispatcher:toe}});var EN=C((Rzt,noe)=>{"use strict";noe.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 ioe=C((Dzt,soe)=>{"use strict";var _7e=KS();soe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new _7e(r,o,s,i);return r(a,c)}}});var aoe=C((kzt,ooe)=>{"use strict";var F7e=aN();ooe.exports=t=>e=>function(n,s){return e(n,new F7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Aoe=C((vzt,coe)=>{"use strict";var M7e=dt(),{InvalidArgumentError:L7e,RequestAbortedError:U7e}=_t(),P7e=EN(),tO=class extends P7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new L7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=M7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new U7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function O7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new tO({maxSize:i},s);return e(n,o)}}coe.exports=O7e});var doe=C((_zt,loe)=>{"use strict";var{isIP:H7e}=Q("node:net"),{lookup:G7e}=Q("node:dns"),q7e=EN(),{InvalidArgumentError:km,InformationalError:Y7e}=_t(),uoe=Math.pow(2,31)-1,rO=class{#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.#i}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,(o,a)=>{if(o||a==null||a.length===0){n(o??new Y7e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){G7e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===uoe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===uoe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,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 o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new nO(this,e,r)}},nO=class extends q7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Yce(i)&&(r[s]=i);break;case"id":Vce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Yce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Vce(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}}};Wce.exports={EventSourceStream:WO}});var tAe=C((ljt,eAe)=>{"use strict";var{pipeline:Xje}=Q("node:stream"),{fetching:Zje}=fy(),{makeRequest:eKe}=Fm(),{webidl:bu}=Zn(),{EventSourceStream:tKe}=Jce(),{parseMIMEType:rKe}=ei(),{createFastMessageEvent:nKe}=Hm(),{isNetworkError:zce}=dy(),{delay:sKe}=YO(),{kEnumerableProperty:ff}=dt(),{environmentSettingsObject:jce}=vi(),Kce=!1,$ce=3e3,Ty=0,Xce=1,xy=2,iKe="anonymous",oKe="use-credentials",Wm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Kce||(Kce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:$ce};let s=jce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=iKe;r.withCredentials&&(o=oKe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jce.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=eKe(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{zce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(zce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?rKe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Xce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new tKe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(nKe(c.type,c.options))}});Xje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Zje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await sKe(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.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}},Zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Xce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Wm,Zce);Object.defineProperties(Wm.prototype,Zce);Object.defineProperties(Wm.prototype,{close:ff,onerror:ff,onmessage:ff,onopen:ff,readyState:ff,url:ff,withCredentials:ff});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);eAe.exports={EventSource:Wm,defaultReconnectionTime:$ce}});var oT=C((djt,je)=>{"use strict";var aKe=Cm(),rAe=vI(),cKe=Im(),AKe=Zne(),uKe=ym(),lKe=hP(),dKe=bse(),hKe=Rse(),nAe=_t(),iT=dt(),{InvalidArgumentError:sT}=nAe,Jm=pie(),fKe=FI(),gKe=zP(),pKe=Xie(),mKe=$P(),EKe=FP(),CKe=aN(),{getGlobalDispatcher:sAe,setGlobalDispatcher:IKe}=mN(),yKe=EN(),BKe=KS(),bKe=$S();Object.assign(rAe.prototype,Jm);je.exports.Dispatcher=rAe;je.exports.Client=aKe;je.exports.Pool=cKe;je.exports.BalancedPool=AKe;je.exports.Agent=uKe;je.exports.ProxyAgent=lKe;je.exports.EnvHttpProxyAgent=dKe;je.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?v3:I.type==="?"?k3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var v=a[P],z=n.slice(0,v.reStart),Z=n.slice(v.reStart,v.reEnd-8),te=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);te+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==xT&&(ke="$");var et=z+Z+ce+ke+te;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===xT)return[n,s];if(!s)return eZe(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Vi.makeRe=function(t,e){return new ln(t,e||{}).makeRe()};ln.prototype.makeRe=ZXe;function ZXe(){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?v3:e.dot?VXe:WXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===If?r:typeof o=="string"?tZe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Vi.match=function(t,e,r){r=r||{};var n=new ln(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ln.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 n=this.options;qy.sep!=="/"&&(e=e.split(qy.sep).join("/")),e=e.split(Yue),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};ln.prototype.matchOne=function(t,e,r){return e.indexOf(If)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};ln.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===If){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===If){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===If?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};ln.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};ln.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===If)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function eZe(t){return t.replace(/\\(.)/g,"$1")}function tZe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var e0=C((C$t,$ue)=>{"use strict";var AZe="2.0.0",uZe=Number.MAX_SAFE_INTEGER||9007199254740991,lZe=16,dZe=250,hZe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];$ue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:lZe,MAX_SAFE_BUILD_LENGTH:dZe,MAX_SAFE_INTEGER:uZe,RELEASE_TYPES:hZe,SEMVER_SPEC_VERSION:AZe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Jy=C((I$t,Xue)=>{"use strict";var fZe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Xue.exports=fZe});var t0=C((Pc,Zue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:F3,MAX_SAFE_BUILD_LENGTH:gZe,MAX_LENGTH:pZe}=e0(),mZe=Jy();Pc=Zue.exports={};var EZe=Pc.re=[],CZe=Pc.safeRe=[],me=Pc.src=[],IZe=Pc.safeSrc=[],Ee=Pc.t={},yZe=0,M3="[a-zA-Z0-9-]",BZe=[["\\s",1],["\\d",pZe],[M3,gZe]],bZe=t=>{for(let[e,r]of BZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};Ihe.exports=NH});var HR=y((Uir,Nhe)=>{"use strict";var bhe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:O$e}=or(),H$e=cy();whe()===void 0&&Qhe(new H$e);function Qhe(t){if(!t||typeof t.dispatch!="function")throw new O$e("Argument agent must implement Agent");Object.defineProperty(globalThis,bhe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function whe(){return globalThis[bhe]}Nhe.exports={setGlobalDispatcher:Qhe,getGlobalDispatcher:whe}});var qR=y((Hir,xhe)=>{"use strict";xhe.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 The=y((qir,She)=>{"use strict";var q$e=CR();She.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new q$e(r,o,s,i);return r(a,c)}}});var Dhe=y((Gir,Rhe)=>{"use strict";var G$e=DR();Rhe.exports=t=>e=>function(n,s){return e(n,new G$e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var vhe=y((Yir,khe)=>{"use strict";var Y$e=vt(),{InvalidArgumentError:z$e,RequestAbortedError:W$e}=or(),J$e=qR(),xH=class extends J$e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new z$e("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.#s=e}onHeaders(e,r,n,s){let o=Y$e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new W$e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function V$e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new xH({maxSize:i},s);return e(n,o)}}khe.exports=V$e});var Fhe=y((zir,Mhe)=>{"use strict";var{isIP:j$e}=Q("node:net"),{lookup:K$e}=Q("node:dns"),X$e=qR(),{InvalidArgumentError:gy,InformationalError:Z$e}=or(),Phe=Math.pow(2,31)-1,SH=class{#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.#i}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,(o,a)=>{if(o||a==null||a.length===0){n(o??new Z$e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){K$e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Phe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Phe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,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 o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new TH(this,e,r)}},TH=class extends X$e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${o}`;return}if(SD(e,s,hst)){fst(e,i)&&(r.retry=e.toString("utf8",i));return}if(SD(e,s,dst)){mst(e,i)&&(r.id=e.toString("utf8",i));return}if(SD(e,s,lst)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&ost(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&ast(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===Dy[0]||(this.checkBOM=!1),!0):n===void 0?e===Dy[0]&&r===Dy[1]?!0:(this.checkBOM=!1,!1):(e===Dy[0]&&r===Dy[1]&&n===Dy[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};fpe.exports={EventSourceStream:E6}});var bpe=y((bor,Bpe)=>{"use strict";var{pipeline:pst}=Q("node:stream"),{fetching:gst}=pQ(),{makeRequest:Est}=Cy(),{webidl:Ed}=Ws(),{EventSourceStream:yst}=mpe(),{parseMIMEType:Cst}=ro(),{createFastMessageEvent:Ist}=Ny(),{isNetworkError:ppe}=fQ(),{delay:Bst}=p6(),{kEnumerableProperty:_p}=vt(),{environmentSettingsObject:gpe}=qo(),Epe=!1,ype=3e3,RQ=0,Cpe=1,DQ=2,bst="anonymous",Qst="use-credentials",ky=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=RQ;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Ed.util.markAsUncloneable(this);let n="EventSource constructor";Ed.argumentLengthCheck(arguments,1,n),Epe||(Epe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ed.converters.USVString(e,n,"url"),r=Ed.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:ype};let s=gpe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=bst;r.withCredentials&&(o=Qst,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=gpe.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=Est(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===DQ)return;this.#r=RQ;let e={request:this.#i,dispatcher:this.#a},r=n=>{ppe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(ppe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Cst(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Cpe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new yst({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Ist(c.type,c.options))}});pst(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=gst(e)}async#A(){this.#r!==DQ&&(this.#r=RQ,this.dispatchEvent(n Line truncated
`).join(`
`+i),t.push(s+"m+"+gx.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=dnt()+e+" "+t[0]}function dnt(){return Mn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function hnt(...t){return process.stderr.write(fx.formatWithOptions(Mn.inspectOpts,...t)+`
`)}function fnt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function gnt(){return process.env.DEBUG}function pnt(t){t.inspectOpts={};let e=Object.keys(Mn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Mn.inspectOpts[e[r]]}gx.exports=w8()(Mn);var{formatters:Nhe}=gx.exports;Nhe.o=function(t){return this.inspectOpts.colors=this.useColors,fx.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nhe.O=function(t){return this.inspectOpts.colors=this.useColors,fx.inspect(t,this.inspectOpts)}});var px=C((KZt,T8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?T8.exports=yhe():T8.exports=The()});var Dhe=C(ui=>{"use strict";var mnt=ui&&ui.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ent=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xhe=ui&&ui.__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)&&mnt(e,t,r);return Ent(e,t),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.req=ui.json=ui.toBuffer=void 0;var Cnt=xhe(Q("http")),Int=xhe(Q("https"));async function Rhe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ui.toBuffer=Rhe;async function ynt(t){let r=(await Rhe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ui.json=ynt;function Bnt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Int:Cnt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ui.req=Bnt});var R8=C(zi=>{"use strict";var vhe=zi&&zi.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bnt=zi&&zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_he=zi&&zi.__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 bnt(e,t),e},Qnt=zi&&zi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vhe(e,t,r)};Object.defineProperty(zi,"__esModule",{value:!0});zi.Agent=void 0;var wnt=_he(Q("net")),khe=_he(Q("http")),Snt=Q("https");Qnt(Dhe(),zi);var Gc=Symbol("AgentBaseInternalState"),x8=class extends khe.Agent{constructor(e){super(e),this[Gc]={}}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 wnt.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)?Snt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof khe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Gc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Gc].currentSocket;if(this[Gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gc]&&(this[Gc].defaultPort=e)}get protocol(){return this[Gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gc]&&(this[Gc].protocol=e)}};zi.Agent=x8});var Fhe=C(u0=>{"use strict";var Nnt=u0&&u0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(u0,"__esModule",{value:!0});u0.parseProxyResponse=void 0;var Tnt=Nnt(px()),mx=(0,Tnt.default)("https-proxy-agent:parse-proxy-response");function xnt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),mx("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),mx("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+U2.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=sdt()+e+" "+t[0]}function sdt(){return Bs.inspectOpts.hideDate?"":new Date().toISOString()+" "}function idt(...t){return process.stderr.write(_2.formatWithOptions(Bs.inspectOpts,...t)+`
`)}function odt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function adt(){return process.env.DEBUG}function cdt(t){t.inspectOpts={};let e=Object.keys(Bs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Bs.inspectOpts[e[r]]}U2.exports=$5()(Bs);var{formatters:Kye}=U2.exports;Kye.o=function(t){return this.inspectOpts.colors=this.useColors,_2.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Kye.O=function(t){return this.inspectOpts.colors=this.useColors,_2.inspect(t,this.inspectOpts)}});var O2=y((Nlr,rq)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?rq.exports=Yye():rq.exports=Xye()});var eCe=y(fo=>{"use strict";var Adt=fo&&fo.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),udt=fo&&fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zye=fo&&fo.__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)&&Adt(e,t,r);return udt(e,t),e};Object.defineProperty(fo,"__esModule",{value:!0});fo.req=fo.json=fo.toBuffer=void 0;var ldt=Zye(Q("http")),ddt=Zye(Q("https"));async function $ye(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}fo.toBuffer=$ye;async function hdt(t){let r=(await $ye(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}fo.json=hdt;function fdt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ddt:ldt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}fo.req=fdt});var sq=y(ta=>{"use strict";var rCe=ta&&ta.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),mdt=ta&&ta.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nCe=ta&&ta.__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)&&rCe(e,t,r);return mdt(e,t),e},pdt=ta&&ta.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&rCe(e,t,r)};Object.defineProperty(ta,"__esModule",{value:!0});ta.Agent=void 0;var gdt=nCe(Q("net")),tCe=nCe(Q("http")),Edt=Q("https");pdt(eCe(),ta);var lu=Symbol("AgentBaseInternalState"),nq=class extends tCe.Agent{constructor(e){super(e),this[lu]={}}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 gdt.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)?Edt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof tCe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[lu].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[lu].currentSocket;if(this[lu].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[lu].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[lu]&&(this[lu].defaultPort=e)}get protocol(){return this[lu].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[lu]&&(this[lu].protocol=e)}};ta.Agent=nq});var sCe=y(jy=>{"use strict";var ydt=jy&&jy.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jy,"__esModule",{value:!0});jy.parseProxyResponse=void 0;var Cdt=ydt(O2()),H2=(0,Cdt.default)("https-proxy-agent:parse-proxy-response");function Idt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),H2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),H2("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){mx("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}mx("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}u0.parseProxyResponse=xnt});var Hhe=C(Uo=>{"use strict";var Rnt=Uo&&Uo.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Dnt=Uo&&Uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Phe=Uo&&Uo.__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)&&Rnt(e,t,r);return Dnt(e,t),e},Ohe=Uo&&Uo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HttpsProxyAgent=void 0;var Ex=Phe(Q("net")),Mhe=Phe(Q("tls")),knt=Ohe(Q("assert")),vnt=Ohe(px()),_nt=R8(),Fnt=Q("url"),Mnt=Fhe(),cB=(0,vnt.default)("https-proxy-agent"),Lhe=t=>t.servername===void 0&&t.host&&!Ex.isIP(t.host)?{...t,servername:t.host}:t,Cx=class extends _nt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Fnt.URL(e):e,this.proxyHeaders=r?.headers??{},cB("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?Uhe(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:"?(cB("Creating `tls.Socket`: %o",this.connectOpts),s=Mhe.connect(Lhe(this.connectOpts))):(cB("Creating `net.Socket`: %o",this.connectOpts),s=Ex.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Ex.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){H2("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=f.split(" "),E=+m[1],g=m.slice(2).join(" "),C={};for(let I of h){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let M=I.slice(0,B).toLowerCase(),J=I.slice(B+1).trimStart(),F=C[M];typeof F=="string"?C[M]=[F,J]:Array.isArray(F)?F.push(J):C[M]=J}H2("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:E,statusText:g,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}jy.parseProxyResponse=Idt});var uCe=y(Xa=>{"use strict";var Bdt=Xa&&Xa.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bdt=Xa&&Xa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cCe=Xa&&Xa.__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)&&Bdt(e,t,r);return bdt(e,t),e},ACe=Xa&&Xa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.HttpsProxyAgent=void 0;var q2=cCe(Q("net")),iCe=cCe(Q("tls")),Qdt=ACe(Q("assert")),wdt=ACe(O2()),Ndt=sq(),xdt=Q("url"),Sdt=sCe(),Ew=(0,wdt.default)("https-proxy-agent"),oCe=t=>t.servername===void 0&&t.host&&!q2.isIP(t.host)?{...t,servername:t.host}:t,G2=class extends Ndt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new xdt.URL(e):e,this.proxyHeaders=r?.headers??{},Ew("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?aCe(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:"?(Ew("Creating `tls.Socket`: %o",this.connectOpts),s=iCe.connect(oCe(this.connectOpts))):(Ew("Creating `net.Socket`: %o",this.connectOpts),s=q2.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=q2.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let c=(0,Mnt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Lnt),r.secureEndpoint?(cB("Upgrading socket connection to TLS"),Mhe.connect({...Uhe(Lhe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new Ex.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{cB("Replaying proxy buffer for failed request"),(0,knt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Cx.protocols=["http","https"];Uo.HttpsProxyAgent=Cx;function Lnt(t){t.resume()}function Uhe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Yhe=C(Po=>{"use strict";var Unt=Po&&Po.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Pnt=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qhe=Po&&Po.__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)&&Unt(e,t,r);return Pnt(e,t),e},Ont=Po&&Po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Po,"__esModule",{value:!0});Po.HttpProxyAgent=void 0;var Hnt=qhe(Q("net")),Gnt=qhe(Q("tls")),qnt=Ont(px()),Ynt=Q("events"),Vnt=R8(),Ghe=Q("url"),l0=(0,qnt.default)("http-proxy-agent"),Ix=class extends Vnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Ghe.URL(e):e,this.proxyHeaders=r?.headers??{},l0("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?Wnt(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",o=`${s}//${i}`,a=new Ghe.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(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;l0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(l0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,Sdt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Tdt),r.secureEndpoint?(Ew("Upgrading socket connection to TLS"),iCe.connect({...aCe(oCe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new q2.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Ew("Replaying proxy buffer for failed request"),(0,Qdt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};G2.protocols=["http","https"];Xa.HttpsProxyAgent=G2;function Tdt(t){t.resume()}function aCe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var hCe=y(Za=>{"use strict";var Rdt=Za&&Za.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ddt=Za&&Za.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dCe=Za&&Za.__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)&&Rdt(e,t,r);return Ddt(e,t),e},kdt=Za&&Za.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Za,"__esModule",{value:!0});Za.HttpProxyAgent=void 0;var vdt=dCe(Q("net")),Pdt=dCe(Q("tls")),Mdt=kdt(O2()),Fdt=Q("events"),Ldt=sq(),lCe=Q("url"),Ky=(0,Mdt.default)("http-proxy-agent"),Y2=class extends Ldt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new lCe.URL(e):e,this.proxyHeaders=r?.headers??{},Ky("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?_dt(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",o=`${s}//${i}`,a=new lCe.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(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Ky("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Ky("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+n.substring(s),l0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(l0("Creating `tls.Socket`: %o",this.connectOpts),i=Gnt.connect(this.connectOpts)):(l0("Creating `net.Socket`: %o",this.connectOpts),i=Hnt.connect(this.connectOpts)),await(0,Ynt.once)(i,"connect"),i}};Ix.protocols=["http","https"];Po.HttpProxyAgent=Ix;function Wnt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ffe=C(kx=>{"use strict";Object.defineProperty(kx,"__esModule",{value:!0});kx.state=void 0;kx.state={instrumenterImplementation:void 0}});var Dfe=C(Lx=>{"use strict";Object.defineProperty(Lx,"__esModule",{value:!0});Lx.state=void 0;Lx.state={operationRequestMap:new WeakMap}});var fme=C(($pr,eut)=>{eut.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var pme=C((Xpr,gme)=>{var tut=fme();gme.exports={version:tut.version}});var gD=C(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});F0.isJsonObject=F0.typeofJsonValue=void 0;function uut(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}F0.typeofJsonValue=uut;function lut(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}F0.isJsonObject=lut});var mD=C(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});M0.base64encode=M0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pD=[];for(let t=0;t<Gu.length;t++)pD[Gu[t].charCodeAt(0)]=t;pD[45]=Gu.indexOf("+");pD[95]=Gu.indexOf("/");function dut(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=pD[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}M0.base64decode=dut;function hut(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}M0.base64encode=hut});var yme=C(ED=>{"use strict";Object.defineProperty(ED,"__esModule",{value:!0});ED.utf8read=void 0;var B9=t=>String.fromCharCode.apply(String,t);function fut(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)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(B9(n)),s=0);return r.length?(s&&r.push(B9(n.slice(0,s))),r.join("")):B9(n.slice(0,s))}ED.utf8read=fut});var sb=C(hA=>{"use strict";Object.defineProperty(hA,"__esModule",{value:!0});hA.WireType=hA.mergeBinaryOptions=hA.UnknownFieldHandler=void 0;var gut;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},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=r=>r&&Array.isArray(r[t.symbol])})(gut=hA.UnknownFieldHandler||(hA.UnknownFieldHandler={}));function put(t,e){return Object.assign(Object.assign({},t),e)}hA.mergeBinaryOptions=put;var mut;(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"})(mut=hA.WireType||(hA.WireType={}))});var ID=C(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.varint32read=mi.varint32write=mi.int64toString=mi.int64fromString=mi.varint64write=mi.varint64read=void 0;function Eut(){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")}mi.varint64read=Eut;function Cut(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)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 o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}mi.varint64write=Cut;var CD=65536*65536;function Iut(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=CD&&(s=s+(n/CD|0),n=n%CD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}mi.int64fromString=Iut;function yut(t,e){if(e>>>0<=2097151)return""+(CD*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}mi.int64toString=yut;function But(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)}}mi.varint32write=But;function but(){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}mi.varint32read=but});var Bd=C(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.PbLong=yd.PbULong=yd.detectBi=void 0;var ib=ID(),or;function Bme(){let t=new DataView(new ArrayBuffer(8));or=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}yd.detectBi=Bme;Bme();function bme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Qme=/^-?[0-9]+$/,BD=4294967296,yD=2147483648,bD=c Line truncated
`)}};JD.RpcError=j9});var $9=C(jD=>{"use strict";Object.defineProperty(jD,"__esModule",{value:!0});jD.mergeRpcOptions=void 0;var e0e=At();function Vlt(t,e){if(!e)return t;let r={};zD(t,r),zD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=e0e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=e0e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zD(t.meta,r.meta),zD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}jD.mergeRpcOptions=Vlt;function zD(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}});var Z9=C(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.Deferred=Xf.DeferredState=void 0;var pA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(pA=Xf.DeferredState||(Xf.DeferredState={}));var X9=class{constructor(e=!0){this._state=pA.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!==pA.PENDING)throw new Error(`cannot resolve ${pA[this.state].toLowerCase()}`);this._resolve(e),this._state=pA.RESOLVED}reject(e){if(this.state!==pA.PENDING)throw new Error(`cannot reject ${pA[this.state].toLowerCase()}`);this._reject(e),this._state=pA.REJECTED}resolvePending(e){this._state===pA.PENDING&&this.resolve(e)}rejectPending(e){this._state===pA.PENDING&&this.reject(e)}};Xf.Deferred=X9});var tG=C(KD=>{"use strict";Object.defineProperty(KD,"__esModule",{value:!0});KD.RpcOutputStreamController=void 0;var t0e=Z9(),Zf=At(),eG=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 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){Zf.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){Zf.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){Zf.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(){Zf.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;Zf.assert(e,"bad state"),Zf.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 t0e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Zf.assert(n.state==t0e.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};KD.RpcOutputStreamController=eG});var nG=C(q0=>{"use strict";var Wlt=q0&&q0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(q0,"__esModule",{value:!0});q0.UnaryCall=void 0;var rG=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 Wlt(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}})}};q0.UnaryCall=rG});var iG=C(Y0=>{"use strict";var Jlt=Y0&&Y0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(Y0,"__esModule",{value:!0});Y0.ServerStreamingCall=void 0;var sG=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),Ky("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Ky("Creating `tls.Socket`: %o",this.connectOpts),i=Pdt.connect(this.connectOpts)):(Ky("Creating `net.Socket`: %o",this.connectOpts),i=vdt.connect(this.connectOpts)),await(0,Fdt.once)(i,"connect"),i}};Y2.protocols=["http","https"];Za.HttpProxyAgent=Y2;function _dt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var FCe=y(J2=>{"use strict";Object.defineProperty(J2,"__esModule",{value:!0});J2.state=void 0;J2.state={instrumenterImplementation:void 0}});var dIe=y(ik=>{"use strict";Object.defineProperty(ik,"__esModule",{value:!0});ik.state=void 0;ik.state={operationRequestMap:new WeakMap}});var zbe=y((fRr,T0t)=>{T0t.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"~1.23.0","@azure/storage-blob":"~12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Jbe=y((mRr,Wbe)=>{var R0t=zbe();Wbe.exports={version:R0t.version}});var Mv=y(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.isJsonObject=kC.typeofJsonValue=void 0;function U0t(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}kC.typeofJsonValue=U0t;function O0t(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}kC.isJsonObject=O0t});var Lv=y(vC=>{"use strict";Object.defineProperty(vC,"__esModule",{value:!0});vC.base64encode=vC.base64decode=void 0;var Ud="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Fv=[];for(let t=0;t<Ud.length;t++)Fv[Ud[t].charCodeAt(0)]=t;Fv[45]=Ud.indexOf("+");Fv[95]=Ud.indexOf("/");function H0t(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=Fv[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}vC.base64decode=H0t;function q0t(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ud[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ud[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ud[s|n>>6],e+=Ud[n&63],r=0;break}return r&&(e+=Ud[s],e+="=",r==1&&(e+="=")),e}vC.base64encode=q0t});var Zbe=y(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});_v.utf8read=void 0;var iW=t=>String.fromCharCode.apply(String,t);function G0t(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)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(iW(n)),s=0);return r.length?(s&&r.push(iW(n.slice(0,s))),r.join("")):iW(n.slice(0,s))}_v.utf8read=G0t});var CN=y(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.WireType=Lu.mergeBinaryOptions=Lu.UnknownFieldHandler=void 0;var Y0t;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},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=r=>r&&Array.isArray(r[t.symbol])})(Y0t=Lu.UnknownFieldHandler||(Lu.UnknownFieldHandler={}));function z0t(t,e){return Object.assign(Object.assign({},t),e)}Lu.mergeBinaryOptions=z0t;var W0t;(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"})(W0t=Lu.WireType||(Lu.WireType={}))});var Ov=y(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.varint32read=bo.varint32write=bo.int64toString=bo.int64fromString=bo.varint64write=bo.varint64read=void 0;function J0t(){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")}bo.varint64read=J0t;function V0t(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)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 o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}bo.varint64write=V0t;var Uv=65536*65536;function j0t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=Uv&&(s=s+(n/Uv|0),n=n%Uv)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}bo.int64fromString=j0t;function K0t(t,e){if(e>>>0<=2097151)return""+(Uv*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}bo.int64toString=K0t;function X0t(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)}}bo.varint32write=X0t;function Z0t(){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}bo.varint32read=Z0t});var Gf=y(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.PbLong=qf.PbULong=qf.detectBi=void 0;var IN=Ov(),kr;function $be(){let t=new DataView(new ArrayBuffer(8));kr=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}qf.detectBi=$be;$be();function eQe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var tQe=/^-?[0-9]+$/,qv=4294967296,Hv=2147483648,Gv=c Line truncated
`)}};hP.RpcError=kW});var PW=y(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0});mP.mergeRpcOptions=void 0;var DQe=Tt();function CCt(t,e){if(!e)return t;let r={};fP(t,r),fP(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=DQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=DQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},fP(t.meta,r.meta),fP(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}mP.mergeRpcOptions=CCt;function fP(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}});var FW=y(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.Deferred=Bg.DeferredState=void 0;var Ou;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ou=Bg.DeferredState||(Bg.DeferredState={}));var MW=class{constructor(e=!0){this._state=Ou.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!==Ou.PENDING)throw new Error(`cannot resolve ${Ou[this.state].toLowerCase()}`);this._resolve(e),this._state=Ou.RESOLVED}reject(e){if(this.state!==Ou.PENDING)throw new Error(`cannot reject ${Ou[this.state].toLowerCase()}`);this._reject(e),this._state=Ou.REJECTED}resolvePending(e){this._state===Ou.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ou.PENDING&&this.reject(e)}};Bg.Deferred=MW});var _W=y(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0});pP.RpcOutputStreamController=void 0;var kQe=FW(),bg=Tt(),LW=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 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){bg.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){bg.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){bg.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(){bg.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;bg.assert(e,"bad state"),bg.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 kQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;bg.assert(n.state==kQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};pP.RpcOutputStreamController=LW});var OW=y(OC=>{"use strict";var ICt=OC&&OC.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(OC,"__esModule",{value:!0});OC.UnaryCall=void 0;var UW=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 ICt(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}})}};OC.UnaryCall=UW});var qW=y(HC=>{"use strict";var BCt=HC&&HC.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(HC,"__esModule",{value:!0});HC.ServerStreamingCall=void 0;var HW=class{constructor(e 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 dye=C(lye=>{"use strict";var rV=tl().Buffer;lye._dbcs=rl;var rs=-1,uye=-2,aa=-10,Hs=-1e3,BE=new Array(256),iQ=-1;for(vk=0;vk<256;vk++)BE[vk]=rs;var vk;function rl(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]=BE.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(BE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(BE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hs-o[n]],c=48;c<=57;c++){if(a[c]===rs)a[c]=Hs-s;else if(a[c]>Hs)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hs-a[c]],u=129;u<=254;u++){if(A[u]===rs)A[u]=Hs-i;else{if(A[u]===Hs-i)continue;if(A[u]>Hs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hs-A[u]],d=48;d<=57;d++)l[d]===rs&&(l[d]=uye)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Wyt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(Dyt.has(s)){r=s;break}}return r}function Jyt(t,e){let r=Wyt(e);r!==""&&(t.referrerPolicy=r)}function zyt(){return"allowed"}function jyt(){return"success"}function Kyt(){return"success"}function $yt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Xyt(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&&y7(t.origin)&&!y7(Tg(t))&&(e=null);break;case"same-origin":gQ(t,Tg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function NE(t,e){return t}function Zyt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:NE(t.domainLookupStartTime,r),domainLookupEndTime:NE(t.domainLookupEndTime,r),connectionStartTime:NE(t.connectionStartTime,r),connectionEndTime:NE(t.connectionEndTime,r),secureConnectionStartTime:NE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function eBt(t){return NE(Fyt.now(),t)}function tBt(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 Hbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function rBt(t){return{referrerPolicy:t.referrerPolicy}}function nBt(t){let e=t.referrerPolicy;pQ(e);let r=null;if(t.referrer==="client"){let i=Mbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Vd.is.URL(t.referrer)&&(r=t.referrer);let n=I7(r),s=I7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??I7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Tg(t);return gQ(n,i)?n:Ng(n)&&!Ng(i)?"no-referrer":s}case"same-origin":return gQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return gQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":n}}}function I7(t,e=!1){return pQ(Vd.is.URL(t)),t=new URL(t),Vbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var sBt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),iBt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Gbe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),iBt(t)):sBt(t)}function oBt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Gbe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Ng(t){return Vd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:oBt(t.origin):!1}function aBt(t){}function gQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function cBt(t){return t.controller.state==="aborted"}function ABt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function uBt(t){return Lyt[t.toLowerCase()]??t}var lBt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function qbe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,lBt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function dBt(t,e,r,n=0,s=1){let i=qbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ua(a=>R7(a)&&a!==59,t,e);i=T7.decode(o)}return{name:n,value:i,extended:s}}function MBt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw wi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ua(a=>a!==10&&a!==13&&a!==58,t,e);if(o=x7(o,!0,!0,a=>a===9||a===32),!TBt.test(o.toString()))throw wi("header name does not match the field-name token production");if(t[e.position]!==58)throw wi("expected :");switch(e.position++,ua(a=>a===32||a===9,t,e),NBt(o)){case"content-disposition":{r=n=null;let a=!1;if(ua(A=>R7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw wi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=FBt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw wi("name attribute is required in content-disposition header");break}case"content-type":{let a=ua(c=>c!==10&&c!==13,t,e);a=x7(a,!1,!0,c=>c===9||c===32),s=$be(a);break}case"content-transfer-encoding":{let a=ua(c=>c!==10&&c!==13,t,e);a=x7(a,!1,!0,c=>c===9||c===32),i=$be(a);break}default:ua(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw wi("expected CRLF");e.position+=2}}function ua(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function x7(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)}function LBt(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}function wi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function UBt(t){return t<=31||t===127}function PBt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function R7(t){return t<=127&&t!==32&&t!==9&&!UBt(t)&&!PBt(t)}Xbe.exports={multipartFormDataParser:_Bt,validateBoundary:vBt}});var mQ=C((oQr,eQe)=>{"use strict";function OBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}eQe.exports={createDeferredPromise:OBt}});var RE=C((aQr,iQe)=>{"use strict";var v7=Ze(),{ReadableStreamFrom:HBt,readableStreamClose:GBt,fullyReadBody:qBt,extractMimeType:YBt}=ao(),{FormData:tQe,setFormDataState:VBt}=sv(),{webidl:lc}=ns(),D7=Q("node:assert"),{isErrored:k7,isDisturbed:WBt}=Q("node:stream"),{isUint8Array:JBt}=Q("node:util/types"),{serializeAMimeType:zBt}=Aa(),{multipartFormDataParser:jBt}=Zbe(),{createDeferredPromise:KBt}=mQ(),{parseJSONFromBytes:$Bt}=il(),{utf8DecodeBytes:XBt}=Xk(),{runtimeFeatures:ZBt}=ol(),ebt=ZBt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),iv=new TextEncoder;function tbt(){}var rbt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!WBt(e)&&!k7(e)&&e.cancel("Response object has been garbage collected").catch(tbt)});function nQe(t,e=!1){let r=null,n=null;lc.is.ReadableStream(t)?r=t:lc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),D7(lc.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(lc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(lc.is.BufferSource(t))i=lc.util.getCopyOfBytesHeldByBufferSource(t);else if(lc.is.FormData(t)){let A=`----formdata-undici-0${`${ebt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=iv.encode(u+`; name="${l(d(m))}"\r
\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 pSe=y(mSe=>{"use strict";var QV=Vd().Buffer;mSe._dbcs=jd;var Ks=-1,fSe=-2,yc=-10,Hi=-1e3,pI=new Array(256),hx=-1;for(XM=0;XM<256;XM++)pI[XM]=Ks;var XM;function jd(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]=pI.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(pI.slice(0));var i=this.decodeTables.length;this.decodeTables.push(pI.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hi-o[n]],c=48;c<=57;c++){if(a[c]===Ks)a[c]=Hi-s;else if(a[c]>Hi)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hi-a[c]],u=129;u<=254;u++){if(A[u]===Ks)A[u]=Hi-i;else{if(A[u]===Hi-i)continue;if(A[u]>Hi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hi-A[u]],d=48;d<=57;d++)l[d]===Ks&&(l[d]=fSe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function dTt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(X1t.has(s)){r=s;break}}return r}function hTt(t,e){let r=dTt(e);r!==""&&(t.referrerPolicy=r)}function fTt(){return"allowed"}function mTt(){return"success"}function pTt(){return"success"}function gTt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ETt(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&&Gj(t.origin)&&!Gj(Vg(t))&&(e=null);break;case"same-origin":bx(t,Vg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function II(t,e){return t}function yTt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:II(t.domainLookupStartTime,r),domainLookupEndTime:II(t.domainLookupEndTime,r),connectionStartTime:II(t.connectionStartTime,r),connectionEndTime:II(t.connectionEndTime,r),secureConnectionStartTime:II(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function CTt(t){return II(tTt.now(),t)}function ITt(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 zTe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function BTt(t){return{referrerPolicy:t.referrerPolicy}}function bTt(t){let e=t.referrerPolicy;Qx(e);let r=null;if(t.referrer==="client"){let i=OTe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else cm.is.URL(t.referrer)&&(r=t.referrer);let n=qj(r),s=qj(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??qj(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Vg(t);return bx(n,i)?n:Jg(n)&&!Jg(i)?"no-referrer":s}case"same-origin":return bx(t,n)?n:"no-referrer";case"origin-when-cross-origin":return bx(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":n}}}function qj(t,e=!1){return Qx(cm.is.URL(t)),t=new URL(t),jTe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var QTt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),wTt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function WTe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),wTt(t)):QTt(t)}function NTt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||WTe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Jg(t){return cm.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:NTt(t.origin):!1}function xTt(t){}function bx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function STt(t){return t.controller.state==="aborted"}function TTt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function RTt(t){return nTt[t.toLowerCase()]??t}var DTt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function JTe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,DTt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function kTt(t,e,r,n=0,s=1){let i=JTe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return cm.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return cm.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Bc(a=>Zj(a)&&a!==59,t,e);i=Kj.decode(o)}return{name:n,value:i,extended:s}}function rRt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Do("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Bc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Xj(o,!0,!0,a=>a===9||a===32),!VTt.test(o.toString()))throw Do("header name does not match the field-name token production");if(t[e.position]!==58)throw Do("expected :");switch(e.position++,Bc(a=>a===32||a===9,t,e),JTt(o)){case"content-disposition":{r=n=null;let a=!1;if(Bc(A=>Zj(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Do("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=tRt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Do("name attribute is required in content-disposition header");break}case"content-type":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Xj(a,!1,!0,c=>c===9||c===32),s=tRe(a);break}case"content-transfer-encoding":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Xj(a,!1,!0,c=>c===9||c===32),i=tRe(a);break}default:Bc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Do("expected CRLF");e.position+=2}}function Bc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Xj(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)}function nRt(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}function Do(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function sRt(t){return t<=31||t===127}function iRt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function Zj(t){return t<=127&&t!==32&&t!==9&&!sRt(t)&&!iRt(t)}rRe.exports={multipartFormDataParser:eRt,validateBoundary:$Tt}});var wx=y((VFr,sRe)=>{"use strict";function oRt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}sRe.exports={createDeferredPromise:oRt}});var QI=y((jFr,ARe)=>{"use strict";var tK=ht(),{ReadableStreamFrom:aRt,readableStreamClose:cRt,fullyReadBody:ARt,extractMimeType:uRt}=fa(),{FormData:iRe,setFormDataState:lRt}=BF(),{webidl:SA}=Xs(),$j=Q("node:assert"),{isErrored:eK,isDisturbed:dRt}=Q("node:stream"),{isUint8Array:hRt}=Q("node:util/types"),{serializeAMimeType:fRt}=Ic(),{multipartFormDataParser:mRt}=nRe(),{createDeferredPromise:pRt}=wx(),{parseJSONFromBytes:gRt}=Zd(),{utf8DecodeBytes:ERt}=pF(),{runtimeFeatures:yRt}=$d(),CRt=yRt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),bF=new TextEncoder;function IRt(){}var BRt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!dRt(e)&&!eK(e)&&e.cancel("Response object has been garbage collected").catch(IRt)});function aRe(t,e=!1){let r=null,n=null;SA.is.ReadableStream(t)?r=t:SA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),$j(SA.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(SA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(SA.is.BufferSource(t))i=SA.util.getCopyOfBytesHeldByBufferSource(t);else if(SA.is.FormData(t)){let A=`----formdata-undici-0${`${CRt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=g=>g.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=g=>g.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let m=!1;for(let[g,C]of t)if(typeof C=="string"){let I=bF.encode(u+`; name="${l(d(g))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=iv.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(I),o+=I.byteLength}else{let I=bF.encode(`${u}; name="${l(d(g))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=iv.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(lc.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(v7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=lc.is.ReadableStream(t)?t:HBt(t)}return(typeof i=="string"||JBt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(k7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!k7(r)&&n.enqueue(typeof A=="string"?iv.encode(A):new Uint8Array(A));queueMicrotask(()=>GBt(n))})(),[{stream:r,source:i,length:o},a]}function nbt(t,e=!1){return lc.is.ReadableStream(t)&&(D7(!v7.isDisturbed(t),"The body has already been consumed."),D7(!t.locked,"The stream is locked.")),nQe(t,e)}function sbt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function ibt(t,e){return{blob(){return xE(this,n=>{let s=rQe(e(this));return s===null?s="":s&&(s=zBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return xE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return xE(this,XBt,t,e)},json(){return xE(this,$Bt,t,e)},formData(){return xE(this,n=>{let s=rQe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=jBt(n,s),o=new tQe;return VBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new tQe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return xE(this,n=>new Uint8Array(n),t,e)}}}function obt(t,e){Object.assign(t.prototype,ibt(t,e))}function xE(t,e,r,n){try{lc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),sQe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=KBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(qBt(t.body,o,i),s.promise)}function sQe(t){let e=t.body;return e!=null&&(e.stream.locked||v7.isDisturbed(e.stream))}function rQe(t){let e=t.headersList,r=YBt(e);return r==="failure"?null:r}iQe.exports={extractBody:nQe,safelyExtractBody:nbt,cloneBody:sbt,mixinBody:obt,streamRegistry:rbt,bodyUnusable:sQe}});var IQe=C((cQr,CQe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:oQe}=qd(),_7=fV(),{RequestContentLengthMismatchError:xg,ResponseContentLengthMismatchError:aQe,RequestAbortedError:gQe,InvalidArgumentError:abt,HeadersTimeoutError:cbt,HeadersOverflowError:Abt,SocketError:Rg,InformationalError:DE,BodyTimeoutError:ubt,HTTPParserError:lbt,ResponseExceededMaxSizeError:dbt}=Xe(),{kUrl:pQe,kReset:Si,kClient:uv,kParser:pr,kBlocking:IQ,kRunning:fn,kPending:H7,kSize:cQe,kWriting:Wd,kQueue:dc,kNoRef:EQ,kKeepAliveDefaultTimeout:hbt,kHostHeader:fbt,kPendingIdx:gbt,kRunningIdx:la,kError:Gs,kPipelining:cv,kSocket:kg,kKeepAliveTimeoutValue:lv,kMaxHeadersSize:pbt,kKeepAliveMaxTimeout:mbt,kKeepAliveTimeoutThreshold:Ebt,kHeadersTimeout:Cbt,kBodyTimeout:Ibt,kStrictContentLength:L7,kMaxRequests:AQe,kCounter:ybt,kMaxResponseSize:Bbt,kOnError:uQe,kResume:cl,kHTTPContext:mQe,kClosed:U7}=Kt(),co=ibe(),lQe=Buffer.alloc(0),ov=Buffer[Symbol.species],bbt=De.removeAllListeners,vg=Symbol("kIdleSocketValidation"),Dg=Symbol("kIdleSocketValidationTimeout"),G7=Symbol("kSocketUsed"),F7;function Qbt(){let t=process.env.JEST_WORKER_ID?a7():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(cbe())}catch{}return e||(e=new WebAssembly.Module(t||a7())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onStatus(new ov(NA.buffer,o,i))},wasm_on_message_begin:n=>(He(zr.ptr===n),zr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderField(new ov(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderValue(new ov(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(zr.ptr===n),zr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onBody(new ov(NA.buffer,o,i))},wasm_on_message_complete:n=>(He(zr.ptr===n),zr.onMessageComplete())}})}var M7=null,zr=null,NA=null,av=0,TA=null,wbt=0,CQ=1,kE=2|CQ,Av=4|CQ,P7=8|wbt,O7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[pbt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[fbt],i?g+=`connection: upgrade\r
`);h.push(I,C,f),typeof C.size=="number"?o+=I.byteLength+C.size+f.byteLength:m=!0}let E=bF.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,m&&(o=null),i=t,s=async function*(){for(let g of h)g.stream?yield*g.stream():yield g},a=`multipart/form-data; boundary=${A}`}else if(SA.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(tK.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=SA.is.ReadableStream(t)?t:aRt(t)}return(typeof i=="string"||hRt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(eK(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!eK(r)&&n.enqueue(typeof A=="string"?bF.encode(A):new Uint8Array(A));queueMicrotask(()=>cRt(n))})(),[{stream:r,source:i,length:o},a]}function bRt(t,e=!1){return SA.is.ReadableStream(t)&&($j(!tK.isDisturbed(t),"The body has already been consumed."),$j(!t.locked,"The stream is locked.")),aRe(t,e)}function QRt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function wRt(t,e){return{blob(){return bI(this,n=>{let s=oRe(e(this));return s===null?s="":s&&(s=fRt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return bI(this,n=>new Uint8Array(n).buffer,t,e)},text(){return bI(this,ERt,t,e)},json(){return bI(this,gRt,t,e)},formData(){return bI(this,n=>{let s=oRe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=mRt(n,s),o=new iRe;return lRt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new iRe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return bI(this,n=>new Uint8Array(n),t,e)}}}function NRt(t,e){Object.assign(t.prototype,wRt(t,e))}function bI(t,e,r,n){try{SA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),cRe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=pRt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(ARt(t.body,o,i),s.promise)}function cRe(t){let e=t.body;return e!=null&&(e.stream.locked||tK.isDisturbed(e.stream))}function oRe(t){let e=t.headersList,r=uRt(e);return r==="failure"?null:r}ARe.exports={extractBody:aRe,safelyExtractBody:bRt,cloneBody:QRt,mixinBody:NRt,streamRegistry:BRt,bodyUnusable:cRe}});var QRe=y((KFr,bRe)=>{"use strict";var et=Q("node:assert"),He=ht(),{channels:uRe}=om(),rK=FV(),{RequestContentLengthMismatchError:jg,ResponseContentLengthMismatchError:lRe,RequestAbortedError:yRe,InvalidArgumentError:xRt,HeadersTimeoutError:SRt,HeadersOverflowError:TRt,SocketError:Kg,InformationalError:wI,BodyTimeoutError:RRt,HTTPParserError:DRt,ResponseExceededMaxSizeError:kRt}=At(),{kUrl:CRe,kReset:ko,kClient:SF,kParser:Yr,kBlocking:Sx,kRunning:jn,kPending:AK,kSize:dRe,kWriting:Am,kQueue:TA,kNoRef:Nx,kKeepAliveDefaultTimeout:vRt,kHostHeader:PRt,kPendingIdx:MRt,kRunningIdx:bc,kError:qi,kPipelining:NF,kSocket:Xg,kKeepAliveTimeoutValue:TF,kMaxHeadersSize:FRt,kKeepAliveMaxTimeout:LRt,kKeepAliveTimeoutThreshold:_Rt,kHeadersTimeout:URt,kBodyTimeout:ORt,kStrictContentLength:iK,kMaxRequests:hRe,kCounter:HRt,kMaxResponseSize:qRt,kOnError:fRe,kResume:th,kHTTPContext:IRe,kClosed:oK}=br(),ma=ATe(),mRe=Buffer.alloc(0),QF=Buffer[Symbol.species],GRt=He.removeAllListeners,Zg=Symbol("kIdleSocketValidation"),NI=Symbol("kIdleSocketValidationTimeout"),uK=Symbol("kSocketUsed"),nK;function YRt(){let t=process.env.JEST_WORKER_ID?Tj():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(dTe())}catch{}return e||(e=new WebAssembly.Module(t||Tj())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onStatus(new QF(Zu.buffer,o,i))},wasm_on_message_begin:n=>(et(wn.ptr===n),wn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderField(new QF(Zu.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderValue(new QF(Zu.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(et(wn.ptr===n),wn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onBody(new QF(Zu.buffer,o,i))},wasm_on_message_complete:n=>(et(wn.ptr===n),wn.onMessageComplete())}})}var sK=null,wn=null,Zu=null,wF=0,$u=null,zRt=0,xx=1,xI=2|xx,xF=4|xx,aK=8|zRt,cK=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ma.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[FRt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?m+=`host: ${s}\r
`:m+=t[PRt],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[cv]&&!h[Si]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return oQe.sendHeaders.hasSubscribers&&oQe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?hQe(f,null,t,e,h,u,g,l):De.isBuffer(c)?hQe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?fQe(f,c.stream(),t,e,h,u,g,l):Lbt(f,c,t,e,h,u,g,l):De.isStream(c)?Mbt(f,c,t,e,h,u,g,l):De.isIterable(c)?fQe(f,c,t,e,h,u,g,l):He(!1),!0}function Mbt(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"stream body cannot be pipelined");let c=!1,A=new dv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new gQe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Wd]&&r[fn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function hQe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[NF]&&!h[ko]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let g=A[E+0],C=A[E+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)m+=`${g}: ${C[I]}\r
`;else m+=`${g}: ${C}\r
`}return uRe.sendHeaders.hasSubscribers&&uRe.sendHeaders.publish({request:e,headers:m,socket:h}),!c||d===0?gRe(f,null,t,e,h,u,m,l):He.isBuffer(c)?gRe(f,c,t,e,h,u,m,l):He.isBlobLike(c)?typeof c.stream=="function"?ERe(f,c.stream(),t,e,h,u,m,l):nDt(f,c,t,e,h,u,m,l):He.isStream(c)?rDt(f,c,t,e,h,u,m,l):He.isIterable(c)?ERe(f,c,t,e,h,u,m,l):et(!1),!0}function rDt(t,e,r,n,s,i,o,a){et(i!==0||r[jn]===0,"stream body cannot be pipelined");let c=!1,A=new RF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(m){He.destroy(this,m)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new yRe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,et(s.destroyed||s[Am]&&r[jn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(m){f=m}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?He.destroy(e,f):He.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function gRe(t,e,r,n,s,i,o,a){try{e?He.isBuffer(e)&&(et(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Si]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[ko]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(He(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[cl]()}catch(c){t(c)}}async function Lbt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(et(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[th]()}catch(c){t(c)}}async function nDt(t,e,r,n,s,i,o,a){et(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new jg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Si]=!0),r[cl]()}catch(c){t(c)}}async function fQe(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{He(c===null),s[Gs]?h(s[Gs]):c=d});s.on("close",A).on("drain",A);let l=new dv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Gs])throw s[Gs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var dv=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Wd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Gs])throw r[Gs];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[L7])throw new xg;process.emitWarning(new xg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Si]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ko]=!0),r[th]()}catch(c){t(c)}}async function ERe(t,e,r,n,s,i,o,a){et(i!==0||r[jn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{et(c===null),s[qi]?h(s[qi]):c=d});s.on("close",A).on("drain",A);let l=new RF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[qi])throw s[qi];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var RF=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Am]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[qi])throw r[qi];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[iK])throw new jg;process.emitWarning(new jg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ko]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[pr].timeout&&r[pr].timeoutType===kE&&r[pr].timeout.refresh&&r[pr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Wd]=!1,e[Gs])throw e[Gs];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===xI&&r[Yr].timeout.refresh&&r[Yr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Am]=!1,e[qi])throw e[qi];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[L7])throw new xg;process.emitWarning(new xg)}e[pr].timeout&&e[pr].timeoutType===kE&&e[pr].timeout.refresh&&e[pr].timeout.refresh(),n[cl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wd]=!1,e&&(He(n[fn]<=1,"pipeline should only contain this request"),s(e))}};CQe.exports=Sbt});var xQe=C((AQr,TQe)=>{"use strict";var ha=Q("node:assert"),{pipeline:Ubt}=Q("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:W7,RequestAbortedError:Pbt,SocketError:QQ,InformationalError:Jd,InvalidArgumentError:Obt}=Xe(),{kUrl:bQ,kReset:pv,kClient:Ao,kRunning:wQ,kPending:Hbt,kQueue:zd,kPendingIdx:z7,kRunningIdx:hc,kError:uo,kSocket:vr,kStrictContentLength:Gbt,kOnError:vE,kMaxConcurrentStreams:fv,kPingInterval:yQe,kHTTP2Session:Al,kHTTP2InitialWindowSize:qbt,kHTTP2ConnectionWindowSize:Ybt,kResume:xA,kSize:Vbt,kHTTPContext:j7,kClosed:J7,kBodyTimeout:Wbt,kEnableConnectProtocol:yQ,kRemoteSettings:BQ,kHTTP2Stream:hv,kHTTP2SessionState:K7}=Kt(),{channels:BQe}=qd(),da=Symbol("open streams"),bQe,gv;try{gv=Q("node:http2")}catch{gv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Jbt,HTTP2_HEADER_METHOD:QQe,HTTP2_HEADER_PATH:wQe,HTTP2_HEADER_SCHEME:q7,HTTP2_HEADER_CONTENT_LENGTH:zbt,HTTP2_HEADER_EXPECT:jbt,HTTP2_HEADER_STATUS:Y7,HTTP2_HEADER_PROTOCOL:Kbt,NGHTTP2_REFUSED_STREAM:$bt,NGHTTP2_CANCEL:Xbt}}=gv;function V7(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}function Zbt(t,e){t[vr]=e;let r=t[qbt],n=t[Ybt],s=gv.connect(t[bQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[fv],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[vr]=e,s[da]=0,s[Ao]=t,s[vr]=e,s[K7]={ping:{interval:t[yQe]===0?null:setInterval(nQt,t[yQe],s).unref()}},s[yQ]=!1,s[BQ]=!1,n&&ut.addListener(s,"connect",tQt.bind(s,n)),ut.addListener(s,"error",sQt),ut.addListener(s,"frameError",iQt),ut.addListener(s,"end",oQt),ut.addListener(s,"goaway",aQt),ut.addListener(s,"close",cQt),ut.addListener(s,"remoteSettings",rQt),s.unref(),t[Al]=s,e[Al]=s,ut.addListener(e,"error",uQt),ut.addListener(e,"end",lQt),ut.addListener(e,"close",AQt),e[J7]=!1,e.on("close",dQt),{version:"h2",defaultPipelining:1/0,write(i){return fQt(t,i)},resume(){eQt(t)},destroy(i,o){e[J7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[wQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[BQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[BQ]===!1;return!1}}}function eQt(t){let e=t[vr];e?.destroyed===!1&&(t[Vbt]===0||t[fv]===0?(e.unref(),t[Al].unref()):(e.ref(),t[Al].ref()))}function tQt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function rQt(t){if(this[Ao][fv]=t.maxConcurrentStreams??this[Ao][fv],this[BQ]===!0&&this[yQ]===!0&&t.enableConnectProtocol===!1){let e=new Jd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[vr][uo]=e,this[Ao][vE](e);return}this[yQ]=t.enableConnectProtocol??this[yQ],this[BQ]=!0,this[Ao][xA]()}function nQt(t){let e=t[K7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Ao],o=this[Ao];if(n!=null){let a=new Jd(`HTTP/2: "PING" errored - type ${n.message}`);o[uo]=a,i[vE](a)}else i.emit("ping",s)}}function sQt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vr][uo]=t,this[Ao][vE](t)}function iQt(t,e,r){if(r===0){let n=new Jd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vr][uo]=n,this[Ao][vE](n)}}function oQt(){let t=new QQ("other side closed",ut.getSocketInfo(this[vr]));this.destroy(t),ut.destroy(this[vr],t)}function aQt(t){let e=this[uo]||new QQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[vr])),r=this[Ao];if(r[vr]=null,r[j7]=null,this.close(),this[Al]=null,ut.destroy(this[vr],e),r[hc]<r[zd].length){let n=r[zd][r[hc]];r[zd][r[hc]++]=null,ut.errorRequest(r,n,e),r[z7]=r[hc]}ha(r[wQ]===0),r.emit("disconnect",r[bQ],[r],e),r.emit("connectionError",r[bQ],[r],e),r[xA]()}function cQt(){let{[Ao]:t,[K7]:e}=this,{[vr]:r}=t,n=this[vr][uo]||this[uo]||new QQ("closed",ut.getSocketInfo(r));if(t[vr]=null,t[j7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ha(t[Hbt]===0);let s=t[zd].splice(t[hc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function AQt(){let t=this[uo]||new QQ("closed",ut.getSocketInfo(this)),e=this[Al][Ao];e[vr]=null,e[j7]=null,this[Al]!==null&&this[Al].destroy(t),e[z7]=e[hc],ha(e[wQ]===0),e.emit("disconnect",e[bQ],[e],t),e[xA]()}function uQt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[uo]=t,this[Ao][vE](t)}function lQt(){ut.destroy(this,new QQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;BQe.sendHeaders.publish({request:e,headers:k,socket:n[vr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[jbt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[hv]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[hv]=!0,V()),++n[da],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[Y7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),V7(v),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[zd][t[hc]++]=null,t[xA]()):(m(new Jd("HTTP/2: stream half-closed (remote)")),t[zd][t[hc]++]=null,t[z7]=t[hc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[da]-=1,n[da]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Jd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Jd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[da]-=1,n[da]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?SQe(m,f,null,t,e,t[vr],y,I):ut.isBuffer(d)?SQe(m,f,d,t,e,t[vr],y,I):ut.isBlobLike(d)?typeof d.stream=="function"?NQe(m,f,d.stream(),t,e,t[vr],y,I):pQt(m,f,d,t,e,t[vr],y,I):ut.isStream(d)?gQt(m,t[vr],I,f,d,t,e,y):ut.isIterable(d)?NQe(m,f,d,t,e,t[vr],y,I):ha(!1)}}function SQe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ha(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[pv]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function gQt(t,e,r,n,s,i,o,a){ha(a!==0||i[wQ]===0,"stream body cannot be pipelined");let c=Ubt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[pv]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function pQt(t,e,r,n,s,i,o,a){ha(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new W7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[pv]=!0),n[xA]()}catch(c){t(c)}}async function NQe(t,e,r,n,s,i,o,a){ha(o!==0||n[wQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ha(c===null),i[uo]?d(i[uo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[uo])throw i[uo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[pv]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}TQe.exports=Zbt});var Xd=C((uQr,LQe)=>{"use strict";var ul=Q("node:assert"),vQe=Q("node:net"),SQ=Q("node:http"),_g=Ze(),{ClientStats:mQt}=qV(),{channels:_E}=qd(),EQt=JBe(),CQt=Qg(),{InvalidArgumentError:mr,InformationalError:IQt,ClientDestroyedError:yQt}=Xe(),BQt=wg(),{kUrl:RA,kServerName:$d,kClient:bQt,kBusy:X7,kConnect:QQt,kResuming:Fg,kRunning:RQ,kPending:DQ,kSize:NQ,kQueue:fc,kConnected:wQt,kConnecting:FE,kNeedDrain:Kd,kKeepAliveDefaultTimeout:RQe,kHostHeader:SQt,kPendingIdx:gc,kRunningIdx:dl,kError:NQt,kPipelining:mv,kKeepAliveTimeoutValue:TQt,kMaxHeadersSize:xQt,kKeepAliveMaxTimeout:RQt,kKeepAliveTimeoutThreshold:DQt,kHeadersTimeout:kQt,kBodyTimeout:vQt,kStrictContentLength:_Qt,kConnector:TQ,kMaxRequests:Z7,kCounter:FQt,kClose:MQt,kDestroy:LQt,kDispatch:UQt,kLocalAddress:xQ,kMaxResponseSize:PQt,kOnError:OQt,kHTTPContext:on,kMaxConcurrentStreams:HQt,kHTTP2InitialWindowSize:GQt,kHTTP2ConnectionWindowSize:qQt,kResume:ll,kPingInterval:YQt}=Kt(),VQt=IQe(),WQt=xQe(),jd=Symbol("kClosedResolve"),JQt=SQ&&SQ.maxHeaderSize&&Number.isInteger(SQ.maxHeaderSize)&&SQ.maxHeaderSize>0?()=>SQ.maxHeaderSize:()=>{throw new mr("http module not available or http.maxHeaderSize invalid")},DQe=()=>{};function _Qe(t){return t[mv]??t[on]?.defaultPipelining??1}var eW=class extends CQt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:Z,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new mr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new mr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new mr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[vQt]=a??3e5,this[kQt]=n??3e5,this[_Qt]=m??!0,this[Z7]=B,this[jd]=null,this[PQt]=V>-1?V:-1,this[on]=null,this[HQt]=v??100,this[GQt]=te??262144,this[qQt]=ce??524288,this[YQt]=ue??6e4,this[fc]=[],this[dl]=0,this[gc]=0,this[ll]=ke=>tW(this,ke),this[OQt]=ke=>FQe(this,ke)}get pipelining(){return this[mv]}set pipelining(e){this[mv]=e,this[ll](!0)}get stats(){return new mQt(this)}get[DQ](){return this[fc].length-this[gc]}get[RQ](){return this[gc]-this[dl]}get[NQ](){return this[fc].length-this[dl]}get[wQt](){return!!this[on]&&!this[FE]&&!this[on].destroyed}get[X7](){return!!(this[on]?.busy(null)||this[NQ]>=(_Qe(this)||1)||this[DQ]>0)}[QQt](e){MQe(this),this.once("connect",e)}[UQt](e,r){let n=new EQt(this[RA].origin,e,r);return this[fc].push(n),this[Fg]||(_g.bodyLength(n.body)==null&&_g.isIterable(n.body)?(this[Fg]=1,queueMicrotask(()=>tW(this))):this[ll](!0)),this[Fg]&&this[Kd]!==2&&this[X7]&&(this[Kd]=2),this[Kd]<2}[MQt](){return new Promise(e=>{this[NQ]?this[jd]=e:e(null)})}[LQt](e){return new Promise(r=>{let n=this[fc].splice(this[gc]);for(let i=0;i<n.length;i++){let o=n[i];_g.errorRequest(this,o,e)}let s=()=>{this[jd]&&(this[jd](),this[jd]=null),r(null)};this[on]?(this[on].destroy(e,s),this[on]=null):queueMicrotask(s),this[ll]()})}};function FQe(t,e){if(t[RQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ul(t[gc]===t[dl]);let r=t[fc].splice(t[dl]);for(let n=0;n<r.length;n++){let s=r[n];_g.errorRequest(t,s,e)}ul(t[NQ]===0)}}function MQe(t){ul(!t[FE]),ul(!t[on]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");ul(i!==-1);let o=r.substring(1,i);ul(vQe.isIPv6(o)),r=o}t[FE]=!0,_E.beforeConnect.hasSubscribers&&_E.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[$d],localAddress:t[xQ]},connector:t[TQ]});try{t[TQ]({host:e,hostname:r,protocol:n,port:s,servername:t[$d],localAddress:t[xQ]},(i,o)=>{if(i){$7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ll]();return}if(t.destroyed){_g.destroy(o.on("error",DQe),new yQt),t[ll]();return}ul(o);try{t[on]=o.alpnProtocol==="h2"?WQt(t,o):VQt(t,o)}catch(a){o.destroy().on("error",DQe),$7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[ll]();return}t[FE]=!1,o[FQt]=0,o[Z7]=t[Z7],o[bQt]=t,o[NQt]=null,_E.connected.hasSubscribers&&_E.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[$d],localAddress:t[xQ]},connector:t[TQ],socket:o}),t.emit("connect",t[RA],[t]),t[ll]()})}catch(i){$7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ll]()}}function $7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[FE]=!1,_E.connectError.hasSubscribers&&_E.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[on]?.version,servername:t[$d],localAddress:t[xQ]},connector:t[TQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ul(t[RQ]===0);t[DQ]>0&&t[fc][t[gc]].servername===t[$d];){let o=t[fc][t[gc]++];_g.errorRequest(t,o,e)}else FQe(t,e);t.emit("connectionError",t[RA],[t],e)}}function kQe(t){t[Kd]=0,t.emit("drain",t[RA],[t])}function tW(t,e){t[Fg]!==2&&(t[Fg]=2,zQt(t,e),t[Fg]=0,t[dl]>256&&(t[fc].splice(0,t[dl]),t[gc]-=t[dl],t[dl]=0))}function zQt(t,e){for(;;){if(t.destroyed){ul(t[DQ]===0);return}if(t[jd]&&!t[NQ]){t[jd](),t[jd]=null;return}if(t[on]&&t[on].resume(),t[X7])t[Kd]=2;else if(t[Kd]===2){e?(t[Kd]=1,queueMicrotask(()=>kQe(t))):kQe(t);continue}if(t[DQ]===0||t[RQ]>=(_Qe(t)||1))return;let r=t[fc][t[gc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[$d]!==r.servername){if(t[RQ]>0)return;t[$d]=r.servername,t[on]?.destroy(new IQt("servername changed"),()=>{t[on]=null,tW(t)})}if(t[FE])return;if(!t[on]){MQe(t);return}if(t[on].destroyed||t[on].busy(r))return;!r.aborted&&t[on].write(r)?t[gc]++:t[fc].splice(t[gc],1)}}LQe.exports=eW});var rW=C((dQr,UQe)=>{"use strict";var Ev=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};UQe.exports=class{constructor(){this.head=this.tail=new Ev}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Ev),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var Cv=C((hQr,JQe)=>{"use strict";var{PoolStats:jQt}=qV(),KQt=Qg(),$Qt=rW(),{kConnected:nW,kSize:PQe,kRunning:OQe,kPending:HQe,kQueued:kQ,kBusy:XQt,kFree:ZQt,kUrl:ewt,kClose:twt,kDestroy:rwt,kDispatch:nwt}=Kt(),zn=Symbol("clients"),qs=Symbol("needDrain"),vQ=Symbol("queue"),sW=Symbol("closed resolve"),iW=Symbol("onDrain"),GQe=Symbol("onConnect"),qQe=Symbol("onDisconnect"),YQe=Symbol("onConnectionError"),oW=Symbol("get dispatcher"),VQe=Symbol("add client"),WQe=Symbol("remove client"),aW=class extends KQt{[vQ]=new $Qt;[kQ]=0;[zn] Line truncated
`,"latin1"),r!==null&&s!==r){if(n[iK])throw new jg;process.emitWarning(new jg)}e[Yr].timeout&&e[Yr].timeoutType===xI&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[th]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Am]=!1,e&&(et(n[jn]<=1,"pipeline should only contain this request"),s(e))}};bRe.exports=WRt});var vRe=y((XFr,kRe)=>{"use strict";var wc=Q("node:assert"),{pipeline:sDt}=Q("node:stream"),Rt=ht(),{RequestContentLengthMismatchError:fK,RequestAbortedError:iDt,SocketError:Px,InformationalError:um,InvalidArgumentError:oDt,HeadersTimeoutError:aDt,BodyTimeoutError:cDt}=At(),{kUrl:vx,kReset:vF,kClient:pa,kRunning:Mx,kPending:ADt,kQueue:Rx,kPendingIdx:$g,kRunningIdx:el,kError:ga,kSocket:An,kStrictContentLength:uDt,kOnError:SI,kMaxConcurrentStreams:mK,kPingInterval:wRe,kHTTP2Session:rh,kHTTP2InitialWindowSize:lDt,kHTTP2ConnectionWindowSize:dDt,kResume:tl,kSize:hDt,kHTTPContext:gK,kClosed:pK,kBodyTimeout:fDt,kHeadersTimeout:mDt,kEnableConnectProtocol:Dx,kRemoteSettings:kx,kHTTP2Stream:DF,kHTTP2SessionState:EK}=br(),{channels:NRe}=om(),Qc=Symbol("open streams"),xRe,kF;try{kF=Q("node:http2")}catch{kF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:pDt,HTTP2_HEADER_METHOD:SRe,HTTP2_HEADER_PATH:TRe,HTTP2_HEADER_SCHEME:lK,HTTP2_HEADER_CONTENT_LENGTH:gDt,HTTP2_HEADER_EXPECT:EDt,HTTP2_HEADER_STATUS:dK,HTTP2_HEADER_PROTOCOL:yDt,NGHTTP2_REFUSED_STREAM:CDt,NGHTTP2_CANCEL:IDt}}=kF;function hK(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}function BDt(t,e){t[An]=e;let r=t[lDt],n=t[dDt],s=kF.connect(t[vx],{createConnection:()=>e,peerMaxConcurrentStreams:t[mK],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[An]=e,s[Qc]=0,s[pa]=t,s[An]=e,s[EK]={ping:{interval:t[wRe]===0?null:setInterval(NDt,t[wRe],s).unref()}},s[Dx]=!1,s[kx]=!1,n&&Rt.addListener(s,"connect",QDt.bind(s,n)),Rt.addListener(s,"error",xDt),Rt.addListener(s,"frameError",SDt),Rt.addListener(s,"end",TDt),Rt.addListener(s,"goaway",RDt),Rt.addListener(s,"close",DDt),Rt.addListener(s,"remoteSettings",wDt),s.unref(),t[rh]=s,e[rh]=s,Rt.addListener(e,"error",vDt),Rt.addListener(e,"end",PDt),Rt.addListener(e,"close",kDt),e[pK]=!1,e.on("close",MDt),{version:"h2",defaultPipelining:1/0,write(i){return LDt(t,i)},resume(){bDt(t)},destroy(i,o){e[pK]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Mx]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[kx]===!1||Rt.bodyLength(i.body)!==0&&(Rt.isStream(i.body)||Rt.isAsyncIterable(i.body)||Rt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[kx]===!1;return!1}}}function bDt(t){let e=t[An];e?.destroyed===!1&&(t[hDt]===0?(e.unref(),t[rh].unref()):(e.ref(),t[rh].ref()))}function QDt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function wDt(t){if(this[pa][mK]=t.maxConcurrentStreams??this[pa][mK],this[kx]===!0&&this[Dx]===!0&&t.enableConnectProtocol===!1){let e=new um("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[An][ga]=e,this[pa][SI](e);return}this[Dx]=t.enableConnectProtocol??this[Dx],this[kx]=!0,this[pa][tl]()}function NDt(t){let e=t[EK];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[pa],o=this[pa];if(n!=null){let a=new um(`HTTP/2: "PING" errored - type ${n.message}`);o[ga]=a,i[SI](a)}else i.emit("ping",s)}}function xDt(t){wc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[An][ga]=t,this[pa][SI](t)}function SDt(t,e,r){if(r===0){let n=new um(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[An][ga]=n,this[pa][SI](n)}}function TDt(){let t=new Px("other side closed",Rt.getSocketInfo(this[An]));this.destroy(t),Rt.destroy(this[An],t)}function Tx(t,e,r=!1){let n=t[Rx],s=t[el];if(s<t[$g]&&n[s]===e){n[s]=null,t[el]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[$g]||(n.splice(i,1),t[$g]--,r&&t[$g]<t[el]&&(t[$g]=t[el]))}function RDt(t){let e=this[ga]||new Px(`HTTP/2: "GOAWAY" frame received with code ${t}`,Rt.getSocketInfo(this[An])),r=this[pa];if(r[An]=null,r[gK]=null,this.close(),this[rh]=null,Rt.destroy(this[An],e),r[el]<r[Rx].length){let n=r[Rx][r[el]];r[Rx][r[el]++]=null,n!=null&&Rt.errorRequest(r,n,e),r[$g]=r[el]}wc(r[Mx]===0),r.emit("disconnect",r[vx],[r],e),r.emit("connectionError",r[vx],[r],e),r[tl]()}function DDt(){let{[pa]:t,[EK]:e}=this,{[An]:r}=t,n=this[An][ga]||this[ga]||new Px("closed",Rt.getSocketInfo(r));if(t[An]=null,t[gK]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){wc(t[ADt]===0);let s=t[Rx].splice(t[el]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&Rt.errorRequest(t,o,n)}}}function kDt(){let t=this[ga]||new Px("closed",Rt.getSocketInfo(this)),e=this[rh][pa];e[An]=null,e[gK]=null,this[rh]!==null&&this[ Line truncated
`;NRe.sendHeaders.publish({request:e,headers:H,socket:s[An]})}let M=i==="GET"||i==="HEAD"||h===null;A?(f[EDt]="100-continue",m=s.request(f,{endStream:M,signal:u}),m[DF]=!0,m.once("continue",F)):(m=s.request(f,{endStream:M,signal:u}),m[DF]=!0,F()),++s[Qc],m.setTimeout(r);let J=!1;return m.once("response",H=>{let{[dK]:k,...j}=H;if(e.onResponseStarted(),J=!0,m.setTimeout(n),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(k),hK(j),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",$=>{e.aborted||e.completed||e.onData($)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),J?(!e.aborted&&!e.completed&&e.onComplete({}),Tx(t,e),t[tl]()):(C(new um("HTTP/2: stream half-closed (remote)")),Tx(t,e,!0),t[tl]())}),m.once("close",()=>{m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),!e.aborted&&!e.completed&&C(new um("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(H){m.removeAllListeners("data"),C(H)}),m.once("frameError",(H,k)=>{m.removeAllListeners("data"),C(new um(`HTTP/2: "frameError" received - type ${H}, code ${k}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let H=J?new cDt(`HTTP/2: "body timeout after ${n}"`):new aDt(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),C(H)}),m.once("trailers",H=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(H))}),!0;function F(){!h||B===0?RRe(C,m,null,t,e,t[An],B,I):Rt.isBuffer(h)?RRe(C,m,h,t,e,t[An],B,I):Rt.isBlobLike(h)?typeof h.stream=="function"?DRe(C,m,h.stream(),t,e,t[An],B,I):UDt(C,m,h,t,e,t[An],B,I):Rt.isStream(h)?_Dt(C,t[An],I,m,h,t,e,B):Rt.isIterable(h)?DRe(C,m,h,t,e,t[An],B,I):wc(!1)}}function RRe(t,e,r,n,s,i,o,a){try{r!=null&&Rt.isBuffer(r)&&(wc(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[vF]=!0),s.onRequestSent(),n[tl]()}catch(c){t(c)}}function _Dt(t,e,r,n,s,i,o,a){wc(a!==0||i[Mx]===0,"stream body cannot be pipelined");let c=sDt(s,n,u=>{u?(Rt.destroy(c,u),t(u)):(Rt.removeAllListeners(c),o.onRequestSent(),r||(e[vF]=!0),i[tl]())});Rt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function UDt(t,e,r,n,s,i,o,a){wc(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new fK;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[vF]=!0),n[tl]()}catch(c){t(c)}}async function DRe(t,e,r,n,s,i,o,a){wc(o!==0||n[Mx]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{wc(c===null),i[ga]?d(i[ga]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[ga])throw i[ga];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[vF]=!0),n[tl]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}kRe.exports=BDt});var fm=y((ZFr,HRe)=>{"use strict";var nh=Q("node:assert"),LRe=Q("node:net"),Fx=Q("node:http"),eE=ht(),{ClientStats:ODt}=lj(),{channels:TI}=om(),HDt=X1e(),qDt=Yg(),{InvalidArgumentError:zr,InformationalError:GDt,ClientDestroyedError:YDt}=At(),zDt=zg(),{kUrl:rl,kServerName:hm,kClient:WDt,kBusy:CK,kConnect:JDt,kResuming:tE,kRunning:Ox,kPending:Hx,kSize:Lx,kQueue:RA,kConnected:VDt,kConnecting:RI,kNeedDrain:dm,kKeepAliveDefaultTimeout:PRe,kHostHeader:jDt,kPendingIdx:DA,kRunningIdx:ih,kError:KDt,kPipelining:PF,kKeepAliveTimeoutValue:XDt,kMaxHeadersSize:ZDt,kKeepAliveMaxTimeout:$Dt,kKeepAliveTimeoutThreshold:e2t,kHeadersTimeout:t2t,kBodyTimeout:r2t,kStrictContentLength:n2t,kConnector:_x,kMaxRequests:IK,kCounter:s2t,kClose:i2t,kDestroy:o2t,kDispatch:a2t,kLocalAddress:Ux,kMaxResponseSize:c2t,kOnError:A2t,kHTTPContext:On,kMaxConcurrentStreams:u2t,kHTTP2InitialWindowSize:l2t,kHTTP2ConnectionWindowSize:d2t,kResume:sh,kPingInterval:h2t}=br(),f2t=QRe(),m2t=vRe(),lm=Symbol("kClosedResolve"),p2t=Fx&&Fx.maxHeaderSize&&Number.isInteger(Fx.maxHeaderSize)&&Fx.maxHeaderSize>0?()=>Fx.maxHeaderSize:()=>{throw new zr("http module not available or http.maxHeaderSize invalid")},MRe=()=>{};function _Re(t){return t[PF]??t[On]?.defaultPipelining??1}var BK=class extends qDt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:m,tls:E,strictContentLength:g,maxCachedSessions:C,connect:I,maxRequestsPerClient:B,localAddress:M,maxResponseSize:J,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:k,allowH2:j,useH2c:$,initialWindowSize:ne,connectionWindowSize:le,pingInterval:fe,webSocket:Ve}={}){if(A!==void 0)throw new zr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new zr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new zr("unsupported requestTimeout, use headersTimeout & Line truncated
`,this[r2t]=a??3e5,this[t2t]=n??3e5,this[n2t]=g??!0,this[IK]=B,this[lm]=null,this[c2t]=J>-1?J:-1,this[On]=null,this[u2t]=k??100,this[l2t]=ne??262144,this[d2t]=le??524288,this[h2t]=fe??6e4,this[RA]=[],this[ih]=0,this[DA]=0,this[sh]=ze=>bK(this,ze),this[A2t]=ze=>URe(this,ze)}get pipelining(){return this[PF]}set pipelining(e){this[PF]=e,this[sh](!0)}get stats(){return new ODt(this)}get[Hx](){return this[RA].length-this[DA]}get[Ox](){return this[DA]-this[ih]}get[Lx](){return this[RA].length-this[ih]}get[VDt](){return!!this[On]&&!this[RI]&&!this[On].destroyed}get[CK](){return!!(this[On]?.busy(null)||this[Lx]>=(_Re(this)||1)||this[Hx]>0)}[JDt](e){ORe(this),this.once("connect",e)}[a2t](e,r){let n=new HDt(this[rl].origin,e,r);return this[RA].push(n),this[tE]||(eE.bodyLength(n.body)==null&&eE.isIterable(n.body)?(this[tE]=1,queueMicrotask(()=>bK(this))):this[sh](!0)),this[tE]&&this[dm]!==2&&this[CK]&&(this[dm]=2),this[dm]<2}[i2t](){return new Promise(e=>{this[Lx]?this[lm]=e:e(null)})}[o2t](e){return new Promise(r=>{let n=this[RA].splice(this[DA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&eE.errorRequest(this,o,e)}let s=()=>{this[lm]&&(this[lm](),this[lm]=null),r(null)};this[On]?(this[On].destroy(e,s),this[On]=null):queueMicrotask(s),this[sh]()})}};function URe(t,e){if(t[Ox]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){nh(t[DA]===t[ih]);let r=t[RA].splice(t[ih]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&eE.errorRequest(t,s,e)}nh(t[Lx]===0)}}function ORe(t){nh(!t[RI]),nh(!t[On]);let{host:e,hostname:r,protocol:n,port:s}=t[rl];if(r[0]==="["){let i=r.indexOf("]");nh(i!==-1);let o=r.substring(1,i);nh(LRe.isIPv6(o)),r=o}t[RI]=!0,TI.beforeConnect.hasSubscribers&&TI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[hm],localAddress:t[Ux]},connector:t[_x]});try{t[_x]({host:e,hostname:r,protocol:n,port:s,servername:t[hm],localAddress:t[Ux]},(i,o)=>{if(i){yK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[sh]();return}if(t.destroyed){eE.destroy(o.on("error",MRe),new YDt),t[sh]();return}nh(o);try{t[On]=o.alpnProtocol==="h2"?m2t(t,o):f2t(t,o)}catch(a){o.destroy().on("error",MRe),yK(t,a,{host:e,hostname:r,protocol:n,port:s}),t[sh]();return}t[RI]=!1,o[s2t]=0,o[IK]=t[IK],o[WDt]=t,o[KDt]=null,TI.connected.hasSubscribers&&TI.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[hm],localAddress:t[Ux]},connector:t[_x],socket:o}),t.emit("connect",t[rl],[t]),t[sh]()})}catch(i){yK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[sh]()}}function yK(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[RI]=!1,TI.connectError.hasSubscribers&&TI.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[On]?.version,servername:t[hm],localAddress:t[Ux]},connector:t[_x],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(nh(t[Ox]===0);t[Hx]>0&&t[RA][t[DA]].servername===t[hm];){let o=t[RA][t[DA]++];eE.errorRequest(t,o,e)}else URe(t,e);t.emit("connectionError",t[rl],[t],e)}}function FRe(t){t[dm]=0,t.emit("drain",t[rl],[t])}function bK(t,e){t[tE]!==2&&(t[tE]=2,g2t(t,e),t[tE]=0,t[ih]>256&&(t[RA].splice(0,t[ih]),t[DA]-=t[ih],t[ih]=0))}function g2t(t,e){for(;;){if(t.destroyed){nh(t[Hx]===0);return}if(t[lm]&&!t[Lx]){t[lm](),t[lm]=null;return}if(t[On]&&t[On].resume(),t[CK])t[dm]=2;else if(t[dm]===2){e?(t[dm]=1,queueMicrotask(()=>FRe(t))):FRe(t);continue}if(t[Hx]===0||t[Ox]>=(_Re(t)||1))return;let r=t[RA][t[DA]];if(r===null)return;if(t[rl].protocol==="https:"&&t[hm]!==r.servername){if(t[Ox]>0)return;t[hm]=r.servername,t[On]?.destroy(new GDt("servername changed"),()=>{t[On]=null,bK(t)})}if(t[RI])return;if(!t[On]){ORe(t);return}if(t[On].destroyed||t[On].busy(r))return;!r.aborted&&t[On].write(r)?t[DA]++:t[RA].splice(t[DA],1)}}HRe.exports=BK});var QK=y((eLr,qRe)=>{"use strict";var MF=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};qRe.exports=class{constructor(){this.head=this.tail=new MF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new MF),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var FF=y((tLr,XRe)=>{"use strict";var{PoolStats:E2t}=lj(),y2t=Yg(),C2t=QK(),{kConnected:wK,kSize:GRe,kRunning:YRe,kPending:zRe,kQueued:qx,kBusy:I2t,kFree:B2t,kUrl:b2t,kClose:Q2t,kDestroy:w2t,kDispatch:N2t}=br(),Ms=Symbol("clients"),Gi=Symbol("needDrain"),Gx=Symbol("queue"),NK=Symbol("closed resolve"),xK=Symbol("onDrain"),WRe=Symbol("onConnect"),JRe=Symbol("onDisconnect"),VRe=Symbol("onConnectionError"),SK=Symbol("get dispatcher"),jRe=Symbol("add client"),KRe=Symbol("remove client"),TK=class extends y2t{[Gx]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};ESe.exports=wJ});var NJ=C((YQr,BSe)=>{"use strict";var{InvalidArgumentError:ZSt}=Xe(),{runtimeFeatures:eNt}=ol();function tNt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var CSe=eNt.has("crypto")?Q("node:crypto"):null,rNt=CSe?.hash?t=>CSe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function ySe(t){return Array.isArray(t)&&(t.length&1)===0}function nNt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function sNt(t){let e={};if(!t)return e;if(ySe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var ISe=["record","playback","update"];function iNt(t){if(!ISe.includes(t))throw new ZSt(`Invalid snapshot mode: ${t}. Must be one of: ${ISe.join(", ")}`)}BSe.exports={createHeaderFilters:tNt,hashId:rNt,isUndiciHeaders:ySe,normalizeHeaders:sNt,isUrlExcludedFactory:nNt,validateSnapshotMode:iNt}});var DSe=C((VQr,RSe)=>{"use strict";var{writeFile:oNt,readFile:aNt,mkdir:cNt}=Q("node:fs/promises"),{dirname:ANt,resolve:bSe}=Q("node:path"),{setTimeout:uNt,clearTimeout:QSe}=Q("node:timers"),{InvalidArgumentError:wSe,UndiciError:lNt}=Xe(),{hashId:dNt,isUrlExcludedFactory:hNt,normalizeHeaders:SSe,createHeaderFilters:NSe}=NJ();function VQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||SSe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:TSe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function TSe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function xSe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function WQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return dNt(r)}var TJ=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#c=NSe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=hNt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=VQ(e,this.#c,this.matchOptions),s=WQ(n),i=SSe(r.headers),o={statusCode:r.statusCode,headers:xSe(i,this.#c,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=VQ(e,this.#c,this.matchOptions),n=WQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new wSe("Snapshot path is required");try{let n=await aNt(bSe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new lNt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new wSe("Snapshot path is required");let n=bSe(r);await cNt(ANt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await oNt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};Bke.exports=JX});var jX=y((kLr,Nke)=>{"use strict";var{InvalidArgumentError:BPt}=At(),{runtimeFeatures:bPt}=$d();function QPt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var bke=bPt.has("crypto")?Q("node:crypto"):null,wPt=bke?.hash?t=>bke.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function wke(t){return Array.isArray(t)&&(t.length&1)===0}function NPt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function xPt(t){let e={};if(!t)return e;if(wke(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var Qke=["record","playback","update"];function SPt(t){if(!Qke.includes(t))throw new BPt(`Invalid snapshot mode: ${t}. Must be one of: ${Qke.join(", ")}`)}Nke.exports={createHeaderFilters:QPt,hashId:wPt,isUndiciHeaders:wke,normalizeHeaders:xPt,isUrlExcludedFactory:NPt,validateSnapshotMode:SPt}});var Mke=y((vLr,Pke)=>{"use strict";var{writeFile:TPt,readFile:RPt,mkdir:DPt}=Q("node:fs/promises"),{dirname:kPt,resolve:xke}=Q("node:path"),{setTimeout:vPt,clearTimeout:Ske}=Q("node:timers"),{InvalidArgumentError:Tke,UndiciError:PPt}=At(),{hashId:MPt,isUrlExcludedFactory:FPt,normalizeHeaders:Rke,createHeaderFilters:Dke}=jX();function rS(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Rke(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:kke(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function kke(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function vke(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function nS(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return MPt(r)}var KX=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Dke(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=FPt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=rS(e,this.#a,this.matchOptions),s=nS(n),i=Rke(r.headers),o={statusCode:r.statusCode,headers:vke(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=rS(e,this.#a,this.matchOptions),n=nS(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new Tke("Snapshot path is required");try{let n=await RPt(xke(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new PPt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Tke("Snapshot path is required");let n=xke(r);await DPt(kPt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await TPt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ho} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ya} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +132,8 @@ ${e.format(r)}`.trim())}};ESe.exports=wJ});var NJ=C((YQr,BSe)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ho}_getValuesQuery ON cacheInterceptorV${ho}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ho}_deleteByUrlQuery ON cacheInterceptorV${ho}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ya}_getValuesQuery ON cacheInterceptorV${ya}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ya}_deleteByUrlQuery ON cacheInterceptorV${ya}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +147,14 @@ ${e.format(r)}`.trim())}};ESe.exports=wJ});var NJ=C((YQr,BSe)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${ho}
FROM cacheInterceptorV${ya}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${ho} SET
UPDATE cacheInterceptorV${ya} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -168,7 +167,7 @@ ${e.format(r)}`.trim())}};ESe.exports=wJ});var NJ=C((YQr,BSe)=>{"use strict";var
WHERE
id = ?
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ho} (
INSERT INTO cacheInterceptorV${ya} (
url,
method,
body,
@@ -182,91 +181,91 @@ ${e.format(r)}`.trim())}};ESe.exports=wJ});var NJ=C((YQr,BSe)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ho} WHERE url = ?`),this.#a=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ho}`),this.#c=this.#n.prepare(`DELETE FROM cacheInterceptorV${ho} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ho}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ya} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ya}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ya} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ya}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${ho}
FROM cacheInterceptorV${ya}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){rz(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){rz(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){rz(e),pxt(r);let n=0,s=[],i=this;return new gxt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#c.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#a.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!mxt(s[l],u[l])){A=!1;break}}if(A)return c}}};function mxt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Xg=C((hwr,ZNe)=>{"use strict";var{kConstruct:Ext}=Kt(),{kEnumerableProperty:ZE}=Ze(),{iteratorMixin:Cxt,isValidHeaderName:ZQ,isValidHeaderValue:zNe}=ao(),{webidl:wt}=ns(),sz=Q("node:assert"),Kv=Q("node:util");function JNe(t){return t===10||t===13||t===9||t===32}function jNe(t){let e=0,r=t.length;for(;r>e&&JNe(t.charCodeAt(r-1));)--r;for(;r>e&&JNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function KNe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});iz(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)iz(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function iz(t,e,r){if(r=jNe(r),ZQ(e)){if(!zNe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(XNe(t)==="immutable")throw new TypeError("immutable");return Xv(t).append(e,r,!1)}function Ixt(t){let e=Xv(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function $Ne(t,e){return t[0]<e[0]?-1:1}var $v=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":sRe(i)&&(r[s]=i);break;case"id":iRe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&sRe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&iRe(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}}};oRe.exports={EventSourceStream:Vz}});var gRe=C((Uwr,fRe)=>{"use strict";var{pipeline:Mkt}=Q("node:stream"),{fetching:Lkt}=sw(),{makeRequest:Ukt}=tC(),{webidl:Vs}=ns(),{EventSourceStream:Pkt}=aRe(),{parseMIMEType:Okt}=Aa(),{createFastMessageEvent:Hkt}=b_(),{isNetworkError:cRe}=tw(),{kEnumerableProperty:op}=Ze(),{environmentSettingsObject:ARe}=ao(),uRe=!1,lRe=3e3,lw=0,dRe=1,dw=2,Gkt="anonymous",qkt="use-credentials",lC=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=lw;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),Vs.util.markAsUncloneable(this);let n="EventSource constructor";Vs.argumentLengthCheck(arguments,1,n),uRe||(uRe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Vs.converters.USVString(e),r=Vs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=ARe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Gkt;r.withCredentials===!0&&(o=qkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ARe.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=Ukt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===dw)return;this.#r=lw;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!cRe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cRe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Okt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=dRe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Pkt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Hkt(c.type,c.options))}});Mkt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Lkt(e)}#A(){this.#r!==dw&&(this.#r=lw,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===lw&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){Vs.brandCheck(this,t),this.#r!==dw&&(this.#r=dw,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},hRe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:lw,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dRe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:dw,writable:!1}};Object.defineProperties(lC,hRe);Object.defineProperties(lC.prototype,hRe);Object.defineProperties(lC.prototype,{close:op,onerror:op,onmessage:op,onopen:op,readyState:op,url:op,withCredentials:op});Vs.converters.EventSourceInitDict=Vs.dictionaryConverter([{key:"withCredentials",converter:Vs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Vs.converters.any},{key:"node",converter:Vs.dictionaryConverter([{key:"reconnectionTime",converter:Vs.converters["unsigned long"],defaultValue:()=>lRe},{key:"dispatcher",converter:Vs.converters.any}]),defaultValue:()=>({})}]);fRe.exports={EventSource:lC,defaultReconnectionTime:lRe}});var yRe=C((Pwr,pe)=>{"use strict";var Ykt=Xd(),mRe=uQ(),Vkt=Mg(),Wkt=twe(),Jkt=iwe(),zkt=Pg(),jkt=xW(),Kkt=wW(),$kt=Ywe(),Xkt=$we(),Zkt=e1e(),ERe=Xe(),M_=Ze(),{InvalidArgumentError:F_}=ERe,dC=F1e(),evt=wg(),tvt=fJ(),{MockCallHistory:rv Line truncated
`)}close(){this.#n.close()}get(e){wZ(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){wZ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){wZ(e),OFt(r);let n=0,s=[],i=this;return new UFt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!HFt(s[l],u[l])){A=!1;break}}if(A)return c}}};function HFt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var IE=y((t_r,iPe)=>{"use strict";var{kConstruct:qFt}=br(),{kEnumerableProperty:WI}=ht(),{iteratorMixin:GFt,isValidHeaderName:cS,isValidHeaderValue:ePe}=fa(),{webidl:jt}=Xs(),xZ=Q("node:assert"),fL=Q("node:util");function $ve(t){return t===10||t===13||t===9||t===32}function tPe(t){let e=0,r=t.length;for(;r>e&&$ve(t.charCodeAt(r-1));)--r;for(;r>e&&$ve(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function rPe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw jt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});SZ(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)SZ(t,r[n],e[r[n]])}else throw jt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function SZ(t,e,r){if(r=tPe(r),cS(e)){if(!ePe(r))throw jt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw jt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(sPe(t)==="immutable")throw new TypeError("immutable");return pL(t).append(e,r,!1)}function YFt(t){let e=pL(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function nPe(t,e){return t[0]<e[0]?-1:1}var mL=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${o}`;return}if($L(e,s,l3t)){d3t(e,i)&&(r.retry=e.toString("utf8",i));return}if($L(e,s,u3t)){h3t(e,i)&&(r.id=e.toString("utf8",i));return}if($L(e,s,A3t)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&s3t(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&i3t(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===sB[0]||(this.checkBOM=!1),!0):n===void 0?e===sB[0]&&r===sB[1]?!0:(this.checkBOM=!1,!1):(e===sB[0]&&r===sB[1]&&n===sB[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};uFe.exports={EventSourceStream:f$}});var yFe=y((N_r,EFe)=>{"use strict";var{pipeline:f3t}=Q("node:stream"),{fetching:m3t}=hS(),{makeRequest:p3t}=VI(),{webidl:zi}=Xs(),{EventSourceStream:g3t}=lFe(),{parseMIMEType:E3t}=Ic(),{createFastMessageEvent:y3t}=HL(),{isNetworkError:dFe}=uS(),{kEnumerableProperty:TE}=ht(),{environmentSettingsObject:hFe}=fa(),fFe=!1,mFe=3e3,CS=0,pFe=1,IS=2,C3t="anonymous",I3t="use-credentials",iB=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=CS;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),zi.util.markAsUncloneable(this);let n="EventSource constructor";zi.argumentLengthCheck(arguments,1,n),fFe||(fFe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=zi.converters.USVString(e),r=zi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=hFe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=C3t;r.withCredentials===!0&&(o=I3t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=hFe.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=p3t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===IS)return;this.#r=CS;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!dFe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(dFe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?E3t(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=pFe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new g3t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(y3t(c.type,c.options))}});f3t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=m3t(e)}#A(){this.#r!==IS&&(this.#r=CS,this.dispatchEvent(new Event("error")),setTime Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return hvt(e,r).catch(n=>{throw pRe?IRe(n,pRe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Xg().Headers;pe.exports.Response=tw().Response;pe.exports.Request=tC().Request;pe.exports.FormData=sv().FormData;var{setGlobalOrigin:fvt,getGlobalOrigin:gvt}=u7();pe.exports.setGlobalOrigin=fvt;pe.exports.getGlobalOrigin=gvt;var{CacheStorage:pvt}=rxe(),{kConstruct:mvt}=Kt();pe.exports.caches=new pvt(mvt);var{deleteCookie:Evt,getCookies:Cvt,getSetCookies:Ivt,setCookie:yvt,parseCookie:Bvt}=fxe();pe.exports.deleteCookie=Evt;pe.exports.getCookies=Cvt;pe.exports.getSetCookies=Ivt;pe.exports.setCookie=yvt;pe.exports.parseCookie=Bvt;var{parseMIMEType:bvt,serializeAMimeType:Qvt}=Aa();pe.exports.parseMIMEType=bvt;pe.exports.serializeAMimeType=Qvt;var{CloseEvent:wvt,ErrorEvent:Svt,MessageEvent:Nvt}=b_(),{WebSocket:Tvt,ping:xvt}=Jxe();pe.exports.WebSocket=Tvt;pe.exports.CloseEvent=wvt;pe.exports.ErrorEvent=Svt;pe.exports.MessageEvent=Nvt;pe.exports.ping=xvt;pe.exports.WebSocketStream=tRe().WebSocketStream;pe.exports.WebSocketError=Oz().WebSocketError;pe.exports.request=hw(dC.request);pe.exports.stream=hw(dC.stream);pe.exports.pipeline=hw(dC.pipeline);pe.exports.connect=hw(dC.connect);pe.exports.upgrade=hw(dC.upgrade);pe.exports.MockClient=tvt;pe.exports.MockCallHistory=rvt;pe.exports.MockCallHistoryLog=nvt;pe.exports.MockPool=ivt;pe.exports.MockAgent=svt;pe.exports.SnapshotAgent=ovt;pe.exports.mockErrors=avt;var{EventSource:Rvt}=gRe();pe.exports.EventSource=Rvt;function Dvt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=Dvt});var fw=C(dh=>{"use strict";dh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");dh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");dh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";dh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);dh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);dh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());dh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var bRe=C((Gwr,BRe)=>{"use strict";var{asciiLowercase:L_,solelyContainsHTTPTokenCodePoints:kvt,soleyContainsHTTPQuotedStringTokenCodePoints:vvt}=fw();BRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=L_(String(e)),this._map.get(e)}has(e){return e=L_(String(e)),this._map.has(e)}set(e,r){if(e=L_(String(e)),r=String(r),!kvt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!vvt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=L_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var SRe=C((qwr,wRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:_vt,removeTrailingHTTPWhitespace:QRe,isHTTPWhitespaceChar:Fvt,solelyContainsHTTPTokenCodePoints:Wz,soleyContainsHTTPQuotedStringTokenCodePoints:Mvt,asciiLowercase:Jz,collectAnHTTPQuotedString:Lvt}=fw();wRe.exports=t=>{t=_vt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Wz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=QRe(n),n.length===0||!Wz(n))return null;let s={type:Jz(r),subtype:Jz(n),parameters:new Map};for(;e<t.length;){for(++e;Fvt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Jz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Lvt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=QRe(o),o==="")continue}i.length>0&&Wz(i)&&Mvt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var TRe=C((Ywr,NRe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Uvt}=fw();NRe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!Uvt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var kRe=C((Wwr,DRe)=>{"use strict";var Pvt=bRe(),Ovt=SRe(),Hvt=TRe(),{asciiLowercase:xRe,solelyContainsHTTPTokenCodePoints:RRe}=fw();DRe.exports=class{constructor(e){e=String(e);let r=Ovt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Pvt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=xRe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!RRe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=xRe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!RRe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Hvt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var KRe=C(Nn=>{"use strict";var ej=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),l_t=ej(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?Wj:f.type==="?"?jj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=mFt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+Z,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=Z;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");Z=Fe;let ke=Z===""&&r!==Jj?"(?:$|\\/)":"";s=v+z+Z+ke+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===Jj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return CFt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Wj:r.dot?gFt:pFt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?yFt(a):a===Ws?Ws:a._src).reduce((a,c)=>(a[a.length-1]===Ws&&c===Ws||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ws||o[c-1]===Ws||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Ws))}),o.filter(a=>a!==Ws).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;zj.sep!=="/"&&(e=e.split(zj.sep).join("/")),e=e.split(C2e),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Co.defaults(e).Minimatch}};Co.Minimatch=CC});var N2e=C((WSr,S2e)=>{S2e.exports=w2e;var Xj=Q("fs"),{EventEmitter:bFt}=Q("events"),{Minimatch:$j}=B2e(),{resolve:QFt}=Q("path");function wFt(t,e){return new Promise((r,n)=>{Xj.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function b2e(t,e){return new Promise((r,n)=>{(e?Xj.stat:Xj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?b2e(t,!1):null):r(null):r(o)})})}async function*Q2e(t,e,r,n,s,i){let o=await wFt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await b2e(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*Q2e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*SFt(t,e,r,n){yield*Q2e("",t,e,r,n,!0)}function NFt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var $_=class extends bFt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=NFt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new $j(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new $j(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new $j(i,{dot:!0}))}this.iterator=SFt(QFt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,S);S=G===-1?w.length:G}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let G=w.indexOf("*/",S);G!==-1?(S=G+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function CI(w){let b=EI(w.toString()),S=b.match(aL);if(S||(S=b.match(cL)),!S)throw new Error(`could not parse args in autoInject
${i}`:s.stack}Qe.exports.fetch=function(e,r=void 0){return z3t(e,r).catch(n=>{throw CFe?QFe(n,CFe):n&&typeof n=="object"&&Error.captureStackTrace(n,Qe.exports.fetch),n})};Qe.exports.Headers=IE().Headers;Qe.exports.Response=uS().Response;Qe.exports.Request=VI().Request;Qe.exports.FormData=BF().FormData;var{setGlobalOrigin:W3t,getGlobalOrigin:J3t}=kj();Qe.exports.setGlobalOrigin=W3t;Qe.exports.getGlobalOrigin=J3t;var{CacheStorage:V3t}=cMe(),{kConstruct:j3t}=br();Qe.exports.caches=new V3t(j3t);var{deleteCookie:K3t,getCookies:X3t,getSetCookies:Z3t,setCookie:$3t,parseCookie:e4t}=CMe();Qe.exports.deleteCookie=K3t;Qe.exports.getCookies=X3t;Qe.exports.getSetCookies=Z3t;Qe.exports.setCookie=$3t;Qe.exports.parseCookie=e4t;var{parseMIMEType:t4t,serializeAMimeType:r4t}=Ic();Qe.exports.parseMIMEType=t4t;Qe.exports.serializeAMimeType=r4t;var{CloseEvent:n4t,ErrorEvent:s4t,MessageEvent:i4t}=HL(),{WebSocket:o4t,ping:a4t}=$Me();Qe.exports.WebSocket=o4t;Qe.exports.CloseEvent=n4t;Qe.exports.ErrorEvent=s4t;Qe.exports.MessageEvent=i4t;Qe.exports.ping=a4t;Qe.exports.WebSocketStream=aFe().WebSocketStream;Qe.exports.WebSocketError=A$().WebSocketError;Qe.exports.request=BS(oB.request);Qe.exports.stream=BS(oB.stream);Qe.exports.pipeline=BS(oB.pipeline);Qe.exports.connect=BS(oB.connect);Qe.exports.upgrade=BS(oB.upgrade);Qe.exports.MockClient=v3t;Qe.exports.MockCallHistory=P3t;Qe.exports.MockCallHistoryLog=M3t;Qe.exports.MockPool=L3t;Qe.exports.MockAgent=F3t;Qe.exports.SnapshotAgent=_3t;Qe.exports.mockErrors=U3t;var{EventSource:c4t}=yFe();Qe.exports.EventSource=c4t;function A4t(){globalThis.fetch=Qe.exports.fetch,globalThis.Headers=Qe.exports.Headers,globalThis.Response=Qe.exports.Response,globalThis.Request=Qe.exports.Request,globalThis.FormData=Qe.exports.FormData,globalThis.WebSocket=Qe.exports.WebSocket,globalThis.CloseEvent=Qe.exports.CloseEvent,globalThis.ErrorEvent=Qe.exports.ErrorEvent,globalThis.MessageEvent=Qe.exports.MessageEvent,globalThis.EventSource=Qe.exports.EventSource}Qe.exports.install=A4t});var bS=y(xm=>{"use strict";xm.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");xm.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");xm.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";xm.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);xm.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);xm.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());xm.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var xFe=y((R_r,NFe)=>{"use strict";var{asciiLowercase:r_,solelyContainsHTTPTokenCodePoints:u4t,soleyContainsHTTPQuotedStringTokenCodePoints:l4t}=bS();NFe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=r_(String(e)),this._map.get(e)}has(e){return e=r_(String(e)),this._map.has(e)}set(e,r){if(e=r_(String(e)),r=String(r),!u4t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!l4t(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=r_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var RFe=y((D_r,TFe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:d4t,removeTrailingHTTPWhitespace:SFe,isHTTPWhitespaceChar:h4t,solelyContainsHTTPTokenCodePoints:m$,soleyContainsHTTPQuotedStringTokenCodePoints:f4t,asciiLowercase:p$,collectAnHTTPQuotedString:m4t}=bS();TFe.exports=t=>{t=d4t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!m$(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=SFe(n),n.length===0||!m$(n))return null;let s={type:p$(r),subtype:p$(n),parameters:new Map};for(;e<t.length;){for(++e;h4t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=p$(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=m4t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=SFe(o),o==="")continue}i.length>0&&m$(i)&&f4t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var kFe=y((k_r,DFe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:p4t}=bS();DFe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!p4t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var FFe=y((P_r,MFe)=>{"use strict";var g4t=xFe(),E4t=RFe(),y4t=kFe(),{asciiLowercase:vFe,solelyContainsHTTPTokenCodePoints:PFe}=bS();MFe.exports=class{constructor(e){e=String(e);let r=E4t(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new g4t(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=vFe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!PFe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=vFe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!PFe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return y4t(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var $Fe=y(As=>{"use strict";var b$=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),q4t=b$(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,F,F,f,s);let H=f.type==="*"?One:f.type==="?"?Gne:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+H+"\\("+F}B(),o&&(s+="\\\\");let M=w5t[s.charAt(0)];for(let F=c.length-1;F>-1;F--){let H=c[F],k=s.slice(0,H.reStart),j=s.slice(H.reStart,H.reEnd-8),$=s.slice(H.reEnd),ne=s.slice(H.reEnd-8,H.reEnd)+$,le=k.split(")").length,fe=k.split("(").length-le,Ve=$;for(let ft=0;ft<fe;ft++)Ve=Ve.replace(/\)[+*?]?/,"");$=Ve;let ze=$===""&&r!==Hne?"(?:$|\\/)":"";s=k+j+$+ze+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===Hne)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return x5t(e);let J=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",J),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?One:r.dot?b5t:Q5t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?T5t(a):a===Ji?Ji:a._src).reduce((a,c)=>(a[a.length-1]===Ji&&c===Ji||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ji||o[c-1]===Ji||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Ji))}),o.filter(a=>a!==Ji).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;qne.sep!=="/"&&(e=e.split(qne.sep).join("/")),e=e.split(KUe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Sa.defaults(e).Minimatch}};Sa.Minimatch=BB});var sOe=y((f6r,nOe)=>{nOe.exports=rOe;var Wne=Q("fs"),{EventEmitter:D5t}=Q("events"),{Minimatch:zne}=$Ue(),{resolve:k5t}=Q("path");function v5t(t,e){return new Promise((r,n)=>{Wne.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function eOe(t,e){return new Promise((r,n)=>{(e?Wne.stat:Wne.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?eOe(t,!1):null):r(null):r(o)})})}async function*tOe(t,e,r,n,s,i){let o=await v5t(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await eOe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*tOe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*P5t(t,e,r,n){yield*tOe("",t,e,r,n,!0)}function M5t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var fU=class extends D5t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=M5t(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new zne(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new zne(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new zne(i,{dot:!0}))}this.iterator=P5t(k5t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this Line truncated
`,x);x=Y===-1?w.length:Y}else if(P!==-1&&w[x]==="/"&&w[x+1]==="*"){let Y=w.indexOf("*/",x);Y!==-1?(x=Y+2,P=w.indexOf("*/",x)):(b+=w[x],x++)}else b+=w[x],x++;return b}function ms(w){let b=Qi(w.toString()),x=b.match(Oo);if(x||(x=b.match(ed)),!x)throw new Error(`could not parse args in autoInject
Source:
`+b);let[,F]=S;return F.replace(/\s/g,"").split(P1).map(G=>G.replace(O1,"").trim())}function II(w,b){var S={};return Object.keys(w).forEach(F=>{var G=w[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),S[F]=Y.concat(Y.length>0?re:G);else if(j)S[F]=G;else{if(Y=CI(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(re)}function re(Se,Bt){var Lt=Y.map(St=>Se[St]);Lt.push(Bt),E(G)(...Lt)}}),mI(S,b)}class yI{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):BI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):BI(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function BI(w,b){w.length=1,w.head=w.tail=b}function Wp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function re(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function Bt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var Br,kn;function So(Hh,...xI){if(Hh)return Ye?kn(Hh):Br();if(xI.length<=1)return Br(xI[0]);Br(xI)}var Kp=Ut._createTaskItem(qe,Ye?So:Nt||So);if(be?Ut._tasks.unshift(Kp):Ut._tasks.push(Kp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Hh,xI)=>{Br=Hh,kn=xI})}function wo(qe){return function(be,...Ye){G-=1;for(var Nt=0,Br=qe.length;Nt<Br;Nt++){var kn=qe[Nt],So=Y.indexOf(kn);So===0?Y.shift():So>0&&Y.splice(So,1),kn.callback(be,...Ye),be!=null&&Bt("error",be,kn.data)}G<=Ut.concurrency-Ut.buffer&&Bt("unsaturated"),Ut.idle()&&Bt("drain"),Ut.process()}}function jp(qe){return qe.length===0&&Ut.idle()?(A(()=>Bt("drain")),!0):!1}let Oh=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{re(qe,(Br,kn)=>{if(Br)return Nt(Br);Ye(kn)})});Se(qe),j(qe,be)};var TI=!1,Ut={_tasks:new yI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!TI){for(TI=!0;!Ut.paused&&G<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var Br=Ut._tasks.shift();qe.push(Br),Y.push(Br),be.push(Br.data)}G+=1,Ut._tasks.length===0&&Bt("empty"),G===Ut.concurrency&&Bt("saturated");var kn=te(wo(qe));F(be,kn)}TI=!1}},length(){return Ut._tasks.length},running(){return G},workersList(){return Y},idle(){return Ut._tasks.length+G===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:Oh("saturated")},unsaturated:{writable:!1,value:Oh("unsaturated")},empty:{writable:!1,value:Oh("empty")},drain:{writable:!1,value:Oh("drain")},error:{writable:!1,value:Oh("error")}}),Ut}function bI(w,b){return Wp(w,1,b)}function Jp(w,b,S){return Wp(w,b,S)}function Qo(w,b,S,F){F=V(F);var G=E(S);return Zs(w,(Y,J,j)=>{G(b,Y,(re,Se)=>{b=Se,j(re)})},Y=>F(Y,b))}var Ta=m(Qo,4);function zp(...w){var b=w.map(E);return function(...S){var F=this,G=S[S.length-1];return typeof G=="function"?S.pop():G=cu(),Ta(b,S,(Y,J,j)=>{J.apply(F,Y.concat((re,...Se)=>{j(re,Se)}))},(Y,J)=>G(Y,...J)),G[au]}}function H1(...w){return zp(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var H=m(we,4);function T(w,b,S,F){var G=E(S);return H(w,b,(Y,J)=>{G(Y,(j,...re)=>j?J(j):J(j,re))},(Y,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(Y,j)})}var q=m(T,4);function K(w,b,S){return q(w,1/0,b,S)}var X=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});Fr[is]||(L2e=global[is]||[],P2e(Fr,L2e),Fr.close=(function(t){function e(r,n){return t.call(Fr,r,function(s){s||U2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,rF,{value:t}),e})(Fr.close),Fr.closeSync=(function(t){function e(r){t.apply(Fr,arguments),U2e()}return Object.defineProperty(e,rF,{value:t}),e})(Fr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fp(Fr[is]),Q("assert").equal(Fr[is].length,0)}));var L2e;global[is]||P2e(global,Fr[is]);rK.exports=eK(MFt(Fr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Fr.__patched&&(rK.exports=eK(Fr),Fr.__patched=!0);function eK(t){_Ft(t),t.gracefulify=eK,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,Z){return typeof z=="function"&&(Z=z,z=null),te(v,z,Z);function te(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?IC([te,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=0),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,Z){typeof z=="function"&&(Z=z,z=null);var te=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return te(v,z,Z);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?IC([te,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=FFt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,Z){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=Z,v.emit("open",Z),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,Z){z?(v.destroy(),v.emit("error",z)):(v.fd=Z,v.emit("open",Z))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,En){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function IC(t){fp("ENQUEUE",t[0].name,t[1]),Fr[is].push(t),tK()}var tF;function U2e(){for(var t=Date.now(),e=0;e<Fr[is].length;++e)Fr[is][e].length>2&&(Fr[is][e][3]=t,Fr[is][e][4]=t);tK()}function tK(){if(clearTimeout(tF),tF=void 0,Fr[is].length!==0){var t=Fr[is].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)fp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){fp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(fp("RETRY",e.name,r),e.apply(null,r.concat([s]))):Fr[is].push(t)}tF===void 0&&(tF=setTimeout(tK,0))}}});var nF=C(($Sr,O2e)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable=t=>JA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};E_e.exports={AggregateError:UK,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var PK=C((aTr,C_e)=>{"use strict";C_e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=C((cTr,B_e)=>{"use strict";var{format:iOt,inspect:BF}=PK(),{AggregateError:oOt}=Rr(),aOt=globalThis.AggregateError||oOt,cOt=Symbol("kIsNodeError"),AOt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],uOt=/^([A-Z][a-z0-9]*)+$/,lOt="__node_internal_",bF={};function mp(t,e){if(!t)throw new bF.ERR_INTERNAL_ASSERTION(e)}function I_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function dOt(t,e,r){if(typeof e=="function")return mp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return mp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:iOt(e,...r)}function as(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(dOt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[cOt]=!0,bF[t]=n}function y_e(t){let e=lOt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function hOt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new aOt([e,t],e.message);return r.code=e.code,r}return t||e}var OK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new bF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};as("ERR_ASSERTION","%s",Error);as("ERR_INVALID_ARG_TYPE",(t,e,r)=>{mp(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)mp(typeof c=="string","All expected entries have to be of type string"),AOt.includes(c)?s.push(c.toLowerCase()):uOt.test(c)?i.push(c):(mp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=CZ(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=CZ(" "+s+"="+n[s]+`
`);return kt.from(r)};aI.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};aI.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,kh(e.mode&N7t,6),100),kt.write(r,kh(e.uid,6),108),kt.write(r,kh(e.gid,6),116),_7t(e.size,r,124),kt.write(r,kh(e.mtime.getTime()/1e3|0,11),136),r[156]=$M+k7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(Y3e,r,R1),kt.copy(Q7t,r,IZ),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,kh(e.devmajor||0,6),329),kt.write(r,kh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,kh(W3e(r),6),148),r)};aI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-$M,i=oI(e,0,100,r),o=Dh(e,100,8),a=Dh(e,108,8),c=Dh(e,116,8),A=Dh(e,124,12),u=Dh(e,136,12),l=D7t(s),d=e[157]===0?null:oI(e,157,100,r),h=oI(e,265,32),f=oI(e,297,32),g=Dh(e,329,8),E=Dh(e,337,8),m=W3e(e);if(m===256)return null;if(m!==Dh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(T7t(e))e[345]&&(i=oI(e,345,155,r)+"/"+i);else if(!x7t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function T7t(t){return kt.equals(Y3e,t.subarray(R1,R1+6))}function x7t(t){return kt.equals(w7t,t.subarray(R1,R1+6))&&kt.equals(S7t,t.subarray(IZ,IZ+2))}function R7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function D7t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function k7t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function V3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function W3e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function kh(t,e){return t=t.toString(8),t.length>e?b7t.slice(0,e)+" ":B7t.slice(0,e-t.length)+t+" "}function v7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function _7t(t,e,r){t.toString(8).length>11?v7t(t,e,r):kt.write(e,kh(t,11),r)}function F7t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Dh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return F7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=R7t(V3e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function oI(t,e,r,n){return kt.toString(t.subarray(e,V3e(t,0,e,e+r)),n)}function CZ(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var $3e=C((_Rr,K3e)=>{var{Writable:M7t,Readable:L7t,getStreamError:J3e}=EZ(),U7t=nZ(),z3e=tI(),cI=yZ(),P7t=z3e.alloc(0),bZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new U7t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return P7t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return z3e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},QZ=class extends L7t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(J3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=j3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},wZ=class extends M7t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function QAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",uS(t,e));process.stdout.write(r3.EOL),Ra("set-output",{name:t},wc(e))}function ed(t){process.exitCode=t3.Failure,Yi(t)}function Ga(){return process.env.RUNNER_DEBUG==="1"}function O(t){Ra("debug",{},t)}function Yi(t,e={}){Ra("error",aS(e),t instanceof Error?t.toString():t)}function ze(t,e={}){Ra("warning",aS(e),t instanceof Error?t.toString():t)}function wAe(t,e={}){Ra("notice",aS(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+r3.EOL)}function SAe(t){EL("group",t)}function NAe(){EL("endgroup")}function gT(t,e){return A$e(this,void 0,void 0,function*(){SAe(t);let r;try{r=yield e()}finally{NAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",uS(t,e));Ra("save-state",{name:t},wc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as Xz from"fs";import*as Zz from"path";import*as O_ from"os";import{readFileSync as u$e,existsSync as l$e}from"fs";import{EOL as d$e}from"os";var zm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(l$e(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(u$e(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${d$e}`)}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 a3=ge(kAe(),1),vAe=ge(oT(),1),w$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function _Ae(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}`}function FAe(t){return new a3.HttpClient().getAgent(t)}function S$e(t){return new a3.HttpClient().getAgentDispatcher(t)}function MAe(t){let e=S$e(t);return(n,s)=>w$e(this,void 0,void 0,function*(){return(0,vAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function LAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function c3(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}function td(){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>"}function BT(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)=>BT.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))}function UAe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function PAe(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)}var OAe=Function.bind,HAe=OAe.bind(OAe);function GAe(t,e,r){let n=HAe(PAe,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]=HAe(UAe,null). Line truncated
`+b);let[,P]=x;return P.replace(/\s/g,"").split(zA).map(Y=>Y.replace(Q0,"").trim())}function Jc(w,b){var x={};return Object.keys(w).forEach(P=>{var Y=w[P],W,K=h(Y),Z=!K&&Y.length===1||K&&Y.length===0;if(Array.isArray(Y))W=[...Y],Y=W.pop(),x[P]=W.concat(W.length>0?se:Y);else if(Z)x[P]=Y;else{if(W=ms(Y),Y.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),x[P]=W.concat(se)}function se(Fe,Wt){var cr=W.map(Xt=>Fe[Xt]);cr.push(Wt),E(Y)(...cr)}}),$l(x,b)}class Vc{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,x){x.prev=b,x.next=b.next,b.next?b.next.prev=x:this.tail=x,b.next=x,this.length+=1}insertBefore(b,x){x.prev=b.prev,x.next=b,b.prev?b.prev.next=x:this.head=x,b.prev=x,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Oh(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Oh(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var x=this.head;x;){var{next:P}=x;b(x)&&this.removeLink(x),x=P}return this}}function Oh(w,b){w.length=1,w.head=w.tail=b}function WA(w,b,x){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var P=E(w),Y=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Z(rt,Pe){K[rt].push(Pe)}function se(rt,Pe){let nt=(...Zt)=>{Fe(rt,nt),Pe(...Zt)};K[rt].push(nt)}function Fe(rt,Pe){if(!rt)return Object.keys(K).forEach(nt=>K[nt]=[]);if(!Pe)return K[rt]=[];K[rt]=K[rt].filter(nt=>nt!==Pe)}function Wt(rt,...Pe){K[rt].forEach(nt=>nt(...Pe))}var cr=!1;function Xt(rt,Pe,nt,Zt){if(Zt!=null&&typeof Zt!="function")throw new Error("task callback must be a function");Ar.started=!0;var Kr,Es;function Ma(dp,...Rb){if(dp)return nt?Es(dp):Kr();if(Rb.length<=1)return Kr(Rb[0]);Kr(Rb)}var F0=Ar._createTaskItem(rt,nt?Ma:Zt||Ma);if(Pe?Ar._tasks.unshift(F0):Ar._tasks.push(F0),cr||(cr=!0,A(()=>{cr=!1,Ar.process()})),nt||!Zt)return new Promise((dp,Rb)=>{Kr=dp,Es=Rb})}function Pa(rt){return function(Pe,...nt){Y-=1;for(var Zt=0,Kr=rt.length;Zt<Kr;Zt++){var Es=rt[Zt],Ma=W.indexOf(Es);Ma===0?W.shift():Ma>0&&W.splice(Ma,1),Es.callback(Pe,...nt),Pe!=null&&Wt("error",Pe,Es.data)}Y<=Ar.concurrency-Ar.buffer&&Wt("unsaturated"),Ar.idle()&&Wt("drain"),Ar.process()}}function M0(rt){return rt.length===0&&Ar.idle()?(A(()=>Wt("drain")),!0):!1}let lp=rt=>Pe=>{if(!Pe)return new Promise((nt,Zt)=>{se(rt,(Kr,Es)=>{if(Kr)return Zt(Kr);nt(Es)})});Fe(rt),Z(rt,Pe)};var Tb=!1,Ar={_tasks:new Vc,_createTaskItem(rt,Pe){return{data:rt,callback:Pe}},*[Symbol.iterator](){yield*Ar._tasks[Symbol.iterator]()},concurrency:b,payload:x,buffer:b/4,started:!1,paused:!1,push(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!1,!1,Pe)):Xt(rt,!1,!1,Pe)},pushAsync(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!1,!0,Pe)):Xt(rt,!1,!0,Pe)},kill(){Fe(),Ar._tasks.empty()},unshift(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!0,!1,Pe)):Xt(rt,!0,!1,Pe)},unshiftAsync(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!0,!0,Pe)):Xt(rt,!0,!0,Pe)},remove(rt){Ar._tasks.remove(rt)},process(){if(!Tb){for(Tb=!0;!Ar.paused&&Y<Ar.concurrency&&Ar._tasks.length;){var rt=[],Pe=[],nt=Ar._tasks.length;Ar.payload&&(nt=Math.min(nt,Ar.payload));for(var Zt=0;Zt<nt;Zt++){var Kr=Ar._tasks.shift();rt.push(Kr),W.push(Kr),Pe.push(Kr.data)}Y+=1,Ar._tasks.length===0&&Wt("empty"),Y===Ar.concurrency&&Wt("saturated");var Es=ne(Pa(rt));P(Pe,Es)}Tb=!1}},length(){return Ar._tasks.length},running(){return Y},workersList(){return W},idle(){return Ar._tasks.length+Y===0},pause(){Ar.paused=!0},resume(){Ar.paused!==!1&&(Ar.paused=!1,A(Ar.process))}};return Object.defineProperties(Ar,{saturated:{writable:!1,value:lp("saturated")},unsaturated:{writable:!1,value:lp("unsaturated")},empty:{writable:!1,value:lp("empty")},drain:{writable:!1,value:lp("drain")},error:{writable:!1,value:lp("error")}}),Ar}function td(w,b){return WA(w,1,b)}function rd(w,b,x){return WA(w,b,x)}function eo(w,b,x,P){P=J(P);var Y=E(x);return Ys(w,(W,K,Z)=>{Y(b,W,(se,Fe)=>{b=Fe,Z(se)})},W=>P(W,b))}var wi=g(eo,4);function nd(...w){var b=w.map(E);return function(...x){var P=this,Y=x[x.length-1];return typeof Y=="function"?x.pop():Y=YA(),wi(b,x,(W,K,Z)=>{K.apply(P,W.concat((se,...Fe)=>{Z(se,Fe)}))},(W,K)=>Y(W,...K)),Y[Wc]}}function op(...w){return nd(...w.reverse())}function ve(w,b,x,P){return I(fe(b),w,x,P)}var q=g(ve,4);function T(w,b,x,P){var Y=E(x);return q(w,b,(W,K)=>{Y(W,(Z,...se)=>Z?K(Z):K(Z,se))},(W,K)=>{for(var Z=[],se=0;se<K.length;se++)K[se]&&(Z=Z.concat(...K[se]));return P(W,Z)})}var z=g(T,4);function X(w,b,x){return z(w,1/0,b,x)}var te=g(X,3);function Ae(w,b,x){retu Line truncated
GFS4: `),console.error(t)});dn[$s]||(fOe=global[$s]||[],pOe(dn,fOe),dn.close=(function(t){function e(r,n){return t.call(dn,r,function(s){s||mOe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,yU,{value:t}),e})(dn.close),dn.closeSync=(function(t){function e(r){t.apply(dn,arguments),mOe()}return Object.defineProperty(e,yU,{value:t}),e})(dn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){jE(dn[$s]),Q("assert").equal(dn[$s].length,0)}));var fOe;global[$s]||pOe(global,dn[$s]);Kne.exports=Vne(Y5t(dn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!dn.__patched&&(Kne.exports=Vne(dn),dn.__patched=!0);function Vne(t){q5t(t),t.gracefulify=Vne,t.createReadStream=M,t.createWriteStream=J;var e=t.readFile;t.readFile=r;function r(k,j,$){return typeof j=="function"&&($=j,j=null),ne(k,j,$);function ne(le,fe,Ve,ze){return e(le,fe,function(ft){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?bB([ne,[le,fe,Ve],ft,ze||Date.now(),Date.now()]):typeof Ve=="function"&&Ve.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return n(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return i(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,$,ne){return typeof $=="function"&&(ne=$,$=0),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return a(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,$){typeof j=="function"&&($=j,j=null);var ne=u.test(process.version)?function(Ve,ze,ft,ar){return A(Ve,le(Ve,ze,ft,ar))}:function(Ve,ze,ft,ar){return A(Ve,ze,le(Ve,ze,ft,ar))};return ne(k,j,$);function le(fe,Ve,ze,ft){return function(ar,dr){ar&&(ar.code==="EMFILE"||ar.code==="ENFILE")?bB([ne,[fe,Ve,ze],ar,ft||Date.now(),Date.now()]):(dr&&dr.sort&&dr.sort(),typeof ze=="function"&&ze.call(this,ar,dr))}}}if(process.version.substr(0,4)==="v0.8"){var d=G5t(t);g=d.ReadStream,I=d.WriteStream}var h=t.ReadStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=C);var f=t.WriteStream;f&&(I.prototype=Object.create(f.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(k){I=k},enumerable:!0,configurable:!0});var m=g;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function g(k,j){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$),k.read())})}function I(k,j){return this instanceof I?(f.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$))})}function M(k,j){return new t.ReadStream(k,j)}function J(k,j){return new t.WriteStream(k,j)}var F=t.open;t.open=H;function H(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return F(fe,Ve,ze,function(dr,mn){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}return t}function bB(t){jE("ENQUEUE",t[0].name,t[1]),dn[$s].push(t),jne()}var EU;function mOe(){for(var t=Date.now(),e=0;e<dn[$s].length;++e)dn[$s][e].length>2&&(dn[$s][e][3]=t,dn[$s][e][4]=t);jne()}function jne(){if(clearTimeout(EU),EU=void 0,dn[$s].length!==0){var t=dn[$s].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)jE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){jE("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(jE("RETRY",e.name,r),e.apply(null,r.concat([s]))):dn[$s].push(t)}EU===void 0&&(EU=setTimeout(jne,0))}}});var CU=y((y6r,gOe)=>{"use strict";var Fl=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Fl.writable=t=>Fl(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Fl.readable=t=>Fl(t)&&t.readable!= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};j4e.exports={AggregateError:kse,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var vse=y((T5r,K4e)=>{"use strict";K4e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Ci=y((R5r,$4e)=>{"use strict";var{format:hzt,inspect:UU}=vse(),{AggregateError:fzt}=sn(),mzt=globalThis.AggregateError||fzt,pzt=Symbol("kIsNodeError"),gzt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Ezt=/^([A-Z][a-z0-9]*)+$/,yzt="__node_internal_",OU={};function ZE(t,e){if(!t)throw new OU.ERR_INTERNAL_ASSERTION(e)}function X4e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Czt(t,e,r){if(typeof e=="function")return ZE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return ZE(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:hzt(e,...r)}function ti(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(Czt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[pzt]=!0,OU[t]=n}function Z4e(t){let e=yzt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Izt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new mzt([e,t],e.message);return r.code=e.code,r}return t||e}var Pse=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new OU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ti("ERR_ASSERTION","%s",Error);ti("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ZE(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)ZE(typeof c=="string","All expected entries have to be of type string"),gzt.includes(c)?s.push(c.toLowerCase()):Ezt.test(c)?i.push(c):(ZE(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;defaulLine truncated
`)),e.linkname&&(r+=fae(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=fae(" "+s+"="+n[s]+`
`);return ir.from(r)};ub.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(ir.toString(e.subarray(0,n)),10);if(!s)return r;let i=ir.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};ub.encode=function(e){let r=ir.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ir.byteLength(n)!==n.length)return null;for(;ir.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return ir.byteLength(n)>100||ir.byteLength(s)>155||e.linkname&&ir.byteLength(e.linkname)>100?null:(ir.write(r,n),ir.write(r,$m(e.mode&Lrr,6),100),ir.write(r,$m(e.uid,6),108),ir.write(r,$m(e.gid,6),116),Yrr(e.size,r,124),ir.write(r,$m(e.mtime.getTime()/1e3|0,11),136),r[156]=f3+qrr(e.type),e.linkname&&ir.write(r,e.linkname,157),ir.copy(RYe,r,iT),ir.copy(Prr,r,mae),e.uname&&ir.write(r,e.uname,265),e.gname&&ir.write(r,e.gname,297),ir.write(r,$m(e.devmajor||0,6),329),ir.write(r,$m(e.devminor||0,6),337),s&&ir.write(r,s,345),ir.write(r,$m(kYe(r),6),148),r)};ub.decode=function(e,r,n){let s=e[156]===0?0:e[156]-f3,i=Ab(e,0,100,r),o=Zm(e,100,8),a=Zm(e,108,8),c=Zm(e,116,8),A=Zm(e,124,12),u=Zm(e,136,12),l=Hrr(s),d=e[157]===0?null:Ab(e,157,100,r),h=Ab(e,265,32),f=Ab(e,297,32),m=Zm(e,329,8),E=Zm(e,337,8),g=kYe(e);if(g===256)return null;if(g!==Zm(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(_rr(e))e[345]&&(i=Ab(e,345,155,r)+"/"+i);else if(!Urr(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:m,devminor:E,pax:null}};function _rr(t){return ir.equals(RYe,t.subarray(iT,iT+6))}function Urr(t){return ir.equals(Mrr,t.subarray(iT,iT+6))&&ir.equals(Frr,t.subarray(mae,mae+2))}function Orr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function Hrr(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function qrr(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function DYe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function kYe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function $m(t,e){return t=t.toString(8),t.length>e?vrr.slice(0,e)+" ":krr.slice(0,e-t.length)+t+" "}function Grr(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function Yrr(t,e,r){t.toString(8).length>11?Grr(t,e,r):ir.write(e,$m(t,11),r)}function zrr(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Zm(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return zrr(t);{for(;e<t.length&&t[e]===32;)e++;let n=Orr(DYe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(ir.toString(t.subarray(e,n)),8)}}function Ab(t,e,r,n){return ir.toString(t.subarray(e,DYe(t,0,e,e+r)),n)}function fae(t){let e=ir.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var LYe=y((i9r,FYe)=>{var{Writable:Wrr,Readable:Jrr,getStreamError:vYe}=hae(),Vrr=Xoe(),PYe=sb(),lb=pae(),jrr=PYe.alloc(0),Krr=4*1024*1024,Eae=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Vrr,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this.buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return jrr;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return PYe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},yae=class extends Jrr{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(vYe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=MYe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function zpe(t,e){if(process.env.GITHUB_OUTPUT||"")return Db("OUTPUT",PT(t,e));process.stdout.write(S6.EOL),Xc("set-output",{name:t},VA(e))}function hf(t){process.exitCode=x6.Failure,$o(t)}function AA(){return process.env.RUNNER_DEBUG==="1"}function G(t){Xc("debug",{},t)}function $o(t,e={}){Xc("error",DT(e),t instanceof Error?t.toString():t)}function Ze(t,e={}){Xc("warning",DT(e),t instanceof Error?t.toString():t)}function R6(t,e={}){Xc("notice",DT(e),t instanceof Error?t.toString():t)}function ee(t){process.stdout.write(t+S6.EOL)}function Wpe(t){Y3("group",t)}function Jpe(){Y3("endgroup")}function HD(t,e){return xit(this,void 0,void 0,function*(){Wpe(t);let r;try{r=yield e()}finally{Jpe()}return r})}function au(t,e){if(process.env.GITHUB_STATE||"")return Db("STATE",PT(t,e));Xc("save-state",{name:t},VA(e))}function _Q(t){return process.env[`STATE_${t}`]||""}import*as I$ from"fs";import*as B$ from"path";import*as i_ from"os";import{readFileSync as Sit,existsSync as Tit}from"fs";import{EOL as Rit}from"os";var Py=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Tit(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Sit(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${Rit}`)}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 P6=be(Zpe(),1),$pe=be(DD(),1),Git=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function ege(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}`}function tge(t){return new P6.HttpClient().getAgent(t)}function Yit(t){return new P6.HttpClient().getAgentDispatcher(t)}function rge(t){let e=Yit(t);return(n,s)=>Git(this,void 0,void 0,function*(){return(0,$pe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function nge(){return process.env.GITHUB_API_URL||"https://api.github.com"}function M6(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}function ff(){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>"}function VD(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)=>VD.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))}function sge(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function ige(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)}var oge=Function.bind,age=oge.bind(oge);function cge(t,e,r){let n=age(ige,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]=age(sge,null). Line truncated
`+n.repeat(l));let E=f.val[f.index],g=o(f.val,String(f.index),E);if(q6(g))u.push("null"),f.first=!1,f.index++;else{let C=g!==null&&typeof g=="object",I=G6(g);if(C&&!I){if(h.has(g))throw new TypeError("Converting circular structure to JSON");h.add(g),d.push({parent:f.val,key:String(f.index),val:g,isArray:Array.isArray(g),keys:Array.isArray(g)?null:Object.keys(g),index:0,first:!0}),f.first=!1,f.index++}else u.push(mf(g)),f.first=!1,f.index++}}else m=!0;else{for(;f.index<f.keys.length;){let g=f.keys[f.index++];if(i&&!i.has(g))continue;let I=f.val[g],B=o(f.val,g,I);if(q6(B))continue;f.first||u.push(","),n?u.push(`
`+n.repeat(l)+mf(g)+": "):u.push(mf(g)+":");let M=B!==null&&typeof B=="object",J=G6(B);if(M&&!J){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:g,val:B,isArray:Array.isArray(B),keys:Array.isArray(B)?null:Object.keys(B),index:0,first:!0}),f.first=!1;break}else u.push(mf(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(m=!0)}m&&(l--,!f.first&&n&&u.push(`
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},Sge=(t,e,r)=>{try{return"rawJSON"in JSON?mf(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?mf(t,(a,c)=>typeof c=="string"&&KD.test(c)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(bge,"$1$2$3").replace(Qge,"$1$2$3"):mf(t,e,r)}catch(n){if(n instanceof RangeError){let s=dot(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(bge,"$1$2$3").replace(Qge,"$1$2$3")}throw n}},jD=new Map,hot=()=>{let t=JSON.parse.toString();if(jD.has(t))return jD.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return jD.set(t,e),e}catch{return jD.set(t,!1),!1}},fot=(t,e,r,n)=>typeof e=="string"&&xge.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&KD.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,mot=(t,e)=>JSON.parse(t,(r,n,s)=>{let i=typeof n=="number",o=n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER,a=i&&o,c=s&&lot.test(s.source);return a&&c?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),Tge=Number.MAX_SAFE_INTEGER.toString(),wge=Tge.length,pot=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,got=/^"-?\d+n+"$/,Eot=(t,e)=>{let r={"":t},n=[{parent:r,key:"",visited:!1}];for(;n.length>0;){let s=n[n.length-1];if(s.visited){let{parent:i,key:o}=s,a=i[o];typeof a=="string"&&(xge.test(a)?a=BigInt(a.slice(0,-1)):KD.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,n.pop()}else{s.visited=!0;let i=s.parent[s.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let c=a.length-1;c>=0;c--)n.push({parent:i,key:a[c],visited:!1})}}}return r[""]},Nge=t=>t.replace(pot,(e,r,n,s)=>{let i=e[0]==='"';if(i&&got.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,c=r&&(r.length<wge||r.length===wge&&r<=Tge);return i||a||c?e:'"'+e+'n"'}),Rge=(t,e)=>{if(!t)return H6(t,e);try{if(hot())return mot(t,e);let r=Nge(t);return H6(r,(n,s,i)=>fot(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=Nge(t),s=H6(n);return Eot(s,e)}throw r}};var Bd=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var yot="10.0.16",Cot={headers:{"user-agent":`octokit-request.js/${yot} ${ff()}`}};function Iot(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var Dge=()=>"";async function kge(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=Iot(t.body)||Array.isArray(t.body)?Sge(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new Bd(d,500,{request:t});throw h.cause=l,h}let a=o.status,c=o.url,A={};for(let[l,d]of o.headers)A[l]=d;let u={url:c,status:a,headers:A,data:""};if("deprecation"in A){let l=A.link&&A.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${A.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new Bd(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await Y6(o),new Bd("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await Y6(o),new Bd(bot(u.data),a,{response:u,request:t});return u.data=n?await Y6(o):o.body,u}async function Y6(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Dge);let r=yge(e);if(Bot(r)){let n="";try{return n=await t.text(),Rge(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet- Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var fXe=class extends Error{constructor(t,e,r){super(hXe(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},gXe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],pXe=["query","method","url"],hue=/\/api\/v3\/?$/;function mXe(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(pXe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>gXe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return hue.test(i)&&(s.url=i.replace(hue,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new fXe(s,a,o.data)}return o.data.data})}function m3(t,e){let r=t.defaults(e);return Object.assign((s,i)=>mXe(r,s,i),{defaults:m3.bind(null,r),endpoint:r.endpoint})}var pKt=m3(Py,{headers:{"user-agent":`octokit-graphql.js/${dXe} ${td()}`},method:"POST",url:"/graphql"});function fue(t){return m3(t,{method:"POST",url:"/graphql"})}var E3="(?:[a-zA-Z0-9_-]+)",gue="\\.",pue=new RegExp(`^${E3}${gue}${E3}${gue}${E3}$`),EXe=pue.test.bind(pue);async function CXe(t){let e=EXe(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"}}function IXe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function yXe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=IXe(t),e(s)}var mue=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(CXe.bind(null,e),{hook:yXe.bind(null,e)})};var C3="7.0.6";var Eue=()=>{},BXe=console.warn.bind(console),bXe=console.error.bind(console);function QXe(t={}){return typeof t.debug!="function"&&(t.debug=Eue),typeof t.info!="function"&&(t.info=Eue),typeof t.warn!="function"&&(t.warn=BXe),typeof t.error!="function"&&(t.error=bXe),t}var Cue=`octokit-core.js/${C3} ${td()}`,wT=class{static VERSION=C3;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new qAe.Collection,n={baseUrl:Py.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} ${Cue}`:Cue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Py.defaults(n),this.graphql=fue(this.request).defaults(n),this.log=QXe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(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 i=mue(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 I3="17.0.0";var wXe={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
`)}var Not=class extends Error{constructor(t,e,r){super(wot(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)}request;headers;response;name="GraphqlResponseError";errors;data},xot=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Sot=["query","method","url"],vge=/\/api\/v3\/?$/;function Tot(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(Sot.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>xot.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return vge.test(i)&&(s.url=i.replace(vge,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new Not(s,a,o.data)}return o.data.data})}function W6(t,e){let r=t.defaults(e);return Object.assign((s,i)=>Tot(r,s,i),{defaults:W6.bind(null,r),endpoint:r.endpoint})}var Tar=W6(HQ,{headers:{"user-agent":`octokit-graphql.js/${Qot} ${ff()}`},method:"POST",url:"/graphql"});function Pge(t){return W6(t,{method:"POST",url:"/graphql"})}var J6="(?:[a-zA-Z0-9_-]+)",Mge="\\.",Fge=new RegExp(`^${J6}${Mge}${J6}${Mge}${J6}$`),Rot=Fge.test.bind(Fge);async function Dot(t){let e=Rot(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"}}function kot(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function vot(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=kot(t),e(s)}var Lge=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(Dot.bind(null,e),{hook:vot.bind(null,e)})};var V6="7.0.8";var _ge=()=>{},Pot=console.warn.bind(console),Mot=console.error.bind(console);function Fot(t={}){return typeof t.debug!="function"&&(t.debug=_ge),typeof t.info!="function"&&(t.info=_ge),typeof t.warn!="function"&&(t.warn=Pot),typeof t.error!="function"&&(t.error=Mot),t}var Uge=`octokit-core.js/${V6} ${ff()}`,XD=class{static VERSION=V6;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Age.Collection,n={baseUrl:HQ.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} ${Uge}`:Uge,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=HQ.defaults(n),this.graphql=Pge(this.request).defaults(n),this.log=Fot(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(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 i=Lge(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 j6="17.0.0";var Lot={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/{secr Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Vy(i));return n.searchPaths.push(...T3(n.patterns)),n})}static stat(e,r,n){return _3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Zm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 Zm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Zm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var aZe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Kue(t,e){return aZe(this,void 0,void 0,function*(){return yield DT.create(t,e)})}var Gde=ge(Xy(),1);import*as zT from"crypto";import*as n0 from"fs";import*as Qf from"path";import*as qde from"util";var Zy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zy||(Zy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Wi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Wi||(Wi={}));var VT=2,WT=5e3,t8=5e3,r8=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Hde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,eB="cache.tar",n8="manifest.txt",uXt=10*Math.pow(1024,3),JT="cache read denied:";var r0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Ert=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},Crt="1.0";function tB(){return r0(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=Qf.join(n,"actions","temp")}let r=Qf.join(e,zT.randomUUID());return yield gf(r),r})}function Oc(t){return n0.statSync(t).size}function s8(t){return r0(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield Kue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Ert(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Qf.relative(a,s).replace(new RegExp(`\\${Qf.sep}`,"g"),"/");O(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function rB(t){return r0(this,void 0,void 0,function*(){return qde.promisify(n0.unlink)(t)})}function Yde(t){return r0(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),O(`Checking ${e} ${r.join(" ")}`);try{yield Ha(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){O(s.message)}return n=n.trim(),O(n),n})}function nB(){return r0(this,void 0,void 0,function*(){let t=yield Yde("zstd",["--quiet"]),e=Gde.clean(t);return O(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function od(t){return t===vs.Gzip?Zy.Gzip:Zy.Zstd}function Vde(){return r0(this,void 0,void 0,function*(){return n0.existsSync(r8)?r8:(yield Yde("tar")).toLowerCase().includes("gnu tar")?qi("tar"):""})}function i8(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function s0(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Crt),zT.createHash("sha256").update(n.join("|")).digest("hex")}function Wde(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as _0 from"fs";import{URL as rut}from"url";var Hc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Irt}from"node:os";import yrt from"node:util";import Brt from"node:process";function Jde(t,...e){Brt.stderr.write(`${yrt.format(t,...e)}${Irt}`)}import sB from"node:process";function KT(t){return sB.env[t]}var zde=typeof sB.versions.deno=="string"&&sB.versions.deno.length>0,jde=typeof sB.versions.bun=="string"&&sB.versions.bun.length>0,$T=!0;var Kde=KT("DEBUG"),Xde,o8=[],a8=[],XT=[];Kde&&c8(Kde);var Zde=Object.assign(t=>ehe(t),{enable:c8,enabled:A8,disable:brt,log:Jde});function c8(t){Xde=t,o8=[],a8=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?a8.push(r.substring(1)):o8.push(r);for(let r of XT)r.enabled=A8(r.namespace)}function A8(t){if(t.endsWith("*"))return!0;for(let e of a8)if($de(t,e))return!1;for(let e of o8)if($de(t,e))return!0;return!1}function $de(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function brt(){let t=Xde||"";return c8(""),t}function ehe(t){let e=Object.assign(r,{enabled:A8(t),destroy:Qrt,log:Zde.log,namespace:t,extend:wrt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return XT.push(e),e}function Qrt(){let t=XT.indexOf(this);return t>=0?(XT.splice(t,1),!0):!1}function wrt(t){let e=ehe(`${this.namespace}:${t}`);return e.log=this.log,e}var i0=Zde;var u8=["verbose","info","warning","error"],the={verbose:400,info:300,warning:200,error:100};function rhe(t,e){e.log=(...r)=>{t.log(...r)}}function nhe(t){return u8.includes(t)}function ZT(t){let e=new Set,r=KT(t.logLevelEnvVarName),n,s=i0(t.namespace);s.log=(...u)=>{i0.log(...u)};function i(u){if(u&&!nhe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${u8.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);i0.enable(l.join(","))}r&&(nhe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${u8.join(", ")}.`));function o(u){return!!(n&&the[u.level]<=the[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(rhe(u,d),o(d)){let h=i0.disable();i0.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return rhe(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var she=ZT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Srt=she.logger;function iB(t){return she.createClientLogger(t)}function ex(t){return t.toLowerCase()}function Nrt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Trt(t){for(let e of t.values())yield[e.name,e.value]}var l8=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(ex(e),{name:e,value:Nrt(r)})}get(e){return this._headersMap.get(ex(e))?.value}has(e){return this._ Line truncated
${krt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function o0(t){return t instanceof _s?!0:Sf(t)&&t.name==="RestError"}function ai(t,e){return Buffer.from(t,e)}import g8 from"node:http";import p8 from"node:https";import ahe from"node:zlib";import{Transform as vrt}from"node:stream";var ci=iB("ts-http-runtime");var _rt={};function oB(t){return t&&typeof t.pipe=="function"}function che(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 Ahe(t){return t&&typeof t.byteLength=="number"}var nx=class extends vrt{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}},m8=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Hc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Ja;ci.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=Urt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new nx(f);g.on("error",E=>{ci.error("Error in upload progress",E)}),oB(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Frt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Mrt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new nx(h);f.on("error",g=>{ci.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Lrt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();oB(a)&&(A=che(a));let u=Promise.resolve();oB(c)&&(u=che(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ci.warning("Error when cleaning up abortListener on httpRequest",l)})}}}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 a={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((c,A)=>{let u=i?g8.request(a,c):p8.request(a,c);u.once("error",l=>{A(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Hc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&oB(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Ahe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ci.error("Unrecognized body type",n),A(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g8.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g8.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return p8.globalAgent;let s=e.tlsSettings??_rt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ci.info("No cached TLS Agent exist, creating a new Agent"),i=new p8.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Frt(t){let e=Ji();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}function Mrt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ahe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ahe.createInflate();return t.pipe(n),n}return t}function Lrt(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 _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function Urt(t){return t?Buffer.isBuffer(t)?t.length:oB(t)?null:Ahe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function uhe(){return new m8}function sx(){return uhe()}var E8="logPolicy";function ix(t={}){let e=t.logger??ci.info,r=new Ja({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:E8,asy Line truncated
`;return e}function ist(t){return t instanceof Uint8Array?t.byteLength:AB(t)?t.size===-1?void 0:t.size:void 0}function ost(t){let e=0;for(let r of t){let n=ist(r);if(n===void 0)return;e+=n}return e}async function ast(t,e,r){let n=[ai(`--${r}`,"utf-8"),...e.flatMap(i=>[ai(`\r
`,"utf-8"),ai(sst(i.headers),"utf-8"),ai(`\r
`,"utf-8"),i.body,ai(`\r
--${r}`,"utf-8")]),ai(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new VQ(i));return n.searchPaths.push(...n5(n.patterns)),n})}static stat(e,r,n){return l5(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Uy.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`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 Uy.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Uy.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as d5 from"crypto";import*as n2 from"fs";import*as fEe from"stream";import*as mEe from"util";import*as pEe from"path";var tct=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},rct=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function gEe(t,e){return tct(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ee:G,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=d5.createHash("sha256"),f=0;try{for(var m=!0,E=rct(r.globGenerator()),g;g=yield E.next(),i=g.done,!i;m=!0){c=g.value,m=!1;let C=c;if(u(C),!C.startsWith(`${d}${pEe.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(n2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let I=d5.createHash("sha256");yield mEe.promisify(fEe.pipeline)(n2.createReadStream(C),I),h.write(I.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!m&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var EEe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function KQ(t,e){return EEe(this,void 0,void 0,function*(){return yield t2.create(t,e)})}function yEe(t){return EEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield KQ(e,{followSymbolicLinks:i});return gEe(o,r,s)})}var lye=be(p2(),1);import*as C2 from"crypto";import*as Gy from"fs";import*as Jp from"path";import*as dye from"util";var rw;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(rw||(rw={}));var Pi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Pi||(Pi={}));var ea;(function(t){t.GNU="gnu",t.BSD="bsd"})(ea||(ea={}));var g2=2,E2=5e3,P5=5e3,M5=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uye=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,nw="cache.tar",F5="manifest.txt",OAr=10*Math.pow(1024,3),y2="cache read denied:";var qy=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ult=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},llt="1.0";function Vp(){return qy(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=Jp.join(n,"actions","temp")}let r=Jp.join(e,C2.randomUUID());return yield Up(r),r})}function Au(t){return Gy.statSync(t).size}function L5(t){return qy(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield KQ Line truncated
`),{implicitDescendants:!1});try{for(var A=!0,u=ult(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Jp.relative(a,s).replace(new RegExp(`\\${Jp.sep}`,"g"),"/");G(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function sw(t){return qy(this,void 0,void 0,function*(){return dye.promisify(Gy.unlink)(t)})}function hye(t){return qy(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield cA(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}function iw(){return qy(this,void 0,void 0,function*(){let t=yield hye("zstd",["--quiet"]),e=lye.clean(t);return G(`zstd version: ${e}`),t===""?Pi.Gzip:Pi.ZstdWithoutLong})}function If(t){return t===Pi.Gzip?rw.Gzip:rw.Zstd}function fye(){return qy(this,void 0,void 0,function*(){return Gy.existsSync(M5)?M5:(yield hye("tar")).toLowerCase().includes("gnu tar")?Zo("tar"):""})}function _5(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Yy(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(llt),C2.createHash("sha256").update(n.join("|")).digest("hex")}function mye(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as DC from"fs";import{URL as D0t}from"url";var uu=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as dlt}from"node:os";import hlt from"node:util";import flt from"node:process";function pye(t,...e){flt.stderr.write(`${hlt.format(t,...e)}${dlt}`)}import ow from"node:process";function B2(t){return ow.env[t]}var gye=typeof ow.versions.deno=="string"&&ow.versions.deno.length>0,Eye=typeof ow.versions.bun=="string"&&ow.versions.bun.length>0,b2=!0;var yye=B2("DEBUG"),Iye,U5=[],O5=[],Q2=[];yye&&H5(yye);var Bye=Object.assign(t=>bye(t),{enable:H5,enabled:q5,disable:mlt,log:pye});function H5(t){Iye=t,U5=[],O5=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?O5.push(r.substring(1)):U5.push(r);for(let r of Q2)r.enabled=q5(r.namespace)}function q5(t){if(t.endsWith("*"))return!0;for(let e of O5)if(Cye(t,e))return!1;for(let e of U5)if(Cye(t,e))return!0;return!1}function Cye(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function mlt(){let t=Iye||"";return H5(""),t}function bye(t){let e=Object.assign(r,{enabled:q5(t),destroy:plt,log:Bye.log,namespace:t,extend:glt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return Q2.push(e),e}function plt(){let t=Q2.indexOf(this);return t>=0?(Q2.splice(t,1),!0):!1}function glt(t){let e=bye(`${this.namespace}:${t}`);return e.log=this.log,e}var zy=Bye;var G5=["verbose","info","warning","error"],Qye={verbose:400,info:300,warning:200,error:100};function wye(t,e){e.log=(...r)=>{t.log(...r)}}function Nye(t){return G5.includes(t)}function w2(t){let e=new Set,r=B2(t.logLevelEnvVarName),n,s=zy(t.namespace);s.log=(...u)=>{zy.log(...u)};function i(u){if(u&&!Nye(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${G5.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);zy.enable(l.join(","))}r&&(Nye(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${G5.join(", ")}.`));function o(u){return!!(n&&Qye[u.level]<=Qye[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(wye(u,d),o(d)){let h=zy.disable();zy.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return wye(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var xye=w2({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Elt=xye.logger;function aw(t){return xye.createClientLogger(t)}function N2(t){return t.toLowerCase()}function ylt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Clt(t){for(let e of t.values())yield[e.name,e.value]}var Y5=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(N2(e),{name:e,value:ylt(r)})}get(e){return this._headersMap.get(N2(e))?.value}has(e){return this._ Line truncated
${Qlt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function bf(t){return t instanceof Ai?!0:Kp(t)&&t.name==="RestError"}function uw(t,e){return Buffer.from(t).toString(e)}function Mi(t,e){return Buffer.from(t,e)}import V5 from"node:http";import j5 from"node:https";import Rye from"node:zlib";import{Transform as wlt}from"node:stream";var lo=aw("ts-http-runtime");var Nlt={};function lw(t){return t&&typeof t.pipe=="function"}function Dye(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 kye(t){return t&&typeof t.byteLength=="number"}var x2=class extends wlt{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}},K5=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new uu("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new ja;lo.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=Rlt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,m=new x2(f);m.on("error",E=>{lo.error("Error in upload progress",E)}),lw(a)?a.pipe(m):m.end(a),a=m}let A=await this.makeRequest(e,r,a),u=xlt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Slt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new x2(h);f.on("error",m=>{lo.error("Error in download progress",m)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Tlt(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();lw(a)&&(A=Dye(a));let u=Promise.resolve();lw(c)&&(u=Dye(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{lo.warning("Error when cleaning up abortListener on httpRequest",l)})}}}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 a={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((c,A)=>{let u=i?V5.request(a,c):j5.request(a,c);u.once("error",l=>{A(new Ai(l.message,{code:l.code??Ai.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new uu("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&lw(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):kye(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(lo.error("Unrecognized body type",n),A(new Ai("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V5.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V5.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return j5.globalAgent;let s=e.tlsSettings??Nlt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(lo.info("No cached TLS Agent exist, creating a new Agent"),i=new j5.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function xlt(t){let e=uo();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}function Slt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Rye.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Rye.createInflate();return t.pipe(n),n}return t}function Tlt(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 Ai(`Error reading response as text: ${s.message}`,{code:Ai.PARSE_ERROR}))})})}function Rlt(t){return t?Buffer.isBuffer(t)?t.length:lw(t)?null:kye(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function vye(){return new K5}function dw(){return vye()}var S2="logPolicy";function hw(t={}){let e=t.logger??lo.info,r=new ja({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi Line truncated
`;return e}function Xdt(t){return t instanceof Uint8Array?t.byteLength:Qw(t)?t.size===-1?void 0:t.size:void 0}function Zdt(t){let e=0;for(let r of t){let n=Xdt(r);if(n===void 0)return;e+=n}return e}async function $dt(t,e,r){let n=[Mi(`--${r}`,"utf-8"),...e.flatMap(i=>[Mi(`\r
`,"utf-8"),Mi(Kdt(i.headers),"utf-8"),Mi(`\r
`,"utf-8"),i.body,Mi(`\r
--${r}`,"utf-8")]),Mi(`--\r
\r
`,"utf-8")],s=ost(n);s&&t.headers.set("Content-Length",s),t.body=await rfe(n)}var uB="multipartPolicy",cst=70,Ast=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ust(t){if(t.length>cst)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Ast.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Nx(){return{name:uB,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,o]=s;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?ust(r):r=nst(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await ast(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Tx(){return rx()}var nfe=ZT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),drr=nfe.logger;function Oo(t){return nfe.createClientLogger(t)}var qc=Oo("core-rest-pipeline");function M8(t={}){return ix({logger:qc.info,...t})}var L8=wx;function U8(t={}){return Sx(t)}import P8 from"node:os";import Ad from"node:process";function sfe(){return"User-Agent"}async function ife(t){if(Ad&&Ad.versions){let e=`${P8.type()} ${P8.release()}; ${P8.arch()}`;Ad.versions.bun?t.set("Bun",`${Ad.versions.bun} (${e})`):Ad.versions.deno?t.set("Deno",`${Ad.versions.deno} (${e})`):Ad.versions.node&&t.set("Node",`${Ad.versions.node} (${e})`)}}var xx="1.24.0";function Est(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function ofe(){return sfe()}async function Rx(t){let e=new Map;e.set("core-rest-pipeline",xx),await ife(e);let r=Est(e);return t?`${t} ${r}`:r}var afe=ofe(),cfe="userAgentPolicy";function O8(t={}){let e=Rx(t.userAgentPrefix);return{name:cfe,async sendRequest(r,n){return r.headers.has(afe)||r.headers.set(afe,await e),n(r)}}}var Afe=Symbol("rawContent");function H8(t){return typeof t[Afe]=="function"}function ufe(t){return H8(t)?t[Afe]():t}var Dx=uB;function G8(){let t=Nx();return{name:Dx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)H8(n.body)&&(n.body=ufe(n.body));return t.sendRequest(e,r)}}}var q8=bx;function Y8(){return Qx()}function V8(t={}){return cx(t)}function W8(){return Ax()}var lB=class extends Error{constructor(e){super(e),this.name="AbortError"}};function J8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new lB(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var Nst="The delay was aborted.";function d0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return J8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Nst})}function ud(t){if(Sf(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 lfe(t){return Sf(t)}function h0(){return wf()}var Jt=$T;function ld(t){return k8(t)}function j8(t,e){return Bx(t,e)}var dfe="setClientRequestIdPolicy";function K8(t="x-ms-client-request-id"){return{name:dfe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function $8(t){return ux(t)}function X8(t){return lx(t)}var f0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function hfe(t={}){let e=new Z8(t.parentContext);return t.span&&(e=e.setValue(f0.span,t.span)),t.namespace&&(e=e.setValue(f0.namespace,t.namespace)),e}var Z8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var gfe=ge(ffe(),1),vx=gfe.state;function Tst(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function xst(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Tst(),tracingContext:hfe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dB(){return vx.instrumenterImplementation||(vx.instrumenterImplementation=xst()),vx.instrumenterImplementation}function hB(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dB().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!$it(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",tn("InvalidTag",l,Fs(t,i))}let A=Wit(t,i);if(A===!1)return tn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fs(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Kfe(u,e);if(d===!0)n=!0;else return tn(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return tn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return tn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fs(t,l.tagStartPos);return tn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return tn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fs(t,i));else{let l=Kfe(u,e);if(l!==!0)return tn(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return tn("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=jfe(t,i);continue}else if(t[i+1]==="?"){if(i=zfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=jit(t,i);if(l==-1)return tn("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!Jfe(t[i]))return tn("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(Jfe(t[i]))continue;return tn("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return tn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return tn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return tn("InvalidXml","Start tag expected.",1);return!0}function Jfe(t){return t===" "||t===" "||t===`
`||t==="\r"}function zfe(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 tn("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function jfe(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 Yit='"',Vit="'";function Wit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Yit||t[e]===Vit)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}}var Jit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Kfe(t,e){let r=Gx(t,Jit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return tn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bB(r[s]));let i=r[s][2];if(!Kit(i))return tn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return tn("InvalidAttr","Attribute '"+i+"' is repeated.",bB(r[s]))}return!0}function zit(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 jit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,zit(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 tn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Kit(t){return m4(t)}function $it(t){return m4(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bB(t){return t.startIndex+t[1].length}var $fe={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:"%",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"},Xfe={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"},Zfe={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",Lcaron:"\u013Line truncated
`);let e=new di("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new SB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=I0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=w4(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=S4(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new di(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=I0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=I0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=S4(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=bot(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=Bot(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new di(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s));let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new di(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function xot(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))}function Rot(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)}function Dot(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}function kot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function vot(t,e,r=">"){Line truncated
`;function Hot(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(k4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function wge(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function D4(t,e){let r="";e.format&&(r=Oot);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new $i(a)):a instanceof $i&&n.push(a)}let s=Hot(t,e),i=new Wc;return Sge(t,e,r,i,n,s)}function Sge(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=R4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=k4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:wge(u,!1,e,n,i),h=Got(A[":@"],e);n.push(d,h);let f=Yot(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=R4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],B=Zx(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Xx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Qge(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Qge(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Nge(A[u],e):I=Sge(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function Got(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]=fd(t[s]),n=!0}return n?r:null}function Nge(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=k4(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 o=qot(s[":@"],e),a=Nge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function qot(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)}="${fd(s)}"`}return r}function k4(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}}function Qge(t,e,r,n,s){let i="";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:wge(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=R4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${fd(A)}"`}return i}function Yot(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 R4(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}function v4(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 Vot={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 fi(t){if(this.options=Object.assign({},Vot,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 $i(r)):r instanceof $i&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=Zdt(n);s&&t.headers.set("Content-Length",s),t.body=await wCe(n)}var Zy="multipartPolicy",eht=70,tht=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function rht(t){if(t.length>eht)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!tht.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ww(){return{name:Zy,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,o]=s;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?rht(r):r=jdt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await $dt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}var NCe=w2({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),qhr=NCe.logger;function bs(t){return NCe.createClientLogger(t)}var Nw=bs("core-rest-pipeline");function vCe(){return"User-Agent"}function PCe(){return vCe()}var kfr=PCe();var Mn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function aq(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Mn(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var hht="The delay was aborted.";function du(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return aq(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??hht})}function Nd(t){if(Kp(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 Aq(t){return Kp(t)}function $a(){return jp()}var ct=b2;function uq(t,e){return uw(t,e)}function lq(t,e){return Mi(t,e)}var dq=Xy;function Nf(t){return yw(t)}var $y={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function MCe(t={}){let e=new hq(t.parentContext);return t.span&&(e=e.setValue($y.span,t.span)),t.namespace&&(e=e.setValue($y.namespace,t.namespace)),e}var hq=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var LCe=be(FCe(),1),V2=LCe.state;function fht(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function mht(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:fht(),tracingContext:MCe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function xw(){return V2.instrumenterImplementation||(V2.instrumenterImplementation=mht()),V2.instrumenterImplementation}function xf(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=xw().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue($y.namespace)||(h=h.setValue($y.namespace,e)),f.setAttribute("az.namespace",h.getValue($y.namespace));let m=Object.assign({},u,{tracingOptions:{...u?.tracingOptions,tracingContext:h}});return{span:f,updatedOptions:m}}async function i(A,u,l,d){let{span:h,updatedOptions:f}=s(A,u,d);try{let m=await o(f.tracingOptions.tracingContext,()=>l(f,h));return h.setStatus({status:"success"}),m}catch(m){throw h.setStatus({status:"error",error:m}),m}finally{h.end()}}function o(A,u,...l){return xw().withContext(A,u,...l)}function a(A){return xw().parseTraceparentHeader(A)}function c(A){return xw().createRequestHeaders(A)}return{startSpan:s,withSpan:i,withContext:o,parseTraceparentHeader:a,createRequestHeaders:c}}function j2(t){return bf(t)}var Fpr=bs("core-rest-pipeline retryPolicy");var Rht={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Dht(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let i=await t();if(i===null)throw new Error("Failed to refresh access token.");return i}}let s=await n();for(;s===null;)await du(e),s=await n();return s}function fq(t,e){let r=null,n=null,s,i={...Rht,...e},o={get isRefreshing(){return r!==null},get shouldRefresh(){return o.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-i.refreshWindowInMs<Date.now()},get mustRefresh(){return n===n Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!smt(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Fn("InvalidTag",l,Fi(t,i))}let A=$ft(t,i);if(A===!1)return Fn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fi(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=kIe(u,e);if(d===!0)n=!0;else return Fn(d.err.code,d.err.msg,Fi(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Fn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fi(t,o));if(r.length===0)return Fn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fi(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fi(t,l.tagStartPos);return Fn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fi(t,o))}r.length==0&&(s=!0)}}else return Fn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fi(t,i));else{let l=kIe(u,e);if(l!==!0)return Fn(l.err.code,l.err.msg,Fi(t,i-u.length+l.err.line));if(s===!0)return Fn("InvalidXml","Multiple possible root nodes found.",Fi(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=DIe(t,i);continue}else if(t[i+1]==="?"){if(i=RIe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=rmt(t,i);if(l==-1)return Fn("InvalidChar","char '&' is not expected.",Fi(t,i));i=l}else if(s===!0&&!rC(t[i]))return Fn("InvalidXml","Extra text at the end",Fi(t,i));t[i]==="<"&&i--}}else{if(rC(t[i]))continue;return Fn("InvalidChar","char '"+t[i]+"' is not expected.",Fi(t,i))}if(n){if(r.length==1)return Fn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fi(t,r[0].tagStartPos));if(r.length>0)return Fn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Fn("InvalidXml","Start tag expected.",1);return!0}function rC(t){return t===" "||t===" "||t===`
`||t==="\r"}function RIe(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 Fn("InvalidXml","XML declaration allowed only at the start of the document.",Fi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function DIe(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 Xft='"',Zft="'";function $ft(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Xft||t[e]===Zft)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}}function emt(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&rC(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!rC(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&rC(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&rC(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,m=t.indexOf(t[d],f);m!==-1&&(u=t[d],l=t.slice(f,m),n=m+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function kIe(t,e){let r=emt(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",_w(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",_w(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Fn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",_w(r[s]));let i=r[s][2];if(!nmt(i))return Fn("InvalidAttr","Attribute '"+i+"' is an invalid name.",_w(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Fn("InvalidAttr","Attribute '"+i+"' is repeated.",_w(r[s]))}return!0}function tmt(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 rmt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,tmt(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 Fn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function nmt(t){return Wq(t)}function smt(t){return Wq(t)}function Fi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function _w(t){return t.startIndex+t[1].length}var Jq={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Uw={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Vq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var nC=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),imt=new Set("!?\\\\/[]$%{}^&*()<>|+");function vIe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(imt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Ow(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var sg="external",Ak="base",jq="all";function omt(t){return!t||t===sg?new Set([sg]):t===jq?new Set([jq]):t===Ak?new Set([Ak]):Array.isArray(t)?new Set(t):new Set([sg])}var mo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),amt=new Set([9,10,13]);function cmt(t){if(!t)return{xmlVersion:1,onLevel:mo.allow,nullLevel:mo.remove};let e=t.xmlVersion===1.1?1.1:1,r=mo[t.onNCR]??mo.allow,n=mo[t.nullNCR]??mo.remove,s=Math.max(n,mo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var sC=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=omt(this._limit.applyLimitsTo??sg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Ow(Uw,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le Line truncated
`);let e=new po("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s=this.options,i=new qw(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=AC(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=cG(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop()||e,s.captureMetaData&&r&&r.addEndIndex(u+1),n="",a=u}else if(A===63){let u=AG(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new po(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),s.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=AC(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=AC(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=AG(t,a,s.removeNSPrefix);if(!u){let J=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${J}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,m=u.closeIndex;if({tagName:l,tagExp:h}=cG(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(g=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,I={},B;B=Ymt(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(I=Gmt(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let J="";if(g)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let H=this.readStopNodeData(t,d,m+1);if(!H)throw new Error(`Unexpected end of ${d}`);a=H.i,J=H.tagContent}let F=new po(l);C&&(F[":@"]=C),F.add(s.textNodeName,J),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(a+1)}else{if(g){({tagName:l,tagExp:h}=cG(s.transformTagName,l,h,s));let J=new po(l);C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(m+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let J=new po(l);C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let J=new po(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),r=J}n="",a=m}}}else n+=t[a];return e.child};function Kmt(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))}function Xmt(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)}function Zmt(t,e,Line truncated
`;function cpt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(mG(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function ZIe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function fG(t,e){let r="";e.format&&(r=apt);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 ra(c)):c instanceof ra&&n.push(c)}let s=cpt(t,e),i=uk("qName",{xmlVersion:s}),o=new pu;return $Ie(t,e,r,o,n,i)}function $Ie(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=js(t);return c=hG(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=mG(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:ZIe(u,!1,e,n,i),h=Apt(A[":@"],e);n.push(d,h);let f=lpt(n,s);if(d===e.textNodeName){let I=A[u];f||(I=e.tagValueProcessor(d,I),I=hG(I,e)),I=js(I),a&&(o+=r),o+=I,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let I=A[u][0][e.textNodeName],B=mk(I);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let I=A[u][0][e.textNodeName],B=zw(I);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let I=XIe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${I}?>`,a=!0,n.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let E=XIe(A[":@"],e,f,n,i),g=r+`<${d}${E}`,C;f?C=eBe(A[u],e):C=$Ie(A[u],e,m,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}</${d}>`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function Apt(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]=gu(t[s]),n=!0}return n?r:null}function eBe(t,e){if(!Array.isArray(t))return t!=null?js(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=mG(s);if(i===e.textNodeName)r+=js(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 o=upt(s[":@"],e),a=eBe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function upt(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)}="${gu(s)}"`}return r}function mG(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}}function XIe(t,e,r,n,s){let i="";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:ZIe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=hG(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${gu(A)}"`}return i}function lpt(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 hG(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}function pG(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 dpt={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 Eo(t){if(this.options=Object.assign({},dpt,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 ra(r)):r instanceof ra&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Wot(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"}function _4(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}fi.prototype.build=function(t){if(this.options.preserveOrder)return D4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wc,r=Wot(t,this.options);return this.j2x(t,0,e,r).val}};fi.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 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:_4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=_4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=_4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};fi.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+'="'+fd(e)+'"'};function Jot(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}fi.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]=fd(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]=fd(t[n]),r=!0)}return r?e:null};fi.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 n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function hpt(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"}function gG(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Eo.prototype.build=function(t){if(this.options.preserveOrder)return fG(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new pu,r=hpt(t,this.options),n=uk("qName",{xmlVersion:r});return this.j2x(t,0,e,n).val}};Eo.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 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:gG(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=gG(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,js(t[c]),a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,js(t[c]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=js(t[c]);h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let m=t[c][f];if(!(typeof m>"u"))if(m===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=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,n);r.pop(),d+=E.val,this.options.attributesGroupName&&m.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(m,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,m);E=this.replaceEntitiesValue(E),E=js(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let g=js(m);g===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+g+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(m,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=gG(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,js(t[c][l[h]]),a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};Eo.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,js(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+gu(e)+'"'};function fpt(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}Eo.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]=gu(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]=gu(t[n]),r=!0)}return r?e:null};Eo.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 n=t[r];if(r===this.options.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set($e.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===$e.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE));r.sort((s,i)=>uR(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=aR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=cR(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Or=class extends Mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new DB(e,r,this)}computeHMACSHA256(e){return iat("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Lf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Bn=Oo("storage-common");var Ho;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ho||(Ho={}));var pd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},oat=new Lf("The operation was aborted."),kB=class extends Jc{retryOptions;constructor(e,r,n=pd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:pd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):pd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:pd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:pd.maxRetryDelayInMs):pd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:pd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:pd.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=oR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=gd(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Bn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(Bn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Bn.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 o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return Bn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return Bn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Bn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get($e.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Bn.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 Ho.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ho.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Bn.info(`RetryPolicy: Delay for ${s}ms`),AR(s,n,oat)}};var vB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kB(e,r,this.retryOptions)}};var aat="storageBrowserPolicy";function kge(){return{name:aat,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=gd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}var cat="StorageCorrectContentLengthPolicy";function vge(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:cat,async sendRequest(e,r){return t(e),r(e)}}}var Aat="storageRetryPolicy",B0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},uat=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],lat=new Lf("The operation was aborted.");function _ge(t={}){let e=t.retryPolicyType??B0.retryPolicyType,r=t.maxTries??B0.maxTries,n=t.retryDelayInMs??B0.retryDelayInMs,s=t.maxRetryDelayInMs??B0.maxRetryDelayInMs,i=t.secondaryHost??B0.secondaryHost,o=t.tryTimeoutInMs??B0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return Bn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of uat)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Qt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Qt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Qt.PREFIX_FOR_STORAGE));r.sort((s,i)=>xk(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Qk(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=wk(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var It=class extends Mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new mC(e,r,this)}computeHMACSHA256(e){return Ppt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var ss=bs("storage-common");var ia;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ia||(ia={}));var Ff={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ia.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Mpt=new Mn("The operation was aborted."),pC=class extends hA{retryOptions;constructor(e,r,n=Ff){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Ff.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Ff.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Ff.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Ff.maxRetryDelayInMs):Ff.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Ff.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Ff.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=bk(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Bk(s.url,Kw.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(ss.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(ss.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return ss.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 o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return ss.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return ss.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return ss.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(Qt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(ss.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 ia.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ia.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return ss.info(`RetryPolicy: Delay for ${s}ms`),Nk(s,n,Mpt)}};var Lf=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new pC(e,r,this.retryOptions)}};var Fpt="storageBrowserPolicy";function Sk(){return{name:Fpt,async sendRequest(t,e){return e(t)}}}var Lpt="StorageCorrectContentLengthPolicy";function Tk(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Qt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Lpt,async sendRequest(e,r){return t(e),r(e)}}}var _pt="storageRetryPolicy",gC={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ia.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Upt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Opt=new Mn("The operation was aborted.");function Rk(t={}){let e=t.retryPolicyType??gC.retryPolicyType,r=t.maxTries??gC.maxTries,n=t.retryDelayInMs??gC.retryDelayInMs,s=t.maxRetryDelayInMs??gC.maxRetryDelayInMs,i=t.secondaryHost??gC.secondaryHost,o=t.tryTimeoutInMs??gC.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return ss.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Upt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return ss.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return ss.info("RetryPolicy: Incomplete XML response likely due Line truncated
`)+`
`+n(i)+s(i),a=dat("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set($e.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===$e.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>uR(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=aR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=cR(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:hat,async sendRequest(i,o){return e(i),o(i)}}}var fat="storageRequestFailureDetailsParserPolicy";function Fge(){return{name:fat,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}}}}import{createHmac as gat}from"node:crypto";var lR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return gat("sha256",this.key).update(e,"utf8").digest("base64")}};var dR="12.31.0",hR="2026-02-06";var fR="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var za="",O4="*",pat=1*1024*1024;var mat=4*pat;var Mge="AES256",Lge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Uge=["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"],Pge=["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"],Oge="BlobUsesCustomerSpecifiedEncryption",Hge="BlobDoesNotUseCustomerSpecifiedEncryption",Gge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(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 _B=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function rn(t,e={}){t||(t=new Nr);let r=new _B([],e);return r._credential=t,r}function Eat(t){let e=[Cat,qge,Iat,yat,Bat,bat,wat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Qat(s));return{wrappedPolicies:g4(r),afterRetry:n}}}}function H4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?p4(e):U4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${dR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pB({...r,loggingOptions:{additionalAllowedHeaderNames:Uge,additionalAllowedQueryParameters:Pge,logger:tR.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:eR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:M4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:q8}),s.addPolicy(vge()),s.addPolicy(_ge(r.retryOptions),{phase:"Retry"}),s.addPolicy(Fge()),s.addPolicy(kge());let a=Eat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=G4(t);ji(c)?s.addPolicy(g0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Za(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}}function CAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,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 IAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,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}}function yAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,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}}function BAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,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}}function bAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,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}}function QAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,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}}function Vf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Wf(t){let e=t.version?t.version:hR;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 WB=class{_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=h0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>_e(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!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=_e(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!==za||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==za||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>_e(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!==za||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==za||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 Be.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"}};k0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jf=class extends Error{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"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var JAt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},g9=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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`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=()=>{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 rme(t,e,r){return JAt(this,void 0,void 0,function*(){var n;let s=new ec(t),i=s.getBlockBlobClient(),o=new g9((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new cD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as sme from"buffer";import*as dA from"fs";import*as ime from"stream";import*as ome from"util";var AD=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function uD(t){return t?t>=200&&t<300:!1}function zAt(t){return t?t>=500:!0}function jAt(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function KAt(t){return AD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function nme(t,e,r){return AD(this,arguments,void 0,function*(n,s,i,o=VT,a=WT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!zAt(d)))return l;if(d&&(h=jAt(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield KAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return AD(this,arguments,void 0,function*(r,n,s=VT,i=WT){return yield nme(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Mc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function v0(t,e){return AD(this,arguments,void 0,function*(r,n,s=VT,i=WT){return yield nme(r,n,o=>o.message.statusCode,s,i)})}var Wo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function $At(t,e){return Wo(this,void 0,void 0,function*(){yield ome.promisify(ime.pipeline)(t.message,e)})}var lD=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,O(`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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function I9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new rut(t),s=ume(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield cme(t,e,s):s.concurrentBlobDownloads?yield ame(t,e,s):yield dD(t,e):yield dD(t,e)})}function Ime(t,e,r){return pi(this,void 0,void 0,function*(){let n=C9(),s=s0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function Eme(t,e){return`bytes ${t}-${e}/*`}function out(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Eme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Eme(n,s)},o=yield v0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!uD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function aut(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=_0.openSync(r,"r"),a=p9(n),c=i8("uploadConcurrency",a.uploadConcurrency),A=i8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield out(t,i,()=>_0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{_0.closeSync(o)}})}function cut(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function y9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(p9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield rme(r,e,n)}else{let i=C9();O("Upload cache"),yield aut(i,t,e,n),O("Commiting cache");let o=Oc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield cut(i,t,o);if(!uD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var h0e=ge(dG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var pG=ge(At(),1),mG=ge(At(),1),u0e=ge(At(),1),l0e=ge(At(),1),d0e=ge(At(),1);var hG=ge(At(),1),fG=ge(At(),1),a0e=ge(At(),1),c0e=ge(At(),1),A0e=ge(At(),1),gG=class extends A0e.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,c0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,a0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?fG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,hG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,hG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?fG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},ZD=new gG;var EG=class extends d0e.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:()=>ZD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,l0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,u0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(ZD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?mG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,pG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)ZD.internalBinaryWrite(e.scope[i],r.tag(2,pG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?mG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield vG(r,"create");yield _G(n,t)})}var K0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},LG="cache write denied:",r2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},m0e=JT,n2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},s2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function E0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function UG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function C0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function i2(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),E0e(s);let u=E9();if(!dme(u)){$(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield wdt(s,i,o,a,c):yield Qdt(s,i,o,a,c)})}function Qdt(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UG(h);let l=yield nB(),d="";try{let h;try{h=yield Cme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(m0e)?new n2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),od(l)),O(`Archive Path: ${d}`),yield I9(h.archiveLocation,d,a),Ga()&&(yield Eb(d,l));let f=Oc(d);return $(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield FG(d,l),$("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Mc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):ze(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function wdt(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)UG(d);let l="";try{let d=kG(),h=yield nB(),f={key:i,restoreKeys:o,version:s0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(m0e)?new n2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?$(`Cache hit for restore-key: ${g.matchedKey}`):$(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),od(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield I9(g.signedDownloadUrl,l,a);let m=Oc(l);return $(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Ga()&&(yield Eb(l,h)),yield FG(l,h),$("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Mc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):ze(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function o2(t,e,r){return K0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),E0e(n),UG(s);let c=E9();return hme(c)?a==="v2"?yield Ndt(n,s,i,o):yield Sdt(n,s,i,o):($(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Sdt(t,e,r){return K0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield s8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.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 E=yield tB(),m=Cb.join(E,od(h));O(`Archive Path: ${m}`);try{yield MG(E,g,h),Ga()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if( Line truncated
See ${r.getDocumentationLink()}`;I0e.push(n),ed(n)}function B0e(){Uc("deprecation-collector_deprecations",JSON.stringify(OG)),Uc("deprecation-collector_errors",JSON.stringify(I0e))}import*as A2 from"path";var b0e="GRADLE_ACTION_ID";var h2=".setup-gradle",yb=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return Rdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,Q0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return A2.resolve(Vu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new u2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var $0=class{isCacheDisabled(){return C0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=Ib("gradle-home-cache-cleanup");if(e!==void 0)return c2("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return n3("gradle-home-cache-includes")}getCacheExcludes(){return n3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var nc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return Ib("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return Ib("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return Ib("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return Ib("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new u2}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(ze("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},u2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-password")}},l2=class{getGradleVersion(){re Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Tb(i));return n.searchPaths.push(...VG(n.patterns)),n})}static stat(e,r,n){return ZG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield eE.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 eE.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield eE.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as eq from"crypto";import*as I2 from"fs";import*as X0e from"stream";import*as Z0e from"util";import*as eEe from"path";var zht=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},jht=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function tEe(t,e){return zht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=eq.createHash("sha256"),f=0;try{for(var g=!0,E=jht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${eEe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(I2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=eq.createHash("sha256");yield Z0e.promisify(X0e.pipeline)(I2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var rEe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function tq(t,e){return rEe(this,void 0,void 0,function*(){return yield E2.create(t,e)})}function nEe(t){return rEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield tq(e,{followSymbolicLinks:i});return tEe(o,r,s)})}import*as rq from"path";var Kht="Gradle User Home",iEe="BASIC_CACHE_PRIMARY_KEY",oEe="BASIC_CACHE_RESTORED_KEY",$ht="setup-java",aEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],y2=class{async restore(e,r){let n=cEe(e),s=await Xht();Uc(iEe,s);try{let i=await i2(n,s);i?(Uc(oEe,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ze(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(iEe),i=My(oEe);if(n.readOnly)return{status:"read-only",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return $(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=cEe(e);try{return await o2(o,s)===-1?(ze(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):($(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return ze(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${aEe}], make sure you have checked out the target repository`);return`${$ht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var eft="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",tft="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",sq=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function lEe(t){return t.isCacheDisabled()?(nq("Cache is disabled: will not restore state from previous builds."),new sq):t.getCacheProvider()==="basic"?(nq(tft),new y2):(nq(eft),rft())}async function rft(){let t=nft();return await import(Zht(t).href)}function nft(){let t=import.meta.dirname,e=uEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(AEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function nq(t){console.info(t)}import B2 from"fs";import dEe from"path";var b2=class{constructor(e){this.cacheFile=dEe.resolve(e,h2,"valid-wrappers.json")}load(){if(B2.existsSync(this.cacheFile))try{return JSON.parse(B2.readFileSync(this.cacheFile,"utf-8"))}catch(e){ze(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];B2.mkdirSync(dEe.dirname(this.cacheFile),{recursive:!0}),B2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var EEe=ge(pEe(),1);import*as mEe from"util";import*as Q2 from"path";import*as w2 from"fs";var Aft=mEe.promisify(w2.readdir);async function CEe(t){return(await IEe(t)).filter(r=>(0,EEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>Q2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function IEe(t){let e=await Aft(t),r=await Promise.all(e.map(async n=>{let s=Q2.resolve(t,n),i=w2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?IEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var lft={_useHtmlParser2:!1};function tE(t,e){if(!t)return e??lft;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Tq={};xa(Tq,{contains:()=>O2,extract:()=>igt,html:()=>tgt,merge:()=>qEe,parseHTML:()=>ngt,root:()=>sgt,text:()=>fg,xml:()=>rgt});var vd={};xa(vd,{DocumentPosition:()=>Zo,append:()=>Lft,appendChild:()=>Mft,compareDocumentPosition:()=>PEe,existsOne:()=>LEe,filter:()=>oE,find:()=>M2,findAll:()=>Hft,findOne:()=>L2,findOneChild:()=>Oft,getAttributeValue:()=>kft,getChildren:()=>iE,getElementById:()=>Vft,getElements:()=>Yft,getElementsByClassName:()=>Wft,getElementsByTagName:()=>hg,getElementsByTagType:()=>Jft,getFeed:()=>Nq,getInnerHTML:()=>Dft,getName:()=>_ft,getOuterHTML:()=>FEe,getParent:()=>MEe,getSiblings:()=>wq,getText:()=>v2,hasAttrib:()=>vft,hasChildren:()=>rr,innerText:()=>Fb,isCDATA:()=>rE,isComment:()=>dg,isDocument:()=>Xo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>_2,prepend:()=>Pft,prependChild:()=>Uft,prevElementSibling:()=>F2,removeElement:()=>$u,removeSubsets:()=>zft,replaceElement:()=>Fft,testElement:()=>qft,textContent:()=>Ku,uniqueSort:()=>Dd});var $o={};xa($o,{CDATA:()=>hq,Comment:()=>Aq,Directive:()=>cq,Doctype:()=>fq,ElementType:()=>bt,Root:()=>oq,Script:()=>uq,Style:()=>lq,Tag:()=>dq,Text:()=>aq,isTag:()=>iq});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function iq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var oq=bt.Root,aq=bt.Text,cq=bt.Directive,Aq=bt.Comment,uq=bt.Script,lq=bt.Style,dq=bt.Tag,hq=bt.CDATA,fq=bt.Doctype;var S2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return nE(this,e)}},Db=class extends S2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends Db{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends Db{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends Db{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},kb=class extends S2{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.le Line truncated
`:v2(t.children):rE(t)?v2(t.children):Ii(t)?t.data:""}function Ku(t){return Array.isArray(t)?t.map(Ku).join(""):rr(t)&&!dg(t)?Ku(t.children):Ii(t)?t.data:""}function Fb(t){return Array.isArray(t)?t.map(Fb).join(""):rr(t)&&(t.type===bt.Tag||rE(t))?Fb(t.children):Ii(t)?t.data:""}function iE(t){return rr(t)?t.children:[]}function MEe(t){return t.parent||null}function wq(t){let e=MEe(t);if(e!=null)return iE(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function kft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function vft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function _ft(t){return t.name}function _2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function F2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function $u(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Fft(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Mft(t,e){if($u(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Lft(t,e){$u(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Uft(t,e){if($u(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Pft(t,e){$u(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function oE(t,e,r=!0,n=1/0){return M2(t,Array.isArray(e)?e:[e],r,n)}function M2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Oft(t,e){return e.find(t)}function L2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=L2(t,i.children,!0);if(o)return o}}return null}function LEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&LEe(t,r.children))}function Hft(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var U2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Ii(e)&&t(e.data):e=>Ii(e)&&e.data===t}};function Sq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Gft(t,e){return r=>t(r)||e(r)}function UEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(U2,r)?U2[r](n):Sq(r,n)});return e.length===0?null:e.reduce(Gft)}function qft(t,e){let r=UEe(t);return r?r(e):!0}function Yft(t,e,r,n=1/0){let s=UEe(t);return s?oE(s,e,r,n):[]}function Vft(t,e,r=!0){return Array.isArray(e)||(e=[e]),L2(Sq("id",t),e,r)}function hg(t,e,r=!0,n=1/0){return oE(U2.tag_name(t),e,r,n)}function Wft(t,e,r=!0,n=1/0){return oE(Sq("class",t),e,r,n)}function Jft(t,e,r=!0,n=1/0){return oE(U2.tag_type(t),e,r,n)}function zft(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Zo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Zo||(Zo={}));function PEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Zo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Zo.FOLLOWING|Zo.CONTAINED_BY:Zo.FOLLOWING:a===t?Zo.PRECEDING|Zo.CONTAINS:Zo.PRECEDING}function Dd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=PEe(e,r);return n&Zo.PRECEDING?-1:n&Zo.FOLLOWING?1:0}),t}function Nq(t){let e=P2(Zft,t);return e?e.name==="feed"?jft(e):Kft(e):null}function jft(t){var e;let r=t.children,n={type:"atom",items:hg("entry",r).map(o=>{var a;let{children:c}=o,A={media:OEe(c)};yi(A,"id","id",c),yi(A,"title","title",c);let u=(a=P2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=kd("summary",c)||kd("conten Line truncated
`+n(i)+s(i),a=Hpt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Qt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Qt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(Qt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>xk(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Qk(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=wk(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:qpt,async sendRequest(i,o){return e(i),o(i)}}}var Gpt="storageRequestFailureDetailsParserPolicy";function Dk(){return{name:Gpt,async sendRequest(t,e){try{let r=await e(t);return r.status===400&&r.bodyAsText?.includes("<Error><Code>InvalidHeaderValue</Code>")&&r.bodyAsText.includes("<HeaderName>x-ms-version</HeaderName>")&&(r.bodyAsText=r.bodyAsText.replace(/<Message>.*<\/Message>/s,"<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.</Message>")),r}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}}}}import{createHmac as Ypt}from"node:crypto";var yC=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Ypt("sha256",this.key).update(e,"utf8").digest("base64")}};var kk="12.31.0",vk="2026-02-06";var Pk="https://storage.azure.com/.default",Rd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var fA="",bG="*",zpt=1*1024*1024;var Wpt=4*zpt;var hBe="AES256",fBe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",mBe=["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"],pBe=["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"],gBe="BlobUsesCustomerSpecifiedEncryption",EBe="BlobDoesNotUseCustomerSpecifiedEncryption",yBe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Dd(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 Xw=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Ln(t,e={}){t||(t=new lt);let r=new Xw([],e);return r._credential=t,r}function Jpt(t){let e=[Vpt,CBe,jpt,Kpt,Xpt,Zpt,egt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>$pt(s));return{wrappedPolicies:Mw(r),afterRetry:n}}}}function QG(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?Fw(e):jw(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${kk}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=eg({...r,loggingOptions:{additionalAllowedHeaderNames:mBe,additionalAllowedQueryParameters:pBe,logger:pk.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:ag,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Ww,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:dq}),s.addPolicy(Tk()),s.addPolicy(Rk(r.retryOptions),{phase:"Retry"}),s.addPolicy(Dk()),s.addPolicy(Sk());let a=Jpt(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=wG(t);Hr(c)?s.addPolicy(X2({credential:c,scopes:r.audience??Pk,c Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new yA(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}}function VEt(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?EA(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new yA(t.version,o,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 jEt(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?EA(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new yA(t.version,o,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}}function KEt(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?EA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new yA(t.version,o,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}}function XEt(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?EA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new yA(t.version,o,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}}function ZEt(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?EA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new yA(t.version,o,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}}function $Et(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?EA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new yA(t.version,o,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}}function mg(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function pg(t){let e=t.version?t.version:vk;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 AN=class{_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=$a()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==fA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==fA||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 De.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ge(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!==fA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==fA||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 De.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ge(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!==fA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==fA||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 De.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ge(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!==fA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==fA||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 De.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"}};TC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var yg=class extends Error{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"}};yg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var pN=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var B0t=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Zz=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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ee(`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=()=>{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 vbe(t,e,r){return B0t(this,void 0,void 0,function*(){var n;let s=new _d(t),i=s.getBlockBlobClient(),o=new Zz((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new Sv(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Mbe from"buffer";import*as Fu from"fs";import*as Fbe from"stream";import*as Lbe from"util";var Tv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Rv(t){return t?t>=200&&t<300:!1}function b0t(t){return t?t>=500:!0}function Q0t(t){return t?[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout].includes(t):!1}function w0t(t){return Tv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Pbe(t,e,r){return Tv(this,arguments,void 0,function*(n,s,i,o=g2,a=E2,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!b0t(d)))return l;if(d&&(h=Q0t(d),A=`Cache service responded with ${d}`),G(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){G(`${n} - Error is not retryable`);break}yield w0t(a),u++}throw Error(`${n} failed: ${A}`)})}function gN(t,e){return Tv(this,arguments,void 0,function*(r,n,s=g2,i=E2){return yield Pbe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof iu)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function RC(t,e){return Tv(this,arguments,void 0,function*(r,n,s=g2,i=E2){return yield Pbe(r,n,o=>o.message.statusCode,s,i)})}var ic=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function N0t(t,e){return ic(this,void 0,void 0,function*(){yield Lbe.promisify(Fbe.pipeline)(t.message,e)})}var Dv=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,G(`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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ee(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function nW(t,e,r){return Bo(this,void 0,void 0,function*(){let n=new D0t(t),s=Hbe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Ube(t,e,s):s.concurrentBlobDownloads?yield _be(t,e,s):yield kv(t,e):yield kv(t,e)})}function Xbe(t,e,r){return Bo(this,void 0,void 0,function*(){let n=rW(),s=Yy(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield gN("reserveCache",()=>Bo(this,void 0,void 0,function*(){return n.postJson(yN("caches"),i)}))})}function jbe(t,e){return`bytes ${t}-${e}/*`}function M0t(t,e,r,n,s){return Bo(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${jbe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":jbe(n,s)},o=yield RC(`uploadChunk (start: ${n}, end: ${s})`,()=>Bo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Rv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function F0t(t,e,r,n){return Bo(this,void 0,void 0,function*(){let s=Au(r),i=yN(`caches/${e.toString()}`),o=DC.openSync(r,"r"),a=$z(n),c=_5("uploadConcurrency",a.uploadConcurrency),A=_5("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Bo(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield M0t(t,i,()=>DC.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),h,f)}})))}finally{DC.closeSync(o)}})}function L0t(t,e,r){return Bo(this,void 0,void 0,function*(){let n={size:r};return yield gN("commitCache",()=>Bo(this,void 0,void 0,function*(){return t.postJson(yN(`caches/${e.toString()}`),n)}))})}function sW(t,e,r,n){return Bo(this,void 0,void 0,function*(){if($z(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield vbe(r,e,n)}else{let i=rW();G("Upload cache"),yield F0t(i,t,e,n),G("Commiting cache");let o=Au(e);ee(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield L0t(i,t,o);if(!Rv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ee("Cache saved successfully")}})}var YQe=be(jW(),1),Un=be(Tt(),1),ca=be(Tt(),1),Qg=be(Tt(),1),wg=be(Tt(),1),Ng=be(Tt(),1);var $W=be(Tt(),1),e7=be(Tt(),1),HQe=be(Tt(),1),qQe=be(Tt(),1),GQe=be(Tt(),1);var KW=be(Tt(),1),XW=be(Tt(),1),_Qe=be(Tt(),1),UQe=be(Tt(),1),OQe=be(Tt(),1),ZW=class extends OQe.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,UQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_Qe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?XW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,KW.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,KW.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XW.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},yP=new ZW;var t7=class extends GQe.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:()=>yP}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,qQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,HQe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(yP.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?e7.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,$W.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)yP.internalBinaryWrite(e.scope[i],r.tag(2,$W.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?e7.UnknownFieldHandler.onWrite Line truncated
`));let{commands:n}=yield JQe(r,"create");yield jQe(n,t)})}var JC=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Aa=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Od=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},y7="cache write denied:",BP=class t extends Od{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},XQe=y2,bP=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},QP=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ZQe(t){if(!t||t.length===0)throw new Aa("Path Validation Error: At least one directory or file path is required")}function C7(t){if(t.length>512)throw new Aa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Aa(`Key Validation Error: ${t} cannot contain commas.`)}function $Qe(){return EN()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function wP(t,e,r,n){return JC(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=EN();G(`Cache service version: ${A}`),ZQe(s);let u=tW();if(!Gbe(u)){ee(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),G(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield eIt(s,i,o,a,c):yield $Ct(s,i,o,a,c)})}function $Ct(t,e,r,n){return JC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Aa("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)C7(h);let l=yield iw(),d="";try{let h;try{h=yield Kbe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(m){let E=(A=m?.message)!==null&&A!==void 0?A:"";throw E.includes(XQe)?new bP(E):m}if(!h?.archiveLocation)return;if(a?.lookupOnly)return ee("Lookup only - skipping download"),h.cacheKey;d=MN.join(yield Vp(),If(l)),G(`Archive Path: ${d}`),yield nW(h.archiveLocation,d,a),AA()&&(yield PN(d,l));let f=Au(d);return ee(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield g7(d,l),ee("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Aa.name)throw h;f instanceof iu&&typeof f.statusCode=="number"&&f.statusCode>=500?$o(`Failed to restore: ${h.message}`):Ze(`Failed to restore: ${h.message}`)}finally{try{yield sw(d)}catch(h){G(`Failed to delete archive: ${h}`)}}})}function eIt(t,e,r,n){return JC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Aa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)C7(d);let l="";try{let d=m7(),h=yield iw(),f={key:i,restoreKeys:o,version:Yy(s,h,c)},m;try{m=yield d.GetCacheEntryDownloadURL(f)}catch(C){let I=(A=C?.message)!==null&&A!==void 0?A:"";throw I.includes(XQe)?new bP(I):C}if(!m.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==m.matchedKey?ee(`Cache hit for restore-key: ${m.matchedKey}`):ee(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return ee("Lookup only - skipping download"),m.matchedKey;l=MN.join(yield Vp(),If(h)),G(`Archive path: ${l}`),G(`Starting download of archive to: ${l}`),yield nW(m.signedDownloadUrl,l,a);let g=Au(l);return ee(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),AA()&&(yield PN(l,h)),yield g7(l,h),ee("Cache restored successfully"),m.matchedKey}catch(d){let h=d;if(h.name===Aa.name)throw d;h instanceof iu&&typeof h.statusCode=="number"&&h.statusCode>=500?$o(`Failed to restore: ${d.message}`):Ze(`Failed to restore: ${d.message}`)}finally{try{l&&(yield sw(l))}catch(d){G(`Failed to delete archive: ${d}`)}}})}function NP(t,e,r){return JC(this,arguments,void 0,function*(n,s,i,o=!1){let a=EN();G(`Cache service version: ${a}`),ZQe(n),C7(s);let c=tW();return Ybe(c)?a==="v2"?yield rIt(n,s,i,o):yield tIt(n,s,i,o):(ee(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),G(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function tIt(t,e,r){return JC(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield iw(),f=-1,m=yield L5(n);if(G("Cache Paths:"),G(`${JSON.stringify(m)}`),m.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 E=yield Vp(),g=MN.join(E,If(h));G(`Archive Path: ${g}`);try{yield E7(E,m,h),AA()&&(yield PN(g,h));let C=10*1024 Line truncated
See ${r.getDocumentationLink()}`;ewe.push(n),hf(n)}function rwe(){au("deprecation-collector_deprecations",JSON.stringify(B7)),au("deprecation-collector_errors",JSON.stringify(ewe))}import*as TP from"path";var nwe="GRADLE_ACTION_ID";var vP=".setup-gradle",LN=class t{getDependencyGraphOption(){let e=Ur("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return Gu("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Ur("artifact-retention-days");return iIt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(co.workflow,co.job,swe())}getReportDirectory(){let e=Ur("dependency-graph-report-dir");return TP.resolve(Hd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return xg("dependency-graph-exclude-projects")}getIncludeProjects(){return xg("dependency-graph-include-projects")}getExcludeConfigurations(){return xg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return xg("dependency-graph-include-configurations")}getPluginRepository(){return new RP}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var VC=class{isCacheDisabled(){return $Qe()?Gu("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Gu("cache-read-only")}isCacheWriteOnly(){return Gu("cache-write-only")}isCacheOverwriteExisting(){return Gu("cache-overwrite-existing")}isCacheStrictMatch(){return Gu("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=FN("gradle-home-cache-cleanup");if(e!==void 0)return SP("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Ur("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Ur("cache-encryption-key")}getCacheIncludes(){return T6("gradle-home-cache-includes")}getCacheExcludes(){return T6("gradle-home-cache-excludes")}getCacheProvider(){let e=Ur("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var BA=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Gu("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Ur("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Ur("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Ur("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Ur("develocity-token-expiry")}getDevelocityInjectionEnabled(){return FN("develocity-injection-enabled")}getDevelocityUrl(){return Ur("develocity-url")}getDevelocityAllowUntrustedServer(){return FN("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return FN("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return FN("develocity-enforce-url")}getDevelocityPluginVersion(){return Ur("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Ur("develocity-ccud-plugin-version")}getPluginRepository(){return new RP}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ze("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},RP=class{getUrl(){return xg("gradle-plugin-repository-url")}getUsername(){return xg("gradle-plugin-repository-username")}getPassword(){return xg("gradle-plugin-repository-p Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${lwe}], make sure you have checked out the target repository`);return`${pIt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var yIt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",CIt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",IIt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",UP=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function mwe(t){return t.getCacheProvider()==="external"?(_P(IIt),new UP("external")):t.isCacheDisabled()?(_P("Cache is disabled: will not restore state from previous builds."),new UP("disabled")):t.getCacheProvider()==="basic"?(_P(CIt),new LP):(_P(yIt),BIt())}async function BIt(){let t=bIt();return await import(EIt(t).href)}function bIt(){let t=import.meta.dirname,e=fwe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(hwe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function _P(t){console.info(t)}import OP from"fs";import pwe from"path";var HP=class{constructor(e){this.cacheFile=pwe.resolve(e,vP,"valid-wrappers.json")}load(){if(OP.existsSync(this.cacheFile))try{return JSON.parse(OP.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ze(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];OP.mkdirSync(pwe.dirname(this.cacheFile),{recursive:!0}),OP.writeFileSync(this.cacheFile,JSON.stringify(r))}};var Bwe=be(Cwe(),1);import*as Iwe from"util";import*as qP from"path";import*as GP from"fs";var TIt=Iwe.promisify(GP.readdir);async function bwe(t){return(await Qwe(t)).filter(r=>(0,Bwe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>qP.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Qwe(t){let e=await TIt(t),r=await Promise.all(e.map(async n=>{let s=qP.resolve(t,n),i=GP.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Qwe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var DIt={_useHtmlParser2:!1};function jC(t,e){if(!t)return e??DIt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var K7={};Fa(K7,{contains:()=>sM,extract:()=>wBt,html:()=>IBt,merge:()=>Jwe,parseHTML:()=>bBt,root:()=>QBt,text:()=>Pg,xml:()=>BBt});var Kf={};Fa(Kf,{DocumentPosition:()=>lc,append:()=>nBt,appendChild:()=>rBt,compareDocumentPosition:()=>Gwe,existsOne:()=>Hwe,filter:()=>eI,find:()=>eM,findAll:()=>aBt,findOne:()=>tM,findOneChild:()=>oBt,getAttributeValue:()=>ZIt,getChildren:()=>$C,getElementById:()=>lBt,getElements:()=>uBt,getElementsByClassName:()=>dBt,getElementsByTagName:()=>vg,getElementsByTagType:()=>hBt,getFeed:()=>j7,getInnerHTML:()=>XIt,getName:()=>eBt,getOuterHTML:()=>Uwe,getParent:()=>Owe,getSiblings:()=>J7,getText:()=>XP,hasAttrib:()=>$It,hasChildren:()=>Tr,innerText:()=>GN,isCDATA:()=>KC,isComment:()=>kg,isDocument:()=>uc,isTag:()=>Me,isText:()=>No,nextElementSibling:()=>ZP,prepend:()=>iBt,prependChild:()=>sBt,prevElementSibling:()=>$P,removeElement:()=>Yd,removeSubsets:()=>fBt,replaceElement:()=>tBt,testElement:()=>ABt,textContent:()=>Gd,uniqueSort:()=>Vf});var Ac={};Fa(Ac,{CDATA:()=>M7,Comment:()=>D7,Directive:()=>R7,Doctype:()=>F7,ElementType:()=>Jt,Root:()=>S7,Script:()=>k7,Style:()=>v7,Tag:()=>P7,Text:()=>T7,isTag:()=>x7});var Jt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Jt||(Jt={}));function x7(t){return t.type===Jt.Tag||t.type===Jt.Script||t.type===Jt.Style}var S7=Jt.Root,T7=Jt.Text,R7=Jt.Directive,D7=Jt.Comment,k7=Jt.Script,v7=Jt.Style,P7=Jt.Tag,M7=Jt.CDATA,F7=Jt.Doctype;var YP=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return XC(this,e)}},UN=class extends YP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},zu=class extends UN{constructor(){super(...arguments),this.type=Jt.Text}get nodeType(){return 3}},Tg=class extends UN{constructor(){super(...arguments),this.type=Jt.Comment}get nodeType(){return 8}},Rg=class extends UN{constructor(e,r){super(r),this.name=e,this.type=Jt.Di Line truncated
`:XP(t.children):KC(t)?XP(t.children):No(t)?t.data:""}function Gd(t){return Array.isArray(t)?t.map(Gd).join(""):Tr(t)&&!kg(t)?Gd(t.children):No(t)?t.data:""}function GN(t){return Array.isArray(t)?t.map(GN).join(""):Tr(t)&&(t.type===Jt.Tag||KC(t))?GN(t.children):No(t)?t.data:""}function $C(t){return Tr(t)?t.children:[]}function Owe(t){return t.parent||null}function J7(t){let e=Owe(t);if(e!=null)return $C(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function ZIt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function $It(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function eBt(t){return t.name}function ZP(t){let{next:e}=t;for(;e!==null&&!Me(e);)({next:e}=e);return e}function $P(t){let{prev:e}=t;for(;e!==null&&!Me(e);)({prev:e}=e);return e}function Yd(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function tBt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function rBt(t,e){if(Yd(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function nBt(t,e){Yd(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function sBt(t,e){if(Yd(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function iBt(t,e){Yd(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function eI(t,e,r=!0,n=1/0){return eM(t,Array.isArray(e)?e:[e],r,n)}function eM(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&Tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function oBt(t,e){return e.find(t)}function tM(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Me(i)&&t(i))return i;if(r&&Tr(i)&&i.children.length>0){let o=tM(t,i.children,!0);if(o)return o}}return null}function Hwe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Me(r)&&t(r)||Tr(r)&&Hwe(t,r.children))}function aBt(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Me(i)&&t(i)&&r.push(i),Tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var rM={tag_name(t){return typeof t=="function"?e=>Me(e)&&t(e.name):t==="*"?Me:e=>Me(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>No(e)&&t(e.data):e=>No(e)&&e.data===t}};function V7(t,e){return typeof e=="function"?r=>Me(r)&&e(r.attribs[t]):r=>Me(r)&&r.attribs[t]===e}function cBt(t,e){return r=>t(r)||e(r)}function qwe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(rM,r)?rM[r](n):V7(r,n)});return e.length===0?null:e.reduce(cBt)}function ABt(t,e){let r=qwe(t);return r?r(e):!0}function uBt(t,e,r,n=1/0){let s=qwe(t);return s?eI(s,e,r,n):[]}function lBt(t,e,r=!0){return Array.isArray(e)||(e=[e]),tM(V7("id",t),e,r)}function vg(t,e,r=!0,n=1/0){return eI(rM.tag_name(t),e,r,n)}function dBt(t,e,r=!0,n=1/0){return eI(V7("class",t),e,r,n)}function hBt(t,e,r=!0,n=1/0){return eI(rM.tag_type(t),e,r,n)}function fBt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var lc;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(lc||(lc={}));function Gwe(t,e){let r=[],n=[];if(t===e)return 0;let s=Tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=Tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return lc.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?lc.FOLLOWING|lc.CONTAINED_BY:lc.FOLLOWING:a===t?lc.PRECEDING|lc.CONTAINS:lc.PRECEDING}function Vf(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=Gwe(e,r);return n&lc.PRECEDING?-1:n&lc.FOLLOWING?1:0}),t}function j7(t){let e=nM(yBt,t);return e?e.name==="feed"?mBt(e):pBt(e):null}function mBt(t){var e;let r=t.children,n={type:"atom",items:vg("entry",r).map(o=>{var a;let{children:c}=o,A={media:Ywe(c)};xo(A,"id","id",c),xo(A,"title","title",c);let u=(a=nM("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=jf("summary",c)||jf("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var ra=ge(_d(),1);var Yq={};function Vq(t,e){return t===ra.default.falseFunc?ra.default.falseFunc:r=>e.isTag(r)&&t(r)}function Wq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function qq(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Gq=(t,e,r,n,s)=>{let i=s(e,qq(r),n);return i===ra.default.trueFunc?t:i===ra.default.falseFunc?ra.default.falseFunc:o=>i(o)&&t(o)},X2={is:Gq,matches:Gq,where:Gq,not(t,e,r,n,s){let i=s(e,qq(r),n);return i===ra.default.falseFunc?t:i===ra.default.trueFunc?ra.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=qq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Gb))?[Yq]:void 0,c=s(e,o,a);if(c===ra.default.falseFunc)return ra.default.falseFunc;let A=Vq(c,i);if(a&&c!==ra.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...Wq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function TCe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in X2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return X2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:$2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,NCe.parse)(A);return X2.is(t,u,r,n,s)}if(typeof c=="function")return Hq(c,o,a,1),u=>c(u,a)&&t(u);if(o in gE)return gE[o](t,a,r,n);if(o in Yb){let u=Yb[o];return Hq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var na=ge(hE(),1);function Jq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function xCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case na.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case na.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case na.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),bCe[e.action](t,e,r)}case na.SelectorType.Pseudo:return TCe(t,e,r,n,s);case na.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case na.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Jq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Jq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=Jq(A,i));return!1};case na.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case na.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case na.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case na.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case na.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function RCe(t,e,r){let n=Z2(t,e,r);return Vq(n,e.adapter)}function Z2(t,e,r){let n=typeof t=="string"?(0,ac.parse)(t):t;return ek(n,e,r)}function DCe(t){return t.type===ac.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(DCe)))}var Ygt={type:ac.SelectorType.Descendant},Vgt={type:"_flexibleDescendant"},Wgt={type:ac.SelectorType.Pseudo,name:"scope",data:null};function Jgt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===Yq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(JCe,`\r
`)}}).toArray()}var AY={};xa(AY,{extract:()=>cmt});function amt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function cmt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=amt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Ld=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Ld.prototype.cheerio="[cheerio object]";Ld.prototype.splice=Array.prototype.splice;Ld.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Ld.prototype,Mq,iY,oY,aY,cY,AY);function zCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=tE(s),a=t(n,o,i,null);class c extends Ld{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&ea(u))return u;let f=tE(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=ea(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&Mb(u)?t(u,f,!1,null).children:Amt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?Mb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):ea(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,Tq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Amt(t){return!!t.name||t.type===$o.Root||t.type===$o.Text||t.type===$o.Comment}var umt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",N;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(N||(N={}));var Os={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ok(t){return t>=55296&&t<=57343}function jCe(t){return t>=56320&&t<=57343}function KCe(t,e){return(t-55296)*1024+9216+e}function ak(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function ck(t){return t>=64976&&t<=65007||umt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var fc=be(Xf(),1);var dJ={};function hJ(t,e){return t===fc.default.falseFunc?fc.default.falseFunc:r=>e.isTag(r)&&t(r)}function fJ(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function lJ(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var uJ=(t,e,r,n,s)=>{let i=s(e,lJ(r),n);return i===fc.default.trueFunc?t:i===fc.default.falseFunc?fc.default.falseFunc:o=>i(o)&&t(o)},pM={is:uJ,matches:uJ,where:uJ,not(t,e,r,n,s){let i=s(e,lJ(r),n);return i===fc.default.falseFunc?t:i===fc.default.trueFunc?fc.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=lJ(r);o.relativeSelector=!0;let a=e.some(u=>u.some(KN))?[dJ]:void 0,c=s(e,o,a);if(c===fc.default.falseFunc)return fc.default.falseFunc;let A=hJ(c,i);if(a&&c!==fc.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...fJ(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function kNe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in pM))throw new Error(`Unknown pseudo-class :${o}(${a})`);return pM[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:mM[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,DNe.parse)(A);return pM.is(t,u,r,n,s)}if(typeof c=="function")return AJ(c,o,a,1),u=>c(u,a)&&t(u);if(o in AI)return AI[o](t,a,r,n);if(o in ZN){let u=ZN[o];return AJ(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var mc=be(aI(),1);function mJ(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function vNe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case mc.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case mc.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case mc.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),xNe[e.action](t,e,r)}case mc.SelectorType.Pseudo:return kNe(t,e,r,n,s);case mc.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case mc.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=mJ(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=mJ(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=mJ(A,i));return!1};case mc.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case mc.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case mc.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case mc.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case mc.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function PNe(t,e,r){let n=gM(t,e,r);return hJ(n,e.adapter)}function gM(t,e,r){let n=typeof t=="string"?(0,QA.parse)(t):t;return EM(n,e,r)}function MNe(t){return t.type===QA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(MNe)))}var ubt={type:QA.SelectorType.Descendant},lbt={type:"_flexibleDescendant"},dbt={type:QA.SelectorType.Pseudo,name:"scope",data:null};function hbt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===dJ||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(XNe,`\r
`)}}).toArray()}var DJ={};Fa(DJ,{extract:()=>SQt});function xQt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function SQt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=xQt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var em=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};em.prototype.cheerio="[cheerio object]";em.prototype.splice=Array.prototype.splice;em.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(em.prototype,sJ,xJ,SJ,TJ,RJ,DJ);function ZNe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=jC(s),a=t(n,o,i,null);class c extends em{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&dc(u))return u;let f=jC(h,o),m=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=dc(m)?m:new c(m,null,f);if(E._root=E,!u)return new c(void 0,E,f);let g=typeof u=="string"&&YN(u)?t(u,f,!1,null).children:TQt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(g,E,f);if(g)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let I=u,B=l?typeof l=="string"?YN(l)?new c([t(l,f,!1,null)],E,f):(I=`${l} ${I}`,E):dc(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(I):C}return Object.assign(A,K7,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function TQt(t){return!!t.name||t.type===Ac.Root||t.type===Ac.Text||t.type===Ac.Comment}var RQt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Fr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Oi={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function QM(t){return t>=55296&&t<=57343}function $Ne(t){return t>=56320&&t<=57343}function exe(t,e){return(t-55296)*1024+9216+e}function wM(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function NM(t){return t>=64976&&t<=65007||RQt.has(t)}var V;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},P_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var ap=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function ORe(t){if(t instanceof AggregateError){ed("Multiple errors returned");for(let e of t.errors)Yi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&$(e.stack)}else t instanceof ap?(ed(String(t)),t.stack&&$(t.stack)):(ed(String(t)),t instanceof Error&&t.stack&&$(t.stack))}async function HRe(t,e,r){if(!t.doValidateWrappers())return;let n=new b2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await PRe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await gT("All Gradle Wrapper jars are valid",async()=>{O(`Loaded previously validated checksums from cache: ${i.join(", ")}`),$(o.toDisplayString())});else throw $(o.toDisplayString()),new ap(`At least one Gradle Wrapper Jar failed validation!
`)}`}},s_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var RE=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function GFe(t){if(t instanceof AggregateError){hf("Multiple errors returned");for(let e of t.errors)$o(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&ee(e.stack)}else t instanceof RE?(hf(String(t)),t.stack&&ee(t.stack)):(hf(String(t)),t instanceof Error&&t.stack&&ee(t.stack))}async function YFe(t,e,r){if(!t.doValidateWrappers())return;let n=new HP(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await qFe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await HD("All Gradle Wrapper jars are valid",async()=>{G(`Loaded previously validated checksums from cache: ${i.join(", ")}`),ee(o.toDisplayString())});else throw ee(o.toDisplayString()),new RE(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import mo from"fs";import cp from"path";function GRe(t,e,r){let n=cp.resolve(e,h2);mo.mkdirSync(n,{recursive:!0}),e_t(e),t_t(t),Ga()&&r_t(e),r&&Cn("GRADLE_ENCRYPTION_KEY",r)}function e_t(t){let e=cp.resolve(t,"init.d");mo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=n_t("init-scripts",n),i=cp.resolve(e,n);mo.writeFileSync(i,s)}}function t_t(t){let e=s_t();if(e==null)return;let r=cp.resolve(t,".m2"),n=cp.resolve(r,"toolchains.xml");if(!mo.existsSync(n))mo.mkdirSync(r,{recursive:!0}),mo.writeFileSync(n,e),$(`Wrote default JDK locations to ${n}`);else{let s=mo.readFileSync(n,"utf8"),i=i_t(s,e);mo.writeFileSync(n,i),$(`Merged default JDK locations into ${n}`)}}function r_t(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import ba from"fs";import DE from"path";function zFe(t,e,r){let n=DE.resolve(e,vP);ba.mkdirSync(n,{recursive:!0}),D4t(e),k4t(t),AA()&&v4t(e),r&&ts("GRADLE_ENCRYPTION_KEY",r)}function D4t(t){let e=DE.resolve(t,"init.d");ba.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=P4t("init-scripts",n),i=DE.resolve(e,n);ba.writeFileSync(i,s)}}function k4t(t){let e=M4t();if(e==null)return;let r=DE.resolve(t,".m2"),n=DE.resolve(r,"toolchains.xml");if(!ba.existsSync(n))ba.mkdirSync(r,{recursive:!0}),ba.writeFileSync(n,e),ee(`Wrote default JDK locations to ${n}`);else{let s=ba.readFileSync(n,"utf8"),i=F4t(s,e);ba.writeFileSync(n,i),ee(`Merged default JDK locations into ${n}`)}}function v4t(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=cp.resolve(t,"gradle.properties");if(mo.existsSync(r)){$(`Merged --info and --stacktrace into existing ${r} file`);let n=mo.readFileSync(r,"utf-8");mo.writeFileSync(r,`${e}
${n}`)}else $(`Created a new ${r} with --info and --stacktrace`),mo.writeFileSync(r,e)}function n_t(...t){let e=import.meta.dirname,r=cp.resolve(e,"..","..","..","sources","src","resources",...t);return mo.readFileSync(r,"utf8")}function s_t(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
`,r=DE.resolve(t,"gradle.properties");if(ba.existsSync(r)){ee(`Merged --info and --stacktrace into existing ${r} file`);let n=ba.readFileSync(r,"utf-8");ba.writeFileSync(r,`${e}
${n}`)}else ee(`Created a new ${r} with --info and --stacktrace`),ba.writeFileSync(r,e)}function P4t(...t){let e=import.meta.dirname,r=DE.resolve(e,"..","..","..","sources","src","resources",...t);return ba.readFileSync(r,"utf8")}function M4t(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
@@ -280,56 +279,67 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function i_t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var $z="GRADLE_BUILD_ACTION_SETUP_COMPLETED",o_t="GRADLE_USER_HOME",a_t="DEVELOCITY_CACHE_TOKEN";async function qRe(t,e,r){let n=await YRe(),s=await A_t();if(process.env[$z])return $("Gradle setup only performed on first gradle/actions step in workflow."),!1;Cn($z,!0),Uc($z,!0),Uc(o_t,s),GRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await T0e(e);return Uc(a_t,o??""),await(await lEe(t)).restore(s,c_t(t,i,o)),await HRe(r,Vu(),s),S0e(e),!0}function c_t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function A_t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Vu();return Zz.resolve(r,t)}let e=Zz.resolve(await YRe(),".gradle");if(Xz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),Cn("GRADLE_USER_HOME",e),e;if(O_.platform()==="win32"&&e.startsWith("C:\\")&&Xz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Cn("GRADLE_USER_HOME",r),r}return Cn("GRADLE_USER_HOME",e),e}async function YRe(){let t=await Fy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return $("Could not determine user.home from java -version output. Using os.homedir()."),O_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}var DDe=ge(oDe(),1),sj=ge(Xy(),1);import*as hC from"fs";import*as bDe from"os";import*as hh from"path";import*as rj from"crypto";import*as up from"fs";var b_t=ge(Xy(),1);import*as gw from"path";var q_=ge(Xy(),1);import*as cDe from"stream";import*as ADe from"util";import{ok as w_t}from"assert";var aDe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},H_=class{constructor(e,r,n){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(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return aDe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;$(i.message)}let s=this.getSleepAmount();$(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return aDe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},G_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},S_t=process.platform==="win32",U1r=process.platform==="darwin",N_t="actions/tool-cache";function uDe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||gw.join(dDe(),rj.randomUUID()),yield gf(gw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=tj("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=tj("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new H_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield T_t(t,e||"",r,n)}),c=>!(c instanceof G_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function T_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(N_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new G_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=ADe.promisify(cDe.pipeline),c=tj("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield fAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function lDe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter Line truncated
`," Line feed \\n"]]),YDe=new Map([...Oj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function VDe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of YDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function F4t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var C$="GRADLE_BUILD_ACTION_SETUP_COMPLETED",L4t="GRADLE_USER_HOME",_4t="DEVELOCITY_CACHE_TOKEN";async function WFe(t,e,r){let n=await JFe(),s=await O4t();if(process.env[C$])return ee("Gradle setup only performed on first gradle/actions step in workflow."),!1;ts(C$,!0),au(C$,!0),au(L4t,s),zFe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await cwe(e);return au(_4t,o??""),await(await mwe(t)).restore(s,U4t(t,i,o)),await YFe(r,Hd(),s),owe(e),!0}function U4t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function O4t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Hd();return B$.resolve(r,t)}let e=B$.resolve(await JFe(),".gradle");if(I$.existsSync(e))return ee(`Gradle User Home already exists at ${e}`),ts("GRADLE_USER_HOME",e),e;if(i_.platform()==="win32"&&e.startsWith("C:\\")&&I$.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return ee(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),ts("GRADLE_USER_HOME",r),r}return ts("GRADLE_USER_HOME",e),e}async function JFe(){let t=await LQ("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return ee("Could not determine user.home from java -version output. Using os.homedir()."),i_.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}var vLe=be(ALe(),1);import*as aB from"fs";import*as NLe from"os";import*as Sm from"path";import*as w$ from"crypto";import*as vE from"fs";var e8t=be(p2(),1);import*as QS from"path";var c_=be(p2(),1);import*as lLe from"stream";import*as dLe from"util";import{ok as r8t}from"assert";var uLe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},o_=class{constructor(e,r,n){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(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return uLe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;ee(i.message)}let s=this.getSleepAmount();ee(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return uLe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var kE=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},a_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},n8t=process.platform==="win32",xUr=process.platform==="darwin",s8t="actions/tool-cache";function hLe(t,e,r,n){return kE(this,void 0,void 0,function*(){e=e||QS.join(mLe(),w$.randomUUID()),yield Up(QS.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=Q$("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Q$("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new o_(s,i,o).execute(()=>kE(this,void 0,void 0,function*(){return yield i8t(t,e||"",r,n)}),c=>!(c instanceof a_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function i8t(t,e,r,n){return kE(this,void 0,void 0,function*(){if(vE.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new gn(s8t,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new a_(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=dLe.promisify(lLe.pipeline),c=Q$("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,vE.createWriteStream(e)),G("download complete"),A=!0,e}finally{if(!A){G("download failed");try{yield FD(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function fLe(t,e){return kE(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' i Line truncated
`," Line feed \\n"]]),WLe=new Map([...cee,["\\"," Backslash \\"],["/"," Forward slash /"]]);function JLe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of WLe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(YDe.values()).toString()}
Invalid characters include: ${Array.from(WLe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);$("Artifact name is valid!")}function Hj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Oj)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);ee("Artifact name is valid!")}function Aee(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of cee)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(Oj.values()).toString()}
Invalid characters include: ${Array.from(cee.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var jDe=ge(zDe(),1);function YA(){return`@actions/artifact-${jDe.version}`}var mC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},Cl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Il=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},fh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},yl=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};yl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var dp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function tFt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function rFt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return tFt(e)}catch{return atob(e)}}function KDe(t,e){if(typeof t!="string")throw new hp("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=rFt(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var z_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=W_(),e=KDe(t);if(!e.scp)throw z_;let r=e.scp.split(" ");if(r.length===0)throw z_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw z_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw z_}function $De(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function XDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&$De(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$De(t.signed_url)}var j_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Gj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=W_();this.baseUrl=vDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return j_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>j_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return j_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(XDe(A),O(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)throw a;if(yl.isNetworkErrorCode(a?.code))throw new yl(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);$(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return j_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function WA(t){let e=new Gj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new J_(e)}import*as EC from"fs";import{normalize as ZDe,resolve as e2e}from"path";function t2e(t){if(!EC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&ze("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);$(`Redirecting to blob download url: ${d4e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield h4e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function p4e(){return dI(this,arguments,void 0,function*(t=_De()){return(yield PWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield a4e.mkdir(t,{recursive:!0})),t})}var HWt=5,GWt=[400,401,403,404,422];function hI(t,e=HWt,r=GWt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return O(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var m4e="6.0.0";function Gp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Gp.VERSION=m4e;var I4e=ge(E4e(),1);var rL=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var qWt="0.0.0-development";async function C4e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function YWt(t,e,r,n){let s=new I4e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(VWt.bind(null,t,e,r),n)}async function VWt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new rL(s.data.errors[0].message,500,{request:n,response:s});return C4e(t,e,i,n)}return s}function qp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",C4e.bind(null,r,t)),t.hook.wrap("request",YWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=qWt;var y4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function nL(t,e,r,n,s){return y4e(this,void 0,void 0,function*(){var i;let[o,a]=hI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield qa(s,c,qp,Gp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new Cl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}
`)}var XLe=be(KLe(),1);function gl(){return`@actions/artifact-${XLe.version}`}var lB=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},lh=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},dh=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Tm=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},hh=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};hh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var ME=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};ME.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var FE=class extends Error{};FE.prototype.name="InvalidTokenError";function k8t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function v8t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return k8t(e)}catch{return atob(e)}}function ZLe(t,e){if(typeof t!="string")throw new FE("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new FE(`Invalid token specified: missing part #${r+1}`);let s;try{s=v8t(n)}catch(i){throw new FE(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new FE(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var h_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function El(){let t=l_(),e=ZLe(t);if(!e.scp)throw h_;let r=e.scp.split(" ");if(r.length===0)throw h_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw h_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return G(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),G(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw h_}function $Le(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ga(r),Ga(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function e_e(t){if(typeof t!="object"||t===null){G("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&$Le(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$Le(t.signed_url)}var f_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},uee=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=8e3,this.retryMultiplier=1.5,this.retryTimeoutMilliseconds=12e4;let i=l_();this.baseUrl=MLe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new gn(e,[new Cd(i)])}request(e,r,n,s){return f_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;G(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>f_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return f_(this,void 0,void 0,function*(){let r=0,n="",s="",i=0;for(;r<this.maxAttempts;){let o=!1,a;try{let A=yield e(),u=A.message.statusCode;u===Br.TooManyRequests&&(a=this.getRetryAfterSeconds(A)),s=yield A.readBody(),G(`[Response] - ${A.message.statusCode}`),G(`Headers: ${JSON.stringify(A.message.headers,null,2)}`);let l=JSON.parse(s);if(e_e(l),G(`Body: ${JSON.stringify(l,null,2)}`),this.isSuccessStatusCode(u))return{response:A,body:l};if(o=this.isRetryableHttpStatusCode(u),n=`Failed request: (${u}) ${A.message.statusMessage}`,l.msg){if(ME.isUsageErrorMessage(l.msg))throw new ME;n=`${n}: ${l.msg}`}}catch(A){if(A instanceof SyntaxError&&G(`Raw Body: ${s}`),A instanceof ME)throw A;if(hh.isNetworkErrorCode(A?.code))throw new hh(A?.code);o=!0,n=A.message}if(!o)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let c=a!==void 0?a*1e3:this.getExponentialRetryTimeMilliseconds(r);if(i+c>this.retryTimeoutMilliseconds)throw new Error(`Retry wait of ${c} ms would exceed the maximum total retry wait of ${this.retryTimeoutMilliseconds} ms: ${n}`);ee(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${c} ms...`),yield this.sleep(c),i+=c,r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Br.BadGateway,Br.GatewayTimeout,Br.InternalServerError,Br.ServiceUnavailable,Br.TooManyRequests].includes(e):!1}getRetryAfterSeconds(e){var r;let n=e.message.headers["retry-after"],s=(r=Array.isArray(n)?n[0]:n)===null||r===void 0?void 0:r.trim();if(s===void 0||!/^\d+$/.test(s))return;let i=parseInt(s,10);return!isNaN(i)&&i>0?i:void 0}sleep(e){return f_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getEx Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new xa(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}}function L6t(t,e){if(t=bh(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=Lc.parse(t.permissions.toString()).toString():s=_c.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Bh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Na(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new xa(t.version,o,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 _6t(t,e){if(t=bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=IB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Bh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Na(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(o);return{sasQueryParameters:new xa(t.version,a,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function U6t(t,e){if(t=bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=IB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Bh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Na(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(o);return{sasQueryParameters:new xa(t.version,a,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,void 0,void 0,void 0,s),stringToSign:o}}function O6t(t,e){if(t=bh(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=Lc.parse(t.permissions.toString()).toString():s=_c.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Bh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Na(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new xa(t.version,o,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}}function H6t(t,e){if(t=bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=IB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Bh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Na(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new xa(t.version,a,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function q6t(t,e){if(t=bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=IB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Bh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Na(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(o);return{sasQueryParameters:new xa(t.version,a,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,void 0,void 0,void 0,s),stringToSign:o}}function G6t(t,e){if(t=bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=IB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Bh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Na(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(o);return{sasQueryParameters:new xa(t.version,a,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,void 0,void 0,s),stringToSign:o}}function Y6t(t,e){if(t=bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=IB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Bh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Na(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,z6t(t.requestHeaders),W6t(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new xa(t.version,a,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,EUe(t.requestHeaders),EUe(t.requestQueryParameters),s),stringToSign:o}}function z6t(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function W6t(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function EUe(t){if(t===void 0)return;let e="",r=0;return Object.keys(t).forEach(function(n){r!==0&&(e=e+","),e=e+n,++r}),e}function Bh(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function bh(t){let e=t.version?t.version:g_;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}function IB(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var OS=class{_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=$a()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==PA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==PA||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 ke.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ye(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!==PA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==PA||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 ke.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ye(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!==PA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==PA||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 ke.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ye(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!==PA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==PA||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 ke.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Ze("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);ee(`Redirecting to blob download url: ${Zze(u)}`);try{ee(`Starting download of artifact to: ${r}`);let l=yield $ze(u,r,e?.skipDecompress);ee("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,G(`Computed digest: ${l.sha256Digest}`),G(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function rWe(){return mb(this,arguments,void 0,function*(t=FLe()){return(yield Knr(t))?G(`Artifact destination folder already exists: ${t}`):(G(`Artifact destination folder does not exist, creating: ${t}`),yield Jze.mkdir(t,{recursive:!0})),t})}var Znr=5,$nr=[400,401,403,404,422];function pb(t,e=Znr,r=$nr){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return G(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var nWe="6.0.0";function C0(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}C0.VERSION=nWe;var oWe=be(sWe(),1);var esr="0.0.0-development";function tsr(t){return t.request!==void 0}async function iWe(t,e,r,n){if(!tsr(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function rsr(t,e,r,n){let s=new oWe.default;return s.on("failed",function(i,o){let a=~~i.request.request?.retries,c=~~i.request.request?.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(nsr.bind(null,t,e,r),n)}async function nsr(t,e,r,n){let s=await r(n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new Bd(s.data.errors[0].message,500,{request:n,response:s});return iWe(t,e,i,n)}return s}function I0(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:(s,i,o)=>(s.request.request=Object.assign({},s.request.request,{retries:i,retryAfter:o}),s)}};return r.enabled&&(t.hook.error("request",iWe.bind(null,r,n)),t.hook.wrap("request",rsr.bind(null,r,n))),n}I0.VERSION=esr;var aWe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function y3(t,e,r,n,s){return aWe(this,void 0,void 0,function*(){var i;let[o,a]=pb(Hp),c={log:void 0,userAgent:gl(),previews:void 0,retry:o,request:a},u=yield uA(s,c,I0,C0).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new lh(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new dh(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],O(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function B4e(t){return y4e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:pn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],G(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function cWe(t){return aWe(this,void 0,void 0,function*(){var e;let r=yl(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=El(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Xn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new dh(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var b4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Q4e(t,e,r,n,s){return b4e(this,void 0,void 0,function*(){var i;let[o,a]=hI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=qa(s,c,qp,Gp),u=yield nL(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new Cl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function w4e(t){return b4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return $(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var S4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},sL=LDe(),iL=100,WWt=Math.ceil(sL/iL);function N4e(t,e,r,n){return S4e(this,arguments,void 0,function*(s,i,o,a,c=!1){$(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=hI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=qa(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:iL,page:f}),E=Math.ceil(g.total_count/iL),m=g.total_count;m>sL&&(ze(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${sL}. Results will be incomplete as only the first ${sL} artifacts will be returned`),E=WWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:iL,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=x4e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function T4e(){return S4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=x4e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function x4e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var L1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},JWt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},Yp=class{uploadArtifact(e,r,n,s){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;return S8e(e,r,n,s)}catch(i){throw ze(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Qa.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var AWe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function uWe(t,e,r,n,s){return AWe(this,void 0,void 0,function*(){var i;let[o,a]=pb(Hp),c={log:void 0,userAgent:gl(),previews:void 0,retry:o,request:a},A=uA(s,c,I0,C0),u=yield y3(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new lh(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function lWe(t){return AWe(this,void 0,void 0,function*(){let e=yl(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=El(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Xn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new dh(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return ee(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var dWe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},C3=ULe(),I3=100,ssr=Math.ceil(C3/I3);function hWe(t,e,r,n){return dWe(this,arguments,void 0,function*(s,i,o,a,c=!1){ee(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=pb(Hp),d={log:void 0,userAgent:gl(),previews:void 0,retry:u,request:l},h=uA(a,d,I0,C0),f=1,{data:m}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:I3,page:f}),E=Math.ceil(m.total_count/I3),g=m.total_count;g>C3&&(Ze(`Workflow run ${s} has ${g} artifacts, exceeding the limit of ${C3}. Results will be incomplete as only the first ${C3} artifacts will be returned`),E=ssr);for(let C of m.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=E;f++){G(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:I3,page:f});for(let I of C.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest})}return c&&(A=mWe(A)),ee(`Found ${A.length} artifact(s)`),{artifacts:A}})}function fWe(){return dWe(this,arguments,void 0,function*(t=!1){let e=yl(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=El(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Qa.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=mWe(o)),ee(`Found ${o.length} artifact(s)`),{artifacts:o}})}function mWe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var dT=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},isr=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},B0=class{uploadArtifact(e,r,n,s){return dT(this,void 0,void 0,function*(){try{if(cB())throw new Tm;return dze(e,r,n,s)}catch(i){throw Ze(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=JWt(r,["findBy"]);return f4e(e,n,s,i,o)}return g4e(e,r)}catch(n){throw ze(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return dT(this,void 0,void 0,function*(){try{if(cB())throw new Tm;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=isr(r,["findBy"]);return eWe(e,n,s,i,o)}return tWe(e,r)}catch(n){throw Ze(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return N4e(r,n,s,i,e?.latest)}return T4e(e?.latest)}catch(r){throw ze(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return dT(this,void 0,void 0,function*(){try{if(cB())throw new Tm;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return hWe(r,n,s,i,e?.latest)}return fWe(e?.latest)}catch(r){throw Ze(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return nL(e,n,s,i,o)}return B4e(e)}catch(n){throw ze(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return dT(this,void 0,void 0,function*(){try{if(cB())throw new Tm;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return y3(e,n,s,i,o)}return cWe(e)}catch(n){throw Ze(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return Q4e(e,i,n,s,o)}return w4e(e)}catch(n){throw ze(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return dT(this,void 0,void 0,function*(){try{if(cB())throw new Tm;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return uWe(e,i,n,s,o)}return lWe(e)}catch(n){throw Ze(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var _2r=new Yp;import*as oL from"path";import OZ from"fs";var D4e="dependency-graph_";async function k4e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Cn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await jWt(t);return}$("Enabling dependency graph generation"),Cn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Xs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",oi.runId.toString()),Xs("GITHUB_DEPENDENCY_GRAPH_REF",oi.ref),Xs("GITHUB_DEPENDENCY_GRAPH_SHA",sJt()),Xs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Vu()),Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Xs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Xs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Xs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Xs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Xs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Xs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Xs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Xs(t,e){process.env[t]||e!==void 0&&Cn(t,e)}async function v4e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await R4e(t,!1);return;case"generate-submit-and-upload":await R4e(t,!0);return;case"generate-and-upload":await KWt(t)}}catch(r){F4e(t,e,r)}}async function jWt(t){if(qZ()){$("Dependency graph not supported in the ACT environment.");return}try{await _4e(await $Wt(t))}catch(e){F4e(t,"download-and-submit",e)}}async function R4e(t,e){if(qZ()){$("Dependency graph not supported in the ACT environment.");return}let r=await HZ();try{await _4e(r)}catch(n){try{await PZ(r,t)}catch(s){$(String(s))}throw n}e&&await PZ(r,t)}async function KWt(t){if(qZ()){$("Dependency graph not supported in the ACT environment.");return}await PZ(await HZ(),t)}async function $Wt(t){let e=oi.payload.workflow_run?{token:f2(),workflowRunId:oi.payload.workflow_run.id,repositoryName:oi.repo.repo,repositoryOwner:oi.repo.owner}:void 0,r=new Yp,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(D4e)),s=t.getDownloadArtifactName();s&&($(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});$(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return HZ()}async function HZ(){let r=(await(await tq(`${eJt()}/**/*.json`)).glob()).filter(n=>!tJt(n));return r.forEach(rJt),$(`Found dependency graph files: ${r.join(", ")}`),r}async function PZ(t,e){if(t.length===0){$("No dependency graph files found to upload.");return}let r=Vu(),n=new Yp;for(let s of t){let i=GZ(s);$(`Uploading dependency graph file: ${i}`);let o=`${D4e}${oL.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function _4e(t){if(t.length===0){$("No dependency graph files found to submit.");return}for(let e of t)try{await ZWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=XWt(e,r)),r}}function XWt(t,e){let n=`Dependency submission failed for ${GZ(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var szr=new B0;import*as B3 from"path";import Mae from"fs";var gWe="dependency-graph_";async function EWe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){ts("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await asr(t);return}ee("Enabling dependency graph generation"),ts("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),$i("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_ID",co.runId.toString()),$i("GITHUB_DEPENDENCY_GRAPH_REF",co.ref),$i("GITHUB_DEPENDENCY_GRAPH_SHA",psr()),$i("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Hd()),$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),$i("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),$i("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),$i("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),$i("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),$i("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),$i("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),$i("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function $i(t,e){process.env[t]||e!==void 0&&ts(t,e)}async function yWe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await pWe(t,!1);return;case"generate-submit-and-upload":await pWe(t,!0);return;case"generate-and-upload":await csr(t)}}catch(r){IWe(t,e,r)}}async function asr(t){if(_ae()){ee("Dependency graph not supported in the ACT environment.");return}try{await CWe(await Asr(t))}catch(e){IWe(t,"download-and-submit",e)}}async function pWe(t,e){if(_ae()){ee("Dependency graph not supported in the ACT environment.");return}let r=await Fae();try{await CWe(r)}catch(n){try{await Pae(r,t)}catch(s){ee(String(s))}throw n}e&&await Pae(r,t)}async function csr(t){if(_ae()){ee("Dependency graph not supported in the ACT environment.");return}await Pae(await Fae(),t)}async function Asr(t){let e=co.payload.workflow_run?{token:PP(),workflowRunId:co.payload.workflow_run.id,repositoryName:co.repo.repo,repositoryOwner:co.repo.owner}:void 0,r=new B0,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(gWe)),s=t.getDownloadArtifactName();s&&(ee(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});ee(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Fae()}async function Fae(){let r=(await(await KQ(`${dsr()}/**/*.json`)).glob()).filter(n=>!hsr(n));return r.forEach(fsr),ee(`Found dependency graph files: ${r.join(", ")}`),r}async function Pae(t,e){if(t.length===0){ee("No dependency graph files found to upload.");return}let r=Hd(),n=new B0;for(let s of t){let i=Lae(s);ee(`Uploading dependency graph file: ${i}`);let o=`${gWe}${B3.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function CWe(t){if(t.length===0){ee("No dependency graph files found to submit.");return}for(let e of t)try{await lsr(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=usr(e,r)),r}}function usr(t,e){let n=`Dependency submission failed for ${Lae(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function ZWt(t){let e=nJt(),r=OZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=GZ(t);wAe(`Submitted ${i}: ${s.data.message}`)}function eJt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function tJt(t){let e=`${t}.processed`;return OZ.existsSync(e)}function rJt(t){let e=`${t}.processed`;OZ.writeFileSync(e,"")}function F4e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);ze(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function nJt(){return qa(f2())}function GZ(t){let e=Vu();return oL.relative(e,t)}function sJt(){let t=oi;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function qZ(){return process.env.ACT!==void 0}function YZ(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(oJt(o[1],o[6],o[0]));while(o!==null);return i}function oJt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function aJt(t=process.platform){return t==="win32"?50:0}async function M4e(t=process.platform){let e=aJt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function cJt(){try{w0e("gradle/actions/dependency-submission"),await qRe(new $0,new nc,new d2);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new yb;if(await k4e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new l2,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
`:n}async function lsr(t){let e=msr(),r=Mae.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=co.repo.owner,n.repo=co.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=Lae(t);R6(`Submitted ${i}: ${s.data.message}`)}function dsr(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function hsr(t){let e=`${t}.processed`;return Mae.existsSync(e)}function fsr(t){let e=`${t}.processed`;Mae.writeFileSync(e,"")}function IWe(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new RE(r);Ze(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function msr(){return uA(PP())}function Lae(t){let e=Hd();return B3.relative(e,t)}function psr(){let t=co;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function _ae(){return process.env.ACT!==void 0}function Uae(t,e,r){let n=[];e&&n.push(e),r&&n.push(r);let s="",i=null,o=!1,a=0;for(;a<t.length;){let c=t[a];i?c===i?i=null:s+=c:c==='"'||c==="'"?(i=c,o=!0):/\s/.test(c)?o&&(n.push(s),s="",o=!1):(s+=c,o=!0),a++}return o&&n.push(s),n}function Esr(t=process.platform){return t==="win32"?50:0}async function BWe(t=process.platform){let e=Esr(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function ysr(){try{iwe("gradle/actions/dependency-submission"),await WFe(new VC,new BA,new kP);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new LN;if(await EWe(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new DP,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
-Dorg.gradle.isolated-projects=false
${n}
${s}
`,o=YZ(i);await kDe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await v4e(e),Cn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),B0e()}catch(t){ORe(t)}await M4e()}cJt();export{cJt as run};
`,o=Uae(i);await PLe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await yWe(e),ts("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),rwe()}catch(t){GFe(t)}await BWe()}ysr();export{ysr as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -340,13 +350,6 @@ undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
@@ -416,12 +419,21 @@ archiver/index.js:
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
@octokit/request-error/dist-src/index.js:
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
@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 *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
@octokit/graphql/dist-bundle/index.js:
(* v8 ignore if -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+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.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": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAUH,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,IAAUH,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,IAAmBH,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,IAAUH,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,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine 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.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": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAUH,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,IAAUH,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,IAAmBH,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,IAAUH,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,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine 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
}
+160 -150
View File
@@ -1,120 +1,119 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var nme=Object.create;var WS=Object.defineProperty;var ime=Object.getOwnPropertyDescriptor;var ome=Object.getOwnPropertyNames;var ame=Object.getPrototypeOf,Ame=Object.prototype.hasOwnProperty;var w=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ci=(t,e)=>{for(var r in e)WS(t,r,{get:e[r],enumerable:!0})},cme=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ome(e))!Ame.call(t,n)&&n!==r&&WS(t,n,{get:()=>e[n],enumerable:!(s=ime(e,n))||s.enumerable});return t};var Ie=(t,e,r)=>(r=t!=null?nme(ame(t)):{},cme(e||!t||!t.__esModule?WS(r,"default",{value:t,enumerable:!0}):r,t));var V5=E(Rd=>{"use strict";var Tat=w("net"),fme=w("tls"),ZS=w("http"),G5=w("https"),pme=w("events"),xat=w("assert"),mme=w("util");Rd.httpOverHttp=Eme;Rd.httpsOverHttp=Cme;Rd.httpOverHttps=Ime;Rd.httpsOverHttps=Bme;function Eme(t){var e=new pa(t);return e.request=ZS.request,e}function Cme(t){var e=new pa(t);return e.request=ZS.request,e.createSocket=Y5,e.defaultPort=443,e}function Ime(t){var e=new pa(t);return e.request=G5.request,e}function Bme(t){var e=new pa(t);return e.request=G5.request,e.createSocket=Y5,e.defaultPort=443,e}function pa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||ZS.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=q5(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}mme.inherits(pa,pme.EventEmitter);pa.prototype.addRequest=function(e,r,s,n){var i=this,o=$S({request:e},i.options,q5(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};pa.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=$S({},s.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")),SA("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,g){process.nextTick(function(){c(l,d,g)})}function c(l,d,g){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){SA("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(g.length>0){SA("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return SA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),SA(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};pa.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(n){s.request.onSocket(n)})}};function Y5(t,e){var r=this;pa.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=$S({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=fme.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function q5(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function $S(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var SA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?SA=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)}:SA=function(){};Rd.debug=SA});var eT=E((Dat,J5)=>{J5.exports=V5()});var It=E((kat,W5)=>{W5.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 qe=E((Fat,EH)=>{"use strict";var z5=Symbol.for("undici.error.UND_ERR"),Bt=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[z5]===!0}[z5]=!0},K5=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tT=class extends Bt{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[K5]===!0}[K5]=!0},j5=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rT=class extends Bt{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[j5]===!0}[j5]=!0},X5=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),sT=class extends Bt{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[X5]===!0}[X5]=!0},Z5=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),nT=class extends Bt{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[Z5]===!0}[Z5]=!0},$5=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iT=class extends Bt{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function vEe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(BEe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function PEe(){return"allowed"}function OEe(){return"success"}function _Ee(){return"success"}function HEe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function GEe(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&&jT(t.origin)&&!jT(rp(t))&&(e=null);break;case"same-origin":XC(t,rp(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function _d(t,e){return t}function YEe(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}}function qEe(t){return _d(NEe.now(),t)}function VEe(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 k9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function JEe(t){return{referrerPolicy:t.referrerPolicy}}function WEe(t){let e=t.referrerPolicy;lu(e);let r=null;if(t.referrer==="client"){let a=N9();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=KT(r),n=KT(r,!0);s.toString().length>4096&&(s=n);let i=XC(t,s),o=tp(s)&&!tp(t.url);switch(e){case"origin":return n??KT(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=rp(t);return XC(s,a)?s:tp(s)&&!tp(a)?"no-referrer":n}default:return o?"no-referrer":n}}function KT(t,e){return lu(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 tp(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 zEe(t,e){if(jC===void 0)return!0;let r=F9(e);if(r==="no metadata"||r.length===0)return!0;let s=jEe(r),n=XEe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=jC.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),ZEe(A,a))return!0}return!1}var KEe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function F9(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=KEe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();T9.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function jEe(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 XEe(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 ZEe(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 $Ee(t){}function XC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function eCe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function tCe(t){return t.controller.state==="aborted"}function rCe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function sCe(t){return xEe[t.toLowerCase()]??t}function nCe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return lu(typeof e=="string"),e}var iCe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function M9(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function UCe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function LCe(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 vCe(t,e){$C(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"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.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(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&eI(t,FCe,i)||i.position===t.length-4&&eI(t,MCe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=PCe(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let g;c!==null?(u??="text/plain",UCe(u)||(u=""),g=new DCe([d],c,{type:u})):g=NCe(Buffer.from(d)),$C(J9(A)),$C(typeof g=="string"&&J9(g)||TCe(g)),n.push(xCe(A,g,c))}}function PCe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=Gd(a=>a!==10&&a!==13&&a!==58,t,e);if(o=sx(o,!0,!0,a=>a===9||a===32),!SCe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Gd(a=>a===32||a===9,t,e),wCe(o)){case"content-disposition":{if(r=s=null,!eI(t,kCe,e)||(e.position+=17,r=K9(t,e),r===null))return"failure";if(eI(t,z9,e)){let a=e.position+z9.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=K9(t,e),s===null))return"failure"}break}case"content-type":{let a=Gd(A=>A!==10&&A!==13,t,e);a=sx(a,!1,!0,A=>A===9||A===32),n=W9(a);break}case"content-transfer-encoding":{let a=Gd(A=>A!==10&&A!==13,t,e);a=sx(a,!1,!0,A=>A===9||A===32),i=W9(a);break}default:Gd(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function K9(t,e){$C(t[e.position-1]===34);let r=Gd(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 Gd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function sx(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function eI(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}j9.exports={multipartFormDataParser:vCe,validateBoundary:LCe}});var Vd=E((nAt,aG)=>{"use strict";var ip=ke(),{ReadableStreamFrom:OCe,isBlobLike:Z9,isReadableStreamLike:_Ce,readableStreamClose:HCe,createDeferredPromise:GCe,fullyReadBody:YCe,extractMimeType:qCe,utf8DecodeBytes:tG}=Js(),{FormData:$9}=np(),{kState:qd}=TA(),{webidl:VCe}=kr(),{Blob:JCe}=w("node:buffer"),nx=w("node:assert"),{isErrored:rG,isDisturbed:WCe}=w("node:stream"),{isArrayBuffer:zCe}=w("node:util/types"),{serializeAMimeType:KCe}=gs(),{multipartFormDataParser:jCe}=X9(),ix;try{let t=w("node:crypto");ix=e=>t.randomInt(0,e)}catch{ix=t=>Math.floor(Math.random(t))}var tI=new TextEncoder;function XCe(){}var sG=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,nG;sG&&(nG=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!WCe(e)&&!rG(e)&&e.cancel("Response object has been garbage collected").catch(XCe)}));function iG(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Z9(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?tI.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>HCe(A))},start(){},type:"bytes"}),nx(_Ce(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(zCe(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(ip.isFormDataLike(t)){let A=`----formdata-undici-0${`${ix(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],g=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=tI.encode(c+`; name="${u(l(I))}"\r
var qEe=Object.create;var LT=Object.defineProperty;var VEe=Object.getOwnPropertyDescriptor;var JEe=Object.getOwnPropertyNames;var WEe=Object.getPrototypeOf,zEe=Object.prototype.hasOwnProperty;var w=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Pi=(t,e)=>{for(var r in e)LT(t,r,{get:e[r],enumerable:!0})},KEe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of JEe(e))!zEe.call(t,n)&&n!==r&&LT(t,n,{get:()=>e[n],enumerable:!(s=VEe(e,n))||s.enumerable});return t};var Ne=(t,e,r)=>(r=t!=null?qEe(WEe(t)):{},KEe(e||!t||!t.__esModule?LT(r,"default",{value:t,enumerable:!0}):r,t));var q5=C(Vd=>{"use strict";var sut=w("net"),t0e=w("tls"),_T=w("http"),H5=w("https"),r0e=w("events"),nut=w("assert"),s0e=w("util");Vd.httpOverHttp=n0e;Vd.httpsOverHttp=i0e;Vd.httpOverHttps=o0e;Vd.httpsOverHttps=a0e;function n0e(t){var e=new Oa(t);return e.request=_T.request,e}function i0e(t){var e=new Oa(t);return e.request=_T.request,e.createSocket=G5,e.defaultPort=443,e}function o0e(t){var e=new Oa(t);return e.request=H5.request,e}function a0e(t){var e=new Oa(t);return e.request=H5.request,e.createSocket=G5,e.defaultPort=443,e}function Oa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||_T.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=Y5(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}s0e.inherits(Oa,r0e.EventEmitter);Oa.prototype.addRequest=function(e,r,s,n){var i=this,o=HT({request:e},i.options,Y5(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Oa.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=HT({},s.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")),VA("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){VA("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){VA("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return VA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),VA(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};Oa.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(n){s.request.onSocket(n)})}};function G5(t,e){var r=this;Oa.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=HT({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=t0e.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function Y5(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function HT(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var VA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?VA=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)}:VA=function(){};Vd.debug=VA});var GT=C((out,V5)=>{V5.exports=q5()});var Tt=C((aut,J5)=>{J5.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=C((Aut,mG)=>{"use strict";var W5=Symbol.for("undici.error.UND_ERR"),xt=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[W5]===!0}[W5]=!0},z5=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),YT=class extends xt{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[z5]===!0}[z5]=!0},K5=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),qT=class extends xt{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[K5]===!0}[K5]=!0},j5=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),VT=class extends xt{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[j5]===!0}[j5]=!0},X5=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),JT=class extends xt{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[X5]===!0}[X5]=!0},Z5=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),WT=class extends xt{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function QIe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(aIe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function bIe(){return"allowed"}function wIe(){return"success"}function NIe(){return"success"}function SIe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function TIe(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&&Px(t.origin)&&!Px(wp(t))&&(e=null);break;case"same-origin":UI(t,wp(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function tg(t,e){return t}function xIe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:tg(t.domainLookupStartTime,r),domainLookupEndTime:tg(t.domainLookupEndTime,r),connectionStartTime:tg(t.connectionStartTime,r),connectionEndTime:tg(t.connectionEndTime,r),secureConnectionStartTime:tg(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function DIe(t){return tg(dIe.now(),t)}function RIe(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 R9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function kIe(t){return{referrerPolicy:t.referrerPolicy}}function FIe(t){let e=t.referrerPolicy;xu(e);let r=null;if(t.referrer==="client"){let a=w9();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=vx(r),n=vx(r,!0);s.toString().length>4096&&(s=n);let i=UI(t,s),o=bp(s)&&!bp(t.url);switch(e){case"origin":return n??vx(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=wp(t);return UI(s,a)?s:bp(s)&&!bp(a)?"no-referrer":n}default:return o?"no-referrer":n}}function vx(t,e){return xu(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 bp(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 MIe(t,e){if(MI===void 0)return!0;let r=k9(e);if(r==="no metadata"||r.length===0)return!0;let s=LIe(r),n=vIe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=MI.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),PIe(A,a))return!0}return!1}var UIe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function k9(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=UIe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();S9.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function LIe(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 vIe(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 PIe(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 OIe(t){}function UI(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function _Ie(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function HIe(t){return t.controller.state==="aborted"}function GIe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function YIe(t){return fIe[t.toLowerCase()]??t}function qIe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return xu(typeof e=="string"),e}var VIe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function F9(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function BBe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function yBe(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 QBe(t,e){vI(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"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.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(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&PI(t,CBe,i)||i.position===t.length-4&&PI(t,IBe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=bBe(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",BBe(u)||(u=""),h=new mBe([d],c,{type:u})):h=dBe(Buffer.from(d)),vI(V9(A)),vI(typeof h=="string"&&V9(h)||hBe(h)),n.push(fBe(A,h,c))}}function bBe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=sg(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Vx(o,!0,!0,a=>a===9||a===32),!gBe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,sg(a=>a===32||a===9,t,e),lBe(o)){case"content-disposition":{if(r=s=null,!PI(t,EBe,e)||(e.position+=17,r=z9(t,e),r===null))return"failure";if(PI(t,W9,e)){let a=e.position+W9.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=z9(t,e),s===null))return"failure"}break}case"content-type":{let a=sg(A=>A!==10&&A!==13,t,e);a=Vx(a,!1,!0,A=>A===9||A===32),n=J9(a);break}case"content-transfer-encoding":{let a=sg(A=>A!==10&&A!==13,t,e);a=Vx(a,!1,!0,A=>A===9||A===32),i=J9(a);break}default:sg(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function z9(t,e){vI(t[e.position-1]===34);let r=sg(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 sg(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function Vx(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function PI(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}K9.exports={multipartFormDataParser:QBe,validateBoundary:yBe}});var og=C((Fut,oY)=>{"use strict";var Tp=Oe(),{ReadableStreamFrom:wBe,isBlobLike:X9,isReadableStreamLike:NBe,readableStreamClose:SBe,createDeferredPromise:TBe,fullyReadBody:xBe,extractMimeType:DBe,utf8DecodeBytes:eY}=ln(),{FormData:Z9}=Sp(),{kState:ig}=JA(),{webidl:RBe}=Gr(),{Blob:kBe}=w("node:buffer"),Jx=w("node:assert"),{isErrored:tY,isDisturbed:FBe}=w("node:stream"),{isArrayBuffer:MBe}=w("node:util/types"),{serializeAMimeType:UBe}=ks(),{multipartFormDataParser:LBe}=j9(),Wx;try{let t=w("node:crypto");Wx=e=>t.randomInt(0,e)}catch{Wx=t=>Math.floor(Math.random(t))}var OI=new TextEncoder;function vBe(){}var rY=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,sY;rY&&(sY=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!FBe(e)&&!tY(e)&&e.cancel("Response object has been garbage collected").catch(vBe)}));function nY(t,e=!1){let r=null;t instanceof ReadableStream?r=t:X9(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?OI.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>SBe(A))},start(){},type:"bytes"}),Jx(NBe(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(MBe(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Tp.isFormDataLike(t)){let A=`----formdata-undici-0${`${Wx(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=OI.encode(c+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=tI.encode(`${c}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=OI.encode(`${c}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,m,g),typeof m.size=="number"?i+=C.byteLength+m.size+g.byteLength:f=!0}let p=tI.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(Z9(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ip.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:OCe(t)}if((typeof n=="string"||ip.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!rG(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function ZCe(t,e=!1){return t instanceof ReadableStream&&(nx(!ip.isDisturbed(t),"The body has already been consumed."),nx(!t.locked,"The stream is locked.")),iG(t,e)}function $Ce(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function eIe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function tIe(t){return{blob(){return Yd(this,r=>{let s=eG(this);return s===null?s="":s&&(s=KCe(s)),new JCe([r],{type:s})},t)},arrayBuffer(){return Yd(this,r=>new Uint8Array(r).buffer,t)},text(){return Yd(this,tG,t)},json(){return Yd(this,sIe,t)},formData(){return Yd(this,r=>{let s=eG(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=jCe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new $9;return i[qd]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new $9;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Yd(this,r=>new Uint8Array(r),t)}}}function rIe(t){Object.assign(t.prototype,tIe(t))}async function Yd(t,e,r){if(VCe.brandCheck(t,r),oG(t))throw new TypeError("Body is unusable: Body has already been read");eIe(t[qd]);let s=GCe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[qd].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await YCe(t[qd].body,i,n),s.promise)}function oG(t){let e=t[qd].body;return e!=null&&(e.stream.locked||ip.isDisturbed(e.stream))}function sIe(t){return JSON.parse(tG(t))}function eG(t){let e=t[qd].headersList,r=qCe(e);return r==="failure"?null:r}aG.exports={extractBody:iG,safelyExtractBody:ZCe,cloneBody:$Ce,mixinBody:rIe,streamRegistry:nG,hasFinalizationRegistry:sG,bodyUnusable:oG}});var QG=E((iAt,yG)=>{"use strict";var oe=w("node:assert"),ce=ke(),{channels:AG}=kd(),ox=HT(),{RequestContentLengthMismatchError:du,ResponseContentLengthMismatchError:cG,RequestAbortedError:mG,InvalidArgumentError:nIe,HeadersTimeoutError:iIe,HeadersOverflowError:oIe,SocketError:Jd,InformationalError:Wd,BodyTimeoutError:aIe,HTTPParserError:AIe,ResponseExceededMaxSizeError:cIe}=qe(),{kUrl:EG,kReset:fs,kClient:iI,kParser:ht,kBlocking:Ap,kRunning:tr,kPending:CG,kSize:uG,kWriting:xA,kQueue:Ii,kNoRef:op,kKeepAliveDefaultTimeout:uIe,kHostHeader:lIe,kPendingIdx:dIe,kRunningIdx:xn,kError:jr,kPipelining:oI,kSocket:gu,kKeepAliveTimeoutValue:AI,kMaxHeadersSize:ax,kKeepAliveMaxTimeout:hIe,kKeepAliveTimeoutThreshold:gIe,kHeadersTimeout:fIe,kBodyTimeout:pIe,kStrictContentLength:ux,kMaxRequests:lG,kCounter:mIe,kMaxResponseSize:EIe,kOnError:dG,kResume:ya,kHTTPContext:IG}=It(),Ws=n9(),hG=Buffer.alloc(0),rI=Buffer[Symbol.species],sI=ce.addListener,CIe=ce.removeAllListeners,fu=Symbol("kIdleSocketValidation"),hu=Symbol("kIdleSocketValidationTimeout"),gx=Symbol("kSocketUsed"),Ax;async function IIe(){let t=process.env.JEST_WORKER_ID?qT():void 0,e;try{e=await WebAssembly.compile(a9())}catch{e=await WebAssembly.compile(t||qT())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onStatus(new rI(io.buffer,i,n))||0},wasm_on_message_begin:r=>(oe(Rt.ptr===r),Rt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onHeaderField(new rI(io.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onHeaderValue(new rI(io.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(oe(Rt.ptr===r),Rt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onBody(new rI(io.buffer,i,n))||0},wasm_on_message_complete:r=>(oe(Rt.ptr===r),Rt.onMessageComplete()||0)}})}var cx=null,lx=IIe();lx.catch();var Rt=null,io=null,nI=0,oo=null,BIe=0,ap=1,zd=2|ap,aI=4|ap,dx=8|BIe,hx=class{constructor(e,r,{exports:s}){oe(Number.isFinite(e[ax])&&e[ax]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Ws.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,t Line truncated
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let p=OI.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${A}`}else if(X9(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Tp.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:wBe(t)}if((typeof n=="string"||Tp.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!tY(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function PBe(t,e=!1){return t instanceof ReadableStream&&(Jx(!Tp.isDisturbed(t),"The body has already been consumed."),Jx(!t.locked,"The stream is locked.")),nY(t,e)}function OBe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function _Be(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function HBe(t){return{blob(){return ng(this,r=>{let s=$9(this);return s===null?s="":s&&(s=UBe(s)),new kBe([r],{type:s})},t)},arrayBuffer(){return ng(this,r=>new Uint8Array(r).buffer,t)},text(){return ng(this,eY,t)},json(){return ng(this,YBe,t)},formData(){return ng(this,r=>{let s=$9(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=LBe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Z9;return i[ig]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new Z9;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return ng(this,r=>new Uint8Array(r),t)}}}function GBe(t){Object.assign(t.prototype,HBe(t))}async function ng(t,e,r){if(RBe.brandCheck(t,r),iY(t))throw new TypeError("Body is unusable: Body has already been read");_Be(t[ig]);let s=TBe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[ig].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await xBe(t[ig].body,i,n),s.promise)}function iY(t){let e=t[ig].body;return e!=null&&(e.stream.locked||Tp.isDisturbed(e.stream))}function YBe(t){return JSON.parse(eY(t))}function $9(t){let e=t[ig].headersList,r=DBe(e);return r==="failure"?null:r}oY.exports={extractBody:nY,safelyExtractBody:PBe,cloneBody:OBe,mixinBody:GBe,streamRegistry:sY,hasFinalizationRegistry:rY,bodyUnusable:iY}});var yY=C((Mut,BY)=>{"use strict";var ce=w("node:assert"),de=Oe(),{channels:aY}=Wd(),zx=xx(),{RequestContentLengthMismatchError:Du,ResponseContentLengthMismatchError:AY,RequestAbortedError:pY,InvalidArgumentError:qBe,HeadersTimeoutError:VBe,HeadersOverflowError:JBe,SocketError:ag,InformationalError:Ag,BodyTimeoutError:WBe,HTTPParserError:zBe,ResponseExceededMaxSizeError:KBe}=$e(),{kUrl:mY,kReset:Fs,kClient:YI,kParser:yt,kBlocking:Rp,kRunning:cr,kPending:EY,kSize:cY,kWriting:WA,kQueue:Oi,kNoRef:xp,kKeepAliveDefaultTimeout:jBe,kHostHeader:XBe,kPendingIdx:ZBe,kRunningIdx:zn,kError:us,kPipelining:qI,kSocket:Ru,kKeepAliveTimeoutValue:JI,kMaxHeadersSize:Kx,kKeepAliveMaxTimeout:$Be,kKeepAliveTimeoutThreshold:eye,kHeadersTimeout:tye,kBodyTimeout:rye,kStrictContentLength:Zx,kMaxRequests:uY,kCounter:sye,kMaxResponseSize:nye,kOnError:lY,kResume:Va,kHTTPContext:CY}=Tt(),dn=s9(),dY=Buffer.alloc(0),_I=Buffer[Symbol.species],HI=de.addListener,iye=de.removeAllListeners,ku=Symbol("kIdleSocketValidation"),cg=Symbol("kIdleSocketValidationTimeout"),rD=Symbol("kSocketUsed"),jx;async function oye(){let t=process.env.JEST_WORKER_ID?kx():void 0,e;try{e=await WebAssembly.compile(o9())}catch{e=await WebAssembly.compile(t||kx())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ce(Ot.ptr===r);let i=s-yo+Bo.byteOffset;return Ot.onStatus(new _I(Bo.buffer,i,n))||0},wasm_on_message_begin:r=>(ce(Ot.ptr===r),Ot.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ce(Ot.ptr===r);let i=s-yo+Bo.byteOffset;return Ot.onHeaderField(new _I(Bo.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ce(Ot.ptr===r);let i=s-yo+Bo.byteOffset;return Ot.onHeaderValue(new _I(Bo.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ce(Ot.ptr===r),Ot.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ce(Ot.ptr===r);let i=s-yo+Bo.byteOffset;return Ot.onBody(new _I(Bo.buffer,i,n))||0},wasm_on_message_complete:r=>(ce(Ot.ptr===r),Ot.onMessageComplete()||0)}})}var Xx=null,$x=oye();$x.catch();var Ot=null,Bo=null,GI=0,yo=null,aye=0,Dp=1,ug=2|Dp,VI=4|Dp,eD=8|aye,tD=class{constructor(e,r,{exports:s}){ce(Number.isFinite(e[Kx])&&e[Kx]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(dn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,t Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[lIe],i?p+=`connection: upgrade\r
`:p+=t[XBe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[oI]&&!g[fs]?p+=`connection: keep-alive\r
`:t[qI]&&!h[Fs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let b=0;b<C.length;b++)p+=`${m}: ${C[b]}\r
`;else p+=`${m}: ${C}\r
`}return AG.sendHeaders.hasSubscribers&&AG.sendHeaders.publish({request:e,headers:p,socket:g}),!A||d===0?fG(f,null,t,e,g,u,p,l):ce.isBuffer(A)?fG(f,A,t,e,g,u,p,l):ce.isBlobLike(A)?typeof A.stream=="function"?pG(f,A.stream(),t,e,g,u,p,l):TIe(f,A,t,e,g,u,p,l):ce.isStream(A)?SIe(f,A,t,e,g,u,p,l):ce.isIterable(A)?pG(f,A,t,e,g,u,p,l):oe(!1),!0}function SIe(t,e,r,s,n,i,o,a){oe(i!==0||r[tr]===0,"stream body cannot be pipelined");let A=!1,c=new cI({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){ce.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",g)}),!A){let f=new mG;queueMicrotask(()=>g(f))}},g=function(f){if(!A){if(A=!0,oe(n.destroyed||n[xA]&&r[tr]<=1),n.off("drain",l).off("error",g),e.removeListener("data",u).removeListener("end",g).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ce.destroy(e,f):ce.destroy(e)}};e.on("data",u).on("end",g).on("error",g).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",g),e.errorEmitted??e.errored?setImmediate(()=>g(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>g(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function fG(t,e,r,s,n,i,o,a){try{e?ce.isBuffer(e)&&(oe(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`,Array.isArray(c))for(let E=0;E<c.length;E+=2){let m=c[E+0],I=c[E+1];if(Array.isArray(I))for(let N=0;N<I.length;N++)p+=`${m}: ${I[N]}\r
`;else p+=`${m}: ${I}\r
`}return aY.sendHeaders.hasSubscribers&&aY.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?hY(f,null,t,e,h,u,p,l):de.isBuffer(A)?hY(f,A,t,e,h,u,p,l):de.isBlobLike(A)?typeof A.stream=="function"?fY(f,A.stream(),t,e,h,u,p,l):hye(f,A,t,e,h,u,p,l):de.isStream(A)?gye(f,A,t,e,h,u,p,l):de.isIterable(A)?fY(f,A,t,e,h,u,p,l):ce(!1),!0}function gye(t,e,r,s,n,i,o,a){ce(i!==0||r[cr]===0,"stream body cannot be pipelined");let A=!1,c=new WI({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){de.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new pY;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ce(n.destroyed||n[WA]&&r[cr]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?de.destroy(e,f):de.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function hY(t,e,r,s,n,i,o,a){try{e?de.isBuffer(e)&&(ce(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[fs]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Fs]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(oe(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[ya]()}catch(A){t(A)}}async function TIe(t,e,r,s,n,i,o,a){oe(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new du;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(ce(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Va]()}catch(A){t(A)}}async function hye(t,e,r,s,n,i,o,a){ce(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Du;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[fs]=!0),r[ya]()}catch(A){t(A)}}async function pG(t,e,r,s,n,i,o,a){oe(i!==0||r[tr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{oe(A===null),n[jr]?g(n[jr]):A=d});n.on("close",c).on("drain",c);let l=new cI({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[jr])throw n[jr];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var cI=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[xA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[jr])throw r[jr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[ux])throw new du;process.emitWarning(new du)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[fs]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Fs]=!0),r[Va]()}catch(A){t(A)}}async function fY(t,e,r,s,n,i,o,a){ce(i!==0||r[cr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{ce(A===null),n[us]?h(n[us]):A=d});n.on("close",c).on("drain",c);let l=new WI({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[us])throw n[us];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var WI=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[WA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[us])throw r[us];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[Zx])throw new Du;process.emitWarning(new Du)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Fs]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[ht].timeout&&r[ht].timeoutType===zd&&r[ht].timeout.refresh&&r[ht].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[xA]=!1,e[jr])throw e[jr];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[yt].timeout&&r[yt].timeoutType===ug&&r[yt].timeout.refresh&&r[yt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[WA]=!1,e[us])throw e[us];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[ux])throw new du;process.emitWarning(new du)}e[ht].timeout&&e[ht].timeoutType===zd&&e[ht].timeout.refresh&&e[ht].timeout.refresh(),s[ya]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[xA]=!1,e&&(oe(s[tr]<=1,"pipeline should only contain this request"),n(e))}};yG.exports=yIe});var DG=E((oAt,RG)=>{"use strict";var Rn=w("node:assert"),{pipeline:xIe}=w("node:stream"),Ue=ke(),{RequestContentLengthMismatchError:fx,RequestAbortedError:bG,SocketError:cp,InformationalError:px}=qe(),{kUrl:uI,kReset:dI,kClient:Kd,kRunning:hI,kPending:RIe,kQueue:RA,kPendingIdx:mx,kRunningIdx:Bi,kError:Qi,kSocket:mr,kStrictContentLength:DIe,kOnError:Ex,kMaxConcurrentStreams:xG,kHTTP2Session:yi,kResume:DA,kSize:kIe,kHTTPContext:FIe}=It(),Qa=Symbol("open streams"),wG,NG=!1,lI;try{lI=w("node:http2")}catch{lI={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:MIe,HTTP2_HEADER_METHOD:UIe,HTTP2_HEADER_PATH:LIe,HTTP2_HEADER_SCHEME:vIe,HTTP2_HEADER_CONTENT_LENGTH:PIe,HTTP2_HEADER_EXPECT:OIe,HTTP2_HEADER_STATUS:_Ie}}=lI;function HIe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function GIe(t,e){t[mr]=e,NG||(NG=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=lI.connect(t[uI],{createConnection:()=>e,peerMaxConcurrentStreams:t[xG]});r[Qa]=0,r[Kd]=t,r[mr]=e,Ue.addListener(r,"error",qIe),Ue.addListener(r,"frameError",VIe),Ue.addListener(r,"end",JIe),Ue.addListener(r,"goaway",WIe),Ue.addListener(r,"close",function(){let{[Kd]:n}=this,{[mr]:i}=n,o=this[mr][Qi]||this[Qi]||new cp("closed",Ue.getSocketInfo(i));if(n[yi]=null,n.destroyed){Rn(n[RIe]===0);let a=n[RA].splice(n[Bi]);for(let A=0;A<a.length;A++){let c=a[A];Ue.errorRequest(n,c,o)}}}),r.unref(),t[yi]=r,e[yi]=r,Ue.addListener(e,"error",function(n){Rn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Qi]=n,this[Kd][Ex](n)}),Ue.addListener(e,"end",function(){Ue.destroy(this,new cp("other side closed",Ue.getSocketInfo(this)))}),Ue.addListener(e,"close",function(){let n=this[Qi]||new cp("closed",Ue.getSocketInfo(this));t[mr]=null,this[yi]!=null&&this[yi].destroy(n),t[mx]=t[Bi],Rn(t[hI]===0),t.emit("disconnect",t[uI],[t],n),t[DA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return KIe(t,...n)},resume(){YIe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function YIe(t){let e=t[mr];e?.destroyed===!1&&(t[kIe]===0&&t[xG]===0?(e.unref(),t[yi].unref()):(e.ref(),t[yi].ref()))}function qIe(t){Rn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[mr][Qi]=t,this[Kd][Ex](t)}function VIe(t,e,r){if(r===0){let s=new px(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[mr][Qi]=s,this[Kd][Ex](s)}}function JIe(){let t=new cp("other side closed",Ue.getSocketInfo(this[mr]));this.destroy(t),Ue.destroy(this[mr],t)}function WIe(t){let e=this[Qi]||new cp(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ue.getSocketInfo(this)),r=this[Kd];if(r[mr]=null,r[FIe]=null,this[yi]!=null&&(this[yi].destroy(e),this[yi]=null),Ue.destroy(this[mr],e),r[Bi]<r[RA].length){let s=r[RA][r[Bi]];r[RA][r[Bi]++]=null,Ue.errorRequest(r,s,e),r[mx]=r[Bi]}Rn(r[hI]===0),r.emit("disconnect",r[uI],[r],e),r[DA]()}function zIe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function KIe(t,e){let r=t[yi],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ue.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let S=0;S<c.length;S+=2){let D=c[S+0],F=c[S+1];if(Array.isArray(F))for(let U=0;U<F.length;U++)l[D]?l[D]+=`,${F[U]}`:l[D]=F[U];else l[D]=F}let d,{hostname:g,port:f}=t[uI];l[MIe]=i||`${g}${f?`:${f}`:""}`,l[UIe]=s;let p=S=>{e.aborted||e.completed||(S=S||new bG,Ue.errorRequest(t,e,S),d!=null&&Ue.destroy(d,S),Ue.destroy(u,S),t[RA][t[Bi]++]=null,t[DA]())};try{e.onConnect(p)}catch(S){Ue.errorRequest(t,e,S)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Qa],t[RA][t[Bi]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Qa],t[RA][t[Bi]++]=null}),d.once("close",()=>{r[Qa]-=1,r[Qa]===0&&r.unref()}),!0;l[LIe]=n,l[vIe]="https";let I=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Ue.bodyLength(u);if(Ue.isFormDataLike(u)){wG??=Vd().extractBody;let[S,D]=wG(u);l["content-type"]=D,u=S.stream,m=S.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),zIe(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[DIe])return Ue.errorRequest(t,e,new fx),!1;process.emitWarning(new fx)}m!=null&&(Rn(u,"no body must not have content length"),l[PIe]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[OIe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",b)):(d=r Line truncated
`,this[BBe]=A??3e5,this[IBe]=n??3e5,this[yBe]=C??!0,this[QBe]=S,this[yx]=F,this[FA]=null,this[TBe]=P>-1?P:-1,this[RBe]=Je??100,this[Yt]=null,this[bi]=[],this[wa]=0,this[wi]=0,this[hp]=Te=>bx(this,Te),this[xBe]=Te=>YG(this,Te)}get pipelining(){return this[mI]}set pipelining(e){this[mI]=e,this[hp](!0)}get[pp](){return this[bi].length-this[wi]}get[fp](){return this[wi]-this[wa]}get[gp](){return this[bi].length-this[wa]}get[hBe](){return!!this[Yt]&&!this[Xd]&&!this[Yt].destroyed}get[Bx](){return!!(this[Yt]?.busy(null)||this[gp]>=(GG(this)||1)||this[pp]>0)}[dBe](e){qG(this),this.once("connect",e)}[SBe](e,r){let s=e.origin||this[Ao].origin,n=new oBe(s,e,r);return this[bi].push(n),this[mu]||(pu.bodyLength(n.body)==null&&pu.isIterable(n.body)?(this[mu]=1,queueMicrotask(()=>bx(this))):this[hp](!0)),this[mu]&&this[MA]!==2&&this[Bx]&&(this[MA]=2),this[MA]<2}async[wBe](){return new Promise(e=>{this[gp]?this[FA]=e:e(null)})}async[NBe](e){return new Promise(r=>{let s=this[bi].splice(this[wi]);for(let i=0;i<s.length;i++){let o=s[i];pu.errorRequest(this,o,e)}let n=()=>{this[FA]&&(this[FA](),this[FA]=null),r(null)};this[Yt]?(this[Yt].destroy(e,n),this[Yt]=null):queueMicrotask(n),this[hp]()})}},FBe=pI();function YG(t,e){if(t[fp]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ba(t[wi]===t[wa]);let r=t[bi].splice(t[wa]);for(let s=0;s<r.length;s++){let n=r[s];pu.errorRequest(t,n,e)}ba(t[gp]===0)}}async function qG(t){ba(!t[Xd]),ba(!t[Yt]);let{host:e,hostname:r,protocol:s,port:n}=t[Ao];if(r[0]==="["){let i=r.indexOf("]");ba(i!==-1);let o=r.substring(1,i);ba(HG.isIP(o)),r=o}t[Xd]=!0,jd.beforeConnect.hasSubscribers&&jd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[kA],localAddress:t[dp]},connector:t[lp]});try{let i=await new Promise((o,a)=>{t[lp]({host:e,hostname:r,protocol:s,port:n,servername:t[kA],localAddress:t[dp]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){pu.destroy(i.on("error",OG),new cBe);return}ba(i);try{t[Yt]=i.alpnProtocol==="h2"?await kBe(t,i):await DBe(t,i)}catch(o){throw i.destroy().on("error",OG),o}t[Xd]=!1,i[bBe]=0,i[yx]=t[yx],i[lBe]=t,i[fBe]=null,jd.connected.hasSubscribers&&jd.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[kA],localAddress:t[dp]},connector:t[lp],socket:i}),t.emit("connect",t[Ao],[t])}catch(i){if(t.destroyed)return;if(t[Xd]=!1,jd.connectError.hasSubscribers&&jd.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[kA],localAddress:t[dp]},connector:t[lp],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ba(t[fp]===0);t[pp]>0&&t[bi][t[wi]].servername===t[kA];){let o=t[bi][t[wi]++];pu.errorRequest(t,o,i)}else YG(t,i);t.emit("connectionError",t[Ao],[t],i)}t[hp]()}function _G(t){t[MA]=0,t.emit("drain",t[Ao],[t])}function bx(t,e){t[mu]!==2&&(t[mu]=2,MBe(t,e),t[mu]=0,t[wa]>256&&(t[bi].splice(0,t[wa]),t[wi]-=t[wa],t[wa]=0))}function MBe(t,e){for(;;){if(t.destroyed){ba(t[pp]===0);return}if(t[FA]&&!t[gp]){t[FA](),t[FA]=null;return}if(t[Yt]&&t[Yt].resume(),t[Bx])t[MA]=2;else if(t[MA]===2){e?(t[MA]=1,queueMicrotask(()=>_G(t))):_G(t);continue}if(t[pp]===0||t[fp]>=(GG(t)||1))return;let r=t[bi][t[wi]];if(t[Ao].protocol==="https:"&&t[kA]!==r.servername){if(t[fp]>0)return;t[kA]=r.servername,t[Yt]?.destroy(new ABe("servername changed"),()=>{t[Yt]=null,bx(t)})}if(t[Xd])return;if(!t[Yt]){qG(t);return}if(t[Yt].destroyed||t[Yt].busy(r))return;!r.aborted&&t[Yt].write(r)?t[wi]++:t[bi].splice(t[wi],1)}}VG.exports=Qx});var wx=E((lAt,JG)=>{"use strict";var EI=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)}};JG.exports=class{constructor(){this.head=this.tail=new EI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new EI),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var zG=E((dAt,WG)=>{var{kFree:UBe,kConnected:LBe,kPending:vBe,kQueued:PBe,kRunning:OBe,kSize:_Be}=It(),Eu=Symbol("pool"),Nx=class{constructor(e){this[Eu]=e}get connected(){return this[Eu][LBe]}get free(){return this[Eu][UBe]}get pending(){return this[Eu][vBe]}get queued(){return this[Eu][PBe]}get running(){return this[Eu][OBe]}get size(){return this[Eu][_Be]}};WG.exports=Nx});var kx=E((hAt,nY)=>{"use strict";var HBe=Ld(),GBe=wx(),{kConnected:Sx,kSize:KG,kRunning:jG,kPending:XG,kQueued:mp,kBusy:YBe,kFree:qBe,kUrl:VBe,kClose:JBe,kDestroy:WBe,kDispatch:zBe}=It(),KBe=zG(),ps=Symbol("clients"),Xr=Symbol("needDrain"),Ep=Symbol("queue"),Tx=Symbol("closed resolve"),xx=Symbol("onDrain"),ZG=Symbol("onConnect"),$G=Symbol("onDisconnect"),eY=Symbol("onConnectionError"),Rx=Symbol(" Line truncated
`,"latin1"),r!==null&&n!==r){if(s[Zx])throw new Du;process.emitWarning(new Du)}e[yt].timeout&&e[yt].timeoutType===ug&&e[yt].timeout.refresh&&e[yt].timeout.refresh(),s[Va]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[WA]=!1,e&&(ce(s[cr]<=1,"pipeline should only contain this request"),n(e))}};BY.exports=Aye});var DY=C((Uut,xY)=>{"use strict";var Kn=w("node:assert"),{pipeline:fye}=w("node:stream"),Ye=Oe(),{RequestContentLengthMismatchError:sD,RequestAbortedError:QY,SocketError:kp,InformationalError:nD}=$e(),{kUrl:zI,kReset:jI,kClient:lg,kRunning:XI,kPending:pye,kQueue:zA,kPendingIdx:iD,kRunningIdx:_i,kError:Gi,kSocket:Sr,kStrictContentLength:mye,kOnError:oD,kMaxConcurrentStreams:TY,kHTTP2Session:Hi,kResume:KA,kSize:Eye,kHTTPContext:Cye}=Tt(),Ja=Symbol("open streams"),bY,wY=!1,KI;try{KI=w("node:http2")}catch{KI={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Iye,HTTP2_HEADER_METHOD:Bye,HTTP2_HEADER_PATH:yye,HTTP2_HEADER_SCHEME:Qye,HTTP2_HEADER_CONTENT_LENGTH:bye,HTTP2_HEADER_EXPECT:wye,HTTP2_HEADER_STATUS:Nye}}=KI;function Sye(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function Tye(t,e){t[Sr]=e,wY||(wY=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=KI.connect(t[zI],{createConnection:()=>e,peerMaxConcurrentStreams:t[TY]});r[Ja]=0,r[lg]=t,r[Sr]=e,Ye.addListener(r,"error",Dye),Ye.addListener(r,"frameError",Rye),Ye.addListener(r,"end",kye),Ye.addListener(r,"goaway",Fye),Ye.addListener(r,"close",function(){let{[lg]:n}=this,{[Sr]:i}=n,o=this[Sr][Gi]||this[Gi]||new kp("closed",Ye.getSocketInfo(i));if(n[Hi]=null,n.destroyed){Kn(n[pye]===0);let a=n[zA].splice(n[_i]);for(let A=0;A<a.length;A++){let c=a[A];Ye.errorRequest(n,c,o)}}}),r.unref(),t[Hi]=r,e[Hi]=r,Ye.addListener(e,"error",function(n){Kn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Gi]=n,this[lg][oD](n)}),Ye.addListener(e,"end",function(){Ye.destroy(this,new kp("other side closed",Ye.getSocketInfo(this)))}),Ye.addListener(e,"close",function(){let n=this[Gi]||new kp("closed",Ye.getSocketInfo(this));t[Sr]=null,this[Hi]!=null&&this[Hi].destroy(n),t[iD]=t[_i],Kn(t[XI]===0),t.emit("disconnect",t[zI],[t],n),t[KA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Uye(t,...n)},resume(){xye(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function xye(t){let e=t[Sr];e?.destroyed===!1&&(t[Eye]===0&&t[TY]===0?(e.unref(),t[Hi].unref()):(e.ref(),t[Hi].ref()))}function Dye(t){Kn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sr][Gi]=t,this[lg][oD](t)}function Rye(t,e,r){if(r===0){let s=new nD(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Sr][Gi]=s,this[lg][oD](s)}}function kye(){let t=new kp("other side closed",Ye.getSocketInfo(this[Sr]));this.destroy(t),Ye.destroy(this[Sr],t)}function Fye(t){let e=this[Gi]||new kp(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ye.getSocketInfo(this)),r=this[lg];if(r[Sr]=null,r[Cye]=null,this[Hi]!=null&&(this[Hi].destroy(e),this[Hi]=null),Ye.destroy(this[Sr],e),r[_i]<r[zA].length){let s=r[zA][r[_i]];r[zA][r[_i]++]=null,Ye.errorRequest(r,s,e),r[iD]=r[_i]}Kn(r[XI]===0),r.emit("disconnect",r[zI],[r],e),r[KA]()}function Mye(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Uye(t,e){let r=t[Hi],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ye.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let T=0;T<c.length;T+=2){let F=c[T+0],U=c[T+1];if(Array.isArray(U))for(let Z=0;Z<U.length;Z++)l[F]?l[F]+=`,${U[Z]}`:l[F]=U[Z];else l[F]=U}let d,{hostname:h,port:f}=t[zI];l[Iye]=i||`${h}${f?`:${f}`:""}`,l[Bye]=s;let p=T=>{e.aborted||e.completed||(T=T||new QY,Ye.errorRequest(t,e,T),d!=null&&Ye.destroy(d,T),Ye.destroy(u,T),t[zA][t[_i]++]=null,t[KA]())};try{e.onConnect(p)}catch(T){Ye.errorRequest(t,e,T)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Ja],t[zA][t[_i]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Ja],t[zA][t[_i]++]=null}),d.once("close",()=>{r[Ja]-=1,r[Ja]===0&&r.unref()}),!0;l[yye]=n,l[Qye]="https";let E=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Ye.bodyLength(u);if(Ye.isFormDataLike(u)){bY??=og().extractBody;let[T,F]=bY(u);l["content-type"]=F,u=T.stream,m=T.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),Mye(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[mye])return Ye.errorRequest(t,e,new sD),!1;process.emitWarning(new sD)}m!=null&&(Kn(u,"no body must not have content length"),l[bye]=`${m}`),r.ref();let I=s==="GET"||s==="HEAD"||u===null;return a?(l[wye]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("continue",N)):(d=r Line truncated
`,this[aQe]=A??3e5,this[oQe]=n??3e5,this[AQe]=I??!0,this[cQe]=T,this[uD]=U,this[XA]=null,this[hQe]=Y>-1?Y:-1,this[pQe]=Me??100,this[$t]=null,this[Yi]=[],this[za]=0,this[qi]=0,this[Lp]=Ue=>dD(this,Ue),this[fQe]=Ue=>GY(this,Ue)}get pipelining(){return this[tB]}set pipelining(e){this[tB]=e,this[Lp](!0)}get[Op](){return this[Yi].length-this[qi]}get[Pp](){return this[qi]-this[za]}get[vp](){return this[Yi].length-this[za]}get[$ye](){return!!this[$t]&&!this[gg]&&!this[$t].destroyed}get[cD](){return!!(this[$t]?.busy(null)||this[vp]>=(HY(this)||1)||this[Op]>0)}[Zye](e){YY(this),this.once("connect",e)}[gQe](e,r){let s=e.origin||this[bo].origin,n=new Jye(s,e,r);return this[Yi].push(n),this[Mu]||(Fu.bodyLength(n.body)==null&&Fu.isIterable(n.body)?(this[Mu]=1,queueMicrotask(()=>dD(this))):this[Lp](!0)),this[Mu]&&this[ZA]!==2&&this[cD]&&(this[ZA]=2),this[ZA]<2}async[lQe](){return new Promise(e=>{this[vp]?this[XA]=e:e(null)})}async[dQe](e){return new Promise(r=>{let s=this[Yi].splice(this[qi]);for(let i=0;i<s.length;i++){let o=s[i];Fu.errorRequest(this,o,e)}let n=()=>{this[XA]&&(this[XA](),this[XA]=null),r(null)};this[$t]?(this[$t].destroy(e,n),this[$t]=null):queueMicrotask(n),this[Lp]()})}},CQe=eB();function GY(t,e){if(t[Pp]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Wa(t[qi]===t[za]);let r=t[Yi].splice(t[za]);for(let s=0;s<r.length;s++){let n=r[s];Fu.errorRequest(t,n,e)}Wa(t[vp]===0)}}async function YY(t){Wa(!t[gg]),Wa(!t[$t]);let{host:e,hostname:r,protocol:s,port:n}=t[bo];if(r[0]==="["){let i=r.indexOf("]");Wa(i!==-1);let o=r.substring(1,i);Wa(_Y.isIP(o)),r=o}t[gg]=!0,dg.beforeConnect.hasSubscribers&&dg.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[$t]?.version,servername:t[jA],localAddress:t[Up]},connector:t[Mp]});try{let i=await new Promise((o,a)=>{t[Mp]({host:e,hostname:r,protocol:s,port:n,servername:t[jA],localAddress:t[Up]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Fu.destroy(i.on("error",PY),new Kye);return}Wa(i);try{t[$t]=i.alpnProtocol==="h2"?await EQe(t,i):await mQe(t,i)}catch(o){throw i.destroy().on("error",PY),o}t[gg]=!1,i[uQe]=0,i[uD]=t[uD],i[Xye]=t,i[tQe]=null,dg.connected.hasSubscribers&&dg.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[$t]?.version,servername:t[jA],localAddress:t[Up]},connector:t[Mp],socket:i}),t.emit("connect",t[bo],[t])}catch(i){if(t.destroyed)return;if(t[gg]=!1,dg.connectError.hasSubscribers&&dg.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[$t]?.version,servername:t[jA],localAddress:t[Up]},connector:t[Mp],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Wa(t[Pp]===0);t[Op]>0&&t[Yi][t[qi]].servername===t[jA];){let o=t[Yi][t[qi]++];Fu.errorRequest(t,o,i)}else GY(t,i);t.emit("connectionError",t[bo],[t],i)}t[Lp]()}function OY(t){t[ZA]=0,t.emit("drain",t[bo],[t])}function dD(t,e){t[Mu]!==2&&(t[Mu]=2,IQe(t,e),t[Mu]=0,t[za]>256&&(t[Yi].splice(0,t[za]),t[qi]-=t[za],t[za]=0))}function IQe(t,e){for(;;){if(t.destroyed){Wa(t[Op]===0);return}if(t[XA]&&!t[vp]){t[XA](),t[XA]=null;return}if(t[$t]&&t[$t].resume(),t[cD])t[ZA]=2;else if(t[ZA]===2){e?(t[ZA]=1,queueMicrotask(()=>OY(t))):OY(t);continue}if(t[Op]===0||t[Pp]>=(HY(t)||1))return;let r=t[Yi][t[qi]];if(t[bo].protocol==="https:"&&t[jA]!==r.servername){if(t[Pp]>0)return;t[jA]=r.servername,t[$t]?.destroy(new zye("servername changed"),()=>{t[$t]=null,dD(t)})}if(t[gg])return;if(!t[$t]){YY(t);return}if(t[$t].destroyed||t[$t].busy(r))return;!r.aborted&&t[$t].write(r)?t[qi]++:t[Yi].splice(t[qi],1)}}qY.exports=lD});var gD=C((_ut,VY)=>{"use strict";var rB=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)}};VY.exports=class{constructor(){this.head=this.tail=new rB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new rB),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var WY=C((Hut,JY)=>{var{kFree:BQe,kConnected:yQe,kPending:QQe,kQueued:bQe,kRunning:wQe,kSize:NQe}=Tt(),Uu=Symbol("pool"),hD=class{constructor(e){this[Uu]=e}get connected(){return this[Uu][yQe]}get free(){return this[Uu][BQe]}get pending(){return this[Uu][QQe]}get queued(){return this[Uu][bQe]}get running(){return this[Uu][wQe]}get size(){return this[Uu][NQe]}};JY.exports=hD});var ID=C((Gut,sq)=>{"use strict";var SQe=Xd(),TQe=gD(),{kConnected:fD,kSize:zY,kRunning:KY,kPending:jY,kQueued:_p,kBusy:xQe,kFree:DQe,kUrl:RQe,kClose:kQe,kDestroy:FQe,kDispatch:MQe}=Tt(),UQe=WY(),Ms=Symbol("clients"),ls=Symbol("needDrain"),Hp=Symbol("queue"),pD=Symbol("closed resolve"),mD=Symbol("onDrain"),XY=Symbol("onConnect"),ZY=Symbol("onDisconnect"),$Y=Symbol("onConnectionError"),ED=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};lV.exports=k2});var LI=E((HAt,pV)=>{"use strict";var hV=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Bbe}=qe(),ybe=eh();fV()===void 0&&gV(new ybe);function gV(t){if(!t||typeof t.dispatch!="function")throw new Bbe("Argument agent must implement Agent");Object.defineProperty(globalThis,hV,{value:t,writable:!0,enumerable:!1,configurable:!1})}function fV(){return globalThis[hV]}pV.exports={setGlobalDispatcher:gV,getGlobalDispatcher:fV}});var vI=E((YAt,mV)=>{"use strict";mV.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 CV=E((qAt,EV)=>{"use strict";var Qbe=fI();EV.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new Qbe(r,o,n,i);return r(a,A)}}});var BV=E((VAt,IV)=>{"use strict";var bbe=NI();IV.exports=t=>e=>function(s,n){return e(s,new bbe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var QV=E((JAt,yV)=>{"use strict";var wbe=ke(),{InvalidArgumentError:Nbe,RequestAbortedError:Sbe}=qe(),Tbe=vI(),F2=class extends Tbe{#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Nbe("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.#n=e}onHeaders(e,r,s,n){let o=wbe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Sbe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function xbe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new F2({maxSize:i},n);return e(s,o)}}yV.exports=xbe});var NV=E((WAt,wV)=>{"use strict";var{isIP:Rbe}=w("node:net"),{lookup:Dbe}=w("node:dns"),kbe=vI(),{InvalidArgumentError:lh,InformationalError:Fbe}=qe(),bV=Math.pow(2,31)-1,M2=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 n=this.#s.get(e.hostname);if(n==null&&this.full){s(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(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Fbe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#s.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.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){Dbe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===bV?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===bV?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#s.set(e.hostname,n)}getHandler(e,r){return new U2(this,e,r)}},U2=class extends kbe{#e=null;#t=null;#s=null;#r=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#r=s,this.#t={...i},this.#e=e,this.#s=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#r.onError(r);le Line truncated
${i}`;break;case"retry":nW(i)&&(r[n]=i);break;case"id":iW(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&nW(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&iW(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}}};oW.exports={EventSourceStream:bR}});var fW=E((bct,gW)=>{"use strict";var{pipeline:HSe}=w("node:stream"),{fetching:GSe}=Rp(),{makeRequest:YSe}=gh(),{webidl:Ra}=kr(),{EventSourceStream:qSe}=aW(),{parseMIMEType:VSe}=gs(),{createFastMessageEvent:JSe}=Ih(),{isNetworkError:AW}=Tp(),{delay:WSe}=yR(),{kEnumerableProperty:Fu}=ke(),{environmentSettingsObject:cW}=Js(),uW=!1,lW=3e3,qp=0,dW=1,Vp=2,zSe="anonymous",KSe="use-credentials",wh=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=qp;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ra.util.markAsUncloneable(this);let s="EventSource constructor";Ra.argumentLengthCheck(arguments,1,s),uW||(uW=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ra.converters.USVString(e,s,"url"),r=Ra.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:lW};let n=cW,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=zSe;r.withCredentials&&(o=KSe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=cW.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=YSe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===Vp)return;this.#r=qp;let e={request:this.#i,dispatcher:this.#a},r=s=>{AW(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(AW(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?VSe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=dW,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new qSe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(JSe(A.type,A.options))}});HSe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=GSe(e)}async#c(){this.#r!==Vp&&(this.#r=qp,this.dispatchEvent(new Event("error")),await WSe(this.#o.reconnectionTime),this.#r===qp&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ra.brandCheck(this,t),this.#r!==Vp&&(this.#r=Vp,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}},hW={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:qp,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dW,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Vp,writable:!1}};Object.defineProperties(wh,hW);Object.defineProperties(wh.prototype,hW);Object.defineProperties(wh.prototype,{close:Fu,onerror:Fu,onmessage:Fu,onopen:Fu,readyState:Fu,url:Fu,withCredentials:Fu});Ra.converters.EventSourceInitDict=Ra.dictionaryConverter([{key:"withCredentials",converter:Ra.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ra.converters.any}]);gW.exports={EventSource:wh,defaultReconnectionTime:lW}});var wB=E((wct,fe)=>{"use strict";var jSe=Zd(),pW=Kf(),XSe=$d(),ZSe=hY(),$Se=eh(),eTe=Vx(),tTe=vY(),rTe=qY(),mW=qe(),bB=ke(),{InvalidArgumentError:QB}=mW,Nh=Rq(),sTe=Xf(),nTe=N2(),iTe=dV(),oTe=x2(),aTe=h2(),ATe=NI(),{getGlobalDispatcher:EW,setGlobalDispatcher:cTe}=LI(),uTe=vI(),lTe=fI(),dTe=pI();Object.assign(pW.prototype,Nh);fe.exports.Dispatcher=pW;fe.exports.Client=jSe;fe.exports.Pool=XSe;fe.exports.BalancedPool=ZSe;fe.exports.Agent=$Se;fe.exports.ProxyAgent=eTe;fe.exports.EnvHttpProxyAgent=tTe;fe.exports.RetryAgent=rTe;fe.exports.RetryHandle Line truncated
%s`,D,D,C,s);var F=C.type==="*"?pD:C.type==="?"?fD:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+F+"\\("+D}f(),i&&(s+="\\\\");var U=!1;switch(s.charAt(0)){case"[":case".":case"(":U=!0}for(var P=a.length-1;P>-1;P--){var H=a[P],Re=s.slice(0,H.reStart),Je=s.slice(H.reStart,H.reEnd-8),pe=s.slice(H.reEnd-8,H.reEnd),De=s.slice(H.reEnd);pe+=De;var Te=Re.split("(").length-1,$t=De;for(p=0;p<Te;p++)$t=$t.replace(/\)[+*?]?/,"");De=$t;var er="";De===""&&e!==VB&&(er="$");var ga=Re+Je+De+er+pe;s=ga}if(s!==""&&n&&(s="(?=.)"+s),U&&(s=d+s),e===VB)return[s,n];if(!n)return tRe(t);var fa=r.nocase?"i":"";try{var VS=new RegExp("^"+s+"$",fa)}catch{return new RegExp("$.")}return VS._glob=t,VS._src=s,VS}sn.makeRe=function(t,e){return new nr(t,e||{}).makeRe()};nr.prototype.makeRe=eRe;function eRe(){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?pD:e.dot?J2e:W2e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Gu?r:typeof o=="string"?rRe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}sn.match=function(t,e,r){r=r||{};var s=new nr(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};nr.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;sm.sep!=="/"&&(e=e.split(sm.sep).join("/")),e=e.split(AK),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};nr.prototype.matchOne=function(t,e,r){return e.indexOf(Gu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};nr.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Gu){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Gu){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var g=t.length-u.length;if(this._matchOne(t,u,r,g,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(g--,!this._matchOne(t,u,r,g,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=s;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,b=[0],S=0;S<c.length;S++){var D=c[S];D===Gu?(b.push(C),m=[[],0],I.push(m)):(m[0].push(D),C++)}for(var F=I.length-1,U=t.length-d,P=0;P<I.length;P++)I[P][1]=U-(b[F--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,s,0,r,0,!!d)};nr.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(d&&i<this.maxGlobstarRecursion){var g=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(g!==!1)return g}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};nr.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===Gu)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function tRe(t){return t.replace(/\\(.)/g,"$1")}function rRe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Mh=E((Slt,fK)=>{"use strict";var uRe="2.0.0",lRe=Number.MAX_SAFE_INTEGER||9007199254740991,dRe=16,hRe=250,gRe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fK.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dRe,MAX_SAFE_BUILD_LENGTH:hRe,MAX_SAFE_INTEGER:lRe,RELEASE_TYPES:gRe,SEMVER_SPEC_VERSION:uRe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var am=E((Tlt,pK)=>{"use strict";var fRe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pK.exports=fRe});var Uh=E((fo,mK)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:ED,MAX_SAFE_BUILD_LENGTH:pRe,MAX_LENGTH:mRe}=Mh(),ERe=am();fo=mK.exports={};var CRe=fo.re=[],IRe=fo.safeRe=[],z=fo.src=[],BRe=fo.safeSrc=[],K=fo.t={},yRe=0,CD="[a-zA-Z0-9-]",QRe=[["\\s",1],["\\d",mRe],[CD,pRe]],bRe=t=>{for(let[e,r]of QRe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`.trim())}};uJ.exports=IR});var IB=C((plt,fJ)=>{"use strict";var dJ=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:a1e}=$e(),A1e=pg();hJ()===void 0&&gJ(new A1e);function gJ(t){if(!t||typeof t.dispatch!="function")throw new a1e("Argument agent must implement Agent");Object.defineProperty(globalThis,dJ,{value:t,writable:!0,enumerable:!1,configurable:!1})}function hJ(){return globalThis[dJ]}fJ.exports={setGlobalDispatcher:gJ,getGlobalDispatcher:hJ}});var BB=C((Elt,pJ)=>{"use strict";pJ.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 EJ=C((Clt,mJ)=>{"use strict";var c1e=$I();mJ.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new c1e(r,o,n,i);return r(a,A)}}});var IJ=C((Ilt,CJ)=>{"use strict";var u1e=uB();CJ.exports=t=>e=>function(s,n){return e(s,new u1e({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var yJ=C((Blt,BJ)=>{"use strict";var l1e=Oe(),{InvalidArgumentError:d1e,RequestAbortedError:g1e}=$e(),h1e=BB(),BR=class extends h1e{#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new d1e("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.#n=e}onHeaders(e,r,s,n){let o=l1e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new g1e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function f1e({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new BR({maxSize:i},n);return e(s,o)}}BJ.exports=f1e});var wJ=C((ylt,bJ)=>{"use strict";var{isIP:p1e}=w("node:net"),{lookup:m1e}=w("node:dns"),E1e=BB(),{InvalidArgumentError:wg,InformationalError:C1e}=$e(),QJ=Math.pow(2,31)-1,yR=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 n=this.#s.get(e.hostname);if(n==null&&this.full){s(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(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new C1e("No DNS entries found"));return}this.setRecords(e,a);let A=this.#s.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.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){m1e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===QJ?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===QJ?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#s.set(e.hostname,n)}getHandler(e,r){return new QR(this,e,r)}},QR=class extends E1e{#e=null;#t=null;#s=null;#r=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#r=s,this.#t={...i},this.#e=e,this.#s=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#r.onError(r);le Line truncated
${o}`;return}if(ay(e,n,kxe)){Fxe(e,i)&&(r.retry=e.toString("utf8",i));return}if(ay(e,n,Rxe)){Mxe(e,i)&&(r.id=e.toString("utf8",i));return}if(ay(e,n,Dxe)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&wxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Nxe(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,o=s===this.chunkIndex?this.pos:n.length,a=n.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),s=this.peekBufferedByte(2);return r===void 0?(e===Og[0]||(this.checkBOM=!1),!0):s===void 0?e===Og[0]&&r===Og[1]?!0:(this.checkBOM=!1,!1):(e===Og[0]&&r===Og[1]&&s===Og[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};sz.exports={EventSourceStream:d2}});var dz=C(($lt,lz)=>{"use strict";var{pipeline:Uxe}=w("node:stream"),{fetching:Lxe}=em(),{makeRequest:vxe}=Tg(),{webidl:Za}=Gr(),{EventSourceStream:Pxe}=nz(),{parseMIMEType:Oxe}=ks(),{createFastMessageEvent:_xe}=Mg(),{isNetworkError:iz}=Zp(),{delay:Hxe}=u2(),{kEnumerableProperty:Xu}=Oe(),{environmentSettingsObject:oz}=ln(),az=!1,Az=3e3,hm=0,cz=1,fm=2,Gxe="anonymous",Yxe="use-credentials",_g=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=hm;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Za.util.markAsUncloneable(this);let s="EventSource constructor";Za.argumentLengthCheck(arguments,1,s),az||(az=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Za.converters.USVString(e,s,"url"),r=Za.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Az};let n=oz,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Gxe;r.withCredentials&&(o=Yxe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=oz.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=vxe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===fm)return;this.#r=hm;let e={request:this.#i,dispatcher:this.#a},r=s=>{iz(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(iz(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?Oxe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=cz,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new Pxe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(_xe(A.type,A.options))}});Uxe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Lxe(e)}async#c(){this.#r!==fm&&(this.#r=hm,this.dispatchEvent(new Event("error") Line truncated
`).join(`
`+i),t.push(n+"m+"+Dy.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=lMe()+e+" "+t[0]}function lMe(){return Cr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function dMe(...t){return process.stderr.write(Ry.formatWithOptions(Cr.inspectOpts,...t)+`
`)}function hMe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function gMe(){return process.env.DEBUG}function fMe(t){t.inspectOpts={};let e=Object.keys(Cr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Cr.inspectOpts[e[r]]}Dy.exports=Ak()(Cr);var{formatters:JX}=Dy.exports;JX.o=function(t){return this.inspectOpts.colors=this.useColors,Ry.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};JX.O=function(t){return this.inspectOpts.colors=this.useColors,Ry.inspect(t,this.inspectOpts)}});var ky=E((ngt,lk)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?lk.exports=_X():lk.exports=WX()});var jX=E(bs=>{"use strict";var pMe=bs&&bs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),mMe=bs&&bs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zX=bs&&bs.__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)&&pMe(e,t,r);return mMe(e,t),e};Object.defineProperty(bs,"__esModule",{value:!0});bs.req=bs.json=bs.toBuffer=void 0;var EMe=zX(w("http")),CMe=zX(w("https"));async function KX(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}bs.toBuffer=KX;async function IMe(t){let r=(await KX(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}bs.json=IMe;function BMe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?CMe:EMe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}bs.req=BMe});var hk=E(an=>{"use strict";var ZX=an&&an.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),yMe=an&&an.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$X=an&&an.__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)&&ZX(e,t,r);return yMe(e,t),e},QMe=an&&an.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ZX(e,t,r)};Object.defineProperty(an,"__esModule",{value:!0});an.Agent=void 0;var bMe=$X(w("net")),XX=$X(w("http")),wMe=w("https");QMe(jX(),an);var Eo=Symbol("AgentBaseInternalState"),dk=class extends XX.Agent{constructor(e){super(e),this[Eo]={}}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 bMe.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],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?wMe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof XX.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[Eo].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Eo].currentSocket;if(this[Eo].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Eo].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Eo]&&(this[Eo].defaultPort=e)}get protocol(){return this[Eo].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Eo]&&(this[Eo].protocol=e)}};an.Agent=dk});var eZ=E(qh=>{"use strict";var NMe=qh&&qh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qh,"__esModule",{value:!0});qh.parseProxyResponse=void 0;var SMe=NMe(ky()),Fy=(0,SMe.default)("https-proxy-agent:parse-proxy-response");function TMe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),Fy("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),Fy("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),d=l.indexOf(`\r
`+i),t.push(n+"m+"+fQ.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=MLe()+e+" "+t[0]}function MLe(){return xr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function ULe(...t){return process.stderr.write(hQ.formatWithOptions(xr.inspectOpts,...t)+`
`)}function LLe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function vLe(){return process.env.DEBUG}function PLe(t){t.inspectOpts={};let e=Object.keys(xr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=xr.inspectOpts[e[r]]}fQ.exports=jk()(xr);var{formatters:KZ}=fQ.exports;KZ.o=function(t){return this.inspectOpts.colors=this.useColors,hQ.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};KZ.O=function(t){return this.inspectOpts.colors=this.useColors,hQ.inspect(t,this.inspectOpts)}});var pQ=C((jpt,$k)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?$k.exports=YZ():$k.exports=jZ()});var $Z=C(Gs=>{"use strict";var OLe=Gs&&Gs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),_Le=Gs&&Gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XZ=Gs&&Gs.__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)&&OLe(e,t,r);return _Le(e,t),e};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.req=Gs.json=Gs.toBuffer=void 0;var HLe=XZ(w("http")),GLe=XZ(w("https"));async function ZZ(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Gs.toBuffer=ZZ;async function YLe(t){let r=(await ZZ(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Gs.json=YLe;function qLe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?GLe:HLe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Gs.req=qLe});var tF=C(Qn=>{"use strict";var t$=Qn&&Qn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),VLe=Qn&&Qn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),r$=Qn&&Qn.__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)&&t$(e,t,r);return VLe(e,t),e},JLe=Qn&&Qn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&t$(e,t,r)};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.Agent=void 0;var WLe=r$(w("net")),e$=r$(w("http")),zLe=w("https");JLe($Z(),Qn);var Fo=Symbol("AgentBaseInternalState"),eF=class extends e$.Agent{constructor(e){super(e),this[Fo]={}}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 WLe.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],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?zLe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof e$.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[Fo].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Fo].currentSocket;if(this[Fo].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Fo].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Fo]&&(this[Fo].defaultPort=e)}get protocol(){return this[Fo].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Fo]&&(this[Fo].protocol=e)}};Qn.Agent=eF});var s$=C(nh=>{"use strict";var KLe=nh&&nh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nh,"__esModule",{value:!0});nh.parseProxyResponse=void 0;var jLe=KLe(pQ()),mQ=(0,jLe.default)("https-proxy-agent:parse-proxy-response");function XLe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),mQ("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),mQ("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),d=l.indexOf(`\r
\r
`);if(d===-1){Fy("have not received end of HTTP headers yet..."),i();return}let g=l.slice(0,d).toString("ascii").split(`\r
`),f=g.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let b of g){if(!b)continue;let S=b.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${b}"`));let D=b.slice(0,S).toLowerCase(),F=b.slice(S+1).trimStart(),U=C[D];typeof U=="string"?C[D]=[U,F]:Array.isArray(U)?U.push(F):C[D]=F}Fy("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}qh.parseProxyResponse=TMe});var oZ=E(Pn=>{"use strict";var xMe=Pn&&Pn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),RMe=Pn&&Pn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nZ=Pn&&Pn.__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)&&xMe(e,t,r);return RMe(e,t),e},iZ=Pn&&Pn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.HttpsProxyAgent=void 0;var My=nZ(w("net")),tZ=nZ(w("tls")),DMe=iZ(w("assert")),kMe=iZ(ky()),FMe=hk(),MMe=w("url"),UMe=eZ(),Bm=(0,kMe.default)("https-proxy-agent"),rZ=t=>t.servername===void 0&&t.host&&!My.isIP(t.host)?{...t,servername:t.host}:t,Uy=class extends FMe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new MMe.URL(e):e,this.proxyHeaders=r?.headers??{},Bm("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?sZ(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(Bm("Creating `tls.Socket`: %o",this.connectOpts),n=tZ.connect(rZ(this.connectOpts))):(Bm("Creating `net.Socket`: %o",this.connectOpts),n=My.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=My.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){mQ("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),E=+p[1],m=p.slice(2).join(" "),I={};for(let N of h){if(!N)continue;let T=N.indexOf(":");if(T===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${N}"`));let F=N.slice(0,T).toLowerCase(),U=N.slice(T+1).trimStart(),Z=I[F];typeof Z=="string"?I[F]=[Z,U]:Array.isArray(Z)?Z.push(U):I[F]=U}mQ("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}nh.parseProxyResponse=XLe});var c$=C(ii=>{"use strict";var ZLe=ii&&ii.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),$Le=ii&&ii.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),a$=ii&&ii.__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)&&ZLe(e,t,r);return $Le(e,t),e},A$=ii&&ii.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ii,"__esModule",{value:!0});ii.HttpsProxyAgent=void 0;var EQ=a$(w("net")),n$=a$(w("tls")),eve=A$(w("assert")),tve=A$(pQ()),rve=tF(),sve=w("url"),nve=s$(),$m=(0,tve.default)("https-proxy-agent"),i$=t=>t.servername===void 0&&t.host&&!EQ.isIP(t.host)?{...t,servername:t.host}:t,CQ=class extends rve.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new sve.URL(e):e,this.proxyHeaders=r?.headers??{},$m("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?o$(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?($m("Creating `tls.Socket`: %o",this.connectOpts),n=n$.connect(i$(this.connectOpts))):($m("Creating `net.Socket`: %o",this.connectOpts),n=EQ.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=EQ.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)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,UMe.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",LMe),r.secureEndpoint?(Bm("Upgrading socket connection to TLS"),tZ.connect({...sZ(rZ(r),"host","path","port"),socket:n})):n;n.destroy();let l=new My.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Bm("Replaying proxy buffer for failed request"),(0,DMe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Uy.protocols=["http","https"];Pn.HttpsProxyAgent=Uy;function LMe(t){t.resume()}function sZ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var cZ=E(On=>{"use strict";var vMe=On&&On.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),PMe=On&&On.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),AZ=On&&On.__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)&&vMe(e,t,r);return PMe(e,t),e},OMe=On&&On.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(On,"__esModule",{value:!0});On.HttpProxyAgent=void 0;var _Me=AZ(w("net")),HMe=AZ(w("tls")),GMe=OMe(ky()),YMe=w("events"),qMe=hk(),aZ=w("url"),Vh=(0,GMe.default)("http-proxy-agent"),Ly=class extends qMe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new aZ.URL(e):e,this.proxyHeaders=r?.headers??{},Vh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?VMe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new aZ.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Vh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Vh("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let A=(0,nve.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",ive),r.secureEndpoint?($m("Upgrading socket connection to TLS"),n$.connect({...o$(i$(r),"host","path","port"),socket:n})):n;n.destroy();let l=new EQ.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{$m("Replaying proxy buffer for failed request"),(0,eve.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};CQ.protocols=["http","https"];ii.HttpsProxyAgent=CQ;function ive(t){t.resume()}function o$(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var d$=C(oi=>{"use strict";var ove=oi&&oi.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),ave=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),l$=oi&&oi.__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)&&ove(e,t,r);return ave(e,t),e},Ave=oi&&oi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oi,"__esModule",{value:!0});oi.HttpProxyAgent=void 0;var cve=l$(w("net")),uve=l$(w("tls")),lve=Ave(pQ()),dve=w("events"),gve=tF(),u$=w("url"),ih=(0,lve.default)("http-proxy-agent"),IQ=class extends gve.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new u$.URL(e):e,this.proxyHeaders=r?.headers??{},ih("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?hve(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new u$.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;ih("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(ih("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Vh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Vh("Creating `tls.Socket`: %o",this.connectOpts),i=HMe.connect(this.connectOpts)):(Vh("Creating `net.Socket`: %o",this.connectOpts),i=_Me.connect(this.connectOpts)),await(0,YMe.once)(i,"connect"),i}};Ly.protocols=["http","https"];On.HttpProxyAgent=Ly;function VMe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var FZ=E(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.state=void 0;zy.state={instrumenterImplementation:void 0}});var jZ=E($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.state=void 0;$y.state={operationRequestMap:new WeakMap}});var Fte=E((sxt,$8e)=>{$8e.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Ute=E((nxt,Mte)=>{var e4e=Fte();Mte.exports={version:e4e.version}});var Db=E(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.isJsonObject=fg.typeofJsonValue=void 0;function c4e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}fg.typeofJsonValue=c4e;function u4e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}fg.isJsonObject=u4e});var Fb=E(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.base64encode=pg.base64decode=void 0;var ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),kb=[];for(let t=0;t<ja.length;t++)kb[ja[t].charCodeAt(0)]=t;kb[45]=ja.indexOf("+");kb[95]=ja.indexOf("/");function l4e(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=kb[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}pg.base64decode=l4e;function d4e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=ja[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=ja[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=ja[n|s>>6],e+=ja[s&63],r=0;break}return r&&(e+=ja[n],e+="=",r==1&&(e+="=")),e}pg.base64encode=d4e});var _te=E(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});Mb.utf8read=void 0;var iv=t=>String.fromCharCode.apply(String,t);function h4e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(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,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(iv(s)),n=0);return r.length?(n&&r.push(iv(s.slice(0,n))),r.join("")):iv(s.slice(0,n))}Mb.utf8read=h4e});var m0=E(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.WireType=Yo.mergeBinaryOptions=Yo.UnknownFieldHandler=void 0;var g4e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(g4e=Yo.UnknownFieldHandler||(Yo.UnknownFieldHandler={}));function f4e(t,e){return Object.assign(Object.assign({},t),e)}Yo.mergeBinaryOptions=f4e;var p4e;(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"})(p4e=Yo.WireType||(Yo.WireType={}))});var Lb=E(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.varint32read=Ds.varint32write=Ds.int64toString=Ds.int64fromString=Ds.varint64write=Ds.varint64read=void 0;function m4e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&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 n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Ds.varint64read=m4e;function E4e(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Ds.varint64write=E4e;var Ub=65536*65536;function C4e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=Ub&&(n=n+(s/Ub|0),s=s%Ub)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ds.int64fromString=C4e;function I4e(t,e){if(e>>>0<=2097151)return""+(Ub*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}Ds.int64toString=I4e;function B4e(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)}}Ds.varint32write=B4e;function y4e(){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}Ds.varint32read=y4e});var pc=E(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.PbLong=fc.PbULong=fc.detectBi=void 0;var E0=Lb(),at;function Hte(){let t=new DataView(new ArrayBuffer(8));at=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}fc.detectBi=Hte;Hte();function Gte(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Yte=/^-?[0-9]+$/,Pb=4294967296,vb=2147483648,Ob=c Line truncated
`)}};c1.RpcError=kv});var Mv=E(l1=>{"use strict";Object.defineProperty(l1,"__esModule",{value:!0});l1.mergeRpcOptions=void 0;var Cre=jt();function qOe(t,e){if(!e)return t;let r={};u1(t,r),u1(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Cre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Cre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},u1(t.meta,r.meta),u1(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}l1.mergeRpcOptions=qOe;function u1(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var Lv=E(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.Deferred=Il.DeferredState=void 0;var Jo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Jo=Il.DeferredState||(Il.DeferredState={}));var Uv=class{constructor(e=!0){this._state=Jo.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!==Jo.PENDING)throw new Error(`cannot resolve ${Jo[this.state].toLowerCase()}`);this._resolve(e),this._state=Jo.RESOLVED}reject(e){if(this.state!==Jo.PENDING)throw new Error(`cannot reject ${Jo[this.state].toLowerCase()}`);this._reject(e),this._state=Jo.REJECTED}resolvePending(e){this._state===Jo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Jo.PENDING&&this.reject(e)}};Il.Deferred=Uv});var Pv=E(d1=>{"use strict";Object.defineProperty(d1,"__esModule",{value:!0});d1.RpcOutputStreamController=void 0;var Ire=Lv(),Bl=jt(),vv=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){Bl.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){Bl.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){Bl.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(){Bl.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;Bl.assert(e,"bad state"),Bl.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 Ire.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Bl.assert(s.state==Ire.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};d1.RpcOutputStreamController=vv});var _v=E(Qg=>{"use strict";var VOe=Qg&&Qg.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Qg,"__esModule",{value:!0});Qg.UnaryCall=void 0;var Ov=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,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 VOe(this,void 0,void 0,function*(){let[e,r,s,n]=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:n}})}};Qg.UnaryCall=Ov});var Gv=E(bg=>{"use strict";var JOe=bg&&bg.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(bg,"__esModule",{value:!0});bg.ServerStreamingCall=void 0;var Hv=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),ih("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(ih("Creating `tls.Socket`: %o",this.connectOpts),i=uve.connect(this.connectOpts)):(ih("Creating `net.Socket`: %o",this.connectOpts),i=cve.connect(this.connectOpts)),await(0,dve.once)(i,"connect"),i}};IQ.protocols=["http","https"];oi.HttpProxyAgent=IQ;function hve(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var U$=C(bQ=>{"use strict";Object.defineProperty(bQ,"__esModule",{value:!0});bQ.state=void 0;bQ.state={instrumenterImplementation:void 0}});var lee=C(UQ=>{"use strict";Object.defineProperty(UQ,"__esModule",{value:!0});UQ.state=void 0;UQ.state={operationRequestMap:new WeakMap}});var Hre=C((qMt,$6e)=>{$6e.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"~1.23.0","@azure/storage-blob":"~12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Yre=C((VMt,Gre)=>{var e_e=Hre();Gre.exports={version:e_e.version}});var uw=C(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.isJsonObject=Mh.typeofJsonValue=void 0;function c_e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Mh.typeofJsonValue=c_e;function u_e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Mh.isJsonObject=u_e});var dw=C(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.base64encode=Uh.base64decode=void 0;var mA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),lw=[];for(let t=0;t<mA.length;t++)lw[mA[t].charCodeAt(0)]=t;lw[45]=mA.indexOf("+");lw[95]=mA.indexOf("/");function l_e(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=lw[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}Uh.base64decode=l_e;function d_e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=mA[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=mA[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=mA[n|s>>6],e+=mA[s&63],r=0;break}return r&&(e+=mA[n],e+="=",r==1&&(e+="=")),e}Uh.base64encode=d_e});var zre=C(gw=>{"use strict";Object.defineProperty(gw,"__esModule",{value:!0});gw.utf8read=void 0;var iP=t=>String.fromCharCode.apply(String,t);function g_e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(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,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(iP(s)),n=0);return r.length?(n&&r.push(iP(s.slice(0,n))),r.join("")):iP(s.slice(0,n))}gw.utf8read=g_e});var n0=C(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.WireType=ia.mergeBinaryOptions=ia.UnknownFieldHandler=void 0;var h_e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(h_e=ia.UnknownFieldHandler||(ia.UnknownFieldHandler={}));function f_e(t,e){return Object.assign(Object.assign({},t),e)}ia.mergeBinaryOptions=f_e;var p_e;(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"})(p_e=ia.WireType||(ia.WireType={}))});var fw=C(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.varint32read=Ks.varint32write=Ks.int64toString=Ks.int64fromString=Ks.varint64write=Ks.varint64read=void 0;function m_e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&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 n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Ks.varint64read=m_e;function E_e(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Ks.varint64write=E_e;var hw=65536*65536;function C_e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=hw&&(n=n+(s/hw|0),s=s%hw)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ks.int64fromString=C_e;function I_e(t,e){if(e>>>0<=2097151)return""+(hw*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}Ks.int64toString=I_e;function B_e(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)}}Ks.varint32write=B_e;function y_e(){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}Ks.varint32read=y_e});var Pc=C(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.PbLong=vc.PbULong=vc.detectBi=void 0;var i0=fw(),pt;function Kre(){let t=new DataView(new ArrayBuffer(8));pt=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}vc.detectBi=Kre;Kre();function jre(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Xre=/^-?[0-9]+$/,mw=4294967296,pw=2147483648,Ew=c Line truncated
`)}};Gw.RpcError=kP});var MP=C(qw=>{"use strict";Object.defineProperty(qw,"__esModule",{value:!0});qw.mergeRpcOptions=void 0;var Sse=or();function qHe(t,e){if(!e)return t;let r={};Yw(t,r),Yw(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Sse.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Sse.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Yw(t.meta,r.meta),Yw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}qw.mergeRpcOptions=qHe;function Yw(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var LP=C(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.Deferred=Ml.DeferredState=void 0;var Aa;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Aa=Ml.DeferredState||(Ml.DeferredState={}));var UP=class{constructor(e=!0){this._state=Aa.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!==Aa.PENDING)throw new Error(`cannot resolve ${Aa[this.state].toLowerCase()}`);this._resolve(e),this._state=Aa.RESOLVED}reject(e){if(this.state!==Aa.PENDING)throw new Error(`cannot reject ${Aa[this.state].toLowerCase()}`);this._reject(e),this._state=Aa.REJECTED}resolvePending(e){this._state===Aa.PENDING&&this.resolve(e)}rejectPending(e){this._state===Aa.PENDING&&this.reject(e)}};Ml.Deferred=UP});var PP=C(Vw=>{"use strict";Object.defineProperty(Vw,"__esModule",{value:!0});Vw.RpcOutputStreamController=void 0;var Tse=LP(),Ul=or(),vP=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){Ul.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){Ul.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){Ul.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(){Ul.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;Ul.assert(e,"bad state"),Ul.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 Tse.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Ul.assert(s.state==Tse.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};Vw.RpcOutputStreamController=vP});var _P=C(Gh=>{"use strict";var VHe=Gh&&Gh.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Gh,"__esModule",{value:!0});Gh.UnaryCall=void 0;var OP=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,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 VHe(this,void 0,void 0,function*(){let[e,r,s,n]=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:n}})}};Gh.UnaryCall=OP});var GP=C(Yh=>{"use strict";var JHe=Yh&&Yh.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Yh,"__esModule",{value:!0});Yh.ServerStreamingCall=void 0;var HP=class{constructor(e 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 Moe=E(Foe=>{"use strict";var _8=AA().Buffer;Foe._dbcs=cA;var Ur=-1,koe=-2,Ai=-10,cs=-1e3,tf=new Array(256),EE=-1;for(Ow=0;Ow<256;Ow++)tf[Ow]=Ur;var Ow;function cA(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]=tf.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 n=this.decodeTables.length;this.decodeTables.push(tf.slice(0));var i=this.decodeTables.length;this.decodeTables.push(tf.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[cs-o[s]],A=48;A<=57;A++){if(a[A]===Ur)a[A]=cs-n;else if(a[A]>cs)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[cs-a[A]],u=129;u<=254;u++){if(c[u]===Ur)c[u]=cs-i;else{if(c[u]===cs-i)continue;if(c[u]>cs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[cs-c[u]],d=48;d<=57;d++)l[d]===Ur&&(l[d]=koe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var g={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function cWe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(zJe.has(n)){r=n;break}}return r}function uWe(t,e){let r=cWe(e);r!==""&&(t.referrerPolicy=r)}function lWe(){return"allowed"}function dWe(){return"success"}function hWe(){return"success"}function gWe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function fWe(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&&iO(t.origin)&&!iO(Xl(t))&&(e=null);break;case"same-origin":TE(t,Xl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function af(t,e){return t}function pWe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:af(t.domainLookupStartTime,r),domainLookupEndTime:af(t.domainLookupEndTime,r),connectionStartTime:af(t.connectionStartTime,r),connectionEndTime:af(t.connectionEndTime,r),secureConnectionStartTime:af(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function mWe(t){return af(ZJe.now(),t)}function EWe(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 cce(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function CWe(t){return{referrerPolicy:t.referrerPolicy}}function IWe(t){let e=t.referrerPolicy;xE(e);let r=null;if(t.referrer==="client"){let i=nce();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Oc.is.URL(t.referrer)&&(r=t.referrer);let s=nO(r),n=nO(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??nO(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Xl(t);return jl(s)&&!jl(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Xl(t);return TE(s,i)?s:jl(s)&&!jl(i)?"no-referrer":n}case"same-origin":return TE(t,s)?s:"no-referrer";case"origin-when-cross-origin":return TE(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Xl(t);return jl(s)&&!jl(i)?"no-referrer":s}}}function nO(t,e=!1){return xE(Oc.is.URL(t)),t=new URL(t),hce(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var BWe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),yWe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function uce(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),yWe(t)):BWe(t)}function QWe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||uce(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function jl(t){return Oc.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:QWe(t.origin):!1}function bWe(t){}function TE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function wWe(t){return t.controller.state==="aborted"}function NWe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function SWe(t){return eWe[t.toLowerCase()]??t}var TWe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function lce(t,e,r=0,s=1){class n{#e;#t;#s;constructor(o,a){this.#e=o,this.#t=a,this.#s=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#s,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#s=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,TWe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function xWe(t,e,r,s=0,n=1){let i=lce(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Oc.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Oc.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=li(a=>gO(a)&&a!==59,t,e);i=dO.decode(o)}return{name:s,value:i,extended:n}}function $We(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Os("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=li(a=>a!==10&&a!==13&&a!==58,t,e);if(o=hO(o,!0,!0,a=>a===9||a===32),!VWe.test(o.toString()))throw Os("header name does not match the field-name token production");if(t[e.position]!==58)throw Os("expected :");switch(e.position++,li(a=>a===32||a===9,t,e),qWe(o)){case"content-disposition":{r=s=null;let a=!1;if(li(c=>gO(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Os("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=ZWe(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(s=c.value,a=!0):a||(s=c.value))}if(r===null)throw Os("name attribute is required in content-disposition header");break}case"content-type":{let a=li(A=>A!==10&&A!==13,t,e);a=hO(a,!1,!0,A=>A===9||A===32),n=Cce(a);break}case"content-transfer-encoding":{let a=li(A=>A!==10&&A!==13,t,e);a=hO(a,!1,!0,A=>A===9||A===32),i=Cce(a);break}default:li(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Os("expected CRLF");e.position+=2}}function li(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function hO(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function eze(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}function Os(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function tze(t){return t<=31||t===127}function rze(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function gO(t){return t<=127&&t!==32&&t!==9&&!tze(t)&&!rze(t)}Ice.exports={multipartFormDataParser:XWe,validateBoundary:jWe}});var RE=E((cLt,yce)=>{"use strict";function sze(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}yce.exports={createDeferredPromise:sze}});var uf=E((uLt,Sce)=>{"use strict";var mO=Be(),{ReadableStreamFrom:nze,readableStreamClose:ize,fullyReadBody:oze,extractMimeType:aze}=Cn(),{FormData:Qce,setFormDataState:Aze}=uN(),{webidl:Ki}=Lr(),fO=w("node:assert"),{isErrored:pO,isDisturbed:cze}=w("node:stream"),{isUint8Array:uze}=w("node:util/types"),{serializeAMimeType:lze}=ui(),{multipartFormDataParser:dze}=Bce(),{createDeferredPromise:hze}=RE(),{parseJSONFromBytes:gze}=dA(),{utf8DecodeBytes:fze}=nN(),{runtimeFeatures:pze}=hA(),mze=pze.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),lN=new TextEncoder;function Eze(){}var Cze=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!cze(e)&&!pO(e)&&e.cancel("Response object has been garbage collected").catch(Eze)});function wce(t,e=!1){let r=null,s=null;Ki.is.ReadableStream(t)?r=t:Ki.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),fO(Ki.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Ki.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Ki.is.BufferSource(t))i=Ki.util.getCopyOfBytesHeldByBufferSource(t);else if(Ki.is.FormData(t)){let c=`----formdata-undici-0${`${mze(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
\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 wae=C(bae=>{"use strict";var S4=wA().Buffer;bae._dbcs=NA;var Jr=-1,Qae=-2,Si=-10,ws=-1e3,Ef=new Array(256),X0=-1;for(mN=0;mN<256;mN++)Ef[mN]=Jr;var mN;function NA(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]=Ef.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 n=this.decodeTables.length;this.decodeTables.push(Ef.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Ef.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[ws-o[s]],A=48;A<=57;A++){if(a[A]===Jr)a[A]=ws-n;else if(a[A]>ws)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[ws-a[A]],u=129;u<=254;u++){if(c[u]===Jr)c[u]=ws-i;else{if(c[u]===ws-i)continue;if(c[u]>ws)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[ws-c[u]],d=48;d<=57;d++)l[d]===Jr&&(l[d]=Qae)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function $ze(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(Pze.has(n)){r=n;break}}return r}function eKe(t,e){let r=$ze(e);r!==""&&(t.referrerPolicy=r)}function tKe(){return"allowed"}function rKe(){return"success"}function sKe(){return"success"}function nKe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function iKe(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&&JO(t.origin)&&!JO(ad(t))&&(e=null);break;case"same-origin":aC(t,ad(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Qf(t,e){return t}function oKe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Qf(t.domainLookupStartTime,r),domainLookupEndTime:Qf(t.domainLookupEndTime,r),connectionStartTime:Qf(t.connectionStartTime,r),connectionEndTime:Qf(t.connectionEndTime,r),secureConnectionStartTime:Qf(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function aKe(t){return Qf(Gze.now(),t)}function AKe(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 eue(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function cKe(t){return{referrerPolicy:t.referrerPolicy}}function uKe(t){let e=t.referrerPolicy;AC(e);let r=null;if(t.referrer==="client"){let i=Kce();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else su.is.URL(t.referrer)&&(r=t.referrer);let s=VO(r),n=VO(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??VO(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=ad(t);return od(s)&&!od(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=ad(t);return aC(s,i)?s:od(s)&&!od(i)?"no-referrer":n}case"same-origin":return aC(t,s)?s:"no-referrer";case"origin-when-cross-origin":return aC(t,s)?s:n;case"no-referrer-when-downgrade":{let i=ad(t);return od(s)&&!od(i)?"no-referrer":s}}}function VO(t,e=!1){return AC(su.is.URL(t)),t=new URL(t),nue(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var lKe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),dKe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function tue(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),dKe(t)):lKe(t)}function gKe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||tue(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function od(t){return su.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:gKe(t.origin):!1}function hKe(t){}function aC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function fKe(t){return t.controller.state==="aborted"}function pKe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function mKe(t){return qze[t.toLowerCase()]??t}var EKe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function rue(t,e,r=0,s=1){class n{#e;#t;#s;constructor(o,a){this.#e=o,this.#t=a,this.#s=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#s,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#s=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,EKe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function CKe(t,e,r,s=0,n=1){let i=rue(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return su.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return su.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Di(a=>t6(a)&&a!==59,t,e);i=$O.decode(o)}return{name:s,value:i,extended:n}}function YKe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw sn("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Di(a=>a!==10&&a!==13&&a!==58,t,e);if(o=e6(o,!0,!0,a=>a===9||a===32),!UKe.test(o.toString()))throw sn("header name does not match the field-name token production");if(t[e.position]!==58)throw sn("expected :");switch(e.position++,Di(a=>a===32||a===9,t,e),MKe(o)){case"content-disposition":{r=s=null;let a=!1;if(Di(c=>t6(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw sn("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=GKe(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(s=c.value,a=!0):a||(s=c.value))}if(r===null)throw sn("name attribute is required in content-disposition header");break}case"content-type":{let a=Di(A=>A!==10&&A!==13,t,e);a=e6(a,!1,!0,A=>A===9||A===32),n=uue(a);break}case"content-transfer-encoding":{let a=Di(A=>A!==10&&A!==13,t,e);a=e6(a,!1,!0,A=>A===9||A===32),i=uue(a);break}default:Di(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw sn("expected CRLF");e.position+=2}}function Di(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function e6(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function qKe(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}function sn(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function VKe(t){return t<=31||t===127}function JKe(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function t6(t){return t<=127&&t!==32&&t!==9&&!VKe(t)&&!JKe(t)}lue.exports={multipartFormDataParser:HKe,validateBoundary:_Ke}});var cC=C((mOt,gue)=>{"use strict";function WKe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}gue.exports={createDeferredPromise:WKe}});var Nf=C((EOt,Eue)=>{"use strict";var n6=we(),{ReadableStreamFrom:zKe,readableStreamClose:KKe,fullyReadBody:jKe,extractMimeType:XKe}=Un(),{FormData:hue,setFormDataState:ZKe}=GN(),{webidl:lo}=Wr(),r6=w("node:assert"),{isErrored:s6,isDisturbed:$Ke}=w("node:stream"),{isUint8Array:eje}=w("node:util/types"),{serializeAMimeType:tje}=xi(),{multipartFormDataParser:rje}=due(),{createDeferredPromise:sje}=cC(),{parseJSONFromBytes:nje}=xA(),{utf8DecodeBytes:ije}=LN(),{runtimeFeatures:oje}=DA(),aje=oje.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),YN=new TextEncoder;function Aje(){}var cje=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!$Ke(e)&&!s6(e)&&e.cancel("Response object has been garbage collected").catch(Aje)});function pue(t,e=!1){let r=null,s=null;lo.is.ReadableStream(t)?r=t:lo.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),r6(lo.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(lo.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(lo.is.BufferSource(t))i=lo.util.getCopyOfBytesHeldByBufferSource(t);else if(lo.is.FormData(t)){let c=`----formdata-undici-0${`${aje(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),g=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let b=lN.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let N=YN.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);g.push(b),o+=b.byteLength}else{let b=lN.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
${d(I)}\r
`);h.push(N),o+=N.byteLength}else{let N=YN.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);g.push(b,C,f),typeof C.size=="number"?o+=b.byteLength+C.size+f.byteLength:p=!0}let I=lN.encode(`--${c}--\r
`);g.push(I),o+=I.byteLength,p&&(o=null),i=t,n=async function*(){for(let m of g)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(Ki.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(mO.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Ki.is.ReadableStream(t)?t:nze(t)}return(typeof i=="string"||uze(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(pO(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!pO(r)&&s.enqueue(typeof c=="string"?lN.encode(c):new Uint8Array(c));queueMicrotask(()=>ize(s))})(),[{stream:r,source:i,length:o},a]}function Ize(t,e=!1){return Ki.is.ReadableStream(t)&&(fO(!mO.isDisturbed(t),"The body has already been consumed."),fO(!t.locked,"The stream is locked.")),wce(t,e)}function Bze(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function yze(t,e){return{blob(){return cf(this,s=>{let n=bce(e(this));return n===null?n="":n&&(n=lze(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return cf(this,s=>new Uint8Array(s).buffer,t,e)},text(){return cf(this,fze,t,e)},json(){return cf(this,gze,t,e)},formData(){return cf(this,s=>{let n=bce(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=dze(s,n),o=new Qce;return Aze(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new Qce;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return cf(this,s=>new Uint8Array(s),t,e)}}}function Qze(t,e){Object.assign(t.prototype,yze(t,e))}function cf(t,e,r,s){try{Ki.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),Nce(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=hze(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(oze(t.body,o,i),n.promise)}function Nce(t){let e=t.body;return e!=null&&(e.stream.locked||mO.isDisturbed(e.stream))}function bce(t){let e=t.headersList,r=aze(e);return r==="failure"?null:r}Sce.exports={extractBody:wce,safelyExtractBody:Ize,cloneBody:Bze,mixinBody:Qze,streamRegistry:Cze,bodyUnusable:Nce}});var Gce=E((lLt,Hce)=>{"use strict";var le=w("node:assert"),se=Be(),{channels:Tce}=vc(),EO=Z8(),{RequestContentLengthMismatchError:Zl,ResponseContentLengthMismatchError:xce,RequestAbortedError:vce,InvalidArgumentError:bze,HeadersTimeoutError:wze,HeadersOverflowError:Nze,SocketError:$l,InformationalError:lf,BodyTimeoutError:Sze,HTTPParserError:Tze,ResponseExceededMaxSizeError:xze}=Ce(),{kUrl:Pce,kReset:_s,kClient:pN,kParser:Et,kBlocking:FE,kRunning:ar,kPending:wO,kSize:Rce,kWriting:_c,kQueue:ji,kNoRef:DE,kKeepAliveDefaultTimeout:Rze,kHostHeader:Dze,kPendingIdx:kze,kRunningIdx:di,kError:us,kPipelining:gN,kSocket:td,kKeepAliveTimeoutValue:mN,kMaxHeadersSize:Fze,kKeepAliveMaxTimeout:Mze,kKeepAliveTimeoutThreshold:Uze,kHeadersTimeout:Lze,kBodyTimeout:vze,kStrictContentLength:BO,kMaxRequests:Dce,kCounter:Pze,kMaxResponseSize:Oze,kOnError:kce,kResume:fA,kHTTPContext:Oce,kClosed:yO}=et(),In=SAe(),Fce=Buffer.alloc(0),dN=Buffer[Symbol.species],_ze=se.removeAllListeners,rd=Symbol("kIdleSocketValidation"),ed=Symbol("kIdleSocketValidationTimeout"),NO=Symbol("kSocketUsed"),CO;function Hze(){let t=process.env.JEST_WORKER_ID?V4():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(RAe())}catch{}return e||(e=new WebAssembly.Module(t||V4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onStatus(new dN(ta.buffer,o,i))},wasm_on_message_begin:s=>(le(_t.ptr===s),_t.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onHeaderField(new dN(ta.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onHeaderValue(new dN(ta.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(le(_t.ptr===s),_t.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onBody(new dN(ta.buffer,o,i))},wasm_on_message_complete:s=>(le(_t.ptr===s),_t.onMessageComplete())}})}var IO=null,_t=null,ta=null,hN=0,ra=null,Gze=0,kE=1,df=2|kE,fN=4|kE,QO=8|Gze,bO=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(In.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Fze],this.shouldKeepAliv Line truncated
`);h.push(N,I,f),typeof I.size=="number"?o+=N.byteLength+I.size+f.byteLength:p=!0}let E=YN.encode(`--${c}--\r
`);h.push(E),o+=E.byteLength,p&&(o=null),i=t,n=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(lo.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(n6.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=lo.is.ReadableStream(t)?t:zKe(t)}return(typeof i=="string"||eje(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(s6(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!s6(r)&&s.enqueue(typeof c=="string"?YN.encode(c):new Uint8Array(c));queueMicrotask(()=>KKe(s))})(),[{stream:r,source:i,length:o},a]}function uje(t,e=!1){return lo.is.ReadableStream(t)&&(r6(!n6.isDisturbed(t),"The body has already been consumed."),r6(!t.locked,"The stream is locked.")),pue(t,e)}function lje(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function dje(t,e){return{blob(){return wf(this,s=>{let n=fue(e(this));return n===null?n="":n&&(n=tje(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return wf(this,s=>new Uint8Array(s).buffer,t,e)},text(){return wf(this,ije,t,e)},json(){return wf(this,nje,t,e)},formData(){return wf(this,s=>{let n=fue(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=rje(s,n),o=new hue;return ZKe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new hue;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return wf(this,s=>new Uint8Array(s),t,e)}}}function gje(t,e){Object.assign(t.prototype,dje(t,e))}function wf(t,e,r,s){try{lo.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),mue(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=sje(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(jKe(t.body,o,i),n.promise)}function mue(t){let e=t.body;return e!=null&&(e.stream.locked||n6.isDisturbed(e.stream))}function fue(t){let e=t.headersList,r=XKe(e);return r==="failure"?null:r}Eue.exports={extractBody:pue,safelyExtractBody:uje,cloneBody:lje,mixinBody:gje,streamRegistry:cje,bodyUnusable:mue}});var Fue=C((COt,kue)=>{"use strict";var he=w("node:assert"),oe=we(),{channels:Cue}=tu(),i6=O4(),{RequestContentLengthMismatchError:Ad,ResponseContentLengthMismatchError:Iue,RequestAbortedError:Tue,InvalidArgumentError:hje,HeadersTimeoutError:fje,HeadersOverflowError:pje,SocketError:cd,InformationalError:Sf,BodyTimeoutError:mje,HTTPParserError:Eje,ResponseExceededMaxSizeError:Cje}=Ce(),{kUrl:xue,kReset:nn,kClient:zN,kParser:Nt,kBlocking:dC,kRunning:hr,kPending:d6,kSize:Bue,kWriting:nu,kQueue:go,kNoRef:uC,kKeepAliveDefaultTimeout:Ije,kHostHeader:Bje,kPendingIdx:yje,kRunningIdx:Ri,kError:Ns,kPipelining:JN,kSocket:ud,kKeepAliveTimeoutValue:KN,kMaxHeadersSize:Qje,kKeepAliveMaxTimeout:bje,kKeepAliveTimeoutThreshold:wje,kHeadersTimeout:Nje,kBodyTimeout:Sje,kStrictContentLength:A6,kMaxRequests:yue,kCounter:Tje,kMaxResponseSize:xje,kOnError:Que,kResume:kA,kHTTPContext:Due,kClosed:c6}=At(),Ln=Ece(),bue=Buffer.alloc(0),qN=Buffer[Symbol.species],Dje=oe.removeAllListeners,ld=Symbol("kIdleSocketValidation"),Tf=Symbol("kIdleSocketValidationTimeout"),g6=Symbol("kSocketUsed"),o6;function Rje(){let t=process.env.JEST_WORKER_ID?kO():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(Bce())}catch{}return e||(e=new WebAssembly.Module(t||kO())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{he(Kt.ptr===s);let o=n-Ca+Ea.byteOffset;return Kt.onStatus(new qN(Ea.buffer,o,i))},wasm_on_message_begin:s=>(he(Kt.ptr===s),Kt.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{he(Kt.ptr===s);let o=n-Ca+Ea.byteOffset;return Kt.onHeaderField(new qN(Ea.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{he(Kt.ptr===s);let o=n-Ca+Ea.byteOffset;return Kt.onHeaderValue(new qN(Ea.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(he(Kt.ptr===s),Kt.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{he(Kt.ptr===s);let o=n-Ca+Ea.byteOffset;return Kt.onBody(new qN(Ea.buffer,o,i))},wasm_on_message_complete:s=>(he(Kt.ptr===s),Kt.onMessageComplete())}})}var a6=null,Kt=null,Ea=null,VN=0,Ca=null,kje=0,lC=1,xf=2|lC,WN=4|lC,u6=8|kje,l6=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Ln.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Qje],this.shouldKeepAliv Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[Dze],i?p+=`connection: upgrade\r
`:p+=t[Bje],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[gN]&&!g[_s]?p+=`connection: keep-alive\r
`:t[JN]&&!h[nn]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let b=0;b<C.length;b++)p+=`${m}: ${C[b]}\r
`;else p+=`${m}: ${C}\r
`}return Tce.sendHeaders.hasSubscribers&&Tce.sendHeaders.publish({request:e,headers:p,socket:g}),!A||d===0?Uce(f,null,t,e,g,u,p,l):se.isBuffer(A)?Uce(f,A,t,e,g,u,p,l):se.isBlobLike(A)?typeof A.stream=="function"?Lce(f,A.stream(),t,e,g,u,p,l):eKe(f,A,t,e,g,u,p,l):se.isStream(A)?$ze(f,A,t,e,g,u,p,l):se.isIterable(A)?Lce(f,A,t,e,g,u,p,l):le(!1),!0}function $ze(t,e,r,s,n,i,o,a){le(i!==0||r[ar]===0,"stream body cannot be pipelined");let A=!1,c=new EN({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){se.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",g)}),!A){let f=new vce;queueMicrotask(()=>g(f))}},g=function(f){if(!A){if(A=!0,le(n.destroyed||n[_c]&&r[ar]<=1),n.off("drain",l).off("error",g),e.removeListener("data",u).removeListener("end",g).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?se.destroy(e,f):se.destroy(e)}};e.on("data",u).on("end",g).on("error",g).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",g),e.errorEmitted??e.errored?setImmediate(g,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(g,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Uce(t,e,r,s,n,i,o,a){try{e?se.isBuffer(e)&&(le(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`,Array.isArray(c))for(let E=0;E<c.length;E+=2){let m=c[E+0],I=c[E+1];if(Array.isArray(I))for(let N=0;N<I.length;N++)p+=`${m}: ${I[N]}\r
`;else p+=`${m}: ${I}\r
`}return Cue.sendHeaders.hasSubscribers&&Cue.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Nue(f,null,t,e,h,u,p,l):oe.isBuffer(A)?Nue(f,A,t,e,h,u,p,l):oe.isBlobLike(A)?typeof A.stream=="function"?Sue(f,A.stream(),t,e,h,u,p,l):qje(f,A,t,e,h,u,p,l):oe.isStream(A)?Yje(f,A,t,e,h,u,p,l):oe.isIterable(A)?Sue(f,A,t,e,h,u,p,l):he(!1),!0}function Yje(t,e,r,s,n,i,o,a){he(i!==0||r[hr]===0,"stream body cannot be pipelined");let A=!1,c=new jN({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){oe.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Tue;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,he(n.destroyed||n[nu]&&r[hr]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?oe.destroy(e,f):oe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Nue(t,e,r,s,n,i,o,a){try{e?oe.isBuffer(e)&&(he(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[_s]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[nn]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(le(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[fA]()}catch(A){t(A)}}async function eKe(t,e,r,s,n,i,o,a){le(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Zl;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(he(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[kA]()}catch(A){t(A)}}async function qje(t,e,r,s,n,i,o,a){he(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ad;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[_s]=!0),r[fA]()}catch(A){t(A)}}async function Lce(t,e,r,s,n,i,o,a){le(i!==0||r[ar]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{le(A===null),n[us]?g(n[us]):A=d});n.on("close",c).on("drain",c);let l=new EN({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[us])throw n[us];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var EN=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[_c]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[us])throw r[us];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[BO])throw new Zl;process.emitWarning(new Zl)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[_s]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[nn]=!0),r[kA]()}catch(A){t(A)}}async function Sue(t,e,r,s,n,i,o,a){he(i!==0||r[hr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{he(A===null),n[Ns]?h(n[Ns]):A=d});n.on("close",c).on("drain",c);let l=new jN({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[Ns])throw n[Ns];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var jN=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[nu]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Ns])throw r[Ns];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[A6])throw new Ad;process.emitWarning(new Ad)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[nn]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Et].timeout&&r[Et].timeoutType===df&&r[Et].timeout.refresh&&r[Et].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[_c]=!1,e[us])throw e[us];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Nt].timeout&&r[Nt].timeoutType===xf&&r[Nt].timeout.refresh&&r[Nt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[nu]=!1,e[Ns])throw e[Ns];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[BO])throw new Zl;process.emitWarning(new Zl)}e[Et].timeout&&e[Et].timeoutType===df&&e[Et].timeout.refresh&&e[Et].timeout.refresh(),s[fA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[_c]=!1,e&&(le(s[ar]<=1,"pipeline should only contain this request"),n(e))}};Hce.exports=Yze});var Xce=E((dLt,jce)=>{"use strict";var gi=w("node:assert"),{pipeline:tKe}=w("node:stream"),xe=Be(),{RequestContentLengthMismatchError:RO,RequestAbortedError:rKe,SocketError:vE,InformationalError:Hc,InvalidArgumentError:sKe}=Ce(),{kUrl:LE,kReset:yN,kClient:Bn,kRunning:PE,kPending:nKe,kQueue:Gc,kPendingIdx:kO,kRunningIdx:Xi,kError:yn,kSocket:xt,kStrictContentLength:iKe,kOnError:hf,kMaxConcurrentStreams:IN,kPingInterval:Yce,kHTTP2Session:pA,kHTTP2InitialWindowSize:oKe,kHTTP2ConnectionWindowSize:aKe,kResume:sa,kSize:AKe,kHTTPContext:FO,kClosed:DO,kBodyTimeout:cKe,kEnableConnectProtocol:ME,kRemoteSettings:UE,kHTTP2Stream:CN,kHTTP2SessionState:MO}=et(),{channels:qce}=vc(),hi=Symbol("open streams"),Vce,BN;try{BN=w("node:http2")}catch{BN={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:uKe,HTTP2_HEADER_METHOD:Jce,HTTP2_HEADER_PATH:Wce,HTTP2_HEADER_SCHEME:SO,HTTP2_HEADER_CONTENT_LENGTH:lKe,HTTP2_HEADER_EXPECT:dKe,HTTP2_HEADER_STATUS:TO,HTTP2_HEADER_PROTOCOL:hKe,NGHTTP2_REFUSED_STREAM:gKe,NGHTTP2_CANCEL:fKe}}=BN;function xO(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function pKe(t,e){t[xt]=e;let r=t[oKe],s=t[aKe],n=BN.connect(t[LE],{createConnection:()=>e,peerMaxConcurrentStreams:t[IN],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[xt]=e,n[hi]=0,n[Bn]=t,n[xt]=e,n[MO]={ping:{interval:t[Yce]===0?null:setInterval(IKe,t[Yce],n).unref()}},n[ME]=!1,n[UE]=!1,s&&xe.addListener(n,"connect",EKe.bind(n,s)),xe.addListener(n,"error",BKe),xe.addListener(n,"frameError",yKe),xe.addListener(n,"end",QKe),xe.addListener(n,"goaway",bKe),xe.addListener(n,"close",wKe),xe.addListener(n,"remoteSettings",CKe),n.unref(),t[pA]=n,e[pA]=n,xe.addListener(e,"error",SKe),xe.addListener(e,"end",TKe),xe.addListener(e,"close",NKe),e[DO]=!1,e.on("close",xKe),{version:"h2",defaultPipelining:1/0,write(i){return DKe(t,i)},resume(){mKe(t)},destroy(i,o){e[DO]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[PE]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[UE]===!1||xe.bodyLength(i.body)!==0&&(xe.isStream(i.body)||xe.isAsyncIterable(i.body)||xe.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[UE]===!1;return!1}}}function mKe(t){let e=t[xt];e?.destroyed===!1&&(t[AKe]===0||t[IN]===0?(e.unref(),t[pA].unref()):(e.ref(),t[pA].ref()))}function EKe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function CKe(t){if(this[Bn][IN]=t.maxConcurrentStreams??this[Bn][IN],this[UE]===!0&&this[ME]===!0&&t.enableConnectProtocol===!1){let e=new Hc("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[xt][yn]=e,this[Bn][hf](e);return}this[ME]=t.enableConnectProtocol??this[ME],this[UE]=!0,this[Bn][sa]()}function IKe(t){let e=t[MO];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[Bn],o=this[Bn];if(s!=null){let a=new Hc(`HTTP/2: "PING" errored - type ${s.message}`);o[yn]=a,i[hf](a)}else i.emit("ping",n)}}function BKe(t){gi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][yn]=t,this[Bn][hf](t)}function yKe(t,e,r){if(r===0){let s=new Hc(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xt][yn]=s,this[Bn][hf](s)}}function QKe(){let t=new vE("other side closed",xe.getSocketInfo(this[xt]));this.destroy(t),xe.destroy(this[xt],t)}function bKe(t){let e=this[yn]||new vE(`HTTP/2: "GOAWAY" frame received with code ${t}`,xe.getSocketInfo(this[xt])),r=this[Bn];if(r[xt]=null,r[FO]=null,this.close(),this[pA]=null,xe.destroy(this[xt],e),r[Xi]<r[Gc].length){let s=r[Gc][r[Xi]];r[Gc][r[Xi]++]=null,xe.errorRequest(r,s,e),r[kO]=r[Xi]}gi(r[PE]===0),r.emit("disconnect",r[LE],[r],e),r.emit("connectionError",r[LE],[r],e),r[sa]()}function wKe(){let{[Bn]:t,[MO]:e}=this,{[xt]:r}=t,s=this[xt][yn]||this[yn]||new vE("closed",xe.getSocketInfo(r));if(t[xt]=null,t[FO]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){gi(t[nKe]===0);let n=t[Gc].splice(t[Xi]);for(let i=0;i<n.length;i++){let o=n[i];xe.errorRequest(t,o,s)}}}function NKe(){let t=this[yn]||new vE("closed",xe.getSocketInfo(this)),e=this[pA][Bn];e[xt]=null,e[FO]=null,this[pA]!==null&&this[pA].destroy(t),e[kO]=e[Xi],gi(e[PE]===0),e.emit("disconnect",e[LE],[e],t),e[sa]()}function SKe(t){gi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[yn]=t,this[Bn][hf](t)}function TKe(){xe.destroy(this,new vE("other side closed",xe.getSocketInfo(this)))}func Line truncated
`;qce.sendHeaders.publish({request:e,headers:U,socket:s[xt]})}let S=n==="GET"||n==="HEAD"||d===null;A?(g[dKe]="100-continue",f=s.request(g,{endStream:S,signal:c}),f[CN]=!0,f.once("continue",F)):(f=s.request(g,{endStream:S,signal:c}),f[CN]=!0,F()),++s[hi],f.setTimeout(r);let D=!1;return f.once("response",U=>{let{[TO]:P,...H}=U;if(e.onResponseStarted(),D=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),xO(H),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Re=>{e.aborted||e.completed||e.onData(Re)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),D?(!e.aborted&&!e.completed&&e.onComplete({}),t[Gc][t[Xi]++]=null,t[sa]()):(m(new Hc("HTTP/2: stream half-closed (remote)")),t[Gc][t[Xi]++]=null,t[kO]=t[Xi],t[sa]())}),f.once("close",()=>{f.removeAllListeners("data"),s[hi]-=1,s[hi]===0&&s.unref()}),f.once("error",function(U){f.removeAllListeners("data"),m(U)}),f.once("frameError",(U,P)=>{f.removeAllListeners("data"),m(new Hc(`HTTP/2: "frameError" received - type ${U}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let U=new Hc(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[hi]-=1,s[hi]===0&&s.unref(),m(U)}),f.once("trailers",U=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(U))}),!0;function F(){!d||b===0?zce(m,f,null,t,e,t[xt],b,C):xe.isBuffer(d)?zce(m,f,d,t,e,t[xt],b,C):xe.isBlobLike(d)?typeof d.stream=="function"?Kce(m,f,d.stream(),t,e,t[xt],b,C):FKe(m,f,d,t,e,t[xt],b,C):xe.isStream(d)?kKe(m,t[xt],C,f,d,t,e,b):xe.isIterable(d)?Kce(m,f,d,t,e,t[xt],b,C):gi(!1)}}function zce(t,e,r,s,n,i,o,a){try{r!=null&&xe.isBuffer(r)&&(gi(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[yN]=!0),n.onRequestSent(),s[sa]()}catch(A){t(A)}}function kKe(t,e,r,s,n,i,o,a){gi(a!==0||i[PE]===0,"stream body cannot be pipelined");let A=tKe(n,s,u=>{u?(xe.destroy(A,u),t(u)):(xe.removeAllListeners(A),o.onRequestSent(),r||(e[yN]=!0),i[sa]())});xe.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function FKe(t,e,r,s,n,i,o,a){gi(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new RO;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[yN]=!0),s[sa]()}catch(A){t(A)}}async function Kce(t,e,r,s,n,i,o,a){gi(o!==0||s[PE]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{gi(A===null),i[yn]?d(i[yn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[yn])throw i[yn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[yN]=!0),s[sa]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}jce.exports=pKe});var Jc=E((hLt,iue)=>{"use strict";var mA=w("node:assert"),tue=w("node:net"),OE=w("node:http"),sd=Be(),{ClientStats:MKe}=S4(),{channels:gf}=vc(),UKe=fAe(),LKe=Wl(),{InvalidArgumentError:Ct,InformationalError:vKe,ClientDestroyedError:PKe}=Ce(),OKe=zl(),{kUrl:na,kServerName:Vc,kClient:_Ke,kBusy:LO,kConnect:HKe,kResuming:nd,kRunning:YE,kPending:qE,kSize:_E,kQueue:Zi,kConnected:GKe,kConnecting:ff,kNeedDrain:qc,kKeepAliveDefaultTimeout:Zce,kHostHeader:YKe,kPendingIdx:$i,kRunningIdx:CA,kError:qKe,kPipelining:QN,kKeepAliveTimeoutValue:VKe,kMaxHeadersSize:JKe,kKeepAliveMaxTimeout:WKe,kKeepAliveTimeoutThreshold:zKe,kHeadersTimeout:KKe,kBodyTimeout:jKe,kStrictContentLength:XKe,kConnector:HE,kMaxRequests:vO,kCounter:ZKe,kClose:$Ke,kDestroy:eje,kDispatch:tje,kLocalAddress:GE,kMaxResponseSize:rje,kOnError:sje,kHTTPContext:Zt,kMaxConcurrentStreams:nje,kHTTP2InitialWindowSize:ije,kHTTP2ConnectionWindowSize:oje,kResume:EA,kPingInterval:aje}=et(),Aje=Gce(),cje=Xce(),Yc=Symbol("kClosedResolve"),uje=OE&&OE.maxHeaderSize&&Number.isInteger(OE.maxHeaderSize)&&OE.maxHeaderSize>0?()=>OE.maxHeaderSize:()=>{throw new Ct("http module not available or http.maxHeaderSize invalid")},$ce=()=>{};function rue(t){return t[QN]??t[Zt]?.defaultPipelining??1}var PO=class extends LKe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:g,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:b,maxRequestsPerClient:S,localAddress:D,maxResponseSize:F,autoSelectFamily:U,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:H,allowH2:Re,useH2c:Je,initialWindowSize:pe,connectionWindowSize:De,pingInterval:Te,webSocket:$t}={}){if(c!==void 0)throw new Ct("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Ct("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Ct("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new Ct("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)t Line truncated
`,this[jKe]=a??3e5,this[KKe]=s??3e5,this[XKe]=m??!0,this[vO]=S,this[Yc]=null,this[rje]=F>-1?F:-1,this[Zt]=null,this[nje]=H??100,this[ije]=pe??262144,this[oje]=De??524288,this[aje]=Te??6e4,this[Zi]=[],this[CA]=0,this[$i]=0,this[EA]=er=>OO(this,er),this[sje]=er=>sue(this,er)}get pipelining(){return this[QN]}set pipelining(e){this[QN]=e,this[EA](!0)}get stats(){return new MKe(this)}get[qE](){return this[Zi].length-this[$i]}get[YE](){return this[$i]-this[CA]}get[_E](){return this[Zi].length-this[CA]}get[GKe](){return!!this[Zt]&&!this[ff]&&!this[Zt].destroyed}get[LO](){return!!(this[Zt]?.busy(null)||this[_E]>=(rue(this)||1)||this[qE]>0)}[HKe](e){nue(this),this.once("connect",e)}[tje](e,r){let s=new UKe(this[na].origin,e,r);return this[Zi].push(s),this[nd]||(sd.bodyLength(s.body)==null&&sd.isIterable(s.body)?(this[nd]=1,queueMicrotask(()=>OO(this))):this[EA](!0)),this[nd]&&this[qc]!==2&&this[LO]&&(this[qc]=2),this[qc]<2}[$Ke](){return new Promise(e=>{this[_E]?this[Yc]=e:e(null)})}[eje](e){return new Promise(r=>{let s=this[Zi].splice(this[$i]);for(let i=0;i<s.length;i++){let o=s[i];sd.errorRequest(this,o,e)}let n=()=>{this[Yc]&&(this[Yc](),this[Yc]=null),r(null)};this[Zt]?(this[Zt].destroy(e,n),this[Zt]=null):queueMicrotask(n),this[EA]()})}};function sue(t,e){if(t[YE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mA(t[$i]===t[CA]);let r=t[Zi].splice(t[CA]);for(let s=0;s<r.length;s++){let n=r[s];sd.errorRequest(t,n,e)}mA(t[_E]===0)}}function nue(t){mA(!t[ff]),mA(!t[Zt]);let{host:e,hostname:r,protocol:s,port:n}=t[na];if(r[0]==="["){let i=r.indexOf("]");mA(i!==-1);let o=r.substring(1,i);mA(tue.isIPv6(o)),r=o}t[ff]=!0,gf.beforeConnect.hasSubscribers&&gf.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Zt]?.version,servername:t[Vc],localAddress:t[GE]},connector:t[HE]});try{t[HE]({host:e,hostname:r,protocol:s,port:n,servername:t[Vc],localAddress:t[GE]},(i,o)=>{if(i){UO(t,i,{host:e,hostname:r,protocol:s,port:n}),t[EA]();return}if(t.destroyed){sd.destroy(o.on("error",$ce),new PKe),t[EA]();return}mA(o);try{t[Zt]=o.alpnProtocol==="h2"?cje(t,o):Aje(t,o)}catch(a){o.destroy().on("error",$ce),UO(t,a,{host:e,hostname:r,protocol:s,port:n}),t[EA]();return}t[ff]=!1,o[ZKe]=0,o[vO]=t[vO],o[_Ke]=t,o[qKe]=null,gf.connected.hasSubscribers&&gf.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Zt]?.version,servername:t[Vc],localAddress:t[GE]},connector:t[HE],socket:o}),t.emit("connect",t[na],[t]),t[EA]()})}catch(i){UO(t,i,{host:e,hostname:r,protocol:s,port:n}),t[EA]()}}function UO(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[ff]=!1,gf.connectError.hasSubscribers&&gf.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[Zt]?.version,servername:t[Vc],localAddress:t[GE]},connector:t[HE],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mA(t[YE]===0);t[qE]>0&&t[Zi][t[$i]].servername===t[Vc];){let o=t[Zi][t[$i]++];sd.errorRequest(t,o,e)}else sue(t,e);t.emit("connectionError",t[na],[t],e)}}function eue(t){t[qc]=0,t.emit("drain",t[na],[t])}function OO(t,e){t[nd]!==2&&(t[nd]=2,lje(t,e),t[nd]=0,t[CA]>256&&(t[Zi].splice(0,t[CA]),t[$i]-=t[CA],t[CA]=0))}function lje(t,e){for(;;){if(t.destroyed){mA(t[qE]===0);return}if(t[Yc]&&!t[_E]){t[Yc](),t[Yc]=null;return}if(t[Zt]&&t[Zt].resume(),t[LO])t[qc]=2;else if(t[qc]===2){e?(t[qc]=1,queueMicrotask(()=>eue(t))):eue(t);continue}if(t[qE]===0||t[YE]>=(rue(t)||1))return;let r=t[Zi][t[$i]];if(r===null)return;if(t[na].protocol==="https:"&&t[Vc]!==r.servername){if(t[YE]>0)return;t[Vc]=r.servername,t[Zt]?.destroy(new vKe("servername changed"),()=>{t[Zt]=null,OO(t)})}if(t[ff])return;if(!t[Zt]){nue(t);return}if(t[Zt].destroyed||t[Zt].busy(r))return;!r.aborted&&t[Zt].write(r)?t[$i]++:t[Zi].splice(t[$i],1)}}iue.exports=PO});var _O=E((fLt,oue)=>{"use strict";var bN=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};oue.exports=class{constructor(){this.head=this.tail=new bN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bN),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var wN=E((pLt,fue)=>{"use strict";var{PoolStats:dje}=S4(),hje=Wl(),gje=_O(),{kConnected:HO,kSize:aue,kRunning:Aue,kPending:cue,kQueued:VE,kBusy:fje,kFree:pje,kUrl:mje,kClose:Eje,kDestroy:Cje,kDispatch:Ije}=et(),Dr=Symbol("clients"),ls=Symbol("needDrain"),JE=Symbol("queue"),GO=Symbol("closed resolve"),YO=Symbol("onDrain"),uue=Symbol("onConnect"),lue=Symbol("onDisconnect"),due=Symbol("onConnectionError"),qO=Symbol("get dispatcher"),hue=Symbol("add client"),gue=Symbol("remove client"),VO=class extends hje{[JE]=new gje;[VE]=0;[Dr] Line truncated
`,"latin1"),r!==null&&n!==r){if(s[A6])throw new Ad;process.emitWarning(new Ad)}e[Nt].timeout&&e[Nt].timeoutType===xf&&e[Nt].timeout.refresh&&e[Nt].timeout.refresh(),s[kA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[nu]=!1,e&&(he(s[hr]<=1,"pipeline should only contain this request"),n(e))}};kue.exports=Fje});var Gue=C((IOt,Hue)=>{"use strict";var Fi=w("node:assert"),{pipeline:Vje}=w("node:stream"),Le=we(),{RequestContentLengthMismatchError:m6,RequestAbortedError:Jje,SocketError:EC,InformationalError:iu,InvalidArgumentError:Wje,HeadersTimeoutError:zje,BodyTimeoutError:Kje}=Ce(),{kUrl:mC,kReset:$N,kClient:vn,kRunning:CC,kPending:jje,kQueue:hC,kPendingIdx:dd,kRunningIdx:Ia,kError:Pn,kSocket:Pt,kStrictContentLength:Xje,kOnError:Df,kMaxConcurrentStreams:E6,kPingInterval:Mue,kHTTP2Session:FA,kHTTP2InitialWindowSize:Zje,kHTTP2ConnectionWindowSize:$je,kResume:Ba,kSize:eXe,kHTTPContext:I6,kClosed:C6,kBodyTimeout:tXe,kHeadersTimeout:rXe,kEnableConnectProtocol:fC,kRemoteSettings:pC,kHTTP2Stream:XN,kHTTP2SessionState:B6}=At(),{channels:Uue}=tu(),ki=Symbol("open streams"),Lue,ZN;try{ZN=w("node:http2")}catch{ZN={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:sXe,HTTP2_HEADER_METHOD:vue,HTTP2_HEADER_PATH:Pue,HTTP2_HEADER_SCHEME:h6,HTTP2_HEADER_CONTENT_LENGTH:nXe,HTTP2_HEADER_EXPECT:iXe,HTTP2_HEADER_STATUS:f6,HTTP2_HEADER_PROTOCOL:oXe,NGHTTP2_REFUSED_STREAM:aXe,NGHTTP2_CANCEL:AXe}}=ZN;function p6(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function cXe(t,e){t[Pt]=e;let r=t[Zje],s=t[$je],n=ZN.connect(t[mC],{createConnection:()=>e,peerMaxConcurrentStreams:t[E6],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Pt]=e,n[ki]=0,n[vn]=t,n[Pt]=e,n[B6]={ping:{interval:t[Mue]===0?null:setInterval(gXe,t[Mue],n).unref()}},n[fC]=!1,n[pC]=!1,s&&Le.addListener(n,"connect",lXe.bind(n,s)),Le.addListener(n,"error",hXe),Le.addListener(n,"frameError",fXe),Le.addListener(n,"end",pXe),Le.addListener(n,"goaway",mXe),Le.addListener(n,"close",EXe),Le.addListener(n,"remoteSettings",dXe),n.unref(),t[FA]=n,e[FA]=n,Le.addListener(e,"error",IXe),Le.addListener(e,"end",BXe),Le.addListener(e,"close",CXe),e[C6]=!1,e.on("close",yXe),{version:"h2",defaultPipelining:1/0,write(i){return bXe(t,i)},resume(){uXe(t)},destroy(i,o){e[C6]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[CC]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[pC]===!1||Le.bodyLength(i.body)!==0&&(Le.isStream(i.body)||Le.isAsyncIterable(i.body)||Le.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[pC]===!1;return!1}}}function uXe(t){let e=t[Pt];e?.destroyed===!1&&(t[eXe]===0?(e.unref(),t[FA].unref()):(e.ref(),t[FA].ref()))}function lXe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function dXe(t){if(this[vn][E6]=t.maxConcurrentStreams??this[vn][E6],this[pC]===!0&&this[fC]===!0&&t.enableConnectProtocol===!1){let e=new iu("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Pt][Pn]=e,this[vn][Df](e);return}this[fC]=t.enableConnectProtocol??this[fC],this[pC]=!0,this[vn][Ba]()}function gXe(t){let e=t[B6];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[vn],o=this[vn];if(s!=null){let a=new iu(`HTTP/2: "PING" errored - type ${s.message}`);o[Pn]=a,i[Df](a)}else i.emit("ping",n)}}function hXe(t){Fi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Pt][Pn]=t,this[vn][Df](t)}function fXe(t,e,r){if(r===0){let s=new iu(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Pt][Pn]=s,this[vn][Df](s)}}function pXe(){let t=new EC("other side closed",Le.getSocketInfo(this[Pt]));this.destroy(t),Le.destroy(this[Pt],t)}function gC(t,e,r=!1){let s=t[hC],n=t[Ia];if(n<t[dd]&&s[n]===e){s[n]=null,t[Ia]=n+1;return}let i=s.indexOf(e,n);i===-1||i>=t[dd]||(s.splice(i,1),t[dd]--,r&&t[dd]<t[Ia]&&(t[dd]=t[Ia]))}function mXe(t){let e=this[Pn]||new EC(`HTTP/2: "GOAWAY" frame received with code ${t}`,Le.getSocketInfo(this[Pt])),r=this[vn];if(r[Pt]=null,r[I6]=null,this.close(),this[FA]=null,Le.destroy(this[Pt],e),r[Ia]<r[hC].length){let s=r[hC][r[Ia]];r[hC][r[Ia]++]=null,s!=null&&Le.errorRequest(r,s,e),r[dd]=r[Ia]}Fi(r[CC]===0),r.emit("disconnect",r[mC],[r],e),r.emit("connectionError",r[mC],[r],e),r[Ba]()}function EXe(){let{[vn]:t,[B6]:e}=this,{[Pt]:r}=t,s=this[Pt][Pn]||this[Pn]||new EC("closed",Le.getSocketInfo(r));if(t[Pt]=null,t[I6]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Fi(t[jje]===0);let n=t[hC].splice(t[Ia]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&Le.errorRequest(t,o,s)}}}function CXe(){let t=this[Pn]||new EC("closed",Le.getSocketInfo(this)),e=this[FA][vn];e[Pt]=null,e[I6]=null,this[FA]!==null&&this[ Line truncated
`;Uue.sendHeaders.publish({request:e,headers:Y,socket:n[Pt]})}let F=i==="GET"||i==="HEAD"||h===null;c?(f[iXe]="100-continue",p=n.request(f,{endStream:F,signal:u}),p[XN]=!0,p.once("continue",Z)):(p=n.request(f,{endStream:F,signal:u}),p[XN]=!0,Z()),++n[ki],p.setTimeout(r);let U=!1;return p.once("response",Y=>{let{[f6]:H,...Qe}=Y;if(e.onResponseStarted(),U=!0,p.setTimeout(s),e.aborted){p.removeAllListeners("data");return}e.onHeaders(Number(H),p6(Qe),p.resume.bind(p),"")===!1&&p.pause(),p.on("data",Me=>{e.aborted||e.completed||e.onData(Me)===!1&&p.pause()})}),p.once("end",()=>{p.removeAllListeners("data"),U?(!e.aborted&&!e.completed&&e.onComplete({}),gC(t,e),t[Ba]()):(I(new iu("HTTP/2: stream half-closed (remote)")),gC(t,e,!0),t[Ba]())}),p.once("close",()=>{p.removeAllListeners("data"),n[ki]-=1,n[ki]===0&&n.unref(),!e.aborted&&!e.completed&&I(new iu("HTTP/2: stream closed before the response was complete"))}),p.once("error",function(Y){p.removeAllListeners("data"),I(Y)}),p.once("frameError",(Y,H)=>{p.removeAllListeners("data"),I(new iu(`HTTP/2: "frameError" received - type ${Y}, code ${H}`))}),p.on("aborted",()=>{p.removeAllListeners("data")}),p.on("timeout",()=>{let Y=U?new Kje(`HTTP/2: "body timeout after ${s}"`):new zje(`HTTP/2: "headers timeout after ${r}"`);p.removeAllListeners("data"),n[ki]-=1,n[ki]===0&&n.unref(),I(Y)}),p.once("trailers",Y=>{e.aborted||e.completed||(p.removeAllListeners("data"),e.onComplete(Y))}),!0;function Z(){!h||T===0?Oue(I,p,null,t,e,t[Pt],T,N):Le.isBuffer(h)?Oue(I,p,h,t,e,t[Pt],T,N):Le.isBlobLike(h)?typeof h.stream=="function"?_ue(I,p,h.stream(),t,e,t[Pt],T,N):NXe(I,p,h,t,e,t[Pt],T,N):Le.isStream(h)?wXe(I,t[Pt],N,p,h,t,e,T):Le.isIterable(h)?_ue(I,p,h,t,e,t[Pt],T,N):Fi(!1)}}function Oue(t,e,r,s,n,i,o,a){try{r!=null&&Le.isBuffer(r)&&(Fi(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[$N]=!0),n.onRequestSent(),s[Ba]()}catch(A){t(A)}}function wXe(t,e,r,s,n,i,o,a){Fi(a!==0||i[CC]===0,"stream body cannot be pipelined");let A=Vje(n,s,u=>{u?(Le.destroy(A,u),t(u)):(Le.removeAllListeners(A),o.onRequestSent(),r||(e[$N]=!0),i[Ba]())});Le.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function NXe(t,e,r,s,n,i,o,a){Fi(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new m6;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[$N]=!0),s[Ba]()}catch(A){t(A)}}async function _ue(t,e,r,s,n,i,o,a){Fi(o!==0||s[CC]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Fi(A===null),i[Pn]?d(i[Pn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[Pn])throw i[Pn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[$N]=!0),s[Ba]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Hue.exports=cXe});var cu=C((BOt,jue)=>{"use strict";var MA=w("node:assert"),Jue=w("node:net"),IC=w("node:http"),gd=we(),{ClientStats:SXe}=hO(),{channels:Rf}=tu(),TXe=oce(),xXe=sd(),{InvalidArgumentError:St,InformationalError:DXe,ClientDestroyedError:RXe}=Ce(),kXe=nd(),{kUrl:ya,kServerName:Au,kClient:FXe,kBusy:Q6,kConnect:MXe,kResuming:hd,kRunning:bC,kPending:wC,kSize:BC,kQueue:ho,kConnected:UXe,kConnecting:kf,kNeedDrain:au,kKeepAliveDefaultTimeout:Yue,kHostHeader:LXe,kPendingIdx:fo,kRunningIdx:LA,kError:vXe,kPipelining:eS,kKeepAliveTimeoutValue:PXe,kMaxHeadersSize:OXe,kKeepAliveMaxTimeout:_Xe,kKeepAliveTimeoutThreshold:HXe,kHeadersTimeout:GXe,kBodyTimeout:YXe,kStrictContentLength:qXe,kConnector:yC,kMaxRequests:b6,kCounter:VXe,kClose:JXe,kDestroy:WXe,kDispatch:zXe,kLocalAddress:QC,kMaxResponseSize:KXe,kOnError:jXe,kHTTPContext:Ar,kMaxConcurrentStreams:XXe,kHTTP2InitialWindowSize:ZXe,kHTTP2ConnectionWindowSize:$Xe,kResume:UA,kPingInterval:eZe}=At(),tZe=Fue(),rZe=Gue(),ou=Symbol("kClosedResolve"),sZe=IC&&IC.maxHeaderSize&&Number.isInteger(IC.maxHeaderSize)&&IC.maxHeaderSize>0?()=>IC.maxHeaderSize:()=>{throw new St("http module not available or http.maxHeaderSize invalid")},que=()=>{};function Wue(t){return t[eS]??t[Ar]?.defaultPipelining??1}var w6=class extends xXe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:E,strictContentLength:m,maxCachedSessions:I,connect:N,maxRequestsPerClient:T,localAddress:F,maxResponseSize:U,autoSelectFamily:Z,autoSelectFamilyAttemptTimeout:Y,maxConcurrentStreams:H,allowH2:Qe,useH2c:Me,initialWindowSize:Be,connectionWindowSize:be,pingInterval:Ue,webSocket:pr}={}){if(c!==void 0)throw new St("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new St("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new St("unsupported requestTimeout, use headersTim Line truncated
`,this[YXe]=a??3e5,this[GXe]=s??3e5,this[qXe]=m??!0,this[b6]=T,this[ou]=null,this[KXe]=U>-1?U:-1,this[Ar]=null,this[XXe]=H??100,this[ZXe]=Be??262144,this[$Xe]=be??524288,this[eZe]=Ue??6e4,this[ho]=[],this[LA]=0,this[fo]=0,this[UA]=mr=>N6(this,mr),this[jXe]=mr=>zue(this,mr)}get pipelining(){return this[eS]}set pipelining(e){this[eS]=e,this[UA](!0)}get stats(){return new SXe(this)}get[wC](){return this[ho].length-this[fo]}get[bC](){return this[fo]-this[LA]}get[BC](){return this[ho].length-this[LA]}get[UXe](){return!!this[Ar]&&!this[kf]&&!this[Ar].destroyed}get[Q6](){return!!(this[Ar]?.busy(null)||this[BC]>=(Wue(this)||1)||this[wC]>0)}[MXe](e){Kue(this),this.once("connect",e)}[zXe](e,r){let s=new TXe(this[ya].origin,e,r);return this[ho].push(s),this[hd]||(gd.bodyLength(s.body)==null&&gd.isIterable(s.body)?(this[hd]=1,queueMicrotask(()=>N6(this))):this[UA](!0)),this[hd]&&this[au]!==2&&this[Q6]&&(this[au]=2),this[au]<2}[JXe](){return new Promise(e=>{this[BC]?this[ou]=e:e(null)})}[WXe](e){return new Promise(r=>{let s=this[ho].splice(this[fo]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&gd.errorRequest(this,o,e)}let n=()=>{this[ou]&&(this[ou](),this[ou]=null),r(null)};this[Ar]?(this[Ar].destroy(e,n),this[Ar]=null):queueMicrotask(n),this[UA]()})}};function zue(t,e){if(t[bC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){MA(t[fo]===t[LA]);let r=t[ho].splice(t[LA]);for(let s=0;s<r.length;s++){let n=r[s];n!=null&&gd.errorRequest(t,n,e)}MA(t[BC]===0)}}function Kue(t){MA(!t[kf]),MA(!t[Ar]);let{host:e,hostname:r,protocol:s,port:n}=t[ya];if(r[0]==="["){let i=r.indexOf("]");MA(i!==-1);let o=r.substring(1,i);MA(Jue.isIPv6(o)),r=o}t[kf]=!0,Rf.beforeConnect.hasSubscribers&&Rf.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Ar]?.version,servername:t[Au],localAddress:t[QC]},connector:t[yC]});try{t[yC]({host:e,hostname:r,protocol:s,port:n,servername:t[Au],localAddress:t[QC]},(i,o)=>{if(i){y6(t,i,{host:e,hostname:r,protocol:s,port:n}),t[UA]();return}if(t.destroyed){gd.destroy(o.on("error",que),new RXe),t[UA]();return}MA(o);try{t[Ar]=o.alpnProtocol==="h2"?rZe(t,o):tZe(t,o)}catch(a){o.destroy().on("error",que),y6(t,a,{host:e,hostname:r,protocol:s,port:n}),t[UA]();return}t[kf]=!1,o[VXe]=0,o[b6]=t[b6],o[FXe]=t,o[vXe]=null,Rf.connected.hasSubscribers&&Rf.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Ar]?.version,servername:t[Au],localAddress:t[QC]},connector:t[yC],socket:o}),t.emit("connect",t[ya],[t]),t[UA]()})}catch(i){y6(t,i,{host:e,hostname:r,protocol:s,port:n}),t[UA]()}}function y6(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[kf]=!1,Rf.connectError.hasSubscribers&&Rf.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[Ar]?.version,servername:t[Au],localAddress:t[QC]},connector:t[yC],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(MA(t[bC]===0);t[wC]>0&&t[ho][t[fo]].servername===t[Au];){let o=t[ho][t[fo]++];gd.errorRequest(t,o,e)}else zue(t,e);t.emit("connectionError",t[ya],[t],e)}}function Vue(t){t[au]=0,t.emit("drain",t[ya],[t])}function N6(t,e){t[hd]!==2&&(t[hd]=2,nZe(t,e),t[hd]=0,t[LA]>256&&(t[ho].splice(0,t[LA]),t[fo]-=t[LA],t[LA]=0))}function nZe(t,e){for(;;){if(t.destroyed){MA(t[wC]===0);return}if(t[ou]&&!t[BC]){t[ou](),t[ou]=null;return}if(t[Ar]&&t[Ar].resume(),t[Q6])t[au]=2;else if(t[au]===2){e?(t[au]=1,queueMicrotask(()=>Vue(t))):Vue(t);continue}if(t[wC]===0||t[bC]>=(Wue(t)||1))return;let r=t[ho][t[fo]];if(r===null)return;if(t[ya].protocol==="https:"&&t[Au]!==r.servername){if(t[bC]>0)return;t[Au]=r.servername,t[Ar]?.destroy(new DXe("servername changed"),()=>{t[Ar]=null,N6(t)})}if(t[kf])return;if(!t[Ar]){Kue(t);return}if(t[Ar].destroyed||t[Ar].busy(r))return;!r.aborted&&t[Ar].write(r)?t[fo]++:t[ho].splice(t[fo],1)}}jue.exports=w6});var S6=C((QOt,Xue)=>{"use strict";var tS=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};Xue.exports=class{constructor(){this.head=this.tail=new tS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var rS=C((bOt,ole)=>{"use strict";var{PoolStats:iZe}=hO(),oZe=sd(),aZe=S6(),{kConnected:T6,kSize:Zue,kRunning:$ue,kPending:ele,kQueued:NC,kBusy:AZe,kFree:cZe,kUrl:uZe,kClose:lZe,kDestroy:dZe,kDispatch:gZe}=At(),Hr=Symbol("clients"),Ss=Symbol("needDrain"),SC=Symbol("queue"),x6=Symbol("closed resolve"),D6=Symbol("onDrain"),tle=Symbol("onConnect"),rle=Symbol("onDisconnect"),sle=Symbol("onConnectionError"),R6=Symbol("get dispatcher"),nle=Symbol("add client"),ile=Symbol("remove client"),k6=class extends oZe{[SC]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};_de.exports=c6});var l6=E((WLt,qde)=>{"use strict";var{InvalidArgumentError:p$e}=Ce(),{runtimeFeatures:m$e}=hA();function E$e(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var Hde=m$e.has("crypto")?w("node:crypto"):null,C$e=Hde?.hash?t=>Hde.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Yde(t){return Array.isArray(t)&&(t.length&1)===0}function I$e(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function B$e(t){let e={};if(!t)return e;if(Yde(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var Gde=["record","playback","update"];function y$e(t){if(!Gde.includes(t))throw new p$e(`Invalid snapshot mode: ${t}. Must be one of: ${Gde.join(", ")}`)}qde.exports={createHeaderFilters:E$e,hashId:C$e,isUndiciHeaders:Yde,normalizeHeaders:B$e,isUrlExcludedFactory:I$e,validateSnapshotMode:y$e}});var $de=E((zLt,Zde)=>{"use strict";var{writeFile:Q$e,readFile:b$e,mkdir:w$e}=w("node:fs/promises"),{dirname:N$e,resolve:Vde}=w("node:path"),{setTimeout:S$e,clearTimeout:Jde}=w("node:timers"),{InvalidArgumentError:Wde,UndiciError:T$e}=Ce(),{hashId:x$e,isUrlExcludedFactory:R$e,normalizeHeaders:zde,createHeaderFilters:Kde}=l6();function nC(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||zde(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:jde(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function jde(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function Xde(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function iC(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return x$e(r)}var d6=class{#e;#t;#s=new Map;#r;#i=1/0;#n=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Kde(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=R$e(e.excludeUrls),this.#n&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=nC(e,this.#a,this.matchOptions),n=iC(s),i=zde(r.headers),o={statusCode:r.statusCode,headers:Xde(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#s.size>=this.#i&&!this.#s.has(n)){let A=this.#s.keys().next().value;this.#s.delete(A)}let a=this.#s.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#s.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=nC(e,this.#a,this.matchOptions),s=iC(r),n=this.#s.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new Wde("Snapshot path is required");try{let s=await b$e(Vde(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#s.clear();for(let{hash:i,snapshot:o}of n)this.#s.set(i,o)}else this.#s=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#s.clear();else throw new T$e(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Wde("Snapshot path is required");let s=Vde(r);await w$e(N$e(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Q$e(s,JSON.s Line truncated
${e.format(r)}`.trim())}};Rge.exports=j_});var Z_=C((t6t,Uge)=>{"use strict";var{InvalidArgumentError:ltt}=Ce(),{runtimeFeatures:dtt}=DA();function gtt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var kge=dtt.has("crypto")?w("node:crypto"):null,htt=kge?.hash?t=>kge.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Mge(t){return Array.isArray(t)&&(t.length&1)===0}function ftt(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function ptt(t){let e={};if(!t)return e;if(Mge(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var Fge=["record","playback","update"];function mtt(t){if(!Fge.includes(t))throw new ltt(`Invalid snapshot mode: ${t}. Must be one of: ${Fge.join(", ")}`)}Uge.exports={createHeaderFilters:gtt,hashId:htt,isUndiciHeaders:Mge,normalizeHeaders:ptt,isUrlExcludedFactory:ftt,validateSnapshotMode:mtt}});var qge=C((r6t,Yge)=>{"use strict";var{writeFile:Ett,readFile:Ctt,mkdir:Itt}=w("node:fs/promises"),{dirname:Btt,resolve:Lge}=w("node:path"),{setTimeout:ytt,clearTimeout:vge}=w("node:timers"),{InvalidArgumentError:Pge,UndiciError:Qtt}=Ce(),{hashId:btt,isUrlExcludedFactory:wtt,normalizeHeaders:Oge,createHeaderFilters:_ge}=Z_();function _C(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||Oge(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:Hge(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Hge(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function Gge(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function HC(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return btt(r)}var $_=class{#e;#t;#s=new Map;#r;#i=1/0;#n=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=_ge(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=wtt(e.excludeUrls),this.#n&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=_C(e,this.#a,this.matchOptions),n=HC(s),i=Oge(r.headers),o={statusCode:r.statusCode,headers:Gge(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#s.size>=this.#i&&!this.#s.has(n)){let A=this.#s.keys().next().value;this.#s.delete(A)}let a=this.#s.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#s.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=_C(e,this.#a,this.matchOptions),s=HC(r),n=this.#s.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new Pge("Snapshot path is required");try{let s=await Ctt(Lge(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#s.clear();for(let{hash:i,snapshot:o}of n)this.#s.set(i,o)}else this.#s=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#s.clear();else throw new Qtt(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Pge("Snapshot path is required");let s=Lge(r);await Itt(Btt(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Ett(s,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${bn} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${_n} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +132,8 @@ ${e.format(r)}`.trim())}};_de.exports=c6});var l6=E((WLt,qde)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${bn}_getValuesQuery ON cacheInterceptorV${bn}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${bn}_deleteByUrlQuery ON cacheInterceptorV${bn}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${_n}_getValuesQuery ON cacheInterceptorV${_n}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${_n}_deleteByUrlQuery ON cacheInterceptorV${_n}(deleteAt);
`),this.#r=this.#s.prepare(`
SELECT
id,
@@ -148,14 +147,14 @@ ${e.format(r)}`.trim())}};_de.exports=c6});var l6=E((WLt,qde)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${bn}
FROM cacheInterceptorV${_n}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#i=this.#s.prepare(`
UPDATE cacheInterceptorV${bn} SET
UPDATE cacheInterceptorV${_n} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -168,7 +167,7 @@ ${e.format(r)}`.trim())}};_de.exports=c6});var l6=E((WLt,qde)=>{"use strict";var
WHERE
id = ?
`),this.#n=this.#s.prepare(`
INSERT INTO cacheInterceptorV${bn} (
INSERT INTO cacheInterceptorV${_n} (
url,
method,
body,
@@ -182,116 +181,128 @@ ${e.format(r)}`.trim())}};_de.exports=c6});var l6=E((WLt,qde)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${bn} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${bn}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${bn} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${bn}
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${_n} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${_n}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${_n} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${_n}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${bn}
FROM cacheInterceptorV${_n}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#s.close()}get(e){_6(e);let r=this.#d(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){_6(e);let s=this.#l(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#d(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){_6(e),Utt(r);let s=0,n=[],i=this;return new Mtt({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#l(e){return`${e.origin}/${e.path}`}#d(e,r=!1){let s=this.#l(e),{headers:n,method:i}=e,o=this.#r.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Ltt(n[l],u[l])){c=!1;break}}if(c)return A}}};function Ltt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Bd=E((pvt,Bge)=>{"use strict";var{kConstruct:vtt}=et(),{kEnumerableProperty:Ff}=Be(),{iteratorMixin:Ptt,isValidHeaderName:dC,isValidHeaderValue:pge}=Cn(),{webidl:Oe}=Lr(),G6=w("node:assert"),rS=w("node:util");function fge(t){return t===10||t===13||t===9||t===32}function mge(t){let e=0,r=t.length;for(;r>e&&fge(t.charCodeAt(r-1));)--r;for(;r>e&&fge(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Ege(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Oe.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});Y6(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)Y6(t,r[s],e[r[s]])}else throw Oe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Y6(t,e,r){if(r=mge(r),dC(e)){if(!pge(r))throw Oe.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Oe.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Ige(t)==="immutable")throw new TypeError("immutable");return nS(t).append(e,r,!1)}function Ott(t){let e=nS(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function Cge(t,e){return t[0]<e[0]?-1:1}var sS=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":Npe(i)&&(r[n]=i);break;case"id":Spe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Npe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Spe(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}}};Tpe.exports={EventSourceStream:x5}});var vpe=E((Hvt,Lpe)=>{"use strict";var{pipeline:tot}=w("node:stream"),{fetching:rot}=mC(),{makeRequest:sot}=Uf(),{webidl:hs}=Lr(),{EventSourceStream:not}=xpe(),{parseMIMEType:iot}=ui(),{createFastMessageEvent:oot}=xS(),{isNetworkError:Rpe}=gC(),{kEnumerableProperty:xd}=Be(),{environmentSettingsObject:Dpe}=Cn(),kpe=!1,Fpe=3e3,bC=0,Mpe=1,wC=2,aot="anonymous",Aot="use-credentials",Vf=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=bC;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),hs.util.markAsUncloneable(this);let s="EventSource constructor";hs.argumentLengthCheck(arguments,1,s),kpe||(kpe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hs.converters.USVString(e),r=hs.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=Dpe,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=aot;r.withCredentials===!0&&(o=Aot,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Dpe.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=sot(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===wC)return;this.#r=bC;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!Rpe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Rpe(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?iot(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Mpe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new not({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(oot(A.type,A.options))}});tot(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=rot(e)}#c(){this.#r!==wC&&(this.#r=bC,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===bC&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){hs.brandCheck(this,t),this.#r!==wC&&(this.#r=wC,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Upe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:bC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Mpe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:wC,writable:!1}};Object.defineProperties(Vf,Upe);Object.defineProperties(Vf.prototype,Upe);Object.defineProperties(Vf.prototype,{close:xd,onerror:xd,onmessage:xd,onopen:xd,readyState:xd,url:xd,withCredentials:xd});hs.converters.EventSourceInitDict=hs.dictionaryConverter([{key:"withCredentials",converter:hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:hs.converters.any},{key:"node",converter:hs.dictionaryConverter([{key:"reconnectionTime",converter:hs.converters["unsigned long"],defaultValue:()=>Fpe},{key:"dispatcher",converter:hs.converters.any}]),defaultValue:()=>({})}]);Lpe.exports={EventSource:Vf,defaultReconnectionTime:Fpe}});var Ype=E((Gvt,W)=>{"use strict";var cot=Jc(),Ope=QE(),uot=id(),lot=Que(),dot=Sue(),hot=Ad(),got=h_(),fot=c_(),pot=dle(),mot=Cle(),Eot=yle(),_pe=Ce(),GS=Be(),{InvalidArgumentError:HS}=_pe,Jf=sde(),Cot=zl(),Iot=Z_(),{MockCallHistory:Bot Line truncated
`)}close(){this.#s.close()}get(e){TH(e);let r=this.#d(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){TH(e);let s=this.#l(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#d(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){TH(e),xst(r);let s=0,n=[],i=this;return new Tst({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#l(e){return`${e.origin}/${e.path}`}#d(e,r=!1){let s=this.#l(e),{headers:n,method:i}=e,o=this.#r.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Dst(n[l],u[l])){c=!1;break}}if(c)return A}}};function Dst(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Md=C((b6t,hfe)=>{"use strict";var{kConstruct:Rst}=At(),{kEnumerableProperty:zf}=we(),{iteratorMixin:kst,isValidHeaderName:JC,isValidHeaderValue:cfe}=Un(),{webidl:ze}=Wr(),DH=w("node:assert"),MS=w("node:util");function Afe(t){return t===10||t===13||t===9||t===32}function ufe(t){let e=0,r=t.length;for(;r>e&&Afe(t.charCodeAt(r-1));)--r;for(;r>e&&Afe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function lfe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw ze.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});RH(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)RH(t,r[s],e[r[s]])}else throw ze.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function RH(t,e,r){if(r=ufe(r),JC(e)){if(!cfe(r))throw ze.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ze.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(gfe(t)==="immutable")throw new TypeError("immutable");return LS(t).append(e,r,!1)}function Fst(t){let e=LS(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function dfe(t,e){return t[0]<e[0]?-1:1}var US=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.hea Line truncated
${o}`;return}if(CT(e,n,eAt)){tAt(e,i)&&(r.retry=e.toString("utf8",i));return}if(CT(e,n,$at)){rAt(e,i)&&(r.id=e.toString("utf8",i));return}if(CT(e,n,Zat)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&Wat(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&zat(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,o=s===this.chunkIndex?this.pos:n.length,a=n.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),s=this.peekBufferedByte(2);return r===void 0?(e===op[0]||(this.checkBOM=!1),!0):s===void 0?e===op[0]&&r===op[1]?!0:(this.checkBOM=!1,!1):(e===op[0]&&r===op[1]&&s===op[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Cme.exports={EventSourceStream:m5}});var Tme=C((K6t,Sme)=>{"use strict";var{pipeline:sAt}=w("node:stream"),{fetching:nAt}=XC(),{makeRequest:iAt}=jf(),{webidl:xs}=Wr(),{EventSourceStream:oAt}=Ime(),{parseMIMEType:aAt}=xi(),{createFastMessageEvent:AAt}=aT(),{isNetworkError:Bme}=zC(),{kEnumerableProperty:Gd}=we(),{environmentSettingsObject:yme}=Un(),Qme=!1,bme=3e3,nI=0,wme=1,iI=2,cAt="anonymous",uAt="use-credentials",ap=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=nI;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),xs.util.markAsUncloneable(this);let s="EventSource constructor";xs.argumentLengthCheck(arguments,1,s),Qme||(Qme=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=xs.converters.USVString(e),r=xs.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=yme,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=cAt;r.withCredentials===!0&&(o=uAt,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=yme.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=iAt(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=nI;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!Bme(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Bme(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?aAt(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=wme,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new oAt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(AAt(A.type,A.options))}});sAt(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=nAt(e)}#c(){this.#r!==iI&&(this.#r=nI,this.dispatchEvent(new Event("error")),setTime Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:n.stack}W.exports.fetch=function(e,r=void 0){return kot(e,r).catch(s=>{throw Ppe?Gpe(s,Ppe):s&&typeof s=="object"&&Error.captureStackTrace(s,W.exports.fetch),s})};W.exports.Headers=Bd().Headers;W.exports.Response=gC().Response;W.exports.Request=Uf().Request;W.exports.FormData=uN().FormData;var{setGlobalOrigin:Fot,getGlobalOrigin:Mot}=z4();W.exports.setGlobalOrigin=Fot;W.exports.getGlobalOrigin=Mot;var{CacheStorage:Uot}=bfe(),{kConstruct:Lot}=et();W.exports.caches=new Uot(Lot);var{deleteCookie:vot,getCookies:Pot,getSetCookies:Oot,setCookie:_ot,parseCookie:Hot}=Lfe();W.exports.deleteCookie=vot;W.exports.getCookies=Pot;W.exports.getSetCookies=Oot;W.exports.setCookie=_ot;W.exports.parseCookie=Hot;var{parseMIMEType:Got,serializeAMimeType:Yot}=ui();W.exports.parseMIMEType=Got;W.exports.serializeAMimeType=Yot;var{CloseEvent:qot,ErrorEvent:Vot,MessageEvent:Jot}=xS(),{WebSocket:Wot,ping:zot}=fpe();W.exports.WebSocket=Wot;W.exports.CloseEvent=qot;W.exports.ErrorEvent=Vot;W.exports.MessageEvent=Jot;W.exports.ping=zot;W.exports.WebSocketStream=Qpe().WebSocketStream;W.exports.WebSocketError=b5().WebSocketError;W.exports.request=NC(Jf.request);W.exports.stream=NC(Jf.stream);W.exports.pipeline=NC(Jf.pipeline);W.exports.connect=NC(Jf.connect);W.exports.upgrade=NC(Jf.upgrade);W.exports.MockClient=Iot;W.exports.MockCallHistory=Bot;W.exports.MockCallHistoryLog=yot;W.exports.MockPool=bot;W.exports.MockAgent=Qot;W.exports.SnapshotAgent=wot;W.exports.mockErrors=Not;var{EventSource:Kot}=vpe();W.exports.EventSource=Kot;function jot(){globalThis.fetch=W.exports.fetch,globalThis.Headers=W.exports.Headers,globalThis.Response=W.exports.Response,globalThis.Request=W.exports.Request,globalThis.FormData=W.exports.FormData,globalThis.WebSocket=W.exports.WebSocket,globalThis.CloseEvent=W.exports.CloseEvent,globalThis.ErrorEvent=W.exports.ErrorEvent,globalThis.MessageEvent=W.exports.MessageEvent,globalThis.EventSource=W.exports.EventSource}W.exports.install=jot});var SC=E(ou=>{"use strict";ou.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ou.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ou.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";ou.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ou.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ou.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ou.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Vpe=E((Vvt,qpe)=>{"use strict";var{asciiLowercase:YS,solelyContainsHTTPTokenCodePoints:Xot,soleyContainsHTTPQuotedStringTokenCodePoints:Zot}=SC();qpe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=YS(String(e)),this._map.get(e)}has(e){return e=YS(String(e)),this._map.has(e)}set(e,r){if(e=YS(String(e)),r=String(r),!Xot(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Zot(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=YS(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var zpe=E((Jvt,Wpe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:$ot,removeTrailingHTTPWhitespace:Jpe,isHTTPWhitespaceChar:eat,solelyContainsHTTPTokenCodePoints:R5,soleyContainsHTTPQuotedStringTokenCodePoints:tat,asciiLowercase:D5,collectAnHTTPQuotedString:rat}=SC();Wpe.exports=t=>{t=$ot(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!R5(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Jpe(s),s.length===0||!R5(s))return null;let n={type:D5(r),subtype:D5(s),parameters:new Map};for(;e<t.length;){for(++e;eat(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=D5(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=rat(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Jpe(o),o==="")continue}i.length>0&&R5(i)&&tat(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var jpe=E((Wvt,Kpe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:sat}=SC();Kpe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!sat(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var eme=E((Kvt,$pe)=>{"use strict";var nat=Vpe(),iat=zpe(),oat=jpe(),{asciiLowercase:Xpe,solelyContainsHTTPTokenCodePoints:Zpe}=SC();$pe.exports=class{constructor(e){e=String(e);let r=iat(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new nat(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Xpe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Zpe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Xpe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Zpe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return oat(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as P5 from"os";function NA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function zS(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 au(t,e,r){let s=new KS(t,e,r);process.stdout.write(s.toString()+P5.EOL)}function jS(t,e=""){au(t,{},e)}var v5="::",KS=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=v5+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)ifLine truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function PR(t){process.exitCode=LR.Failure,Pu(t)}function WA(){return process.env.RUNNER_DEBUG==="1"}function M(t){au("debug",{},t)}function Pu(t,e={}){au("error",zS(e),t instanceof Error?t.toString():t)}function ut(t,e={}){au("warning",zS(e),t instanceof Error?t.toString():t)}function he(t){process.stdout.write(t+FW.EOL)}function MW(t){jS("group",t)}function UW(){jS("endgroup")}function jp(t,e){if(process.env.GITHUB_STATE||"")return _5("STATE",H5(t,e));au("save-state",{name:t},NA(e))}function zA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as txe,existsSync as rxe}from"fs";import{EOL as sxe}from"os";var Sh=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(rxe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(txe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${sxe}`)}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=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"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 GR=Ie(_W(),1),HW=Ie(wB(),1),pxe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function GW(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}`}function YW(t){return new GR.HttpClient().getAgent(t)}function mxe(t){return new GR.HttpClient().getAgentDispatcher(t)}function qW(t){let e=mxe(t);return(s,n)=>pxe(this,void 0,void 0,function*(){return(0,HW.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function VW(){return process.env.GITHUB_API_URL||"https://api.github.com"}function YR(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}function KA(){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>"}function OB(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>OB.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function JW(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function WW(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var zW=Function.bind,KW=zW.bind(zW);function jW(t,e,r){let s=KW(WW,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=KW(JW,null).apply(null,i)})}function Cxe(){let t=Symbol("Singular"),e={registry:{}},r=OB.bind(null,e,t);return jW(r,e,t),r}function Ixe(){let t={registry:{}},e=OB.bind(null,t);return jW(e,t),e}var XW={Singular:Cxe,Collection:Ixe};var Bxe="0.0.0-development",yxe=`octokit-endpoint.js/${Bxe} ${KA()}`,Qxe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":yxe},mediaType Line truncated
${i}`:n.stack}K.exports.fetch=function(e,r=void 0){return MAt(e,r).catch(s=>{throw xme?Fme(s,xme):s&&typeof s=="object"&&Error.captureStackTrace(s,K.exports.fetch),s})};K.exports.Headers=Md().Headers;K.exports.Response=zC().Response;K.exports.Request=jf().Request;K.exports.FormData=GN().FormData;var{setGlobalOrigin:UAt,getGlobalOrigin:LAt}=UO();K.exports.setGlobalOrigin=UAt;K.exports.getGlobalOrigin=LAt;var{CacheStorage:vAt}=mpe(),{kConstruct:PAt}=At();K.exports.caches=new vAt(PAt);var{deleteCookie:OAt,getCookies:_At,getSetCookies:HAt,setCookie:GAt,parseCookie:YAt}=xpe();K.exports.deleteCookie=OAt;K.exports.getCookies=_At;K.exports.getSetCookies=HAt;K.exports.setCookie=GAt;K.exports.parseCookie=YAt;var{parseMIMEType:qAt,serializeAMimeType:VAt}=xi();K.exports.parseMIMEType=qAt;K.exports.serializeAMimeType=VAt;var{CloseEvent:JAt,ErrorEvent:WAt,MessageEvent:zAt}=aT(),{WebSocket:KAt,ping:jAt}=Ame();K.exports.WebSocket=KAt;K.exports.CloseEvent=JAt;K.exports.ErrorEvent=WAt;K.exports.MessageEvent=zAt;K.exports.ping=jAt;K.exports.WebSocketStream=pme().WebSocketStream;K.exports.WebSocketError=d5().WebSocketError;K.exports.request=oI(Ap.request);K.exports.stream=oI(Ap.stream);K.exports.pipeline=oI(Ap.pipeline);K.exports.connect=oI(Ap.connect);K.exports.upgrade=oI(Ap.upgrade);K.exports.MockClient=yAt;K.exports.MockCallHistory=QAt;K.exports.MockCallHistoryLog=bAt;K.exports.MockPool=NAt;K.exports.MockAgent=wAt;K.exports.SnapshotAgent=SAt;K.exports.mockErrors=TAt;var{EventSource:XAt}=Tme();K.exports.EventSource=XAt;function ZAt(){globalThis.fetch=K.exports.fetch,globalThis.Headers=K.exports.Headers,globalThis.Response=K.exports.Response,globalThis.Request=K.exports.Request,globalThis.FormData=K.exports.FormData,globalThis.WebSocket=K.exports.WebSocket,globalThis.CloseEvent=K.exports.CloseEvent,globalThis.ErrorEvent=K.exports.ErrorEvent,globalThis.MessageEvent=K.exports.MessageEvent,globalThis.EventSource=K.exports.EventSource}K.exports.install=ZAt});var aI=C(yu=>{"use strict";yu.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");yu.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");yu.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";yu.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);yu.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);yu.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());yu.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Lme=C(($6t,Ume)=>{"use strict";var{asciiLowercase:yT,solelyContainsHTTPTokenCodePoints:$At,soleyContainsHTTPQuotedStringTokenCodePoints:ect}=aI();Ume.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=yT(String(e)),this._map.get(e)}has(e){return e=yT(String(e)),this._map.has(e)}set(e,r){if(e=yT(String(e)),r=String(r),!$At(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!ect(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=yT(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var Ome=C((e_t,Pme)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:tct,removeTrailingHTTPWhitespace:vme,isHTTPWhitespaceChar:rct,solelyContainsHTTPTokenCodePoints:E5,soleyContainsHTTPQuotedStringTokenCodePoints:sct,asciiLowercase:C5,collectAnHTTPQuotedString:nct}=aI();Pme.exports=t=>{t=tct(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!E5(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=vme(s),s.length===0||!E5(s))return null;let n={type:C5(r),subtype:C5(s),parameters:new Map};for(;e<t.length;){for(++e;rct(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=C5(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=nct(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=vme(o),o==="")continue}i.length>0&&E5(i)&&sct(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var Hme=C((t_t,_me)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:ict}=aI();_me.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!ict(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var Vme=C((s_t,qme)=>{"use strict";var oct=Lme(),act=Ome(),Act=Hme(),{asciiLowercase:Gme,solelyContainsHTTPTokenCodePoints:Yme}=aI();qme.exports=class{constructor(e){e=String(e);let r=act(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new oct(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Gme(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Yme(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Gme(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Yme(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Act(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as v5 from"os";function YA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function lI(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 qA(t,e,r){let s=new vT(t,e,r);process.stdout.write(s.toString()+v5.EOL)}function PT(t,e=""){qA(t,{},e)}var L5="::",vT=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=L5+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)ifLine truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function w2(t){process.exitCode=Q2.Failure,el(t)}function dc(){return process.env.RUNNER_DEBUG==="1"}function v(t){qA("debug",{},t)}function el(t,e={}){qA("error",lI(e),t instanceof Error?t.toString():t)}function at(t,e={}){qA("warning",lI(e),t instanceof Error?t.toString():t)}function Fz(t,e={}){qA("notice",lI(e),t instanceof Error?t.toString():t)}function me(t){process.stdout.write(t+kz.EOL)}function Mz(t){PT("group",t)}function Uz(){PT("endgroup")}function Im(t,e){if(process.env.GITHUB_STATE||"")return O5("STATE",_5(t,e));qA("save-state",{name:t},YA(e))}function gc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as zDe,existsSync as KDe}from"fs";import{EOL as jDe}from"os";var Gg=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(KDe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(zDe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${jDe}`)}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=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"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 x2=Ne(_z(),1),Hz=Ne(uy(),1),cRe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function Gz(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}`}function Yz(t){return new x2.HttpClient().getAgent(t)}function uRe(t){return new x2.HttpClient().getAgentDispatcher(t)}function qz(t){let e=uRe(t);return(s,n)=>cRe(this,void 0,void 0,function*(){return(0,Hz.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function Vz(){return process.env.GITHUB_API_URL||"https://api.github.com"}function D2(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}function hc(){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>"}function wy(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>wy.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function Jz(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function Wz(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var zz=Function.bind,Kz=zz.bind(zz);function jz(t,e,r){let s=Kz(Wz,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=Kz(Jz,null).apply(null,i)})}function dRe(){let t=Symbol("Singular"),e={registry:{}},r=wy.bind(null,e,t);return jz(r,e,t),r}function gRe(){let t={registry:{}},e=wy.bind(null,t);return jz(e,t),e}var Xz={Singular:dRe,Collection:gRe};var hRe="0.0.0-development",fRe=`octokit-endpoint.js/${hRe} ${hc()}`,pRe={method:"GET",baseUrl:"https://api.github.com",hea Line truncated
`+s.repeat(l));let E=f.val[f.index],m=o(f.val,String(f.index),E);if(v2(m))u.push("null"),f.first=!1,f.index++;else{let I=m!==null&&typeof m=="object",N=P2(m);if(I&&!N){if(h.has(m))throw new TypeError("Converting circular structure to JSON");h.add(m),d.push({parent:f.val,key:String(f.index),val:m,isArray:Array.isArray(m),keys:Array.isArray(m)?null:Object.keys(m),index:0,first:!0}),f.first=!1,f.index++}else u.push(fc(m)),f.first=!1,f.index++}}else p=!0;else{for(;f.index<f.keys.length;){let m=f.keys[f.index++];if(i&&!i.has(m))continue;let N=f.val[m],T=o(f.val,m,N);if(v2(T))continue;f.first||u.push(","),s?u.push(`
`+s.repeat(l)+fc(m)+": "):u.push(fc(m)+":");let F=T!==null&&typeof T=="object",U=P2(T);if(F&&!U){if(h.has(T))throw new TypeError("Converting circular structure to JSON");h.add(T),d.push({parent:f.val,key:m,val:T,isArray:Array.isArray(T),keys:Array.isArray(T)?null:Object.keys(T),index:0,first:!0}),f.first=!1;break}else u.push(fc(T)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(p=!0)}p&&(l--,!f.first&&s&&u.push(`
`+s.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},pK=(t,e,r)=>{try{return"rawJSON"in JSON?fc(t,(a,A)=>typeof A=="bigint"?JSON.rawJSON(A.toString()):typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r):t?fc(t,(a,A)=>typeof A=="string"&&Sy.test(A)||typeof A=="bigint"?A.toString()+"n":typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r).replace(lK,"$1$2$3").replace(dK,"$1$2$3"):fc(t,e,r)}catch(s){if(s instanceof RangeError){let n=kRe(t,e,r);return n===void 0?void 0:"rawJSON"in JSON?n:n.replace(lK,"$1$2$3").replace(dK,"$1$2$3")}throw s}},Ny=new Map,FRe=()=>{let t=JSON.parse.toString();if(Ny.has(t))return Ny.get(t);try{let e=JSON.parse("1",(r,s,n)=>!!n?.source&&n.source==="1");return Ny.set(t,e),e}catch{return Ny.set(t,!1),!1}},MRe=(t,e,r,s)=>typeof e=="string"&&fK.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&Sy.test(e)?e.slice(0,-1):typeof s=="function"?s(t,e,r):e,URe=(t,e)=>JSON.parse(t,(r,s,n)=>{let i=typeof s=="number",o=s>Number.MAX_SAFE_INTEGER||s<Number.MIN_SAFE_INTEGER,a=i&&o,A=n&&RRe.test(n.source);return a&&A?BigInt(n.source):typeof e=="function"?e(r,s,n):s}),mK=Number.MAX_SAFE_INTEGER.toString(),gK=mK.length,LRe=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,vRe=/^"-?\d+n+"$/,PRe=(t,e)=>{let r={"":t},s=[{parent:r,key:"",visited:!1}];for(;s.length>0;){let n=s[s.length-1];if(n.visited){let{parent:i,key:o}=n,a=i[o];typeof a=="string"&&(fK.test(a)?a=BigInt(a.slice(0,-1)):Sy.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,s.pop()}else{n.visited=!0;let i=n.parent[n.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let A=a.length-1;A>=0;A--)s.push({parent:i,key:a[A],visited:!1})}}}return r[""]},hK=t=>t.replace(LRe,(e,r,s,n)=>{let i=e[0]==='"';if(i&&vRe.test(e))return e.substring(0,e.length-1)+'n"';let a=s||n,A=r&&(r.length<gK||r.length===gK&&r<=mK);return i||a||A?e:'"'+e+'n"'}),EK=(t,e)=>{if(!t)return L2(t,e);try{if(FRe())return URe(t,e);let r=hK(t);return L2(r,(s,n,i)=>MRe(s,n,i,e))}catch(r){if(r instanceof RangeError){let s=hK(t),n=L2(s);return PRe(n,e)}throw r}};var tl=class extends Error{name;status;request;response;constructor(e,r,s){super(e,{cause:s.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in s&&(this.response=s.response);let n=Object.assign({},s.request);s.request.headers.authorization&&(n.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=n}};var ORe="10.0.16",_Re={headers:{"user-agent":`octokit-request.js/${ORe} ${hc()}`}};function HRe(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var CK=()=>"";async function IK(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,s=t.request?.parseSuccessResponseBody!==!1,n=HRe(t.body)||Array.isArray(t.body)?pK(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:n,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new tl(d,500,{request:t});throw h.cause=l,h}let a=o.status,A=o.url,c={};for(let[l,d]of o.headers)c[l]=d;let u={url:A,status:a,headers:c,data:""};if("deprecation"in c){let l=c.link&&c.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${c.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new tl(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await O2(o),new tl("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await O2(o),new tl(YRe(u.data),a,{response:u,request:t});return u.data=s?await O2(o):o.body,u}async function O2(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(CK);let r=aK(e);if(GRe(r)){let s="";try{return s=await t.text(),EK(s)}catch{return s}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet-stream"?t.text().catch( Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var i2e=class extends Error{constructor(t,e,r){super(n2e(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},o2e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],a2e=["query","method","url"],Bz=/\/api\/v3\/?$/;function A2e(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(a2e.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,n=Object.keys(s).reduce((o,a)=>o2e.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Bz.test(i)&&(n.url=i.replace(Bz,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new i2e(n,a,o.data)}return o.data.data})}function ZR(t,e){let r=t.defaults(e);return Object.assign((n,i)=>A2e(r,n,i),{defaults:ZR.bind(null,r),endpoint:r.endpoint})}var Sut=ZR($p,{headers:{"user-agent":`octokit-graphql.js/${s2e} ${KA()}`},method:"POST",url:"/graphql"});function yz(t){return ZR(t,{method:"POST",url:"/graphql"})}var $R="(?:[a-zA-Z0-9_-]+)",Qz="\\.",bz=new RegExp(`^${$R}${Qz}${$R}${Qz}${$R}$`),c2e=bz.test.bind(bz);async function u2e(t){let e=c2e(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 l2e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function d2e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=l2e(t),e(n)}var wz=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(u2e.bind(null,e),{hook:d2e.bind(null,e)})};var eD="7.0.6";var Nz=()=>{},h2e=console.warn.bind(console),g2e=console.error.bind(console);function f2e(t={}){return typeof t.debug!="function"&&(t.debug=Nz),typeof t.info!="function"&&(t.info=Nz),typeof t.warn!="function"&&(t.warn=h2e),typeof t.error!="function"&&(t.error=g2e),t}var Sz=`octokit-core.js/${eD} ${KA()}`,GB=class{static VERSION=eD;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new XW.Collection,s={baseUrl:$p.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} ${Sz}`:Sz,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=$p.defaults(s),this.graphql=yz(this.request).defaults(s),this.log=f2e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(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 i=wz(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var tD="17.0.0";var p2e={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}"],createOrgVariable:["POST /orgs/{or Line truncated
`)}var JRe=class extends Error{constructor(t,e,r){super(VRe(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)}request;headers;response;name="GraphqlResponseError";errors;data},WRe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],zRe=["query","method","url"],BK=/\/api\/v3\/?$/;function KRe(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(zRe.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,n=Object.keys(s).reduce((o,a)=>WRe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return BK.test(i)&&(n.url=i.replace(BK,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new JRe(n,a,o.data)}return o.data.data})}function H2(t,e){let r=t.defaults(e);return Object.assign((n,i)=>KRe(r,n,i),{defaults:H2.bind(null,r),endpoint:r.endpoint})}var sgt=H2(Qm,{headers:{"user-agent":`octokit-graphql.js/${qRe} ${hc()}`},method:"POST",url:"/graphql"});function yK(t){return H2(t,{method:"POST",url:"/graphql"})}var G2="(?:[a-zA-Z0-9_-]+)",QK="\\.",bK=new RegExp(`^${G2}${QK}${G2}${QK}${G2}$`),jRe=bK.test.bind(bK);async function XRe(t){let e=jRe(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 ZRe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function $Re(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=ZRe(t),e(n)}var wK=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(XRe.bind(null,e),{hook:$Re.bind(null,e)})};var Y2="7.0.8";var NK=()=>{},e2e=console.warn.bind(console),t2e=console.error.bind(console);function r2e(t={}){return typeof t.debug!="function"&&(t.debug=NK),typeof t.info!="function"&&(t.info=NK),typeof t.warn!="function"&&(t.warn=e2e),typeof t.error!="function"&&(t.error=t2e),t}var SK=`octokit-core.js/${Y2} ${hc()}`,Ty=class{static VERSION=Y2;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Xz.Collection,s={baseUrl:Qm.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} ${SK}`:SK,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Qm.defaults(s),this.graphql=yK(this.request).defaults(s),this.log=r2e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(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 i=wK(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var q2="17.0.0";var s2e={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}"],createOrg Line truncated
`)}
`:`${Mz(t.status,e)}
`:`${MK(t.status,e)}
${AD[t.status]}
`}function _z(t){return t==="enabled"||t==="read-only"||t==="write-only"}function Mz(t,e){if(!_z(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",s=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${s}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function N2e(t){return t?b2e[t]:void 0}function S2e(t){return t?w2e[t]:void 0}function T2e(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Is}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${Q2e}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Is}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Is}#enhanced-caching)** provider.`}function x2e(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,s=e.filter(u=>u.savedKey).length,n=Hz(e)?`Entries: ${r} restored (${YB(e,u=>u.restoredSize)}Mb), ${s} saved (${YB(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${s} saved - Expand for more details`,i=t.status==="enabled"?N2e(t.cleanup):void 0,o=S2e(t.projectCache),a=R2e(t.entries),A=`<pre>
${D2e(t.entries)}</pre>`,c=[AD[t.status],i,o,a,A].filter(Boolean).join(`
${X2[t.status]}
`}function _K(t){return t==="enabled"||t==="read-only"||t==="write-only"}function MK(t,e){if(!_K(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":t==="external"?"External":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",s=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${s}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function g2e(t){return t?l2e[t]:void 0}function h2e(t){return t?d2e[t]:void 0}function f2e(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${hs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${u2e}) for terms of use and opt-out instructions.`:`**[Basic Caching](${hs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${hs}#enhanced-caching)** provider.`}function p2e(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,s=e.filter(u=>u.savedKey).length,n=HK(e)?`Entries: ${r} restored (${xy(e,u=>u.restoredSize)}Mb), ${s} saved (${xy(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${s} saved - Expand for more details`,i=t.status==="enabled"?g2e(t.cleanup):void 0,o=h2e(t.projectCache),a=m2e(t.entries),A=`<pre>
${E2e(t.entries)}</pre>`,c=[X2[t.status],i,o,a,A].filter(Boolean).join(`
`);return`<details>
<summary>${n}</summary>
${c}
</details>`}function Hz(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function R2e(t){return Hz(t)?`<table>
</details>`}function HK(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function m2e(t){return HK(t)?`<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</th></tr>
<tr><td>Entries Restored</td>
<td>${Uz(t,e=>e.restoredSize)}</td>
<td>${YB(t,e=>e.restoredSize)}</td>
<td>${Lz(t,e=>e.restoredTime)}</td>
<td>${UK(t,e=>e.restoredSize)}</td>
<td>${xy(t,e=>e.restoredSize)}</td>
<td>${LK(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${Uz(t,e=>e.savedSize)}</td>
<td>${YB(t,e=>e.savedSize)}</td>
<td>${Lz(t,e=>e.savedTime)}</td>
<td>${UK(t,e=>e.savedSize)}</td>
<td>${xy(t,e=>e.savedSize)}</td>
<td>${LK(t,e=>e.savedTime)}</td>
</tr>
</table>`:""}function D2e(t){return t.map(e=>`Entry: ${e.entryName}
</table>`:""}function E2e(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${vz(e.restoredSize)}
Time: ${Pz(e.restoredTime)}
Size: ${vK(e.restoredSize)}
Time: ${PK(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${vz(e.savedSize)}
Time: ${Pz(e.savedTime)}
Size: ${vK(e.savedSize)}
Time: ${PK(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function Uz(t,e){return t.filter(r=>e(r)).length}function YB(t,e){let r=t.map(s=>e(s)??0).reduce((s,n)=>s+n,0);return Math.round(r/(1024*1024))}function Lz(t,e){return t.map(r=>e(r)??0).reduce((r,s)=>r+s,0)}function vz(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Pz(t){return t===void 0||t===0?"":`${t} ms`}import*as k0 from"path";import*as Fh from"fs";function cD(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,M(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,M(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,M(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,M(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,M(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as zB from"path";import*as Dh from"path";import Hu from"assert";var jA=process.platform==="win32";function Ua(t){if(t=Ma(t),jA&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Dh.dirname(t);return jA&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Ma(e)),e}function qB(t,e){if(Hu(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Hu(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),em(e))return e;if(jA){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Hu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Ri(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Hu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Hu(em(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||jA&&t.endsWith("\\")||(t+=Dh.sep),t+e}function em(t){return Hu(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ri(t),jA?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function tm(t){return Hu(t,"isRooted parameter 'itemPath' must not be empty"),t=Ri(t),jA?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Ri(t){return t=t||"",jA?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Ma(t){return t?(t=Ri(t),!t.endsWith(Dh.sep)||t===Dh.sep||jA&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Di;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Di||(Di={}));var Gz=process.platform==="win32";function lD(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=Gz?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=Gz?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Ua(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Ua(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function Yz(t,e){let r=Di.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function qz(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as dK from"os";import*as kh from"path";var hK=Ie(lK(),1);import Vu from"assert";import*as Yu from"path";import nm from"assert";var sRe=process.platform==="win32",qu=class{constructor(e){if(this.segments=[],typeof e=="string")if(nm(e,"Parameter 'itemPath' must not be empty"),e=Ma(e),!tm(e))this.segments=e.split(Yu.sep);else{let r=e,s=Ua(r);for(;s!==r;){let n=Yu.basename(r);this.segments.unshift(n),r=s,s=Ua(r)}this.segments.unshift(r)}else{nm(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let s=e[r];nm(s,"Parameter 'itemPath' must not contain any empty segments"),s=Ri(e[r]),r===0&&tm(s)?(s=Ma(s),nm(s===Ua(s),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(s)):(nm(!s.includes(Yu.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(s))}}}toString(){let e=this.segments[0],r=e.endsWith(Yu.sep)||sRe&&/^[A-Z]:$/i.test(e);for(let s=1;s<this.segments.length;s++)r?r=!1:e+=Yu.sep,e+=this.segments[s];return e}};var{Minimatch:nRe}=hK.default,La=process.platform==="win32",im=class t{constructor(e,r=!1,s,n){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{s=s||[],Vu(s.length,"Parameter 'segments' must not empty");let c=t.getLiteral(s[0]);Vu(c&&em(c),"Parameter 'segments' first element must be a root path"),i=new qu(s).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!" Line truncated
`)}function UK(t,e){return t.filter(r=>e(r)).length}function xy(t,e){let r=t.map(s=>e(s)??0).reduce((s,n)=>s+n,0);return Math.round(r/(1024*1024))}function LK(t,e){return t.map(r=>e(r)??0).reduce((r,s)=>r+s,0)}function vK(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function PK(t){return t===void 0||t===0?"":`${t} ms`}import*as C0 from"path";import*as zg from"fs";function Z2(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,v(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,v(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,v(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,v(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,v(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as Fy from"path";import*as Jg from"path";import sl from"assert";var pc=process.platform==="win32";function nA(t){if(t=sA(t),pc&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Jg.dirname(t);return pc&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=sA(e)),e}function Dy(t,e){if(sl(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),sl(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),bm(e))return e;if(pc){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return sl(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Ki(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return sl(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return sl(bm(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||pc&&t.endsWith("\\")||(t+=Jg.sep),t+e}function bm(t){return sl(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ki(t),pc?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function wm(t){return sl(t,"isRooted parameter 'itemPath' must not be empty"),t=Ki(t),pc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Ki(t){return t=t||"",pc?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function sA(t){return t?(t=Ki(t),!t.endsWith(Jg.sep)||t===Jg.sep||pc&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var ji;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(ji||(ji={}));var GK=process.platform==="win32";function ek(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=GK?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=GK?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=nA(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=nA(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function YK(t,e){let r=ji.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function qK(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as uj from"os";import*as Wg from"path";import al from"assert";var tk=(t,e,r)=>{let s=t instanceof RegExp?VK(t,r):t,n=e instanceof RegExp?VK(e,r):e,i=s!==null&&n!=null&&B2e(s,n,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+s.length,i[1]),post:r.slice(i[1]+n.length)}},VK=(t,e)=>{let r=e.match(t);return r?r[0]:null},B2e=(t,e,r)=>{let s,n,i,o,a,A=r.indexOf(t),c=r.indexOf(e,A+1),u=A;if(A>=0&&c>0){if(t===e)return[A,c];for(s=[],i=r.length;u>=0&&!a;){if(u===A)s.push(u),A=r.indexOf(t,u+1);else if(s.length===1){let l=s.pop();l!==void 0&&(a=[l,c])}else n=s.pop(),n!==void 0&&n<i&&(i=n,o=c),c=r.indexOf(e,u+1);u=A<c&&A>=0?A:c}s.length&&o!==void 0&&(a=[i,o])}return a};var JK="\0SLASH"+Math.random()+"\0",WK="\0OPEN"+Math.random()+"\0",nk="\0CLOSE"+Math.random()+"\0",zK="\0COMMA"+Math.random()+"\0",KK="\0PERIOD"+Math.random()+"\0",y2e=new RegExp(JK,"g"),Q2e=new RegExp(WK,"g"),b2e=new RegExp(nk,"g"),w2e=new RegExp(zK,"g"),N2e=new RegExp(KK,"g"),S2e=/\\\\/g,T2e=/\\{/g,x2e=/\\}/g,D2e=/\\,/g,R2e=/\\\./g,k2e=1e5,F2e=4e6;function rk(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function M2e(t){return t.replace(S2e,JK).replace(T2e,WK).replace(x2e,nk).replace(D2e,zK).replace(R2e,KK)}function U2e(t){return t.replace(y2e,"\\").replace(Q2e,"{").replace(b2e,"}").replace(w2e,",").replace(N2e,".")}function jK(t){if(!t)return[""];let e=[],r=tk("{","}",t);if(!r)return t.split(",");let{pre:s, Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new im(i));return s.searchPaths.push(...lD(s.patterns)),s})}static stat(e,r,s){return mD(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Fh.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){M(`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 n=yield Fh.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Fh.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){M(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var ARe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function gK(t,e){return ARe(this,void 0,void 0,function*(){return yield WB.create(t,e)})}var aX=Ie(iX(),1);import*as uy from"crypto";import*as vh from"fs";import*as Ju from"path";import*as AX from"util";var dm;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(dm||(dm={}));var ts;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ts||(ts={}));var nn;(function(t){t.GNU="gnu",t.BSD="bsd"})(nn||(nn={}));var ay=2,Ay=5e3,PD=5e3,OD=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,oX=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,hm="cache.tar",_D="manifest.txt",Edt=10*Math.pow(1024,3),cy="cache read denied:";var Lh=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},mFe=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},EFe="1.0";function gm(){return Lh(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=Ju.join(s,"actions","temp")}let r=Ju.join(e,uy.randomUUID());return yield xB(r),r})}function po(t){return vh.statSync(t).size}function HD(t){return Lh(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield gK(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=mFe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let g=Ju.relative(a,n).replace(new RegExp(`\\${Ju.sep}`,"g"),"/");M(`Matched: ${g}`),g===""?o.push("."):o.push(`${g}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function fm(t){return Lh(this,void 0,void 0,function*(){return AX.promisify(vh.unlink)(t)})}function cX(t){return Lh(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),M(`Checking ${e} ${r.join(" ")}`);try{yield kB(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){M(n.message)}return s=s.trim(),M(s),s})}function pm(){return Lh(this,void 0,void 0,function*(){let t=yield cX("zstd",["--quiet"]),e=aX.clean(t);return M(`zstd version: ${e}`),t===""?ts.Gzip:ts.ZstdWithoutLong})}function ec(t){return t===ts.Gzip?dm.Gzip:dm.Zstd}function uX(){return Lh(this,void 0,void 0,function*(){return vh.existsSync(OD)?OD:(yield cX("tar")).toLowerCase().includes("gnu tar")?ka("tar"):""})}function GD(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ph(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(EFe),uy.createHash("sha256").update(s.join("|")).digest("hex")}function lX(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as gg from"fs";import{URL as t4e}from"url";var mo=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as CFe}from"node:os";import IFe from"node:util";import BFe from"node:process";function dX(t,...e){BFe.stderr.write(`${IFe.format(t,...e)}${CFe}`)}import mm from"node:process";function dy(t){return mm.env[t]}var hX=typeof mm.versions.deno=="string"&&mm.versions.deno.length>0,gX=typeof mm.versions.bun=="string"&&mm.versions.bun.length>0,hy=!0;var fX=dy("DEBUG"),mX,YD=[],qD=[],gy=[];fX&&VD(fX);var EX=Object.assign(t=>CX(t),{enable:VD,enabled:JD,disable:yFe,log:dX});function VD(t){mX=t,YD=[],qD=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?qD.push(r.substring(1)):YD.push(r);for(let r of gy)r.enabled=JD(r.namespace)}function JD(t){if(t.endsWith("*"))return!0;for(let e of qD)if(pX(t,e))return!1;for(let e of YD)if(pX(t,e))return!0;return!1}function pX(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],g="";for(let f of e)f==="*"&&g==="*"||(g=f,d.push(f));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,A=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=A+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else return!1;let c=s===t.length,u=n===r.length,l=n===r.length-1&&r[n]==="*";return c&&(u||l)}function yFe(){let t=mX||"";return VD(""),t}function CX(t){let e=Object.assign(r,{enabled:JD(t),destroy:QFe,log:EX.log,namespace:t,extend:bFe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return gy.push(e),e}function QFe(){let t=gy.indexOf(this);return t>=0?(gy.splice(t,1),!0):!1}function bFe(t){let e=CX(`${this.namespace}:${t}`);return e.log=this.log,e}var Oh=EX;var WD=["verbose","info","warning","error"],IX={verbose:400,info:300,warning:200,error:100};function BX(t,e){e.log=(...r)=>{t.log(...r)}}function yX(t){return WD.includes(t)}function fy(t){let e=new Set,r=dy(t.logLevelEnvVarName),s,n=Oh(t.namespace);n.log=(...u)=>{Oh.log(...u)};function i(u){if(u&&!yX(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${WD.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Oh.enable(l.join(","))}r&&(yX(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${WD.join(", ")}.`));function o(u){return!!(s&&IX[u.level]<=IX[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(BX(u,d),o(d)){let g=Oh.disable();Oh.enable(g+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return BX(n,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:n}}var QX=fy({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),wFe=QX.logger;function Em(t){return QX.createClientLogger(t)}function py(t){return t.toLowerCase()}function NFe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*SFe(t){for(let e of t.values())yield[e.name,e.value]}var zD=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(py(e),{name:e,value:NFe(r)})}get(e){return this._headersMap.get(py(e))?.value}has(e){return this._headersMap.has(py(e))}delete(e){this._ Line truncated
${DFe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function _h(t){return t instanceof rs?!0:zu(t)&&t.name==="RestError"}function Bs(t,e){return Buffer.from(t,e)}import ZD from"node:http";import $D from"node:https";import NX from"node:zlib";import{Transform as kFe}from"node:stream";var ys=Em("ts-http-runtime");var FFe={};function Cm(t){return t&&typeof t.pipe=="function"}function SX(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 TX(t){return t&&typeof t.byteLength=="number"}var Cy=class extends kFe{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},ek=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new mo("The operation was aborted. Request has already been canceled.");s=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let c=new ki;ys.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=vFe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new Cy(f);p.on("error",I=>{ys.error("Error in upload progress",I)}),Cm(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=MFe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?UFe(c,u):c;let g=e.onDownloadProgress;if(g){let f=new Cy(g);f.on("error",p=>{ys.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await LFe(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();Cm(a)&&(c=SX(a));let u=Promise.resolve();Cm(A)&&(u=SX(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{ys.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?ZD.request(a,A):$D.request(a,A);u.once("error",l=>{c(new rs(l.message,{code:l.code??rs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new mo("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&Cm(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):TX(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(ys.error("Unrecognized body type",s),c(new rs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?ZD.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new ZD.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return $D.globalAgent;let n=e.tlsSettings??FFe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ys.info("No cached TLS Agent exist, creating a new Agent"),i=new $D.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function MFe(t){let e=on();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 UFe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=NX.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=NX.createInflate();return t.pipe(s),s}return t}function LFe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new rs(`Error reading response as text: ${n.message}`,{code:rs.PARSE_ERROR}))})})}function vFe(t){return t?Buffer.isBuffer(t)?t.length:Cm(t)?null:TX(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function xX(){return new ek}function Iy(){return xX()}var tk="logPolicy";function By(t={}){let e=t.logger??ys.info,r=new ki({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:tk,async sendRequ Line truncated
`;return e}function nUe(t){return t instanceof Uint8Array?t.byteLength:ym(t)?t.size===-1?void 0:t.size:void 0}function iUe(t){let e=0;for(let r of t){let s=nUe(r);if(s===void 0)return;e+=s}return e}async function oUe(t,e,r){let s=[Bs(`--${r}`,"utf-8"),...e.flatMap(i=>[Bs(`\r
`,"utf-8"),Bs(sUe(i.headers),"utf-8"),Bs(`\r
`,"utf-8"),i.body,Bs(`\r
--${r}`,"utf-8")]),Bs(`--\r
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Dm(i));return s.searchPaths.push(...ek(s.patterns)),s})}static stat(e,r,s){return Ak(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield zg.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){v(`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 n=yield zg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield zg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){v(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as ck from"crypto";import*as My from"fs";import*as lj from"stream";import*as dj from"util";import*as gj from"path";var Rke=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},kke=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function hj(t,e){return Rke(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?me:v,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=ck.createHash("sha256"),f=0;try{for(var p=!0,E=kke(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let I=A;if(u(I),!I.startsWith(`${d}${gj.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(My.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let N=ck.createHash("sha256");yield dj.promisify(lj.pipeline)(My.createReadStream(I),N),h.write(N.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!p&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var fj=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function uk(t,e){return fj(this,void 0,void 0,function*(){return yield ky.create(t,e)})}function pj(t){return fj(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield uk(e,{followSymbolicLinks:i});return hj(o,r,n)})}var uZ=Ne(AZ(),1);import*as jy from"crypto";import*as Zg from"fs";import*as Al from"path";import*as lZ from"util";var vm;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(vm||(vm={}));var ms;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ms||(ms={}));var yn;(function(t){t.GNU="gnu",t.BSD="bsd"})(yn||(yn={}));var Wy=2,zy=5e3,Rk=5e3,kk=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cZ=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Pm="cache.tar",Fk="manifest.txt",uft=10*Math.pow(1024,3),Ky="cache read denied:";var Xg=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},_Ue=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},HUe="1.0";function cl(){return Xg(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=Al.join(s,"actions","temp")}let r=Al.join(e,jy.randomUUID());return yield fy(r),r})}function Ro(t){return Zg.statSync(t).size}function Mk(t){return Xg(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield uk(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=_Ue(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=Al.relative(a,n).replace(new RegExp(`\\${Al.sep}`,"g"),"/");v(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function Om(t){return Xg(this,void 0,void 0,function*(){return lZ.promisify(Zg.unlink)(t)})}function dZ(t){return Xg(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),v(`Checking ${e} ${r.join(" ")}`);try{yield Ey(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){v(n.message)}return s=s.trim(),v(s),s})}function _m(){return Xg(this,void 0,void 0,function*(){let t=yield dZ("zstd",["--quiet"]),e=uZ.clean(t);return v(`zstd version: ${e}`),t===""?ms.Gzip:ms.ZstdWithoutLong})}function Bc(t){return t===ms.Gzip?vm.Gzip:vm.Zstd}function gZ(){return Xg(this,void 0,void 0,function*(){return Zg.existsSync(kk)?kk:(yield dZ("tar")).toLowerCase().includes("gnu tar")?tA("tar"):""})}function Uk(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function $g(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(HUe),jy.createHash("sha256").update(s.join("|")).digest("hex")}function hZ(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as Fh from"fs";import{URL as t_e}from"url";var ko=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as GUe}from"node:os";import YUe from"node:util";import qUe from"node:process";function fZ(t,...e){qUe.stderr.write(`${YUe.format(t,...e)}${GUe}`)}import Hm from"node:process";function Zy(t){return Hm.env[t]}var pZ=typeof Hm.versions.deno=="string"&&Hm.versions.deno.length>0,mZ=typeof Hm.versions.bun=="string"&&Hm.versions.bun.length>0,$y=!0;var EZ=Zy("DEBUG"),IZ,Lk=[],vk=[],eQ=[];EZ&&Pk(EZ);var BZ=Object.assign(t=>yZ(t),{enable:Pk,enabled:Ok,disable:VUe,log:fZ});function Pk(t){IZ=t,Lk=[],vk=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?vk.push(r.substring(1)):Lk.push(r);for(let r of eQ)r.enabled=Ok(r.namespace)}function Ok(t){if(t.endsWith("*"))return!0;for(let e of vk)if(CZ(t,e))return!1;for(let e of Lk)if(CZ(t,e))return!0;return!1}function CZ(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,A=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=A+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else return!1;let c=s===t.length,u=n===r.length,l=n===r.length-1&&r[n]==="*";return c&&(u||l)}function VUe(){let t=IZ||"";return Pk(""),t}function yZ(t){let e=Object.assign(r,{enabled:Ok(t),destroy:JUe,log:BZ.log,namespace:t,extend:WUe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return eQ.push(e),e}function JUe(){let t=eQ.indexOf(this);return t>=0?(eQ.splice(t,1),!0):!1}function WUe(t){let e=yZ(`${this.namespace}:${t}`);return e.log=this.log,e}var eh=BZ;var _k=["verbose","info","warning","error"],QZ={verbose:400,info:300,warning:200,error:100};function bZ(t,e){e.log=(...r)=>{t.log(...r)}}function wZ(t){return _k.includes(t)}function tQ(t){let e=new Set,r=Zy(t.logLevelEnvVarName),s,n=eh(t.namespace);n.log=(...u)=>{eh.log(...u)};function i(u){if(u&&!wZ(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${_k.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);eh.enable(l.join(","))}r&&(wZ(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${_k.join(", ")}.`));function o(u){return!!(s&&QZ[u.level]<=QZ[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(bZ(u,d),o(d)){let h=eh.disable();eh.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return bZ(n,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:n}}var NZ=tQ({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),zUe=NZ.logger;function Gm(t){return NZ.createClientLogger(t)}function rQ(t){return t.toLowerCase()}function KUe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*jUe(t){for(let e of t.values())yield[e.name,e.value]}var Hk=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(rQ(e),{name:e,value:KUe(r)})}get(e){return this._headersMap.get(rQ(e))?.value}has(e){return this._headersMap.has(rQ(e))}delete(e){this._ Line truncated
${eLe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Qc(t){return t instanceof Zr?!0:ll(t)&&t.name==="RestError"}function Vm(t,e){return Buffer.from(t).toString(e)}function Es(t,e){return Buffer.from(t,e)}import Vk from"node:http";import Jk from"node:https";import xZ from"node:zlib";import{Transform as tLe}from"node:stream";var _s=Gm("ts-http-runtime");var rLe={};function Jm(t){return t&&typeof t.pipe=="function"}function DZ(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 RZ(t){return t&&typeof t.byteLength=="number"}var sQ=class extends tLe{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},Wk=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new ko("The operation was aborted. Request has already been canceled.");s=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let c=new si;_s.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=oLe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new sQ(f);p.on("error",E=>{_s.error("Error in upload progress",E)}),Jm(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a),u=sLe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?nLe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new sQ(h);f.on("error",p=>{_s.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await iLe(A),d}finally{if(n!==void 0&&clearTimeout(n),e.abortSignal&&s){let c=Promise.resolve();Jm(a)&&(c=DZ(a));let u=Promise.resolve();Jm(A)&&(u=DZ(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{_s.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?Vk.request(a,A):Jk.request(a,A);u.once("error",l=>{c(new Zr(l.message,{code:l.code??Zr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new ko("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&Jm(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):RZ(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(_s.error("Unrecognized body type",s),c(new Zr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Vk.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Vk.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Jk.globalAgent;let n=e.tlsSettings??rLe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(_s.info("No cached TLS Agent exist, creating a new Agent"),i=new Jk.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function sLe(t){let e=Os();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 nLe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=xZ.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=xZ.createInflate();return t.pipe(s),s}return t}function iLe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new Zr(`Error reading response as text: ${n.message}`,{code:Zr.PARSE_ERROR}))})})}function oLe(t){return t?Buffer.isBuffer(t)?t.length:Jm(t)?null:RZ(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function kZ(){return new Wk}function Wm(){return kZ()}var nQ="logPolicy";function zm(t={}){let e=t.logger??_s.info,r=new si({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowed Line truncated
`;return e}function Sve(t){return t instanceof Uint8Array?t.byteLength:iE(t)?t.size===-1?void 0:t.size:void 0}function Tve(t){let e=0;for(let r of t){let s=Sve(r);if(s===void 0)return;e+=s}return e}async function xve(t,e,r){let s=[Es(`--${r}`,"utf-8"),...e.flatMap(i=>[Es(`\r
`,"utf-8"),Es(Nve(i.headers),"utf-8"),Es(`\r
`,"utf-8"),i.body,Es(`\r
--${r}`,"utf-8")]),Es(`--\r
\r
`,"utf-8")],n=iUe(s);n&&t.headers.set("Content-Length",n),t.body=await BZ(s)}var Qm="multipartPolicy",aUe=70,AUe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function cUe(t){if(t.length>aUe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!AUe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Yy(){return{name:Qm,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",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;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?cUe(r):r=rUe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await oUe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function qy(){return Ey()}var yZ=fy({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Ipt=yZ.logger;function _n(t){return yZ.createClientLogger(t)}var Co=_n("core-rest-pipeline");function Ck(t={}){return By({logger:Co.info,...t})}var Ik=Hy;function Bk(t={}){return Gy(t)}import yk from"node:os";import sc from"node:process";function QZ(){return"User-Agent"}async function bZ(t){if(sc&&sc.versions){let e=`${yk.type()} ${yk.release()}; ${yk.arch()}`;sc.versions.bun?t.set("Bun",`${sc.versions.bun} (${e})`):sc.versions.deno?t.set("Deno",`${sc.versions.deno} (${e})`):sc.versions.node&&t.set("Node",`${sc.versions.node} (${e})`)}}var Vy="1.24.0";function mUe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function wZ(){return QZ()}async function Jy(t){let e=new Map;e.set("core-rest-pipeline",Vy),await bZ(e);let r=mUe(e);return t?`${t} ${r}`:r}var NZ=wZ(),SZ="userAgentPolicy";function Qk(t={}){let e=Jy(t.userAgentPrefix);return{name:SZ,async sendRequest(r,s){return r.headers.has(NZ)||r.headers.set(NZ,await e),s(r)}}}var TZ=Symbol("rawContent");function bk(t){return typeof t[TZ]=="function"}function xZ(t){return bk(t)?t[TZ]():t}var Wy=Qm;function wk(){let t=Yy();return{name:Wy,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)bk(s.body)&&(s.body=xZ(s.body));return t.sendRequest(e,r)}}}var Nk=Oy;function Sk(){return _y()}function Tk(t={}){return by(t)}function xk(){return wy()}var bm=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Rk(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new bm(n??"The operation was aborted."))}function A(){s?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(s?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",c)})}var NUe="The delay was aborted.";function Jh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Rk(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??NUe})}function nc(t){if(zu(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 RZ(t){return zu(t)}function Wh(){return Wu()}var Ze=hy;function ic(t){return fk(t)}function kk(t,e){return Py(t,e)}var DZ="setClientRequestIdPolicy";function Fk(t="x-ms-client-request-id"){return{name:DZ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function Mk(t){return Ny(t)}function Uk(t){return Sy(t)}var zh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function kZ(t={}){let e=new Lk(t.parentContext);return t.span&&(e=e.setValue(zh.span,t.span)),t.namespace&&(e=e.setValue(zh.namespace,t.namespace)),e}var Lk=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 MZ=Ie(FZ(),1),Ky=MZ.state;function SUe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function TUe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:SUe(),tracingContext:kZ({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function wm(){return Ky.instrumenterImplementation||(Ky.instrumenterImplementation=TUe()),Ky.instrumenterImplementation}function Nm(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(c,u,l){let d=wm().startSpan(c,{...l,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),g=d.tracingContext,f=d.span;g.getValue(zh.namespace)||( Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!jLe(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Wt("InvalidTag",l,ss(t,i))}let c=VLe(t,i);if(c===!1)return Wt("InvalidAttr","Attributes for '"+A+"' have open quote.",ss(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=f$(u,e);if(d===!0)s=!0;else return Wt(d.err.code,d.err.msg,ss(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Wt("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",ss(t,o));if(r.length===0)return Wt("InvalidTag","Closing tag '"+A+"' has not been opened.",ss(t,o));{let l=r.pop();if(A!==l.tagName){let d=ss(t,l.tagStartPos);return Wt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",ss(t,o))}r.length==0&&(n=!0)}}else return Wt("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",ss(t,i));else{let l=f$(u,e);if(l!==!0)return Wt(l.err.code,l.err.msg,ss(t,i-u.length+l.err.line));if(n===!0)return Wt("InvalidXml","Multiple possible root nodes found.",ss(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=g$(t,i);continue}else if(t[i+1]==="?"){if(i=h$(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=zLe(t,i);if(l==-1)return Wt("InvalidChar","char '&' is not expected.",ss(t,i));i=l}else if(n===!0&&!d$(t[i]))return Wt("InvalidXml","Extra text at the end",ss(t,i));t[i]==="<"&&i--}}else{if(d$(t[i]))continue;return Wt("InvalidChar","char '"+t[i]+"' is not expected.",ss(t,i))}if(s){if(r.length==1)return Wt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ss(t,r[0].tagStartPos));if(r.length>0)return Wt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Wt("InvalidXml","Start tag expected.",1);return!0}function d$(t){return t===" "||t===" "||t===`
`||t==="\r"}function h$(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 Wt("InvalidXml","XML declaration allowed only at the start of the document.",ss(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function g$(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 YLe='"',qLe="'";function VLe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===YLe||t[e]===qLe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var JLe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function f$(t,e){let r=nQ(t,JLe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Wt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Lm(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Wt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Lm(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Wt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Lm(r[n]));let i=r[n][2];if(!KLe(i))return Wt("InvalidAttr","Attribute '"+i+"' is an invalid name.",Lm(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Wt("InvalidAttr","Attribute '"+i+"' is repeated.",Lm(r[n]))}return!0}function WLe(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 zLe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,WLe(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 Wt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function KLe(t){return eF(t)}function jLe(t){return eF(t)}function ss(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Lm(t){return t.startIndex+t[1].length}var p$={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:"%",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"},m$={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"},E$={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",Lcaron:"\u013D",lcaLine truncated
`);let e=new Ns("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new Om(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let c=t.charCodeAt(a+1);if(c===47){let u=eg(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(n.removeNSPrefix){let g=l.indexOf(":");g!==-1&&(l=l.substr(g+1))}l=AF(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(c===63){let u=cF(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&u.tagName==="?xml"||n.ignorePiTags)){let d=new Ns(u.tagName);d.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(c===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=eg(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=u}else if(c===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(c===33&&t.charCodeAt(a+2)===91){let u=eg(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,d),a=u+2}else{let u=cF(t,a,n.removeNSPrefix);if(!u){let F=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${F}"`)}let l=u.tagName,d=u.rawTagName,g=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:g}=AF(n.transformTagName,l,g,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let I=r;I&&n.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;g.length>0&&g.lastIndexOf("/")===g.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),g=l):g=g.substr(0,g.length-1),f=l!==g);let C=null,b={},S;S=yve(d),l!==e.tagname&&this.matcher.push(l,{},S),l!==g&&f&&(C=this.buildAttributesMap(g,this.matcher,l),C&&(b=Bve(C,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let D=a;if(this.isCurrentNodeStopNode){let F="";if(m)a=u.closeIndex;else if(n.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,F=P.tagContent}let U=new Ns(l);C&&(U[":@"]=C),U.add(n.textNodeName,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,U,this.readonlyMatcher,D)}else{if(m){({tagName:l,tagExp:g}=AF(n.transformTagName,l,g,n));let F=new Ns(l);C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let F=new Ns(l);C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let F=new Ns(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,D),r=F}s="",a=p}}}else s+=t[a];return e.child};function Tve(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function xve(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function Rve(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 Dve(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function kve(t,e,r=">"){Line truncated
`;function _ve(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(fF(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function q$(t,e,r,s,n){return!r.sanitizeName||tl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function gF(t,e){let r="";e.format&&(r=Ove);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 un(a)):a instanceof un&&s.push(a)}let n=_ve(t,e),i=new yo;return V$(t,e,r,i,s,n)}function V$(t,e,r,s,n,i){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 A=t.toString();return A=hF(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=fF(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:q$(u,!1,e,s,i),g=Hve(c[":@"],e);s.push(d,g);let f=Yve(s,n);if(d===e.textNodeName){let b=c[u];f||(b=e.tagValueProcessor(d,b),b=hF(b,e)),a&&(o+=r),o+=b,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let b=c[u][0][e.textNodeName],S=fQ(b);o+=`<![CDATA[${S}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let b=c[u][0][e.textNodeName],S=gQ(b);o+=r+`<!--${S}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let b=Y$(c[":@"],e,f,s,i);o+=(d==="?xml"?"":r)+`<${d}${b}?>`,a=!0,s.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=Y$(c[":@"],e,f,s,i),m=r+`<${d}${I}`,C;f?C=J$(c[u],e):C=V$(c[u],e,p,s,n,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,s.pop()}return o}function Hve(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=Ac(t[n]),s=!0}return s?r:null}function J$(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=fF(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Gve(n[":@"],e),a=J$(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Gve(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${Ac(n)}"`}return r}function fF(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 Y$(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),A=r?a:q$(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=hF(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${Ac(c)}"`}return i}function Yve(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 hF(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 pF(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 qve={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 Ts(t){if(this.options=Object.assign({},qve,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 un(r)):r instanceof un&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,"utf-8")],n=Tve(s);n&&t.headers.set("Content-Length",n),t.body=await b$(s)}var oh="multipartPolicy",Dve=70,Rve=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function kve(t){if(t.length>Dve)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Rve.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function oE(){return{name:oh,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",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;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?kve(r):r=wve(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await xve(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}var w$=tQ({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),d0t=w$.logger;function $r(t){return w$.createClientLogger(t)}var aE=$r("core-rest-pipeline");function k$(){return"User-Agent"}function F$(){return k$()}var rCt=F$();var Cs=class extends Error{constructor(e){super(e),this.name="AbortError"}};function nF(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Cs(n??"The operation was aborted."))}function A(){s?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(s?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",c)})}var Yve="The delay was aborted.";function Nc(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return nF(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??Yve})}function oA(t){if(ll(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 oF(t){return ll(t)}function ah(){return ul()}var ft=$y;function aF(t,e){return Vm(t,e)}function AF(t,e){return Es(t,e)}var cF=tE;function Sc(t){return QQ(t)}var Ah={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function M$(t={}){let e=new uF(t.parentContext);return t.span&&(e=e.setValue(Ah.span,t.span)),t.namespace&&(e=e.setValue(Ah.namespace,t.namespace)),e}var uF=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 L$=Ne(U$(),1),wQ=L$.state;function qve(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Vve(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:qve(),tracingContext:M$({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function AE(){return wQ.instrumenterImplementation||(wQ.instrumenterImplementation=Vve()),wQ.instrumenterImplementation}function ch(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(c,u,l){let d=AE().startSpan(c,{...l,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(Ah.namespace)||(h=h.setValue(Ah.namespace,e)),f.setAttribute("az.namespace",h.getValue(Ah.namespace));let p=Object.assign({},u,{tracingOptions:{...u?.tracingOptions,tracingContext:h}});return{span:f,updatedOptions:p}}async function i(c,u,l,d){let{span:h,updatedOptions:f}=n(c,u,d);try{let p=await o(f.tracingOptions.tracingContext,()=>l(f,h));return h.setStatus({status:"success"}),p}catch(p){throw h.setStatus({status:"error",error:p}),p}finally{h.end()}}function o(c,u,...l){return AE().withContext(c,u,...l)}function a(c){return AE().parseTraceparentHeader(c)}function A(c){return AE().createRequestHeaders(c)}return{startSpan:n,withSpan:i,withContext:o,parseTraceparentHeader:a,createRequestHeaders:A}}function NQ(t){return Qc(t)}var oBt=$r("core-rest-pipeline retryPolicy");var oPe={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function aPe(t,e,r){async function s(){if(Date.now()<r)try{return await t()}catch{return null}else{let i=await t();if(i===null)throw new Error("Failed to refresh access token.");return i}}let n=await s();for(;n===null;)await Nc(e),n=await s();return n}function lF(t,e){let r=null,s=null,n,i={...oPe,...e},o={get isRefreshing(){return r!==null},get shouldRefresh(){return o.isRefreshing?!1:s?.refreshAfterTimestamp&&s.refreshAfterTimestamp<Date.now()?!0:(s?.expiresOnTimestamp??0)-i.refreshWindowInMs<Date.now()},get mustRefresh(){return s===null||s.expire Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!U3e(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",sr("InvalidTag",l,Is(t,i))}let c=D3e(t,i);if(c===!1)return sr("InvalidAttr","Attributes for '"+A+"' have open quote.",Is(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Dee(u,e);if(d===!0)s=!0;else return sr(d.err.code,d.err.msg,Is(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return sr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Is(t,o));if(r.length===0)return sr("InvalidTag","Closing tag '"+A+"' has not been opened.",Is(t,o));{let l=r.pop();if(A!==l.tagName){let d=Is(t,l.tagStartPos);return sr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Is(t,o))}r.length==0&&(n=!0)}}else return sr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Is(t,i));else{let l=Dee(u,e);if(l!==!0)return sr(l.err.code,l.err.msg,Is(t,i-u.length+l.err.line));if(n===!0)return sr("InvalidXml","Multiple possible root nodes found.",Is(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=xee(t,i);continue}else if(t[i+1]==="?"){if(i=Tee(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=F3e(t,i);if(l==-1)return sr("InvalidChar","char '&' is not expected.",Is(t,i));i=l}else if(n===!0&&!dh(t[i]))return sr("InvalidXml","Extra text at the end",Is(t,i));t[i]==="<"&&i--}}else{if(dh(t[i]))continue;return sr("InvalidChar","char '"+t[i]+"' is not expected.",Is(t,i))}if(s){if(r.length==1)return sr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Is(t,r[0].tagStartPos));if(r.length>0)return sr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return sr("InvalidXml","Start tag expected.",1);return!0}function dh(t){return t===" "||t===" "||t===`
`||t==="\r"}function Tee(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 sr("InvalidXml","XML declaration allowed only at the start of the document.",Is(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function xee(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 T3e='"',x3e="'";function D3e(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===T3e||t[e]===x3e)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}function R3e(t){let e=[],r=t.length,s=0;for(;s<r;){let n=s;for(;s<r&&dh(t[s]);)s++;if(s>=r)break;if(t[s]==="="){s=n+1;continue}let i=t.slice(n,s),o=s;for(;s<r&&!dh(t[s])&&t[s]!=="=";)s++;let a=t.slice(o,s),A,c=s;for(;c<r&&dh(t[c]);)c++;c<r&&t[c]==="="&&(A=t.slice(s,c+1),s=c+1);let u,l,d=s;for(;d<r&&dh(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,p=t.indexOf(t[d],f);p!==-1&&(u=t[d],l=t.slice(f,p),s=p+1)}let h={startIndex:n};h[1]=i,h[2]=a,h[3]=A,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function Dee(t,e){let r=R3e(t),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return sr("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",CE(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return sr("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",CE(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return sr("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",CE(r[n]));let i=r[n][2];if(!M3e(i))return sr("InvalidAttr","Attribute '"+i+"' is an invalid name.",CE(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return sr("InvalidAttr","Attribute '"+i+"' is repeated.",CE(r[n]))}return!0}function k3e(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 F3e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,k3e(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 sr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function M3e(t){return JF(t)}function U3e(t){return JF(t)}function Is(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function CE(t){return t.startIndex+t[1].length}var WF={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var IE={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},zF={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var gh=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),L3e=new Set("!?\\\\/[]$%{}^&*()<>|+");function Ree(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(L3e.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function BE(...t){let e=Object.create(null);for(let r of t)if(r)for(let s of Object.keys(r)){let n=r[s];if(typeof n=="string")e[s]=n;else if(n&&typeof n=="object"&&n.val!==void 0){let i=n.val;typeof i=="string"&&(e[s]=i)}}return e}var pl="external",HQ="base",KF="all";function v3e(t){return!t||t===pl?new Set([pl]):t===KF?new Set([KF]):t===HQ?new Set([HQ]):Array.isArray(t)?new Set(t):new Set([pl])}var Ys=Object.freeze({allow:0,leave:1,remove:2,throw:3}),P3e=new Set([9,10,13]);function O3e(t){if(!t)return{xmlVersion:1,onLevel:Ys.allow,nullLevel:Ys.remove};let e=t.xmlVersion===1.1?1.1:1,r=Ys[t.onNCR]??Ys.allow,s=Ys[t.nullNCR]??Ys.remove,n=Math.max(s,Ys.remove);return{xmlVersion:e,onLevel:r,nullLevel:n}}var hh=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:s=>s,this._limitTiers=v3e(this._limit.applyLimitsTo??pl),this._numericAllowed=e.numericAllowed??!0,this._baseMap=BE(IE,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le Line truncated
`);let e=new qs("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let n=this.options,i=new QE(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let c=t.charCodeAt(a+1);if(c===47){let u=Ch(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(n.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=AM(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop()||e,n.captureMetaData&&r&&r.addEndIndex(u+1),s="",a=u}else if(c===63){let u=cM(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&u.tagName==="?xml"||n.ignorePiTags)){let d=new qs(u.tagName);d.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),n.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(c===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=Ch(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=u}else if(c===33&&t.charCodeAt(a+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(c===33&&t.charCodeAt(a+2)===91){let u=Ch(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,d),a=u+2}else{let u=cM(t,a,n.removeNSPrefix);if(!u){let U=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${U}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=AM(n.transformTagName,l,h,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let E=r;E&&n.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,N={},T;T=B8e(d),l!==e.tagname&&this.matcher.push(l,{},T),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(N=I8e(I,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=a;if(this.isCurrentNodeStopNode){let U="";if(m)a=u.closeIndex;else if(n.unpairedTagsSet.has(l))a=u.closeIndex;else{let Y=this.readStopNodeData(t,d,p+1);if(!Y)throw new Error(`Unexpected end of ${d}`);a=Y.i,U=Y.tagContent}let Z=new qs(l);I&&(Z[":@"]=I),Z.add(n.textNodeName,U),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Z,this.readonlyMatcher,F),n.captureMetaData&&r.addEndIndex(a+1)}else{if(m){({tagName:l,tagExp:h}=AM(n.transformTagName,l,h,n));let U=new qs(l);I&&(U[":@"]=I),this.addChild(r,U,this.readonlyMatcher,F),n.captureMetaData&&r.addEndIndex(p+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let U=new qs(l);I&&(U[":@"]=I),this.addChild(r,U,this.readonlyMatcher,F),n.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let U=new qs(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(U[":@"]=I),this.addChild(r,U,this.readonlyMatcher,F),r=U}s="",a=p}}}else s+=t[a];return e.child};function S8e(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function T8e(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function x8e(t,e,Line truncated
`;function O8e(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(fM(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function jee(t,e,r,s,n){return!r.sanitizeName||n(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function hM(t,e){let r="";e.format&&(r=P8e);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let A=e.stopNodes[a];typeof A=="string"?s.push(new Nn(A)):A instanceof Nn&&s.push(A)}let n=O8e(t,e),i=GQ("qName",{xmlVersion:n}),o=new vo;return Xee(t,e,r,o,s,i)}function Xee(t,e,r,s,n,i){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 A=Vr(t);return A=gM(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=fM(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:jee(u,!1,e,s,i),h=_8e(c[":@"],e);s.push(d,h);let f=G8e(s,n);if(d===e.textNodeName){let N=c[u];f||(N=e.tagValueProcessor(d,N),N=gM(N,e)),N=Vr(N),a&&(o+=r),o+=N,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let N=c[u][0][e.textNodeName],T=WQ(N);o+=`<![CDATA[${T}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let N=c[u][0][e.textNodeName],T=NE(N);o+=r+`<!--${T}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let N=Kee(c[":@"],e,f,s,i);o+=(d==="?xml"?"":r)+`<${d}${N}?>`,a=!0,s.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let E=Kee(c[":@"],e,f,s,i),m=r+`<${d}${E}`,I;f?I=Zee(c[u],e):I=Xee(c[u],e,p,s,n,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,s.pop()}return o}function _8e(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=Po(t[n]),s=!0}return s?r:null}function Zee(t,e){if(!Array.isArray(t))return t!=null?Vr(t):"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=fM(n);if(i===e.textNodeName)r+=Vr(n[i]);else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=H8e(n[":@"],e),a=Zee(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function H8e(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${Po(n)}"`}return r}function fM(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 Kee(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),A=r?a:jee(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=gM(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${Po(c)}"`}return i}function G8e(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 gM(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 pM(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 Y8e={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 Js(t){if(this.options=Object.assign({},Y8e,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 Nn(r)):r instanceof Nn&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Vve(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function mF(t,e,r,s,n){return!r.sanitizeName||tl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}Ts.prototype.build=function(t){if(this.options.preserveOrder)return gF(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new yo,r=Vve(t,this.options);return this.j2x(t,0,e,r).val}};Ts.prototype.j2x=function(t,e,r,s){let n="",i="";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 A in t){if(!Object.prototype.hasOwnProperty.call(t,A))continue;let u=A===this.options.textNodeName||A===this.options.cdataPropName||A===this.options.commentPropName||this.options.attributesGroupName&&A===this.options.attributesGroupName||this.isAttribute(A)||A[0]==="?"?A:mF(A,!1,this.options,r,s);if(typeof t[A]>"u")this.isAttribute(A)&&(i+="");else if(t[A]===null)this.isAttribute(A)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[A]instanceof Date)i+=this.buildTextValNode(t[A],u,"",e,r);else if(typeof t[A]!="object"){let l=this.isAttribute(A);if(l&&!this.ignoreAttributesFn(l,o)){let d=mF(l,!0,this.options,r,s);n+=this.buildAttrPairStr(d,""+t[A],a)}else if(!l)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,""+t[A]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let g=""+t[A];g===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+g+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[A],u,"",e,r)}}else if(Array.isArray(t[A])){let l=t[A].length,d="",g="";for(let f=0;f<l;f++){let p=t[A][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,s);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(g+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,s);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,g,e)),i+=d}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){let l=Object.keys(t[A]),d=l.length;for(let g=0;g<d;g++){let f=mF(l[g],!0,this.options,r,s);n+=this.buildAttrPairStr(f,""+t[A][l[g]],a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,s)}return{attrStr:n,val:i}};Ts.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+'="'+Ac(e)+'"'};function Jve(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let A=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(A,e,c,r)}let a=this.j2x(t,r+1,s,n);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)}Ts.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 n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=Ac(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=Ac(t[s]),r=!0)}return r?e:null};Ts.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="")}function q8e(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function mM(t,e,r,s,n){return!r.sanitizeName||n(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}Js.prototype.build=function(t){if(this.options.preserveOrder)return hM(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new vo,r=q8e(t,this.options),s=GQ("qName",{xmlVersion:r});return this.j2x(t,0,e,s).val}};Js.prototype.j2x=function(t,e,r,s){let n="",i="";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 A in t){if(!Object.prototype.hasOwnProperty.call(t,A))continue;let u=A===this.options.textNodeName||A===this.options.cdataPropName||A===this.options.commentPropName||this.options.attributesGroupName&&A===this.options.attributesGroupName||this.isAttribute(A)||A[0]==="?"?A:mM(A,!1,this.options,r,s);if(typeof t[A]>"u")this.isAttribute(A)&&(i+="");else if(t[A]===null)this.isAttribute(A)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[A]instanceof Date)i+=this.buildTextValNode(t[A],u,"",e,r);else if(typeof t[A]!="object"){let l=this.isAttribute(A);if(l&&!this.ignoreAttributesFn(l,o)){let d=mM(l,!0,this.options,r,s);n+=this.buildAttrPairStr(d,Vr(t[A]),a)}else if(!l)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,Vr(t[A]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=Vr(t[A]);h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[A],u,"",e,r)}}else if(Array.isArray(t[A])){let l=t[A].length,d="",h="";for(let f=0;f<l;f++){let p=t[A][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(p,e+1,r,s);r.pop(),d+=E.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,s);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,p);E=this.replaceEntitiesValue(E),E=Vr(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=Vr(p);m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){let l=Object.keys(t[A]),d=l.length;for(let h=0;h<d;h++){let f=mM(l[h],!0,this.options,r,s);n+=this.buildAttrPairStr(f,Vr(t[A][l[h]]),a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,s)}return{attrStr:n,val:i}};Js.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,Vr(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Po(e)+'"'};function V8e(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let A=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(A,e,c,r)}let a=this.j2x(t,r+1,s,n);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)}Js.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 n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=Po(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=Po(t[s]),r=!0)}return r?e:null};Js.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.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(Ee.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===Ee.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(Ee.PREFIX_FOR_STORAGE));r.sort((n,i)=>NQ(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=QQ(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=bQ(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let A=a.toLowerCase();i[A]=n[a],o.push(A)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var kt=class extends nl{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new qm(e,r,this)}computeHMACSHA256(e){return nPe("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var il=class extends Error{constructor(e){super(e),this.name="AbortError"}};var lr=_n("storage-common");var Hn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Hn||(Hn={}));var uc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Hn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},iPe=new il("The operation was aborted."),Vm=class extends Qo{retryOptions;constructor(e,r,s=uc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:uc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):uc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:uc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:uc.maxRetryDelayInMs):uc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:uc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:uc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=yQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=cc(n.url,_a.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(lr.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(lr.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return lr.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(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return lr.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return lr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return lr.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Ee.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(lr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Hn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Hn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return lr.info(`RetryPolicy: Delay for ${n}ms`),wQ(n,s,iPe)}};var Jm=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Vm(e,r,this.retryOptions)}};var oPe="storageBrowserPolicy";function X$(){return{name:oPe,async sendRequest(t,e){return Ze||((t.method==="GET"||t.method==="HEAD")&&(t.url=cc(t.url,_a.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ee.COOKIE),t.headers.delete(Ee.CONTENT_LENGTH)),e(t)}}}var aPe="StorageCorrectContentLengthPolicy";function Z$(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ee.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:aPe,async sendRequest(e,r){return t(e),r(e)}}}var APe="storageRetryPolicy",rg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Hn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},cPe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],uPe=new il("The operation was aborted.");function $$(t={}){let e=t.retryPolicyType??rg.retryPolicyType,r=t.maxTries??rg.maxTries,s=t.retryDelayInMs??rg.retryDelayInMs,n=t.maxRetryDelayInMs??rg.maxRetryDelayInMs,i=t.secondaryHost??rg.secondaryHost,o=t.tryTimeoutInMs??rg.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return lr.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let g of cPe)if(d.name.toUpperCase().includes(g)||d.message.toUpperCase().inclu Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(ke.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===ke.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(ke.PREFIX_FOR_STORAGE));r.sort((n,i)=>ib(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=rb(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=sb(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let A=a.toLowerCase();i[A]=n[a],o.push(A)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Ht=class extends Il{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new RE(e,r,this)}computeHMACSHA256(e){return n4e("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Br=$r("storage-common");var ai;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ai||(ai={}));var kc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ai.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},i4e=new Cs("The operation was aborted."),kE=class extends Oo{retryOptions;constructor(e,r,s=kc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:kc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):kc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:kc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:kc.maxRetryDelayInMs):kc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:kc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:kc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=tb(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=eb(n.url,DE.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Br.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(Br.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return Br.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(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return Br.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return Br.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Br.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(ke.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(Br.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case ai.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ai.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Br.info(`RetryPolicy: Delay for ${n}ms`),nb(n,s,i4e)}};var FE=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kE(e,r,this.retryOptions)}};var o4e="storageBrowserPolicy";function ite(){return{name:o4e,async sendRequest(t,e){return e(t)}}}var a4e="StorageCorrectContentLengthPolicy";function ote(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ke.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:a4e,async sendRequest(e,r){return t(e),r(e)}}}var A4e="storageRetryPolicy",Bh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ai.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},c4e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],u4e=new Cs("The operation was aborted.");function ate(t={}){let e=t.retryPolicyType??Bh.retryPolicyType,r=t.maxTries??Bh.maxTries,s=t.retryDelayInMs??Bh.retryDelayInMs,n=t.maxRetryDelayInMs??Bh.maxRetryDelayInMs,i=t.secondaryHost??Bh.secondaryHost,o=t.tryTimeoutInMs??Bh.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return Br.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of c4e)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return Br.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return Br.info("RetryPolicy: Incomplete XML response likely Line truncated
`)+`
`+s(i)+n(i),a=lPe("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Ee.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Ee.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(Ee.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>NQ(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function n(i){let o=QQ(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=bQ(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:dPe,async sendRequest(i,o){return e(i),o(i)}}}var hPe="storageRequestFailureDetailsParserPolicy";function eee(){return{name:hPe,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}}}}import{createHmac as gPe}from"node:crypto";var SQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return gPe("sha256",this.key).update(e,"utf8").digest("base64")}};var TQ="12.31.0",xQ="2026-02-06";var RQ="https://storage.azure.com/.default",Ha={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Fi="",QF="*",fPe=1*1024*1024;var pPe=4*fPe;var tee="AES256",ree="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",see=["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"],nee=["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"],iee="BlobUsesCustomerSpecifiedEncryption",oee="BlobDoesNotUseCustomerSpecifiedEncryption",aee=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ga(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 Wm=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function zt(t,e={}){t||(t=new bt);let r=new Wm([],e);return r._credential=t,r}function mPe(t){let e=[EPe,Aee,CPe,IPe,BPe,yPe,bPe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>QPe(n));return{wrappedPolicies:Zk(r),afterRetry:s}}}}function bF(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?$k(e):BF(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${TQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=xm({...r,loggingOptions:{additionalAllowedHeaderNames:see,additionalAllowedQueryParameters:nee,logger:mQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:pQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:CF,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:Nk}),n.addPolicy(Z$()),n.addPolicy($$(r.retryOptions),{phase:"Retry"}),n.addPolicy(eee()),n.addPolicy(X$());let a=mPe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=wF(t);An(A)?n.addPolicy(Kh({credential:A,scopes:r.audience??RQ, Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Pi(t.version,i,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:n}}function E8e(t,e){if(t=gl(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 n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?vi(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(i);return{sasQueryParameters:new Pi(t.version,o,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:i}}function C8e(t,e){if(t=gl(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 n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?vi(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(i);return{sasQueryParameters:new Pi(t.version,o,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function I8e(t,e){if(t=gl(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 n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pi(t.version,o,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,e.userDelegationKey),stringToSign:i}}function B8e(t,e){if(t=gl(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 n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pi(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function y8e(t,e){if(t=gl(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 n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?vi(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(i);return{sasQueryParameters:new Pi(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Q8e(t,e){if(t=gl(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 n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?vi(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(i);return{sasQueryParameters:new Pi(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function hl(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function gl(t){let e=t.version?t.version:xQ;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 i0=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=Wh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fi||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 X.withSpan("BlobLeaseClient-acquireLease",r,async s=>ie(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!==Fi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fi||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 X.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ie(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Fi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fi||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 X.withSpan("BlobLeaseClient-releaseLease",e,async r=>ie(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!==Fi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fi||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 X.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortS 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"}};dg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var ml=class extends Error{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"}};ml.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var h0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var J8e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},ZL=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,n=(e/(1024*1024)/(s/1e3)).toFixed(1);he(`Sent ${e} of ${this.contentLength} (${r}%), ${n} 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 Bte(t,e,r){return J8e(this,void 0,void 0,function*(){var s;let n=new Ka(t),i=n.getBlockBlobClient(),o=new ZL((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(),M(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new bb(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw ut(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as Qte from"buffer";import*as Go from"fs";import*as bte from"stream";import*as wte from"util";var wb=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function Nb(t){return t?t>=200&&t<300:!1}function W8e(t){return t?t>=500:!0}function z8e(t){return t?[Dt.BadGateway,Dt.ServiceUnavailable,Dt.GatewayTimeout].includes(t):!1}function K8e(t){return wb(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function yte(t,e,r){return wb(this,arguments,void 0,function*(s,n,i,o=ay,a=Ay,A=void 0){let c="",u=1;for(;u<=o;){let l,d,g=!1;try{l=yield n()}catch(f){A&&(l=A(f)),g=!0,c=f.message}if(l&&(d=i(l),!W8e(d)))return l;if(d&&(g=z8e(d),c=`Cache service responded with ${d}`),M(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!g){M(`${s} - Error is not retryable`);break}yield K8e(a),u++}throw Error(`${s} failed: ${c}`)})}function g0(t,e){return wb(this,arguments,void 0,function*(r,s,n=ay,i=Ay){return yield yte(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof ho)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function hg(t,e){return wb(this,arguments,void 0,function*(r,s,n=ay,i=Ay){return yield yte(r,s,o=>o.message.statusCode,n,i)})}var Jn=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function j8e(t,e){return Jn(this,void 0,void 0,function*(){yield wte.promisify(bte.pipeline)(t.message,e)})}var Sb=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,M(`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,n=(e/(1024*1024)/(s/1e3)).toFixed(1);he(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])M(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function sv(t,e,r){return Rs(this,void 0,void 0,function*(){let s=new t4e(t),n=xte(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Ste(t,e,n):n.concurrentBlobDownloads?yield Nte(t,e,n):yield Tb(t,e):yield Tb(t,e)})}function Ote(t,e,r){return Rs(this,void 0,void 0,function*(){let s=rv(),n=Ph(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield g0("reserveCache",()=>Rs(this,void 0,void 0,function*(){return s.postJson(p0("caches"),i)}))})}function vte(t,e){return`bytes ${t}-${e}/*`}function i4e(t,e,r,s,n){return Rs(this,void 0,void 0,function*(){M(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${vte(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":vte(s,n)},o=yield hg(`uploadChunk (start: ${s}, end: ${n})`,()=>Rs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Nb(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function o4e(t,e,r,s){return Rs(this,void 0,void 0,function*(){let n=po(r),i=p0(`caches/${e.toString()}`),o=gg.openSync(r,"r"),a=$L(s),A=GD("uploadConcurrency",a.uploadConcurrency),c=GD("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];M("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Rs(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),g=l,f=l+d-1;l+=c,yield i4e(t,i,()=>gg.createReadStream(r,{fd:o,start:g,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),g,f)}})))}finally{gg.closeSync(o)}})}function a4e(t,e,r){return Rs(this,void 0,void 0,function*(){let s={size:r};return yield g0("commitCache",()=>Rs(this,void 0,void 0,function*(){return t.postJson(p0(`caches/${e.toString()}`),s)}))})}function nv(t,e,r,s){return Rs(this,void 0,void 0,function*(){if($L(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Bte(r,e,s)}else{let i=rv();M("Upload cache"),yield o4e(i,t,e,s),M("Commiting cache");let o=po(e);he(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield a4e(i,t,o);if(!Nb(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);he("Cache saved successfully")}})}var Fre=Ie(Nre(),1),Xt=Ie(jt(),1),hn=Ie(jt(),1),yl=Ie(jt(),1),Ql=Ie(jt(),1),bl=Ie(jt(),1);var Zv=Ie(jt(),1),$v=Ie(jt(),1),Rre=Ie(jt(),1),Dre=Ie(jt(),1),kre=Ie(jt(),1);var Kv=Ie(jt(),1),jv=Ie(jt(),1),Sre=Ie(jt(),1),Tre=Ie(jt(),1),xre=Ie(jt(),1),Xv=class extends xre.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,Tre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Sre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?jv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Kv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Kv.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?jv.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},f1=new Xv;var eP=class extends kre.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:()=>f1}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Dre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Rre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(f1.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?$v.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Zv.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)f1.internalBinaryWrite(e.scope[i],r.tag(2,Zv.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?$v.UnknownFieldHandler.onWrit Line truncated
`));let s=yield fP(r,"create");yield pP(s,t)})}var Rg=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},Hi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},wl=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},CP="cache write denied:",E1=class t extends wl{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},vre=cy,C1=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},I1=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Pre(t){if(!t||t.length===0)throw new Hi("Path Validation Error: At least one directory or file path is required")}function IP(t){if(t.length>512)throw new Hi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Hi(`Key Validation Error: ${t} cannot contain commas.`)}function Ore(){return f0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function _re(t,e,r,s){return Rg(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=f0();M(`Cache service version: ${c}`),Pre(n);let u=tv();if(!Dte(u)){he(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),M(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return c==="v2"?yield b_e(n,i,o,a,A):yield Q_e(n,i,o,a,A)})}function Q_e(t,e,r,s){return Rg(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;o=o||[];let u=[i,...o];if(M("Resolved Keys:"),M(JSON.stringify(u)),u.length>10)throw new Hi("Key Validation Error: Keys are limited to a maximum of 10.");for(let g of u)IP(g);let l=yield pm(),d="";try{let g;try{g=yield Pte(u,n,{compressionMethod:l,enableCrossOsArchive:A})}catch(p){let I=(c=p?.message)!==null&&c!==void 0?c:"";throw I.includes(vre)?new C1(I):p}if(!g?.archiveLocation)return;if(a?.lookupOnly)return he("Lookup only - skipping download"),g.cacheKey;d=k0.join(yield gm(),ec(l)),M(`Archive Path: ${d}`),yield sv(g.archiveLocation,d,a),WA()&&(yield D0(d,l));let f=po(d);return he(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield mP(d,l),he("Cache restored successfully"),g.cacheKey}catch(g){let f=g;if(f.name===Hi.name)throw g;f instanceof ho&&typeof f.statusCode=="number"&&f.statusCode>=500?Pu(`Failed to restore: ${g.message}`):ut(`Failed to restore: ${g.message}`)}finally{try{yield fm(d)}catch(g){M(`Failed to delete archive: ${g}`)}}})}function b_e(t,e,r,s){return Rg(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(M("Resolved Keys:"),M(JSON.stringify(u)),u.length>10)throw new Hi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)IP(d);let l="";try{let d=gP(),g=yield pm(),f={key:i,restoreKeys:o,version:Ph(n,g,A)},p;try{p=yield d.GetCacheEntryDownloadURL(f)}catch(C){let b=(c=C?.message)!==null&&c!==void 0?c:"";throw b.includes(vre)?new C1(b):C}if(!p.ok){M(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==p.matchedKey?he(`Cache hit for restore-key: ${p.matchedKey}`):he(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return he("Lookup only - skipping download"),p.matchedKey;l=k0.join(yield gm(),ec(g)),M(`Archive path: ${l}`),M(`Starting download of archive to: ${l}`),yield sv(p.signedDownloadUrl,l,a);let m=po(l);return he(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),WA()&&(yield D0(l,g)),yield mP(l,g),he("Cache restored successfully"),p.matchedKey}catch(d){let g=d;if(g.name===Hi.name)throw d;g instanceof ho&&typeof g.statusCode=="number"&&g.statusCode>=500?Pu(`Failed to restore: ${d.message}`):ut(`Failed to restore: ${d.message}`)}finally{try{l&&(yield fm(l))}catch(d){M(`Failed to delete archive: ${d}`)}}})}function Hre(t,e,r){return Rg(this,arguments,void 0,function*(s,n,i,o=!1){let a=f0();M(`Cache service version: ${a}`),Pre(s),IP(n);let A=tv();return kte(A)?a==="v2"?yield N_e(s,n,i,o):yield w_e(s,n,i,o):(he(`Cache save skipped: the effective cache-mode '${A}' does not permit writes.`),M(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}function w_e(t,e,r){return Rg(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l,d;let g=yield pm(),f=-1,p=yield HD(s);if(M("Cache Paths:"),M(`${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 I=yield gm(),m=k0.join(I,ec(g));M(`Archive Path: ${m}`);try{yield EP(I,p,g),WA()&&(yield D0(m,g));let C=10*1024*1024*1024 Line truncated
<h3>Job Summary for Gradle</h3>
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
`+s(i)+n(i),a=l4e("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ke.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ke.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ke.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>ib(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function n(i){let o=rb(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=sb(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:d4e,async sendRequest(i,o){return e(i),o(i)}}}var g4e="storageRequestFailureDetailsParserPolicy";function Ate(){return{name:g4e,async sendRequest(t,e){try{let r=await e(t);return r.status===400&&r.bodyAsText?.includes("<Error><Code>InvalidHeaderValue</Code>")&&r.bodyAsText.includes("<HeaderName>x-ms-version</HeaderName>")&&(r.bodyAsText=r.bodyAsText.replace(/<Message>.*<\/Message>/s,"<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.</Message>")),r}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}}}}import{createHmac as h4e}from"node:crypto";var ob=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return h4e("sha256",this.key).update(e,"utf8").digest("base64")}};var ab="12.31.0",Ab="2026-02-06";var cb="https://storage.azure.com/.default",AA={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Xi="",QM="*",f4e=1*1024*1024;var p4e=4*f4e;var cte="AES256",ute="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",lte=["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"],dte=["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"],gte="BlobUsesCustomerSpecifiedEncryption",hte="BlobDoesNotUseCustomerSpecifiedEncryption",fte=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function cA(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 ME=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function nr(t,e={}){t||(t=new Ft);let r=new ME([],e);return r._credential=t,r}function m4e(t){let e=[E4e,pte,C4e,I4e,B4e,y4e,b4e];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>Q4e(n));return{wrappedPolicies:qF(r),afterRetry:s}}}}function bM(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?VF(e):BM(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${ab}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=lE({...r,loggingOptions:{additionalAllowedHeaderNames:lte,additionalAllowedQueryParameters:dte,logger:KQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:zQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:CM,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:cF}),n.addPolicy(ote()),n.addPolicy(ate(r.retryOptions),{phase:"Retry"}),n.addPolicy(Ate()),n.addPolicy(ite());let a=m4e(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=wM(t);bn(A)?n.addPolicy(TQ({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new ro(t.version,i,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:n}}function E6e(t,e){if(t=xl(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 n;t.permissions&&(t.blobName?n=ra.parse(t.permissions.toString()).toString():n=sa.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?rt(t.startsOn,!1):"",t.expiresOn?rt(t.expiresOn,!1):"",Tl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?to(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(i);return{sasQueryParameters:new ro(t.version,o,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:i}}function C6e(t,e){if(t=xl(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 n;t.permissions&&(t.blobName?n=ra.parse(t.permissions.toString()).toString():n=sa.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?rt(t.startsOn,!1):"",t.expiresOn?rt(t.expiresOn,!1):"",Tl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?to(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(i);return{sasQueryParameters:new ro(t.version,o,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function I6e(t,e){if(t=xl(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 n;t.permissions&&(t.blobName?n=ra.parse(t.permissions.toString()).toString():n=sa.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?rt(t.startsOn,!1):"",t.expiresOn?rt(t.expiresOn,!1):"",Tl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?to(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ro(t.version,o,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,e.userDelegationKey),stringToSign:i}}function B6e(t,e){if(t=xl(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 n;t.permissions&&(t.blobName?n=ra.parse(t.permissions.toString()).toString():n=sa.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?rt(t.startsOn,!1):"",t.expiresOn?rt(t.expiresOn,!1):"",Tl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?to(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ro(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function y6e(t,e){if(t=xl(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 n;t.permissions&&(t.blobName?n=ra.parse(t.permissions.toString()).toString():n=sa.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?rt(t.startsOn,!1):"",t.expiresOn?rt(t.expiresOn,!1):"",Tl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?to(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(i);return{sasQueryParameters:new ro(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Q6e(t,e){if(t=xl(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 n;t.permissions&&(t.blobName?n=ra.parse(t.permissions.toString()).toString():n=sa.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?rt(t.startsOn,!1):"",t.expiresOn?rt(t.expiresOn,!1):"",Tl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?to(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(i);return{sasQueryParameters:new ro(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Tl(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function xl(t){let e=t.version?t.version:Ab;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 JE=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=ah()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Xi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Xi||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 ee.withSpan("BlobLeaseClient-acquireLease",r,async s=>Ae(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!==Xi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Xi||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 ee.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=Ae(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Xi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Xi||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 ee.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ae(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!==Xi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Xi||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 ee.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"}};Rh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Rl=class extends Error{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"}};Rl.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var e0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var J6e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},Zv=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,n=(e/(1024*1024)/(s/1e3)).toFixed(1);me(`Sent ${e} of ${this.contentLength} (${r}%), ${n} 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 xre(t,e,r){return J6e(this,void 0,void 0,function*(){var s;let n=new pA(t),i=n.getBlockBlobClient(),o=new Zv((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(),v(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new sw(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw at(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as Rre from"buffer";import*as na from"fs";import*as kre from"stream";import*as Fre from"util";var nw=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function iw(t){return t?t>=200&&t<300:!1}function W6e(t){return t?t>=500:!0}function z6e(t){return t?[_t.BadGateway,_t.ServiceUnavailable,_t.GatewayTimeout].includes(t):!1}function K6e(t){return nw(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Dre(t,e,r){return nw(this,arguments,void 0,function*(s,n,i,o=Wy,a=zy,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield n()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!W6e(d)))return l;if(d&&(h=z6e(d),c=`Cache service responded with ${d}`),v(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!h){v(`${s} - Error is not retryable`);break}yield K6e(a),u++}throw Error(`${s} failed: ${c}`)})}function t0(t,e){return nw(this,arguments,void 0,function*(r,s,n=Wy,i=zy){return yield Dre(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof To)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function kh(t,e){return nw(this,arguments,void 0,function*(r,s,n=Wy,i=zy){return yield Dre(r,s,o=>o.message.statusCode,n,i)})}var di=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function j6e(t,e){return di(this,void 0,void 0,function*(){yield Fre.promisify(kre.pipeline)(t.message,e)})}var ow=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,v(`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,n=(e/(1024*1024)/(s/1e3)).toFixed(1);me(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])v(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function sP(t,e,r){return zs(this,void 0,void 0,function*(){let s=new t_e(t),n=vre(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Ure(t,e,n):n.concurrentBlobDownloads?yield Mre(t,e,n):yield aw(t,e):yield aw(t,e)})}function Wre(t,e,r){return zs(this,void 0,void 0,function*(){let s=rP(),n=$g(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield t0("reserveCache",()=>zs(this,void 0,void 0,function*(){return s.postJson(s0("caches"),i)}))})}function Vre(t,e){return`bytes ${t}-${e}/*`}function i_e(t,e,r,s,n){return zs(this,void 0,void 0,function*(){v(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${Vre(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Vre(s,n)},o=yield kh(`uploadChunk (start: ${s}, end: ${n})`,()=>zs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!iw(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function o_e(t,e,r,s){return zs(this,void 0,void 0,function*(){let n=Ro(r),i=s0(`caches/${e.toString()}`),o=Fh.openSync(r,"r"),a=$v(s),A=Uk("uploadConcurrency",a.uploadConcurrency),c=Uk("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];v("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>zs(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),h=l,f=l+d-1;l+=c,yield i_e(t,i,()=>Fh.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{Fh.closeSync(o)}})}function a_e(t,e,r){return zs(this,void 0,void 0,function*(){let s={size:r};return yield t0("commitCache",()=>zs(this,void 0,void 0,function*(){return t.postJson(s0(`caches/${e.toString()}`),s)}))})}function nP(t,e,r,s){return zs(this,void 0,void 0,function*(){if($v(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield xre(r,e,s)}else{let i=rP();v("Upload cache"),yield o_e(i,t,e,s),v("Commiting cache");let o=Ro(e);me(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield a_e(i,t,o);if(!iw(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);me("Cache saved successfully")}})}var Hse=Ne(Mse(),1),ar=Ne(or(),1),Dn=Ne(or(),1),Ll=Ne(or(),1),vl=Ne(or(),1),Pl=Ne(or(),1);var ZP=Ne(or(),1),$P=Ne(or(),1),Pse=Ne(or(),1),Ose=Ne(or(),1),_se=Ne(or(),1);var KP=Ne(or(),1),jP=Ne(or(),1),Use=Ne(or(),1),Lse=Ne(or(),1),vse=Ne(or(),1),XP=class extends vse.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,Lse.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Use.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?jP.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,KP.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,KP.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?jP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},zw=new XP;var e3=class extends _se.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:()=>zw}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Ose.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Pse.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(zw.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?$P.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,ZP.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)zw.internalBinaryWrite(e.scope[i],r.tag(2,ZP.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?$P.UnknownFieldHandler.onWrit Line truncated
`));let{commands:s}=yield qse(r,"create");yield Jse(s,t)})}var Kh=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},io=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ol=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},E3="cache write denied:",Xw=class t extends Ol{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},zse=Ky,Zw=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},$w=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Kse(t){if(!t||t.length===0)throw new io("Path Validation Error: At least one directory or file path is required")}function C3(t){if(t.length>512)throw new io(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new io(`Key Validation Error: ${t} cannot contain commas.`)}function jse(){return r0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Xse(t,e,r,s){return Kh(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=r0();v(`Cache service version: ${c}`),Kse(n);let u=tP();if(!Ore(u)){me(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),v(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return c==="v2"?yield b5e(n,i,o,a,A):yield Q5e(n,i,o,a,A)})}function Q5e(t,e,r,s){return Kh(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;o=o||[];let u=[i,...o];if(v("Resolved Keys:"),v(JSON.stringify(u)),u.length>10)throw new io("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)C3(h);let l=yield _m(),d="";try{let h;try{h=yield Jre(u,n,{compressionMethod:l,enableCrossOsArchive:A})}catch(p){let E=(c=p?.message)!==null&&c!==void 0?c:"";throw E.includes(zse)?new Zw(E):p}if(!h?.archiveLocation)return;if(a?.lookupOnly)return me("Lookup only - skipping download"),h.cacheKey;d=C0.join(yield cl(),Bc(l)),v(`Archive Path: ${d}`),yield sP(h.archiveLocation,d,a),dc()&&(yield E0(d,l));let f=Ro(d);return me(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield p3(d,l),me("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===io.name)throw h;f instanceof To&&typeof f.statusCode=="number"&&f.statusCode>=500?el(`Failed to restore: ${h.message}`):at(`Failed to restore: ${h.message}`)}finally{try{yield Om(d)}catch(h){v(`Failed to delete archive: ${h}`)}}})}function b5e(t,e,r,s){return Kh(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(v("Resolved Keys:"),v(JSON.stringify(u)),u.length>10)throw new io("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)C3(d);let l="";try{let d=h3(),h=yield _m(),f={key:i,restoreKeys:o,version:$g(n,h,A)},p;try{p=yield d.GetCacheEntryDownloadURL(f)}catch(I){let N=(c=I?.message)!==null&&c!==void 0?c:"";throw N.includes(zse)?new Zw(N):I}if(!p.ok){v(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==p.matchedKey?me(`Cache hit for restore-key: ${p.matchedKey}`):me(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return me("Lookup only - skipping download"),p.matchedKey;l=C0.join(yield cl(),Bc(h)),v(`Archive path: ${l}`),v(`Starting download of archive to: ${l}`),yield sP(p.signedDownloadUrl,l,a);let m=Ro(l);return me(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),dc()&&(yield E0(l,h)),yield p3(l,h),me("Cache restored successfully"),p.matchedKey}catch(d){let h=d;if(h.name===io.name)throw d;h instanceof To&&typeof h.statusCode=="number"&&h.statusCode>=500?el(`Failed to restore: ${d.message}`):at(`Failed to restore: ${d.message}`)}finally{try{l&&(yield Om(l))}catch(d){v(`Failed to delete archive: ${d}`)}}})}function Zse(t,e,r){return Kh(this,arguments,void 0,function*(s,n,i,o=!1){let a=r0();v(`Cache service version: ${a}`),Kse(s),C3(n);let A=tP();return _re(A)?a==="v2"?yield N5e(s,n,i,o):yield w5e(s,n,i,o):(me(`Cache save skipped: the effective cache-mode '${A}' does not permit writes.`),v(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}function w5e(t,e,r){return Kh(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l,d;let h=yield _m(),f=-1,p=yield Mk(s);if(v("Cache Paths:"),v(`${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 E=yield cl(),m=C0.join(E,Bc(h));v(`Archive Path: ${m}`);try{yield m3(E,p,h),dc()&&(yield E0(m,h));let I=10*10 Line truncated
${r.join(`
`)}
`:""}function L5e(t){return`<details>
<summary>${N3.eol} ${one(t)}</summary>
<p>${ane(t)}</p>
<p>If you cannot upgrade, see the <a href="${nne}">Gradle Security Subscription</a> for options.</p>
</details>`}async function gne(t,e,r,s){Mz("Generating Job Summary");let n=hne(),i=_5e();if(i){eA.addRaw(n),eA.addRaw(i),await eA.write();return}let o=O5e(t),a=OK(e,r),A=q5e(t);me(o),me("============================"),me(a),s.shouldGenerateJobSummary(A)&&(eA.addRaw(n),eA.addRaw(o),eA.addRaw(a),await eA.write()),Uz(),s.canAddPRComment()&&await K5e(),s.shouldAddPRComment(A)&&await v5e(o)}async function v5e(t){let e=Vg;if(e.payload.pull_request==null){me("No pull_request trigger detected: not adding PR comment");return}let r=e.payload.pull_request.number;me(`Adding Job Summary as comment to PR #${r}.`);let s=`${fne(e)}
${hne()}<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,n=NP(),i=aD(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")ut(M_e(o));else throw o}}function M_e(t){let e=`Failed to generate PR comment.
${t}`,n=b3(),i=j2(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")at(P5e(o));else throw o}}function P5e(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function U_e(t){return`${v_e()}
${O_e(t)}`}function L_e(){let t=qre();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function v_e(){let t=Yre();return t.length===0?"":`
`:e}function O5e(t){return`${H5e()}
${Y5e(t)}
${lne(t.map(e=>e.gradleVersion))}`}function hne(){let t=e1();return`<h3>Gradle Builds${t?` <sub><em>captured by ${t}</em></sub>`:""}</h3>
`}function _5e(){let t=tne();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function H5e(){let t=ene();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${bP()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${e1()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${P_e(e)}</li>`).join("")}
${t.map(e=>`<li>${G5e(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function P_e(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function O_e(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function G5e(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Y5e(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -299,16 +310,15 @@ This job uses deprecated functionality from the <code>${bP()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>H_e(e)).join("")}
</table>
`}function __e(t){return t.some(e=>e.buildFailed)}function H_e(t){return`
</tr>${t.map(e=>V5e(e)).join("")}
</table>`}function q5e(t){return t.some(e=>e.buildFailed)}function V5e(t){return`
<tr>
<td>${Wre(t.rootProjectName,30)}</td>
<td>${Wre(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${G_e(t)}</td>
<td>${Y_e(t)}</td>
</tr>`}function G_e(t){return t.buildFailed?":x:":":white_check_mark:"}function Y_e(t){return t.buildScanFailed?SP({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?SP({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):SP({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function SP({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function Wre(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function q_e(){let t=Rh;if(t.payload.pull_request==null){he("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;he(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=Kre(t),s=aD(NP()),{owner:n,repo:i}=t.repo,o=`
<td>${dne(t.rootProjectName,30)}</td>
<td>${dne(t.requestedTasks,60)}</td>
<td align='center'>${J5e(t.gradleVersion)}</td>
<td align='center'>${W5e(t)}</td>
<td>${z5e(t)}</td>
</tr>`}function J5e(t){let e=cne(t);return e?`${t} ${e}`:t}function W5e(t){return t.buildFailed?":x:":":white_check_mark:"}function z5e(t){return t.buildScanFailed?T3({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?T3({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):T3({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function T3({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function dne(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function K5e(){let t=Vg;if(t.payload.pull_request==null){me("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;me(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=fne(t),s=j2(b3()),{owner:n,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
@@ -318,24 +328,21 @@ This job uses deprecated functionality from the <code>${bP()}</code> action. Fol
}
}
}
`,a;try{let{repository:u}=await s.graphql(o,{owner:n,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return ut(`Failed to fetch comments: ${u}`)}let A=`
`,a;try{let{repository:u}=await s.graphql(o,{owner:n,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return at(`Failed to fetch comments: ${u}`)}let A=`
mutation($id: ID!) {
minimizeComment(input: {subjectId: $id, classifier: OUTDATED}) {
clientMutationId
}
}
`,c=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>s.graphql(A,{id:u.id}).then(()=>he(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>ut(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function Kre(t){return`<!-- gradle-job-summary: ${B1.constructJobCorrelator(t.workflow,t.job,wP())} -->`}var jre=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as jn from"fs";import*as Za from"path";function Xre(){return $re().map(e=>{let r=jn.readFileSync(e,"utf8"),s=JSON.parse(r);return W_e(e,s),s})}function Zre(){$re().forEach(K_e)}function $re(){let t=Za.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return jn.existsSync(t)?jn.readdirSync(t).map(e=>Za.resolve(t,e)).filter(e=>Za.extname(e)===".json"&&!z_e(e)):[]}function W_e(t,e){let r=Za.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!jn.existsSync(r))return;let s=Za.resolve(r,Za.basename(t));if(jn.existsSync(s)){let n=jn.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function z_e(t){let e=`${t}.processed`;return jn.existsSync(e)}function K_e(t){let e=`${t}.processed`;jn.writeFileSync(e,"")}import*as Fse from"fs";import*as Mse from"path";import{pathToFileURL as f5e}from"url";import*as Fg from"fs";function TP(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,M(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,M(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,M(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,M(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,M(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as x1 from"path";import*as Dg from"path";import Sl from"assert";var Ic=process.platform==="win32";function eA(t){if(t=$a(t),Ic&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Dg.dirname(t);return Ic&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=$a(e)),e}function N1(t,e){if(Sl(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Sl(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),U0(e))return e;if(Ic){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Sl(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Gi(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Sl(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Sl(U0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Ic&&t.endsWith("\\")||(t+=Dg.sep),t+e}function U0(t){return Sl(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Gi(t),Ic?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function L0(t){return Sl(t,"isRooted parameter 'itemPath' must not be empty"),t=Gi(t),Ic?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Gi(t){return t=t||"",Ic?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function $a(t){return t?(t=Gi(t),!t.endsWith(Dg.sep)||t===Dg.sep||Ic&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Yi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Yi||(Yi={}));var ese=process.platform==="win32";function RP(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=ese?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=ese?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=eA(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=eA(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function tse(t,e){let r=Yi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function rse(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as yse from"os";import*as Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new H0(i));return s.searchPaths.push(...RP(s.patterns)),s})}static stat(e,r,s){return PP(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Fg.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){M(`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 n=yield Fg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Fg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){M(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as OP from"crypto";import*as R1 from"fs";import*as Qse from"stream";import*as bse from"util";import*as wse from"path";var A5e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},c5e=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(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function Nse(t,e){return A5e(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?he:M,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),g=OP.createHash("sha256"),f=0;try{for(var p=!0,I=c5e(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${wse.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(R1.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let b=OP.createHash("sha256");yield bse.promisify(Qse.pipeline)(R1.createReadStream(C),b),g.write(b.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return g.end(),l?(u(`Found ${f} files to hash.`),g.digest("hex")):(u("No matches found for glob"),"")})}var Sse=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function u5e(t,e){return Sse(this,void 0,void 0,function*(){return yield T1.create(t,e)})}function Tse(t){return Sse(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield u5e(e,{followSymbolicLinks:i});return Nse(o,r,n)})}import*as _P from"path";var d5e="Gradle User Home",xse="BASIC_CACHE_PRIMARY_KEY",Rse="BASIC_CACHE_RESTORED_KEY",h5e="setup-java",Dse=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],D1=class{async restore(e,r){let s=kse(e),n=await g5e();jp(xse,n);try{let i=await _re(s,n);i?(jp(Rse,i),he(`Basic caching restored from cache key: ${i}`)):he("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ut(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){let n=zA(xse),i=zA(Rse);if(s.readOnly)return{status:"read-only",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===n)return he(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=kse(e);try{return await Hre(o,n)===-1?(ut(`Basic caching failed to save entry with key \`${n}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(he(`Basic caching saved entry with key: ${n}`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,savedKey:n,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return ut(`Basic caching failed to save entry with key \`${n}\`: ${a}`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Dse}], make sure you have checked out the target repository`);return`${h5e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var p5e="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",m5e="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",GP=class{async restore(e,r){}async save(e,r,s){return{status:"disabled",entries:[]}}};async function Use(t){return t.isCacheDisabled()?(HP("Cache is disabled: will not restore state from previous builds."),new GP):t.getCacheProvider()==="basic"?(HP(m5e),new D1):(HP(p5e),E5e())}function Lse(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function E5e(){let t=C5e();return await import(f5e(t).href)}function C5e(){let t=import.meta.dirname,e=Mse.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Fse.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function HP(t){console.info(t)}import*as Hse from"util";var N5e=Ie(_se(),1);import*as YP from"fs";var _Rt=Hse.promisify(YP.readdir);var T5e={_useHtmlParser2:!1};function Mg(t,e){if(!t)return e??T5e;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var h3={};Ci(h3,{contains:()=>J1,extract:()=>yHe,html:()=>EHe,merge:()=>une,parseHTML:()=>IHe,root:()=>BHe,text:()=>vl,xml:()=>CHe});var Sc={};Ci(Sc,{DocumentPosition:()=>ei,append:()=>eHe,appendChild:()=>$5e,compareDocumentPosition:()=>one,existsOne:()=>nne,filter:()=>Og,find:()=>G1,findAll:()=>nHe,findOne:()=>Y1,findOneChild:()=>sHe,getAttributeValue:()=>K5e,getChildren:()=>Pg,getElementById:()=>AHe,getElements:()=>aHe,getElementsByClassName:()=>cHe,getElementsByTagName:()=>Ll,getElementsByTagType:()=>uHe,getFeed:()=>d3,getInnerHTML:()=>z5e,getName:()=>X5e,getOuterHTML:()=>rne,getParent:()=>sne,getSiblings:()=>u3,getText:()=>O1,hasAttrib:()=>j5e,hasChildren:()=>it,innerText:()=>z0,isCDATA:()=>Ug,isComment:()=>Ul,isDocument:()=>$n,isTag:()=>Z,isText:()=>Ms,nextElementSibling:()=>_1,prepend:()=>rHe,prependChild:()=>tHe,prevElementSibling:()=>H1,removeElement:()=>nA,removeSubsets:()=>lHe,replaceElement:()=>Z5e,testElement:()=>oHe,textContent:()=>sA,uniqueSort:()=>wc});var Zn={};Ci(Zn,{CDATA:()=>ZP,Comment:()=>zP,Directive:()=>WP,Doctype:()=>$P,ElementType:()=>ve,Root:()=>VP,Script:()=>KP,Style:()=>jP,Tag:()=>XP,Text:()=>JP,isTag:()=>qP});var ve;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(ve||(ve={}));function qP(t){return t.type===ve.Tag||t.type===ve.Script||t.type===ve.Style}var VP=ve.Root,JP=ve.Text,WP=ve.Directive,zP=ve.Comment,KP=ve.Script,jP=ve.Style,XP=ve.Tag,ZP=ve.CDATA,$P=ve.Doctype;var k1=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Lg(this,e)}},q0=class extends k1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},zo=class extends q0{constructor(){super(...arguments),this.type=ve.Text}get nodeType(){return 3}},kl=class extends q0{constructor(){super(...arguments),this.type=ve.Comment}get nodeType(){return 8}},Fl=class extends q0{constructor(e,r){super(r),this.name=e,this.type=ve.Directive}get nodeType(){return 1}},V0=class extends k1{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},J0=class extends V0{constructor(){super(...arguments),this.type=ve.CDATA}get nodeType(){return 4}},fn=class extends V0{constructor(){super(...arguments),this.type=ve.Root}get nodeType(){return 9}},Ml=class extends V0{constructor(e,r,s=[],n=e==="script"?ve.Script:e==="style"?ve.Style:ve.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,s;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[e]}}) Line truncated
`:O1(t.children):Ug(t)?O1(t.children):Ms(t)?t.data:""}function sA(t){return Array.isArray(t)?t.map(sA).join(""):it(t)&&!Ul(t)?sA(t.children):Ms(t)?t.data:""}function z0(t){return Array.isArray(t)?t.map(z0).join(""):it(t)&&(t.type===ve.Tag||Ug(t))?z0(t.children):Ms(t)?t.data:""}function Pg(t){return it(t)?t.children:[]}function sne(t){return t.parent||null}function u3(t){let e=sne(t);if(e!=null)return Pg(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function K5e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function j5e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function X5e(t){return t.name}function _1(t){let{next:e}=t;for(;e!==null&&!Z(e);)({next:e}=e);return e}function H1(t){let{prev:e}=t;for(;e!==null&&!Z(e);)({prev:e}=e);return e}function nA(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Z5e(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function $5e(t,e){if(nA(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function eHe(t,e){nA(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function tHe(t,e){if(nA(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function rHe(t,e){nA(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function Og(t,e,r=!0,s=1/0){return G1(t,Array.isArray(e)?e:[e],r,s)}function G1(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&it(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function sHe(t,e){return e.find(t)}function Y1(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(Z(i)&&t(i))return i;if(r&&it(i)&&i.children.length>0){let o=Y1(t,i.children,!0);if(o)return o}}return null}function nne(t,e){return(Array.isArray(e)?e:[e]).some(r=>Z(r)&&t(r)||it(r)&&nne(t,r.children))}function nHe(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];Z(i)&&t(i)&&r.push(i),it(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var q1={tag_name(t){return typeof t=="function"?e=>Z(e)&&t(e.name):t==="*"?Z:e=>Z(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Ms(e)&&t(e.data):e=>Ms(e)&&e.data===t}};function l3(t,e){return typeof e=="function"?r=>Z(r)&&e(r.attribs[t]):r=>Z(r)&&r.attribs[t]===e}function iHe(t,e){return r=>t(r)||e(r)}function ine(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(q1,r)?q1[r](s):l3(r,s)});return e.length===0?null:e.reduce(iHe)}function oHe(t,e){let r=ine(t);return r?r(e):!0}function aHe(t,e,r,s=1/0){let n=ine(t);return n?Og(n,e,r,s):[]}function AHe(t,e,r=!0){return Array.isArray(e)||(e=[e]),Y1(l3("id",t),e,r)}function Ll(t,e,r=!0,s=1/0){return Og(q1.tag_name(t),e,r,s)}function cHe(t,e,r=!0,s=1/0){return Og(l3("class",t),e,r,s)}function uHe(t,e,r=!0,s=1/0){return Og(q1.tag_type(t),e,r,s)}function lHe(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var ei;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(ei||(ei={}));function one(t,e){let r=[],s=[];if(t===e)return 0;let n=it(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=it(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return ei.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?ei.FOLLOWING|ei.CONTAINED_BY:ei.FOLLOWING:a===t?ei.PRECEDING|ei.CONTAINS:ei.PRECEDING}function wc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=one(e,r);return s&ei.PRECEDING?-1:s&ei.FOLLOWING?1:0}),t}function d3(t){let e=V1(pHe,t);return e?e.name==="feed"?dHe(e):hHe(e):null}function dHe(t){var e;let r=t.children,s={type:"atom",items:Ll("entry",r).map(o=>{var a;let{children:A}=o,c={media:ane(A)};Us(c,"id","id",A),Us(c,"title","title",A);let u=(a=V1("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=Nc("summary",A)||Nc("content",A);l&&( Line truncated
`,c=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>s.graphql(A,{id:u.id}).then(()=>me(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>at(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function fne(t){return`<!-- gradle-job-summary: ${t1.constructJobCorrelator(t.workflow,t.job,Q3())} -->`}var pne=class t{constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static{this.whitespace=/\s/}static parse(e){let r=e.trim();if(!r)return null;let s=new Array,n=r.split(this.keyDelimiter);for(let[i,o]of n.entries()){let a=o.indexOf(this.hostDelimiter);if(a===-1)return this.warnBadlyFormed(i,n.length,`no '${this.hostDelimiter}' separator`);let A=o.substring(0,a),c=o.substring(a+1);if(!A)return this.warnBadlyFormed(i,n.length,"empty server name");if(!c)return this.warnBadlyFormed(i,n.length,"empty key");if(this.whitespace.test(A))return this.warnBadlyFormed(i,n.length,"whitespace in the server name");if(this.whitespace.test(c))return this.warnBadlyFormed(i,n.length,"whitespace in the key");s.push({hostname:A,key:c})}return new t(s)}static warnBadlyFormed(e,r,s){let n=r>1?`entry ${e+1} of ${r}`:"the value";return at(`Ignoring badly formed Develocity access key: ${s} in ${n}. The expected format is 'server${this.hostDelimiter}key[${this.keyDelimiter}server${this.hostDelimiter}key]*'.`),null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}};import*as pi from"fs";import*as EA from"path";function mne(){return Cne().map(e=>{let r=pi.readFileSync(e,"utf8"),s=JSON.parse(r);return Z5e(e,s),s})}function Ene(){Cne().forEach(eGe)}function Cne(){let t=EA.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return pi.existsSync(t)?pi.readdirSync(t).map(e=>EA.resolve(t,e)).filter(e=>EA.extname(e)===".json"&&!$5e(e)):[]}function Z5e(t,e){let r=EA.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!pi.existsSync(r))return;let s=EA.resolve(r,EA.basename(t));if(pi.existsSync(s)){let n=pi.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function $5e(t){let e=`${t}.processed`;return pi.existsSync(e)}function eGe(t){let e=`${t}.processed`;pi.writeFileSync(e,"")}import*as bne from"fs";import*as wne from"path";import{pathToFileURL as nGe}from"url";import*as x3 from"path";var tGe="Gradle User Home",Ine="BASIC_CACHE_PRIMARY_KEY",Bne="BASIC_CACHE_RESTORED_KEY",rGe="setup-java",yne=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],a1=class{async restore(e,r){let s=Qne(e),n=await sGe();Im(Ine,n);try{let i=await Xse(s,n);i?(Im(Bne,i),me(`Basic caching restored from cache key: ${i}`)):me("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){at(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){let n=gc(Ine),i=gc(Bne);if(s.readOnly)return{status:"read-only",entries:[y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===n)return me(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),{status:"enabled",entries:[y0({primaryKey:n,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=Qne(e);try{return await Zse(o,n)===-1?(at(`Basic caching failed to save entry with key \`${n}\`. See preceding log output for the cause.`),{status:"enabled",entries:[y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(me(`Basic caching saved entry with key: ${n}`),{status:"enabled",entries:[y0({primaryKey:n,restoredKey:i,savedKey:n,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return at(`Basic caching failed to save entry with key \`${n}\`: ${a}`),{status:"enabled",entries:[y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function y0(t){return{entryName:tGe,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}function Qne(t){return[x3.join(t,"caches"),x3.join(t,"wrapper")]}async function sGe(){let t=await pj(yne.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${yne}], make sure you have checked out the target repository`);return`${rGe}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var iGe="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",oGe="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",aGe="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",c1=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,s){return{status:this.status,entries:[]}}};async function Nne(t){return t.getCacheProvider()==="external"?(A1(aGe),new c1("external")):t.isCacheDisabled()?(A1("Cache is disabled: will not restore state from previous builds."),new c1("disabled")):t.getCacheProvider()==="basic"?(A1(oGe),new a1):(A1(iGe),AGe())}function Sne(t){if(!(t.isCacheDisabled()||t.getCacheProvider()==="external"))return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function AGe(){let t=cGe();return await import(nGe(t).href)}function cGe(){let t=import.meta.dirname,e=wne.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(bne.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function A1(t){console.info(t)}import*as kne from"util";var pGe=Ne(Rne(),1);import*as D3 from"fs";var zLt=kne.promisify(D3.readdir);var EGe={_useHtmlParser2:!1};function jh(t,e){if(!t)return e??EGe;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var e8={};Pi(e8,{contains:()=>b1,extract:()=>d9e,html:()=>A9e,merge:()=>tie,parseHTML:()=>u9e,root:()=>l9e,text:()=>Wl,xml:()=>c9e});var Vc={};Pi(Vc,{DocumentPosition:()=>Ci,append:()=>qGe,appendChild:()=>YGe,compareDocumentPosition:()=>Xne,existsOne:()=>Kne,filter:()=>tf,find:()=>I1,findAll:()=>zGe,findOne:()=>B1,findOneChild:()=>WGe,getAttributeValue:()=>OGe,getChildren:()=>ef,getElementById:()=>ZGe,getElements:()=>XGe,getElementsByClassName:()=>$Ge,getElementsByTagName:()=>Jl,getElementsByTagType:()=>e9e,getFeed:()=>$3,getInnerHTML:()=>PGe,getName:()=>HGe,getOuterHTML:()=>Wne,getParent:()=>zne,getSiblings:()=>X3,getText:()=>m1,hasAttrib:()=>_Ge,hasChildren:()=>gt,innerText:()=>S0,isCDATA:()=>Xh,isComment:()=>Vl,isDocument:()=>Ei,isTag:()=>te,isText:()=>Zs,nextElementSibling:()=>E1,prepend:()=>JGe,prependChild:()=>VGe,prevElementSibling:()=>C1,removeElement:()=>BA,removeSubsets:()=>t9e,replaceElement:()=>GGe,testElement:()=>jGe,textContent:()=>IA,uniqueSort:()=>Yc});var mi={};Pi(mi,{CDATA:()=>O3,Comment:()=>U3,Directive:()=>M3,Doctype:()=>_3,ElementType:()=>Je,Root:()=>k3,Script:()=>L3,Style:()=>v3,Tag:()=>P3,Text:()=>F3,isTag:()=>R3});var Je;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Je||(Je={}));function R3(t){return t.type===Je.Tag||t.type===Je.Script||t.type===Je.Style}var k3=Je.Root,F3=Je.Text,M3=Je.Directive,U3=Je.Comment,L3=Je.Script,v3=Je.Style,P3=Je.Tag,O3=Je.CDATA,_3=Je.Doctype;var u1=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Zh(this,e)}},Q0=class extends u1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},la=class extends Q0{constructor(){super(...arguments),this.type=Je.Text}get nodeType(){return 3}},Gl=class extends Q0{constructor(){super(...arguments),this.type=Je.Comment}get nodeType(){return 8}},Yl=class extends Q0{constructor(e,r){super(r),this.name=e,this.type=Je.Directive}get nodeType(){return 1}},b0=class extends u1{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},w0=class extends b0{constructor(){super(...arguments),this.type=Je.CDATA}get nodeType(){return 4}},Rn=class extends b0{constructor(){super(...arguments),this.type=Je.Root}get nodeType(){return 9}},ql=class extends b0{constructor(e,r,s=[],n=e==="script"?Je.Script:e==="style"?Je.Style:Je.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){ret Line truncated
`:m1(t.children):Xh(t)?m1(t.children):Zs(t)?t.data:""}function IA(t){return Array.isArray(t)?t.map(IA).join(""):gt(t)&&!Vl(t)?IA(t.children):Zs(t)?t.data:""}function S0(t){return Array.isArray(t)?t.map(S0).join(""):gt(t)&&(t.type===Je.Tag||Xh(t))?S0(t.children):Zs(t)?t.data:""}function ef(t){return gt(t)?t.children:[]}function zne(t){return t.parent||null}function X3(t){let e=zne(t);if(e!=null)return ef(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function OGe(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function _Ge(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function HGe(t){return t.name}function E1(t){let{next:e}=t;for(;e!==null&&!te(e);)({next:e}=e);return e}function C1(t){let{prev:e}=t;for(;e!==null&&!te(e);)({prev:e}=e);return e}function BA(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function GGe(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function YGe(t,e){if(BA(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function qGe(t,e){BA(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function VGe(t,e){if(BA(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function JGe(t,e){BA(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function tf(t,e,r=!0,s=1/0){return I1(t,Array.isArray(e)?e:[e],r,s)}function I1(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&gt(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function WGe(t,e){return e.find(t)}function B1(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(te(i)&&t(i))return i;if(r&&gt(i)&&i.children.length>0){let o=B1(t,i.children,!0);if(o)return o}}return null}function Kne(t,e){return(Array.isArray(e)?e:[e]).some(r=>te(r)&&t(r)||gt(r)&&Kne(t,r.children))}function zGe(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];te(i)&&t(i)&&r.push(i),gt(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var y1={tag_name(t){return typeof t=="function"?e=>te(e)&&t(e.name):t==="*"?te:e=>te(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Zs(e)&&t(e.data):e=>Zs(e)&&e.data===t}};function Z3(t,e){return typeof e=="function"?r=>te(r)&&e(r.attribs[t]):r=>te(r)&&r.attribs[t]===e}function KGe(t,e){return r=>t(r)||e(r)}function jne(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(y1,r)?y1[r](s):Z3(r,s)});return e.length===0?null:e.reduce(KGe)}function jGe(t,e){let r=jne(t);return r?r(e):!0}function XGe(t,e,r,s=1/0){let n=jne(t);return n?tf(n,e,r,s):[]}function ZGe(t,e,r=!0){return Array.isArray(e)||(e=[e]),B1(Z3("id",t),e,r)}function Jl(t,e,r=!0,s=1/0){return tf(y1.tag_name(t),e,r,s)}function $Ge(t,e,r=!0,s=1/0){return tf(Z3("class",t),e,r,s)}function e9e(t,e,r=!0,s=1/0){return tf(y1.tag_type(t),e,r,s)}function t9e(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var Ci;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ci||(Ci={}));function Xne(t,e){let r=[],s=[];if(t===e)return 0;let n=gt(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=gt(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return Ci.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Ci.FOLLOWING|Ci.CONTAINED_BY:Ci.FOLLOWING:a===t?Ci.PRECEDING|Ci.CONTAINS:Ci.PRECEDING}function Yc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=Xne(e,r);return s&Ci.PRECEDING?-1:s&Ci.FOLLOWING?1:0}),t}function $3(t){let e=Q1(o9e,t);return e?e.name==="feed"?r9e(e):s9e(e):null}function r9e(t){var e;let r=t.children,s={type:"atom",items:Jl("entry",r).map(o=>{var a;let{children:A}=o,c={media:Zne(A)};$s(c,"id","id",A),$s(c,"title","title",A);let u=(a=Q1("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=qc("summary",A)||qc("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var si=Ie(Tc(),1);var x3={};function R3(t,e){return t===si.default.falseFunc?si.default.falseFunc:r=>e.isTag(r)&&t(r)}function D3(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function T3(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var S3=(t,e,r,s,n)=>{let i=n(e,T3(r),s);return i===si.default.trueFunc?t:i===si.default.falseFunc?si.default.falseFunc:o=>i(o)&&t(o)},nw={is:S3,matches:S3,where:S3,not(t,e,r,s,n){let i=n(e,T3(r),s);return i===si.default.falseFunc?t:i===si.default.trueFunc?si.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=T3(r);o.relativeSelector=!0;let a=e.some(u=>u.some(tE))?[x3]:void 0,A=n(e,o,a);if(A===si.default.falseFunc)return si.default.falseFunc;let c=R3(A,i);if(a&&A!==si.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),g=u?[...d,...D3(l,i)]:d;return i.existsOne(c,g)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Kne(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in nw))throw new Error(`Unknown pseudo-class :${o}(${a})`);return nw[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:sw[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,zne.parse)(c);return nw.is(t,u,r,s,n)}if(typeof A=="function")return N3(A,o,a,1),u=>A(u,a)&&t(u);if(o in zg)return zg[o](t,a,r,s);if(o in sE){let u=sE[o];return N3(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ni=Ie(Jg(),1);function k3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function jne(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ni.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ni.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ni.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),qne[e.action](t,e,r)}case ni.SelectorType.Pseudo:return Kne(t,e,r,s,n);case ni.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case ni.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=k3(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=k3(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=k3(c,i));return!1};case ni.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ni.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ni.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case ni.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case ni.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Xne(t,e,r){let s=iw(t,e,r);return R3(s,e.adapter)}function iw(t,e,r){let s=typeof t=="string"?(0,Vi.parse)(t):t;return ow(s,e,r)}function Zne(t){return t.type===Vi.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Zne)))}var a9e={type:Vi.SelectorType.Descendant},A9e={type:"_flexibleDescendant"},c9e={type:Vi.SelectorType.Pseudo,name:"scope",data:null};function u9e(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===x3||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(gie,`\r
`)}}).toArray()}var z3={};Ci(z3,{extract:()=>wGe});function bGe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function wGe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=bGe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Dc=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Dc.prototype.cheerio="[cheerio object]";Dc.prototype.splice=Array.prototype.splice;Dc.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Dc.prototype,B3,q3,V3,J3,W3,z3);function fie(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Mg(n),a=t(s,o,i,null);class A extends Dc{_make(l,d){let g=c(l,d);return g.prevObject=this,g}_parse(l,d,g,f){return t(l,d,g,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,g){if(u&&ti(u))return u;let f=Mg(g,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=ti(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&K0(u)?t(u,f,!1,null).children:NGe(u)?[u]:Array.isArray(u)?u:void 0,C=new A(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let b=u,S=l?typeof l=="string"?K0(l)?new A([t(l,f,!1,null)],I,f):(b=`${l} ${b}`,I):ti(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return S?S.find(b):C}return Object.assign(c,h3,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function NGe(t){return!!t.name||t.type===Zn.Root||t.type===Zn.Text||t.type===Zn.Comment}var SGe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),dt="\uFFFD",B;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(B||(B={}));var As={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function dw(t){return t>=55296&&t<=57343}function pie(t){return t>=56320&&t<=57343}function mie(t,e){return(t-55296)*1024+9216+e}function hw(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function gw(t){return t>=64976&&t<=65007||SGe.has(t)}var R;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var yi=Ne(Jc(),1);var p8={};function m8(t,e){return t===yi.default.falseFunc?yi.default.falseFunc:r=>e.isTag(r)&&t(r)}function E8(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function f8(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var h8=(t,e,r,s,n)=>{let i=n(e,f8(r),s);return i===yi.default.trueFunc?t:i===yi.default.falseFunc?yi.default.falseFunc:o=>i(o)&&t(o)},L1={is:h8,matches:h8,where:h8,not(t,e,r,s,n){let i=n(e,f8(r),s);return i===yi.default.falseFunc?t:i===yi.default.trueFunc?yi.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=f8(r);o.relativeSelector=!0;let a=e.some(u=>u.some(M0))?[p8]:void 0,A=n(e,o,a);if(A===yi.default.falseFunc)return yi.default.falseFunc;let c=m8(A,i);if(a&&A!==yi.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...E8(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function _ie(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in L1))throw new Error(`Unknown pseudo-class :${o}(${a})`);return L1[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:U1[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,Oie.parse)(c);return L1.is(t,u,r,s,n)}if(typeof A=="function")return g8(A,o,a,1),u=>A(u,a)&&t(u);if(o in lf)return lf[o](t,a,r,s);if(o in L0){let u=L0[o];return g8(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Qi=Ne(cf(),1);function C8(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function Hie(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Qi.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Qi.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Qi.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),Uie[e.action](t,e,r)}case Qi.SelectorType.Pseudo:return _ie(t,e,r,s,n);case Qi.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Qi.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=C8(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=C8(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=C8(c,i));return!1};case Qi.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Qi.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Qi.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Qi.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Qi.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Gie(t,e,r){let s=v1(t,e,r);return m8(s,e.adapter)}function v1(t,e,r){let s=typeof t=="string"?(0,ao.parse)(t):t;return P1(s,e,r)}function Yie(t){return t.type===ao.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Yie)))}var X9e={type:ao.SelectorType.Descendant},Z9e={type:"_flexibleDescendant"},$9e={type:ao.SelectorType.Pseudo,name:"scope",data:null};function eYe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===p8||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(ioe,`\r
`)}}).toArray()}var U8={};Pi(U8,{extract:()=>fqe});function hqe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function fqe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=hqe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Kc=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Kc.prototype.cheerio="[cheerio object]";Kc.prototype.splice=Array.prototype.splice;Kc.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Kc.prototype,A8,R8,k8,F8,M8,U8);function ooe(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=jh(n),a=t(s,o,i,null);class A extends Kc{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Ii(u))return u;let f=jh(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=Ii(p)?p:new A(p,null,f);if(E._root=E,!u)return new A(void 0,E,f);let m=typeof u=="string"&&T0(u)?t(u,f,!1,null).children:pqe(u)?[u]:Array.isArray(u)?u:void 0,I=new A(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let N=u,T=l?typeof l=="string"?T0(l)?new A([t(l,f,!1,null)],E,f):(N=`${l} ${N}`,E):Ii(l)?l:new A(Array.isArray(l)?l:[l],E,f):E;return T?T.find(N):I}return Object.assign(c,e8,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function pqe(t){return!!t.name||t.type===mi.Root||t.type===mi.Text||t.type===mi.Comment}var mqe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Bt="\uFFFD",y;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(y||(y={}));var bs={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function q1(t){return t>=55296&&t<=57343}function aoe(t){return t>=56320&&t<=57343}function Aoe(t,e){return(t-55296)*1024+9216+e}function V1(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function J1(t){return t>=64976&&t<=65007||mqe.has(t)}var k;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -359,5 +366,8 @@ content-type/dist/index.js:
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
@octokit/graphql/dist-bundle/index.js:
(* v8 ignore if -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+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.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": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,SAALine 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.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": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,SAALine 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
}
+170 -158
View File
@@ -1,120 +1,119 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var e6e=Object.create;var pL=Object.defineProperty;var t6e=Object.getOwnPropertyDescriptor;var r6e=Object.getOwnPropertyNames;var n6e=Object.getPrototypeOf,s6e=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},xa=(t,e)=>{for(var r in e)pL(t,r,{get:e[r],enumerable:!0})},i6e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of r6e(e))!s6e.call(t,s)&&s!==r&&pL(t,s,{get:()=>e[s],enumerable:!(n=t6e(e,s))||n.enumerable});return t};var ge=(t,e,r)=>(r=t!=null?e6e(n6e(t)):{},i6e(e||!t||!t.__esModule?pL(r,"default",{value:t,enumerable:!0}):r,t));var See=C(Kp=>{"use strict";var XWt=Q("net"),l6e=Q("tls"),IL=Q("http"),bee=Q("https"),d6e=Q("events"),ZWt=Q("assert"),h6e=Q("util");Kp.httpOverHttp=f6e;Kp.httpsOverHttp=g6e;Kp.httpOverHttps=p6e;Kp.httpsOverHttps=m6e;function f6e(t){var e=new Au(t);return e.request=IL.request,e}function g6e(t){var e=new Au(t);return e.request=IL.request,e.createSocket=Qee,e.defaultPort=443,e}function p6e(t){var e=new Au(t);return e.request=bee.request,e}function m6e(t){var e=new Au(t);return e.request=bee.request,e.createSocket=Qee,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||IL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=wee(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}h6e.inherits(Au,d6e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=yL({request:e},i.options,wee(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};Au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=yL({},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")),kl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){kl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){kl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return kl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),kl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Au.prototype.removeSocket=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)})}};function Qee(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=yL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=l6e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function wee(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function yL(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,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var kl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?kl=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)}:kl=function(){};Kp.debug=kl});var BL=C((tJt,Nee)=>{Nee.exports=See()});var br=C((rJt,Tee)=>{Tee.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 _t=C((nJt,Zee)=>{"use strict";var xee=Symbol.for("undici.error.UND_ERR"),Qr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[xee]===!0}[xee]=!0},Ree=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bL=class extends Qr{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[Ree]===!0}[Ree]=!0},Dee=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),QL=class extends Qr{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[Dee]===!0}[Dee]=!0},kee=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),wL=class extends Qr{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[kee]===!0}[kee]=!0},vee=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SL=class extends Qr{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[vee]===!0}[vee]=!0},_ee=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),NL=class extends Qr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function vHe(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 o=n[i-1].trim();if(mHe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function _He(){return"allowed"}function FHe(){return"success"}function MHe(){return"success"}function LHe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function UHe(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&&EU(t.origin)&&!EU(OI(t))&&(e=null);break;case"same-origin":vS(t,OI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function om(t,e){return t}function PHe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:om(t.domainLookupStartTime,r),domainLookupEndTime:om(t.domainLookupEndTime,r),connectionStartTime:om(t.connectionStartTime,r),connectionEndTime:om(t.connectionEndTime,r),secureConnectionStartTime:om(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function OHe(t){return om(BHe.now(),t)}function HHe(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 hre(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function GHe(t){return{referrerPolicy:t.referrerPolicy}}function qHe(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let a=are();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=mU(r),s=mU(r,!0);n.toString().length>4096&&(n=s);let i=vS(t,n),o=PI(n)&&!PI(t.url);switch(e){case"origin":return s??mU(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 a=OI(t);return vS(n,a)?n:PI(n)&&!PI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function mU(t,e){return Yh(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 PI(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"))}}function YHe(t,e){if(kS===void 0)return!0;let r=fre(e);if(r==="no metadata"||r.length===0)return!0;let n=WHe(r),s=JHe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=kS.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)),zHe(c,a))return!0}return!1}var VHe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function fre(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=VHe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Are.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function WHe(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}function JHe(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}function zHe(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 jHe(t){}function vS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function KHe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function $He(t){return t.controller.state==="aborted"}function XHe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function ZHe(t){return wHe[t.toLowerCase()]??t}function e9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yh(typeof e=="string"),e}var t9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function gre(t,e,r=0,n=1){class s{ Line truncated
`);function D9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function k9e(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}function v9e(t,e){FS(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 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(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&MS(t,x9e,i)||i.position===t.length-4&&MS(t,R9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=_9e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",D9e(u)||(u=""),h=new N9e([d],A,{type:u})):h=B9e(Buffer.from(d)),FS(Nre(c)),FS(typeof h=="string"&&Nre(h)||Q9e(h)),s.push(w9e(c,h,A))}}function _9e(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 o=cm(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wU(o,!0,!0,a=>a===9||a===32),!b9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,cm(a=>a===32||a===9,t,e),y9e(o)){case"content-disposition":{if(r=n=null,!MS(t,T9e,e)||(e.position+=17,r=Rre(t,e),r===null))return"failure";if(MS(t,xre,e)){let a=e.position+xre.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Rre(t,e),n===null))return"failure"}break}case"content-type":{let a=cm(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),s=Tre(a);break}case"content-transfer-encoding":{let a=cm(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),i=Tre(a);break}default:cm(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Rre(t,e){FS(t[e.position-1]===34);let r=cm(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)}function cm(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wU(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)}function MS(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}Dre.exports={multipartFormDataParser:v9e,validateBoundary:k9e}});var lm=C((TJt,Gre)=>{"use strict";var qI=dt(),{ReadableStreamFrom:F9e,isBlobLike:vre,isReadableStreamLike:M9e,readableStreamClose:L9e,createDeferredPromise:U9e,fullyReadBody:P9e,extractMimeType:O9e,utf8DecodeBytes:Mre}=vi(),{FormData:_re}=GI(),{kState:um}=vl(),{webidl:H9e}=Xn(),{Blob:G9e}=Q("node:buffer"),SU=Q("node:assert"),{isErrored:Lre,isDisturbed:q9e}=Q("node:stream"),{isArrayBuffer:Y9e}=Q("node:util/types"),{serializeAMimeType:V9e}=ei(),{multipartFormDataParser:W9e}=kre(),NU;try{let t=Q("node:crypto");NU=e=>t.randomInt(0,e)}catch{NU=t=>Math.floor(Math.random(t))}var LS=new TextEncoder;function J9e(){}var Ure=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Pre;Ure&&(Pre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!q9e(e)&&!Lre(e)&&e.cancel("Response object has been garbage collected").catch(J9e)}));function Ore(t,e=!1){let r=null;t instanceof ReadableStream?r=t:vre(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?LS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>L9e(c))},start(){},type:"bytes"}),SU(M9e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Y9e(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(qI.isFormDataLike(t)){let c=`----formdata-undici-0${`${NU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
var cWe=Object.create;var q3=Object.defineProperty;var AWe=Object.getOwnPropertyDescriptor;var uWe=Object.getOwnPropertyNames;var lWe=Object.getPrototypeOf,dWe=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var y=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Fa=(t,e)=>{for(var r in e)q3(t,r,{get:e[r],enumerable:!0})},hWe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of uWe(e))!dWe.call(t,s)&&s!==r&&q3(t,s,{get:()=>e[s],enumerable:!(n=AWe(e,s))||n.enumerable});return t};var be=(t,e,r)=>(r=t!=null?cWe(lWe(t)):{},hWe(e||!t||!t.__esModule?q3(r,"default",{value:t,enumerable:!0}):r,t));var Kae=y(F0=>{"use strict";var usr=Q("net"),yWe=Q("tls"),W3=Q("http"),Jae=Q("https"),CWe=Q("events"),lsr=Q("assert"),IWe=Q("util");F0.httpOverHttp=BWe;F0.httpsOverHttp=bWe;F0.httpOverHttps=QWe;F0.httpsOverHttps=wWe;function BWe(t){var e=new id(t);return e.request=W3.request,e}function bWe(t){var e=new id(t);return e.request=W3.request,e.createSocket=Vae,e.defaultPort=443,e}function QWe(t){var e=new id(t);return e.request=Jae.request,e}function wWe(t){var e=new id(t);return e.request=Jae.request,e.createSocket=Vae,e.defaultPort=443,e}function id(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||W3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=jae(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}IWe.inherits(id,CWe.EventEmitter);id.prototype.addRequest=function(e,r,n,s){var i=this,o=J3({request:e},i.options,jae(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};id.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=J3({},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")),Yh("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Yh("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){Yh("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return Yh("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Yh(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};id.prototype.removeSocket=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)})}};function Vae(t,e){var r=this;id.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=J3({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=yWe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function jae(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function J3(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,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Yh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Yh=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)}:Yh=function(){};F0.debug=Yh});var V3=y((hsr,Xae)=>{Xae.exports=Kae()});var Xr=y((fsr,Zae)=>{Zae.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 or=y((msr,bce)=>{"use strict";var $ae=Symbol.for("undici.error.UND_ERR"),Zr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[$ae]===!0}[$ae]=!0},ece=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),j3=class extends Zr{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[ece]===!0}[ece]=!0},tce=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),K3=class extends Zr{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[tce]===!0}[tce]=!0},rce=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),X3=class extends Zr{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[rce]===!0}[rce]=!0},nce=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Z3=class extends Zr{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[nce]===!0}[nce]=!0},sce=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),$3=class extends Zr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function HJe(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 o=n[i-1].trim();if(wJe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function qJe(){return"allowed"}function GJe(){return"success"}function YJe(){return"success"}function zJe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function WJe(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&&Y4(t.origin)&&!Y4(Hb(t))&&(e=null);break;case"same-origin":nR(t,Hb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function W0(t,e){return t}function JJe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:W0(t.domainLookupStartTime,r),domainLookupEndTime:W0(t.domainLookupEndTime,r),connectionStartTime:W0(t.connectionStartTime,r),connectionEndTime:W0(t.connectionEndTime,r),secureConnectionStartTime:W0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function VJe(t){return W0(RJe.now(),t)}function jJe(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 LAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function KJe(t){return{referrerPolicy:t.referrerPolicy}}function XJe(t){let e=t.referrerPolicy;mp(e);let r=null;if(t.referrer==="client"){let a=DAe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=G4(r),s=G4(r,!0);n.toString().length>4096&&(n=s);let i=nR(t,n),o=Ob(n)&&!Ob(t.url);switch(e){case"origin":return s??G4(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 a=Hb(t);return nR(n,a)?n:Ob(n)&&!Ob(a)?"no-referrer":s}default:return o?"no-referrer":s}}function G4(t,e){return mp(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 Ob(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"))}}function ZJe(t,e){if(rR===void 0)return!0;let r=_Ae(e);if(r==="no metadata"||r.length===0)return!0;let n=eVe(r),s=tVe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=rR.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)),rVe(c,a))return!0}return!1}var $Je=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function _Ae(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=$Je.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();vAe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function eVe(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}function tVe(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}function rVe(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 nVe(t){}function nR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function sVe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function iVe(t){return t.controller.state==="aborted"}function oVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function aVe(t){return vJe[t.toLowerCase()]??t}function cVe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return mp(typeof e=="string"),e}var AVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function UAe(t,e,r=0,n=1){class s{ Line truncated
`);function UVe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function OVe(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}function HVe(t,e){iR(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 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(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&oR(t,LVe,i)||i.position===t.length-4&&oR(t,_Ve,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=qVe(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",UVe(u)||(u=""),h=new MVe([d],A,{type:u})):h=RVe(Buffer.from(d)),iR(XAe(c)),iR(typeof h=="string"&&XAe(h)||kVe(h)),s.push(vVe(c,h,A))}}function qVe(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 o=V0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=X4(o,!0,!0,a=>a===9||a===32),!DVe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,V0(a=>a===32||a===9,t,e),TVe(o)){case"content-disposition":{if(r=n=null,!oR(t,FVe,e)||(e.position+=17,r=eue(t,e),r===null))return"failure";if(oR(t,$Ae,e)){let a=e.position+$Ae.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=eue(t,e),n===null))return"failure"}break}case"content-type":{let a=V0(c=>c!==10&&c!==13,t,e);a=X4(a,!1,!0,c=>c===9||c===32),s=ZAe(a);break}case"content-transfer-encoding":{let a=V0(c=>c!==10&&c!==13,t,e);a=X4(a,!1,!0,c=>c===9||c===32),i=ZAe(a);break}default:V0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function eue(t,e){iR(t[e.position-1]===34);let r=V0(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)}function V0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function X4(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)}function oR(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}tue.exports={multipartFormDataParser:HVe,validateBoundary:OVe}});var X0=y((Osr,due)=>{"use strict";var Yb=vt(),{ReadableStreamFrom:GVe,isBlobLike:nue,isReadableStreamLike:YVe,readableStreamClose:zVe,createDeferredPromise:WVe,fullyReadBody:JVe,extractMimeType:VVe,utf8DecodeBytes:oue}=qo(),{FormData:sue}=Gb(),{kState:K0}=zh(),{webidl:jVe}=zs(),{Blob:KVe}=Q("node:buffer"),Z4=Q("node:assert"),{isErrored:aue,isDisturbed:XVe}=Q("node:stream"),{isArrayBuffer:ZVe}=Q("node:util/types"),{serializeAMimeType:$Ve}=ro(),{multipartFormDataParser:eje}=rue(),$4;try{let t=Q("node:crypto");$4=e=>t.randomInt(0,e)}catch{$4=t=>Math.floor(Math.random(t))}var aR=new TextEncoder;function tje(){}var cue=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Aue;cue&&(Aue=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!XVe(e)&&!aue(e)&&e.cancel("Response object has been garbage collected").catch(tje)}));function uue(t,e=!1){let r=null;t instanceof ReadableStream?r=t:nue(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?aR.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>zVe(c))},start(){},type:"bytes"}),Z4(YVe(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(ZVe(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(Yb.isFormDataLike(t)){let c=`----formdata-undici-0${`${$4(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=LS.encode(A+`; name="${u(l(E))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,g]of t)if(typeof g=="string"){let C=aR.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=LS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
${l(g)}\r
`);d.push(C),i+=C.byteLength}else{let C=aR.encode(`${A}; name="${u(l(E))}"`+(g.name?`; filename="${u(g.name)}"`:"")+`\r
Content-Type: ${g.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=LS.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(vre(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(qI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:F9e(t)}if((typeof s=="string"||qI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Lre(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function z9e(t,e=!1){return t instanceof ReadableStream&&(SU(!qI.isDisturbed(t),"The body has already been consumed."),SU(!t.locked,"The stream is locked.")),Ore(t,e)}function j9e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function K9e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function $9e(t){return{blob(){return Am(this,r=>{let n=Fre(this);return n===null?n="":n&&(n=V9e(n)),new G9e([r],{type:n})},t)},arrayBuffer(){return Am(this,r=>new Uint8Array(r).buffer,t)},text(){return Am(this,Mre,t)},json(){return Am(this,Z9e,t)},formData(){return Am(this,r=>{let n=Fre(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=W9e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new _re;return i[um]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new _re;for(let[o,a]of s)i.append(o,a);return i}}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 X9e(t){Object.assign(t.prototype,$9e(t))}async function Am(t,e,r){if(H9e.brandCheck(t,r),Hre(t))throw new TypeError("Body is unusable: Body has already been read");K9e(t[um]);let n=U9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[um].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await P9e(t[um].body,i,s),n.promise)}function Hre(t){let e=t[um].body;return e!=null&&(e.stream.locked||qI.isDisturbed(e.stream))}function Z9e(t){return JSON.parse(Mre(t))}function Fre(t){let e=t[um].headersList,r=O9e(e);return r==="failure"?null:r}Gre.exports={extractBody:Ore,safelyExtractBody:z9e,cloneBody:j9e,mixinBody:X9e,streamRegistry:Pre,hasFinalizationRegistry:Ure,bodyUnusable:Hre}});var sne=C((xJt,nne)=>{"use strict";var Me=Q("node:assert"),Pe=dt(),{channels:qre}=Xp(),TU=AU(),{RequestContentLengthMismatchError:Vh,ResponseContentLengthMismatchError:Yre,RequestAbortedError:Xre,InvalidArgumentError:eGe,HeadersTimeoutError:tGe,HeadersOverflowError:rGe,SocketError:dm,InformationalError:hm,BodyTimeoutError:nGe,HTTPParserError:sGe,ResponseExceededMaxSizeError:iGe}=_t(),{kUrl:Zre,kReset:ti,kClient:HS,kParser:lr,kBlocking:WI,kRunning:cn,kPending:ene,kSize:Vre,kWriting:_l,kQueue:Da,kNoRef:YI,kKeepAliveDefaultTimeout:oGe,kHostHeader:aGe,kPendingIdx:cGe,kRunningIdx:To,kError:Ts,kPipelining:GS,kSocket:Jh,kKeepAliveTimeoutValue:YS,kMaxHeadersSize:xU,kKeepAliveMaxTimeout:AGe,kKeepAliveTimeoutThreshold:uGe,kHeadersTimeout:lGe,kBodyTimeout:dGe,kStrictContentLength:kU,kMaxRequests:Wre,kCounter:hGe,kMaxResponseSize:fGe,kOnError:Jre,kResume:gu,kHTTPContext:tne}=br(),_i=Pte(),zre=Buffer.alloc(0),US=Buffer[Symbol.species],PS=Pe.addListener,gGe=Pe.removeAllListeners,zh=Symbol("kIdleSocketValidation"),Wh=Symbol("kIdleSocketValidationTimeout"),MU=Symbol("kSocketUsed"),RU;async function pGe(){let t=process.env.JEST_WORKER_ID?dU():void 0,e;try{e=await WebAssembly.compile(Gte())}catch{e=await WebAssembly.compile(t||dU())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onStatus(new US(Tc.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Ur.ptr===r),Ur.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onHeaderField(new US(Tc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onHeaderValue(new US(Tc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Ur.ptr===r),Ur.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onBody(new US(Tc.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Ur.ptr===r),Ur.onMessageComplete()||0)}})}var DU=null,vU=pGe();vU.catch();var Ur=null,Tc=null,OS=0,xc=null,mGe=0,VI=1,fm=2|VI,qS=4|VI,_U=8|mGe,FU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[xU])&&e[xU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(_i.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[aGe],i?g+=`connection: upgrade\r
`);d.push(C,g,h),typeof g.size=="number"?i+=C.byteLength+g.size+h.byteLength:f=!0}let m=aR.encode(`--${c}--\r
`);d.push(m),i+=m.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(nue(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Yb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:GVe(t)}if((typeof s=="string"||Yb.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!aue(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function rje(t,e=!1){return t instanceof ReadableStream&&(Z4(!Yb.isDisturbed(t),"The body has already been consumed."),Z4(!t.locked,"The stream is locked.")),uue(t,e)}function nje(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function sje(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function ije(t){return{blob(){return j0(this,r=>{let n=iue(this);return n===null?n="":n&&(n=$Ve(n)),new KVe([r],{type:n})},t)},arrayBuffer(){return j0(this,r=>new Uint8Array(r).buffer,t)},text(){return j0(this,oue,t)},json(){return j0(this,aje,t)},formData(){return j0(this,r=>{let n=iue(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=eje(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new sue;return i[K0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new sue;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return j0(this,r=>new Uint8Array(r),t)}}}function oje(t){Object.assign(t.prototype,ije(t))}async function j0(t,e,r){if(jVe.brandCheck(t,r),lue(t))throw new TypeError("Body is unusable: Body has already been read");sje(t[K0]);let n=WVe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[K0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await JVe(t[K0].body,i,s),n.promise)}function lue(t){let e=t[K0].body;return e!=null&&(e.stream.locked||Yb.isDisturbed(e.stream))}function aje(t){return JSON.parse(oue(t))}function iue(t){let e=t[K0].headersList,r=VVe(e);return r==="failure"?null:r}due.exports={extractBody:uue,safelyExtractBody:rje,cloneBody:nje,mixinBody:oje,streamRegistry:Aue,hasFinalizationRegistry:cue,bodyUnusable:lue}});var Sue=y((Hsr,xue)=>{"use strict";var We=Q("node:assert"),Xe=vt(),{channels:hue}=_0(),e8=M4(),{RequestContentLengthMismatchError:pp,ResponseContentLengthMismatchError:fue,RequestAbortedError:Bue,InvalidArgumentError:cje,HeadersTimeoutError:Aje,HeadersOverflowError:uje,SocketError:Z0,InformationalError:$0,BodyTimeoutError:lje,HTTPParserError:dje,ResponseExceededMaxSizeError:hje}=or(),{kUrl:bue,kReset:no,kClient:lR,kParser:Lr,kBlocking:Jb,kRunning:Yn,kPending:Que,kSize:mue,kWriting:Wh,kQueue:Zc,kNoRef:zb,kKeepAliveDefaultTimeout:fje,kHostHeader:mje,kPendingIdx:pje,kRunningIdx:_a,kError:Si,kPipelining:dR,kSocket:gp,kKeepAliveTimeoutValue:fR,kMaxHeadersSize:t8,kKeepAliveMaxTimeout:gje,kKeepAliveTimeoutThreshold:Eje,kHeadersTimeout:yje,kBodyTimeout:Cje,kStrictContentLength:s8,kMaxRequests:pue,kCounter:Ije,kMaxResponseSize:Bje,kOnError:gue,kResume:ld,kHTTPContext:wue}=Xr(),Go=AAe(),Eue=Buffer.alloc(0),cR=Buffer[Symbol.species],AR=Xe.addListener,bje=Xe.removeAllListeners,Ep=Symbol("kIdleSocketValidation"),ey=Symbol("kIdleSocketValidationTimeout"),c8=Symbol("kSocketUsed"),r8;async function Qje(){let t=process.env.JEST_WORKER_ID?_4():void 0,e;try{e=await WebAssembly.compile(dAe())}catch{e=await WebAssembly.compile(t||_4())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onStatus(new cR(XA.buffer,i,s))||0},wasm_on_message_begin:r=>(We(pn.ptr===r),pn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onHeaderField(new cR(XA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onHeaderValue(new cR(XA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(We(pn.ptr===r),pn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onBody(new cR(XA.buffer,i,s))||0},wasm_on_message_complete:r=>(We(pn.ptr===r),pn.onMessageComplete()||0)}})}var n8=null,i8=Qje();i8.catch();var pn=null,XA=null,uR=0,ZA=null,wje=0,Wb=1,ty=2|Wb,hR=4|Wb,o8=8|wje,a8=class{constructor(e,r,{exports:n}){We(Number.isFinite(e[t8])&&e[t8]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Go.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?m+=`host: ${s}\r
`:m+=t[mje],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[GS]&&!h[ti]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return qre.sendHeaders.hasSubscribers&&qre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Kre(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?Kre(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?$re(f,c.stream(),t,e,h,u,g,l):QGe(f,c,t,e,h,u,g,l):Pe.isStream(c)?bGe(f,c,t,e,h,u,g,l):Pe.isIterable(c)?$re(f,c,t,e,h,u,g,l):Me(!1),!0}function bGe(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"stream body cannot be pipelined");let c=!1,A=new VS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Xre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[_l]&&r[cn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Pe.destroy(e,f):Pe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Kre(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[dR]&&!h[no]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let g=A[E+0],C=A[E+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)m+=`${g}: ${C[I]}\r
`;else m+=`${g}: ${C}\r
`}return hue.sendHeaders.hasSubscribers&&hue.sendHeaders.publish({request:e,headers:m,socket:h}),!c||d===0?Cue(f,null,t,e,h,u,m,l):Xe.isBuffer(c)?Cue(f,c,t,e,h,u,m,l):Xe.isBlobLike(c)?typeof c.stream=="function"?Iue(f,c.stream(),t,e,h,u,m,l):kje(f,c,t,e,h,u,m,l):Xe.isStream(c)?Dje(f,c,t,e,h,u,m,l):Xe.isIterable(c)?Iue(f,c,t,e,h,u,m,l):We(!1),!0}function Dje(t,e,r,n,s,i,o,a){We(i!==0||r[Yn]===0,"stream body cannot be pipelined");let c=!1,A=new mR({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(m){Xe.destroy(this,m)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Bue;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,We(s.destroyed||s[Wh]&&r[Yn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(m){f=m}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Cue(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(We(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[ti]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[no]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[gu]()}catch(c){t(c)}}async function QGe(t,e,r,n,s,i,o,a){Me(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Vh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(We(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[ld]()}catch(c){t(c)}}async function kje(t,e,r,n,s,i,o,a){We(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new pp;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ti]=!0),r[gu]()}catch(c){t(c)}}async function $re(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Me(c===null),s[Ts]?h(s[Ts]):c=d});s.on("close",A).on("drain",A);let l=new VS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ts])throw s[Ts];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var VS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[_l]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ts])throw r[Ts];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[kU])throw new Vh;process.emitWarning(new Vh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ti]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[no]=!0),r[ld]()}catch(c){t(c)}}async function Iue(t,e,r,n,s,i,o,a){We(i!==0||r[Yn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{We(c===null),s[Si]?h(s[Si]):c=d});s.on("close",A).on("drain",A);let l=new mR({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Si])throw s[Si];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var mR=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Wh]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Si])throw r[Si];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[s8])throw new pp;process.emitWarning(new pp)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[no]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===fm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[_l]=!1,e[Ts])throw e[Ts];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Lr].timeout&&r[Lr].timeoutType===ty&&r[Lr].timeout.refresh&&r[Lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Wh]=!1,e[Si])throw e[Si];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[kU])throw new Vh;process.emitWarning(new Vh)}e[lr].timeout&&e[lr].timeoutType===fm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[gu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[_l]=!1,e&&(Me(n[cn]<=1,"pipeline should only contain this request"),s(e))}};nne.exports=EGe});var dne=C((RJt,lne)=>{"use strict";var xo=Q("node:assert"),{pipeline:wGe}=Q("node:stream"),Et=dt(),{RequestContentLengthMismatchError:LU,RequestAbortedError:ine,SocketError:JI,InformationalError:UU}=_t(),{kUrl:WS,kReset:zS,kClient:gm,kRunning:jS,kPending:SGe,kQueue:Fl,kPendingIdx:PU,kRunningIdx:ka,kError:_a,kSocket:vn,kStrictContentLength:NGe,kOnError:OU,kMaxConcurrentStreams:une,kHTTP2Session:va,kResume:Ml,kSize:TGe,kHTTPContext:xGe}=br(),pu=Symbol("open streams"),one,ane=!1,JS;try{JS=Q("node:http2")}catch{JS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:RGe,HTTP2_HEADER_METHOD:DGe,HTTP2_HEADER_PATH:kGe,HTTP2_HEADER_SCHEME:vGe,HTTP2_HEADER_CONTENT_LENGTH:_Ge,HTTP2_HEADER_EXPECT:FGe,HTTP2_HEADER_STATUS:MGe}}=JS;function LGe(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}async function UGe(t,e){t[vn]=e,ane||(ane=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=JS.connect(t[WS],{createConnection:()=>e,peerMaxConcurrentStreams:t[une]});r[pu]=0,r[gm]=t,r[vn]=e,Et.addListener(r,"error",OGe),Et.addListener(r,"frameError",HGe),Et.addListener(r,"end",GGe),Et.addListener(r,"goaway",qGe),Et.addListener(r,"close",function(){let{[gm]:s}=this,{[vn]:i}=s,o=this[vn][_a]||this[_a]||new JI("closed",Et.getSocketInfo(i));if(s[va]=null,s.destroyed){xo(s[SGe]===0);let a=s[Fl].splice(s[ka]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[va]=r,e[va]=r,Et.addListener(e,"error",function(s){xo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_a]=s,this[gm][OU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new JI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[_a]||new JI("closed",Et.getSocketInfo(this));t[vn]=null,this[va]!=null&&this[va].destroy(s),t[PU]=t[ka],xo(t[jS]===0),t.emit("disconnect",t[WS],[t],s),t[Ml]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return VGe(t,...s)},resume(){PGe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function PGe(t){let e=t[vn];e?.destroyed===!1&&(t[TGe]===0&&t[une]===0?(e.unref(),t[va].unref()):(e.ref(),t[va].ref()))}function OGe(t){xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vn][_a]=t,this[gm][OU](t)}function HGe(t,e,r){if(r===0){let n=new UU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vn][_a]=n,this[gm][OU](n)}}function GGe(){let t=new JI("other side closed",Et.getSocketInfo(this[vn]));this.destroy(t),Et.destroy(this[vn],t)}function qGe(t){let e=this[_a]||new JI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[gm];if(r[vn]=null,r[xGe]=null,this[va]!=null&&(this[va].destroy(e),this[va]=null),Et.destroy(this[vn],e),r[ka]<r[Fl].length){let n=r[Fl][r[ka]];r[Fl][r[ka]++]=null,Et.errorRequest(r,n,e),r[PU]=r[ka]}xo(r[jS]===0),r.emit("disconnect",r[WS],[r],e),r[Ml]()}function YGe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function VGe(t,e){let r=t[va],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[WS];l[RGe]=i||`${h}${f?`:${f}`:""}`,l[DGe]=n;let g=B=>{e.aborted||e.completed||(B=B||new ine,Et.errorRequest(t,e,B),d!=null&&Et.destroy(d,B),Et.destroy(u,B),t[Fl][t[ka]++]=null,t[Ml]())};try{e.onConnect(g)}catch(B){Et.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[pu],t[Fl][t[ka]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[Fl][t[ka]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[kGe]=s,l[vGe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){one??=lm().extractBody;let[B,M]=one(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),YGe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[NGe])return Et.errorRequest(t,e,new LU),!1;process.emitWarning(new LU)}m!=null&&(xo(u,"no body must not have content length"),l[_Ge]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[FGe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[mqe]=c??3e5,this[pqe]=s??3e5,this[Eqe]=I??!0,this[Cqe]=B,this[YU]=V,this[Ul]=null,this[Qqe]=P>-1?P:-1,this[Sqe]=X??100,this[Xr]=null,this[Fa]=[],this[Eu]=0,this[Ma]=0,this[$I]=ue=>WU(this,ue),this[wqe]=ue=>Qne(this,ue)}get pipelining(){return this[ZS]}set pipelining(e){this[ZS]=e,this[$I](!0)}get[ey](){return this[Fa].length-this[Ma]}get[ZI](){return this[Ma]-this[Eu]}get[XI](){return this[Fa].length-this[Eu]}get[Aqe](){return!!this[Xr]&&!this[mm]&&!this[Xr].destroyed}get[qU](){return!!(this[Xr]?.busy(null)||this[XI]>=(bne(this)||1)||this[ey]>0)}[cqe](e){wne(this),this.once("connect",e)}[bqe](e,r){let n=e.origin||this[Dc].origin,s=new rqe(n,e,r);return this[Fa].push(s),this[Kh]||(jh.bodyLength(s.body)==null&&jh.isIterable(s.body)?(this[Kh]=1,queueMicrotask(()=>WU(this))):this[$I](!0)),this[Kh]&&this[Pl]!==2&&this[qU]&&(this[Pl]=2),this[Pl]<2}async[yqe](){return new Promise(e=>{this[XI]?this[Ul]=e:e(null)})}async[Bqe](e){return new Promise(r=>{let n=this[Fa].splice(this[Ma]);for(let i=0;i<n.length;i++){let o=n[i];jh.errorRequest(this,o,e)}let s=()=>{this[Ul]&&(this[Ul](),this[Ul]=null),r(null)};this[Xr]?(this[Xr].destroy(e,s),this[Xr]=null):queueMicrotask(s),this[$I]()})}},xqe=XS();function Qne(t,e){if(t[ZI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[Ma]===t[Eu]);let r=t[Fa].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];jh.errorRequest(t,s,e)}mu(t[XI]===0)}}async function wne(t){mu(!t[mm]),mu(!t[Xr]);let{host:e,hostname:r,protocol:n,port:s}=t[Dc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(Bne.isIP(o)),r=o}t[mm]=!0,pm.beforeConnect.hasSubscribers&&pm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI]});try{let i=await new Promise((o,a)=>{t[jI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ll],localAddress:t[KI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){jh.destroy(i.on("error",Ine),new iqe);return}mu(i);try{t[Xr]=i.alpnProtocol==="h2"?await Tqe(t,i):await Nqe(t,i)}catch(o){throw i.destroy().on("error",Ine),o}t[mm]=!1,i[Iqe]=0,i[YU]=t[YU],i[aqe]=t,i[lqe]=null,pm.connected.hasSubscribers&&pm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI],socket:i}),t.emit("connect",t[Dc],[t])}catch(i){if(t.destroyed)return;if(t[mm]=!1,pm.connectError.hasSubscribers&&pm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[ZI]===0);t[ey]>0&&t[Fa][t[Ma]].servername===t[Ll];){let o=t[Fa][t[Ma]++];jh.errorRequest(t,o,i)}else Qne(t,i);t.emit("connectionError",t[Dc],[t],i)}t[$I]()}function yne(t){t[Pl]=0,t.emit("drain",t[Dc],[t])}function WU(t,e){t[Kh]!==2&&(t[Kh]=2,Rqe(t,e),t[Kh]=0,t[Eu]>256&&(t[Fa].splice(0,t[Eu]),t[Ma]-=t[Eu],t[Eu]=0))}function Rqe(t,e){for(;;){if(t.destroyed){mu(t[ey]===0);return}if(t[Ul]&&!t[XI]){t[Ul](),t[Ul]=null;return}if(t[Xr]&&t[Xr].resume(),t[qU])t[Pl]=2;else if(t[Pl]===2){e?(t[Pl]=1,queueMicrotask(()=>yne(t))):yne(t);continue}if(t[ey]===0||t[ZI]>=(bne(t)||1))return;let r=t[Fa][t[Ma]];if(t[Dc].protocol==="https:"&&t[Ll]!==r.servername){if(t[ZI]>0)return;t[Ll]=r.servername,t[Xr]?.destroy(new sqe("servername changed"),()=>{t[Xr]=null,WU(t)})}if(t[mm])return;if(!t[Xr]){wne(t);return}if(t[Xr].destroyed||t[Xr].busy(r))return;!r.aborted&&t[Xr].write(r)?t[Ma]++:t[Fa].splice(t[Ma],1)}}Sne.exports=VU});var JU=C((FJt,Nne)=>{"use strict";var eN=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)}};Nne.exports=class{constructor(){this.head=this.tail=new eN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new eN),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var xne=C((MJt,Tne)=>{var{kFree:Dqe,kConnected:kqe,kPending:vqe,kQueued:_qe,kRunning:Fqe,kSize:Mqe}=br(),$h=Symbol("pool"),zU=class{constructor(e){this[$h]=e}get connected(){return this[$h][kqe]}get free(){return this[$h][Dqe]}get pending(){return this[$h][vqe]}get queued(){return this[$h][_qe]}get running(){return this[$h][Fqe]}get size(){return this[$h][Mqe]}};Tne.exports=zU});var eP=C((LJt,Pne)=>{"use strict";var Lqe=rm(),Uqe=JU(),{kConnected:jU,kSize:Rne,kRunning:Dne,kPending:kne,kQueued:ty,kBusy:Pqe,kFree:Oqe,kUrl:Hqe,kClose:Gqe,kDestroy:qqe,kDispatch:Yqe}=br(),Vqe=xne(),ri=Symbol("clients"),xs=Symbol("needDrain"),ry=Symbol("queue"),KU=Symbol("closed resolve"),$U=Symbol("onDrain"),vne=Symbol("onConnect"),_ne=Symbol("onDisconnect"),Fne=Symbol("onCo Line truncated
`,"latin1"),r!==null&&s!==r){if(n[s8])throw new pp;process.emitWarning(new pp)}e[Lr].timeout&&e[Lr].timeoutType===ty&&e[Lr].timeout.refresh&&e[Lr].timeout.refresh(),n[ld]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wh]=!1,e&&(We(n[Yn]<=1,"pipeline should only contain this request"),s(e))}};xue.exports=Nje});var Fue=y((qsr,Mue)=>{"use strict";var Ua=Q("node:assert"),{pipeline:vje}=Q("node:stream"),qt=vt(),{RequestContentLengthMismatchError:A8,RequestAbortedError:Tue,SocketError:Vb,InformationalError:u8}=or(),{kUrl:pR,kReset:ER,kClient:ry,kRunning:yR,kPending:Pje,kQueue:Jh,kPendingIdx:l8,kRunningIdx:$c,kError:tA,kSocket:ys,kStrictContentLength:Mje,kOnError:d8,kMaxConcurrentStreams:Pue,kHTTP2Session:eA,kResume:Vh,kSize:Fje,kHTTPContext:Lje}=Xr(),dd=Symbol("open streams"),Rue,Due=!1,gR;try{gR=Q("node:http2")}catch{gR={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:_je,HTTP2_HEADER_METHOD:Uje,HTTP2_HEADER_PATH:Oje,HTTP2_HEADER_SCHEME:Hje,HTTP2_HEADER_CONTENT_LENGTH:qje,HTTP2_HEADER_EXPECT:Gje,HTTP2_HEADER_STATUS:Yje}}=gR;function zje(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}async function Wje(t,e){t[ys]=e,Due||(Due=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=gR.connect(t[pR],{createConnection:()=>e,peerMaxConcurrentStreams:t[Pue]});r[dd]=0,r[ry]=t,r[ys]=e,qt.addListener(r,"error",Vje),qt.addListener(r,"frameError",jje),qt.addListener(r,"end",Kje),qt.addListener(r,"goaway",Xje),qt.addListener(r,"close",function(){let{[ry]:s}=this,{[ys]:i}=s,o=this[ys][tA]||this[tA]||new Vb("closed",qt.getSocketInfo(i));if(s[eA]=null,s.destroyed){Ua(s[Pje]===0);let a=s[Jh].splice(s[$c]);for(let c=0;c<a.length;c++){let A=a[c];qt.errorRequest(s,A,o)}}}),r.unref(),t[eA]=r,e[eA]=r,qt.addListener(e,"error",function(s){Ua(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[tA]=s,this[ry][d8](s)}),qt.addListener(e,"end",function(){qt.destroy(this,new Vb("other side closed",qt.getSocketInfo(this)))}),qt.addListener(e,"close",function(){let s=this[tA]||new Vb("closed",qt.getSocketInfo(this));t[ys]=null,this[eA]!=null&&this[eA].destroy(s),t[l8]=t[$c],Ua(t[yR]===0),t.emit("disconnect",t[pR],[t],s),t[Vh]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return $je(t,...s)},resume(){Jje(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Jje(t){let e=t[ys];e?.destroyed===!1&&(t[Fje]===0&&t[Pue]===0?(e.unref(),t[eA].unref()):(e.ref(),t[eA].ref()))}function Vje(t){Ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ys][tA]=t,this[ry][d8](t)}function jje(t,e,r){if(r===0){let n=new u8(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[ys][tA]=n,this[ry][d8](n)}}function Kje(){let t=new Vb("other side closed",qt.getSocketInfo(this[ys]));this.destroy(t),qt.destroy(this[ys],t)}function Xje(t){let e=this[tA]||new Vb(`HTTP/2: "GOAWAY" frame received with code ${t}`,qt.getSocketInfo(this)),r=this[ry];if(r[ys]=null,r[Lje]=null,this[eA]!=null&&(this[eA].destroy(e),this[eA]=null),qt.destroy(this[ys],e),r[$c]<r[Jh].length){let n=r[Jh][r[$c]];r[Jh][r[$c]++]=null,qt.errorRequest(r,n,e),r[l8]=r[$c]}Ua(r[yR]===0),r.emit("disconnect",r[pR],[r],e),r[Vh]()}function Zje(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function $je(t,e){let r=t[eA],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return qt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],J=A[B+1];if(Array.isArray(J))for(let F=0;F<J.length;F++)l[M]?l[M]+=`,${J[F]}`:l[M]=J[F];else l[M]=J}let d,{hostname:h,port:f}=t[pR];l[_je]=i||`${h}${f?`:${f}`:""}`,l[Uje]=n;let m=B=>{e.aborted||e.completed||(B=B||new Tue,qt.errorRequest(t,e,B),d!=null&&qt.destroy(d,B),qt.destroy(u,B),t[Jh][t[$c]++]=null,t[Vh]())};try{e.onConnect(m)}catch(B){qt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[dd],t[Jh][t[$c]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[dd],t[Jh][t[$c]++]=null}),d.once("close",()=>{r[dd]-=1,r[dd]===0&&r.unref()}),!0;l[Oje]=s,l[Hje]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=qt.bodyLength(u);if(qt.isFormDataLike(u)){Rue??=X0().extractBody;let[B,M]=Rue(u);l["content-type"]=M,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!E)&&(g=null),Zje(n)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Mje])return qt.errorRequest(t,e,new A8),!1;process.emitWarning(new A8)}g!=null&&(Ua(u,"no body must not have content length"),l[qje]=`${g}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[Gje]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[wKe]=c??3e5,this[QKe]=s??3e5,this[NKe]=C??!0,this[xKe]=B,this[p8]=J,this[Kh]=null,this[kKe]=H>-1?H:-1,this[PKe]=$??100,this[kn]=null,this[rA]=[],this[fd]=0,this[nA]=0,this[Zb]=fe=>E8(this,fe),this[vKe]=fe=>Vue(this,fe)}get pipelining(){return this[bR]}set pipelining(e){this[bR]=e,this[Zb](!0)}get[tQ](){return this[rA].length-this[nA]}get[eQ](){return this[nA]-this[fd]}get[$b](){return this[rA].length-this[fd]}get[gKe](){return!!this[kn]&&!this[sy]&&!this[kn].destroyed}get[m8](){return!!(this[kn]?.busy(null)||this[$b]>=(Jue(this)||1)||this[tQ]>0)}[pKe](e){jue(this),this.once("connect",e)}[DKe](e,r){let n=e.origin||this[eu].origin,s=new uKe(n,e,r);return this[rA].push(s),this[Cp]||(yp.bodyLength(s.body)==null&&yp.isIterable(s.body)?(this[Cp]=1,queueMicrotask(()=>E8(this))):this[Zb](!0)),this[Cp]&&this[Xh]!==2&&this[m8]&&(this[Xh]=2),this[Xh]<2}async[TKe](){return new Promise(e=>{this[$b]?this[Kh]=e:e(null)})}async[RKe](e){return new Promise(r=>{let n=this[rA].splice(this[nA]);for(let i=0;i<n.length;i++){let o=n[i];yp.errorRequest(this,o,e)}let s=()=>{this[Kh]&&(this[Kh](),this[Kh]=null),r(null)};this[kn]?(this[kn].destroy(e,s),this[kn]=null):queueMicrotask(s),this[Zb]()})}},LKe=BR();function Vue(t,e){if(t[eQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){hd(t[nA]===t[fd]);let r=t[rA].splice(t[fd]);for(let n=0;n<r.length;n++){let s=r[n];yp.errorRequest(t,s,e)}hd(t[$b]===0)}}async function jue(t){hd(!t[sy]),hd(!t[kn]);let{host:e,hostname:r,protocol:n,port:s}=t[eu];if(r[0]==="["){let i=r.indexOf("]");hd(i!==-1);let o=r.substring(1,i);hd(Wue.isIP(o)),r=o}t[sy]=!0,ny.beforeConnect.hasSubscribers&&ny.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[jh],localAddress:t[Xb]},connector:t[Kb]});try{let i=await new Promise((o,a)=>{t[Kb]({host:e,hostname:r,protocol:n,port:s,servername:t[jh],localAddress:t[Xb]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){yp.destroy(i.on("error",Yue),new hKe);return}hd(i);try{t[kn]=i.alpnProtocol==="h2"?await FKe(t,i):await MKe(t,i)}catch(o){throw i.destroy().on("error",Yue),o}t[sy]=!1,i[SKe]=0,i[p8]=t[p8],i[mKe]=t,i[yKe]=null,ny.connected.hasSubscribers&&ny.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[jh],localAddress:t[Xb]},connector:t[Kb],socket:i}),t.emit("connect",t[eu],[t])}catch(i){if(t.destroyed)return;if(t[sy]=!1,ny.connectError.hasSubscribers&&ny.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[jh],localAddress:t[Xb]},connector:t[Kb],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(hd(t[eQ]===0);t[tQ]>0&&t[rA][t[nA]].servername===t[jh];){let o=t[rA][t[nA]++];yp.errorRequest(t,o,i)}else Vue(t,i);t.emit("connectionError",t[eu],[t],i)}t[Zb]()}function zue(t){t[Xh]=0,t.emit("drain",t[eu],[t])}function E8(t,e){t[Cp]!==2&&(t[Cp]=2,_Ke(t,e),t[Cp]=0,t[fd]>256&&(t[rA].splice(0,t[fd]),t[nA]-=t[fd],t[fd]=0))}function _Ke(t,e){for(;;){if(t.destroyed){hd(t[tQ]===0);return}if(t[Kh]&&!t[$b]){t[Kh](),t[Kh]=null;return}if(t[kn]&&t[kn].resume(),t[m8])t[Xh]=2;else if(t[Xh]===2){e?(t[Xh]=1,queueMicrotask(()=>zue(t))):zue(t);continue}if(t[tQ]===0||t[eQ]>=(Jue(t)||1))return;let r=t[rA][t[nA]];if(t[eu].protocol==="https:"&&t[jh]!==r.servername){if(t[eQ]>0)return;t[jh]=r.servername,t[kn]?.destroy(new dKe("servername changed"),()=>{t[kn]=null,E8(t)})}if(t[sy])return;if(!t[kn]){jue(t);return}if(t[kn].destroyed||t[kn].busy(r))return;!r.aborted&&t[kn].write(r)?t[nA]++:t[rA].splice(t[nA],1)}}Kue.exports=g8});var y8=y((Jsr,Xue)=>{"use strict";var QR=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)}};Xue.exports=class{constructor(){this.head=this.tail=new QR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new QR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var $ue=y((Vsr,Zue)=>{var{kFree:UKe,kConnected:OKe,kPending:HKe,kQueued:qKe,kRunning:GKe,kSize:YKe}=Xr(),Ip=Symbol("pool"),C8=class{constructor(e){this[Ip]=e}get connected(){return this[Ip][OKe]}get free(){return this[Ip][UKe]}get pending(){return this[Ip][HKe]}get queued(){return this[Ip][qKe]}get running(){return this[Ip][GKe]}get size(){return this[Ip][YKe]}};Zue.exports=C8});var N8=y((jsr,Ale)=>{"use strict";var zKe=q0(),WKe=y8(),{kConnected:I8,kSize:ele,kRunning:tle,kPending:rle,kQueued:rQ,kBusy:JKe,kFree:VKe,kUrl:jKe,kClose:KKe,kDestroy:XKe,kDispatch:ZKe}=Xr(),$Ke=$ue(),so=Symbol("clients"),Ti=Symbol("needDrain"),nQ=Symbol("queue"),B8=Symbol("closed resolve"),b8=Symbol("onDrain"),nle=Symbol("onConnect"),sle=Symbol("onDisconnect"),ile=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Wie.exports=eO});var EN=C((lzt,$ie)=>{"use strict";var zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:m7e}=_t(),E7e=Im();Kie()===void 0&&jie(new E7e);function jie(t){if(!t||typeof t.dispatch!="function")throw new m7e("Argument agent must implement Agent");Object.defineProperty(globalThis,zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Kie(){return globalThis[zie]}$ie.exports={setGlobalDispatcher:jie,getGlobalDispatcher:Kie}});var CN=C((hzt,Xie)=>{"use strict";Xie.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 eoe=C((fzt,Zie)=>{"use strict";var C7e=$S();Zie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new C7e(r,o,s,i);return r(a,c)}}});var roe=C((gzt,toe)=>{"use strict";var I7e=cN();toe.exports=t=>e=>function(n,s){return e(n,new I7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var soe=C((pzt,noe)=>{"use strict";var y7e=dt(),{InvalidArgumentError:B7e,RequestAbortedError:b7e}=_t(),Q7e=CN(),tO=class extends Q7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new B7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=y7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new b7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function w7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new tO({maxSize:i},s);return e(n,o)}}noe.exports=w7e});var aoe=C((mzt,ooe)=>{"use strict";var{isIP:S7e}=Q("node:net"),{lookup:N7e}=Q("node:dns"),T7e=CN(),{InvalidArgumentError:Dm,InformationalError:x7e}=_t(),ioe=Math.pow(2,31)-1,rO=class{#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.#i}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,(o,a)=>{if(o||a==null||a.length===0){n(o??new x7e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){N7e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===ioe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===ioe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,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 o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new nO(this,e,r)}},nO=class extends T7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Pce(i)&&(r[s]=i);break;case"id":Oce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Pce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Oce(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}}};Hce.exports={EventSourceStream:WO}});var Kce=C((zzt,jce)=>{"use strict";var{pipeline:Lje}=Q("node:stream"),{fetching:Uje}=fy(),{makeRequest:Pje}=_m(),{webidl:bu}=Xn(),{EventSourceStream:Oje}=Gce(),{parseMIMEType:Hje}=ei(),{createFastMessageEvent:Gje}=Om(),{isNetworkError:qce}=dy(),{delay:qje}=YO(),{kEnumerableProperty:hf}=dt(),{environmentSettingsObject:Yce}=vi(),Vce=!1,Wce=3e3,Ty=0,Jce=1,xy=2,Yje="anonymous",Vje="use-credentials",Vm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Vce||(Vce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Wce};let s=Yce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Yje;r.withCredentials&&(o=Vje,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Yce.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=Pje(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{qce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(qce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Hje(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Jce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Oje({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Gje(c.type,c.options))}});Lje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Uje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await qje(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.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}},zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Jce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Vm,zce);Object.defineProperties(Vm.prototype,zce);Object.defineProperties(Vm.prototype,{close:hf,onerror:hf,onmessage:hf,onopen:hf,readyState:hf,url:hf,withCredentials:hf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);jce.exports={EventSource:Vm,defaultReconnectionTime:Wce}});var aT=C((jzt,ze)=>{"use strict";var Wje=Em(),$ce=vI(),Jje=Cm(),zje=zne(),jje=Im(),Kje=hP(),$je=Ese(),Xje=wse(),Xce=_t(),oT=dt(),{InvalidArgumentError:iT}=Xce,Wm=lie(),Zje=FI(),eKe=zP(),tKe=Jie(),rKe=$P(),nKe=FP(),sKe=cN(),{getGlobalDispatcher:Zce,setGlobalDispatcher:iKe}=EN(),oKe=CN(),aKe=$S(),cKe=XS();Object.assign($ce.prototype,Wm);ze.exports.Dispatcher=$ce;ze.exports.Client=Wje;ze.exports.Pool=Jje;ze.exports.BalancedPool=zje;ze.exports.Agent=jje;ze.exports.ProxyAgent=Kje;ze.exports.EnvHttpProxyAgent=$je;ze.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?v3:I.type==="?"?k3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var v=a[P],z=n.slice(0,v.reStart),X=n.slice(v.reStart,v.reEnd-8),te=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);te+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==RT&&(ke="$");var et=z+X+ce+ke+te;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===RT)return[n,s];if(!s)return PXe(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Vi.makeRe=function(t,e){return new ln(t,e||{}).makeRe()};ln.prototype.makeRe=UXe;function UXe(){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?v3:e.dot?RXe:DXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===If?r:typeof o=="string"?OXe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Vi.match=function(t,e,r){r=r||{};var n=new ln(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ln.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 n=this.options;qy.sep!=="/"&&(e=e.split(qy.sep).join("/")),e=e.split(Pue),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};ln.prototype.matchOne=function(t,e,r){return e.indexOf(If)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};ln.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===If){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===If){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===If?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};ln.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};ln.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===If)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function PXe(t){return t.replace(/\\(.)/g,"$1")}function OXe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Zm=C((r$t,Wue)=>{"use strict";var zXe="2.0.0",jXe=Number.MAX_SAFE_INTEGER||9007199254740991,KXe=16,$Xe=250,XXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Wue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:KXe,MAX_SAFE_BUILD_LENGTH:$Xe,MAX_SAFE_INTEGER:jXe,RELEASE_TYPES:XXe,SEMVER_SPEC_VERSION:zXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Jy=C((n$t,Jue)=>{"use strict";var ZXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Jue.exports=ZXe});var e0=C((Pc,zue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:F3,MAX_SAFE_BUILD_LENGTH:eZe,MAX_LENGTH:tZe}=Zm(),rZe=Jy();Pc=zue.exports={};var nZe=Pc.re=[],sZe=Pc.safeRe=[],me=Pc.src=[],iZe=Pc.safeSrc=[],Ee=Pc.t={},oZe=0,M3="[a-zA-Z0-9-]",aZe=[["\\s",1],["\\d",tZe],[M3,eZe]],cZe=t=>{for(let[e,r]of aZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};phe.exports=NH});var qR=y((bir,Ihe)=>{"use strict";var Ehe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:w$e}=or(),N$e=ay();Che()===void 0&&yhe(new N$e);function yhe(t){if(!t||typeof t.dispatch!="function")throw new w$e("Argument agent must implement Agent");Object.defineProperty(globalThis,Ehe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Che(){return globalThis[Ehe]}Ihe.exports={setGlobalDispatcher:yhe,getGlobalDispatcher:Che}});var GR=y((wir,Bhe)=>{"use strict";Bhe.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 Qhe=y((Nir,bhe)=>{"use strict";var x$e=IR();bhe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new x$e(r,o,s,i);return r(a,c)}}});var Nhe=y((xir,whe)=>{"use strict";var S$e=kR();whe.exports=t=>e=>function(n,s){return e(n,new S$e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var She=y((Sir,xhe)=>{"use strict";var T$e=vt(),{InvalidArgumentError:R$e,RequestAbortedError:D$e}=or(),k$e=GR(),xH=class extends k$e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new R$e("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.#s=e}onHeaders(e,r,n,s){let o=T$e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new D$e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function v$e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new xH({maxSize:i},s);return e(n,o)}}xhe.exports=v$e});var Dhe=y((Tir,Rhe)=>{"use strict";var{isIP:P$e}=Q("node:net"),{lookup:M$e}=Q("node:dns"),F$e=GR(),{InvalidArgumentError:py,InformationalError:L$e}=or(),The=Math.pow(2,31)-1,SH=class{#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.#i}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,(o,a)=>{if(o||a==null||a.length===0){n(o??new L$e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){M$e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===The?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===The?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,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 o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new TH(this,e,r)}},TH=class extends F$e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${o}`;return}if(TD(e,s,Znt)){$nt(e,i)&&(r.retry=e.toString("utf8",i));return}if(TD(e,s,Xnt)){est(e,i)&&(r.id=e.toString("utf8",i));return}if(TD(e,s,Knt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&znt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Wnt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===Ry[0]||(this.checkBOM=!1),!0):n===void 0?e===Ry[0]&&r===Ry[1]?!0:(this.checkBOM=!1,!1):(e===Ry[0]&&r===Ry[1]&&n===Ry[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Ape.exports={EventSourceStream:E6}});var Epe=y((oor,gpe)=>{"use strict";var{pipeline:tst}=Q("node:stream"),{fetching:rst}=pQ(),{makeRequest:nst}=yy(),{webidl:Ed}=zs(),{EventSourceStream:sst}=upe(),{parseMIMEType:ist}=ro(),{createFastMessageEvent:ost}=wy(),{isNetworkError:lpe}=fQ(),{delay:ast}=p6(),{kEnumerableProperty:Lp}=vt(),{environmentSettingsObject:dpe}=qo(),hpe=!1,fpe=3e3,RQ=0,mpe=1,DQ=2,cst="anonymous",Ast="use-credentials",Dy=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=RQ;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Ed.util.markAsUncloneable(this);let n="EventSource constructor";Ed.argumentLengthCheck(arguments,1,n),hpe||(hpe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ed.converters.USVString(e,n,"url"),r=Ed.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:fpe};let s=dpe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=cst;r.withCredentials&&(o=Ast,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=dpe.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=nst(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===DQ)return;this.#r=RQ;let e={request:this.#i,dispatcher:this.#a},r=n=>{lpe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(lpe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?ist(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=mpe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new sst({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(ost(c.type,c.options))}});tst(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=rst(e)}async#A(){this.#r!==DQ&&(this.#r=RQ,this.dispatchEvent(n Line truncated
`).join(`
`+i),t.push(s+"m+"+px.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=$rt()+e+" "+t[0]}function $rt(){return Fn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Xrt(...t){return process.stderr.write(gx.formatWithOptions(Fn.inspectOpts,...t)+`
`)}function Zrt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ent(){return process.env.DEBUG}function tnt(t){t.inspectOpts={};let e=Object.keys(Fn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Fn.inspectOpts[e[r]]}px.exports=w8()(Fn);var{formatters:Bhe}=px.exports;Bhe.o=function(t){return this.inspectOpts.colors=this.useColors,gx.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Bhe.O=function(t){return this.inspectOpts.colors=this.useColors,gx.inspect(t,this.inspectOpts)}});var mx=C((vZt,T8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?T8.exports=phe():T8.exports=bhe()});var She=C(ui=>{"use strict";var rnt=ui&&ui.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nnt=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qhe=ui&&ui.__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)&&rnt(e,t,r);return nnt(e,t),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.req=ui.json=ui.toBuffer=void 0;var snt=Qhe(Q("http")),int=Qhe(Q("https"));async function whe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ui.toBuffer=whe;async function ont(t){let r=(await whe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ui.json=ont;function ant(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?int:snt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ui.req=ant});var R8=C(zi=>{"use strict";var The=zi&&zi.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cnt=zi&&zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xhe=zi&&zi.__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)&&The(e,t,r);return cnt(e,t),e},Ant=zi&&zi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&The(e,t,r)};Object.defineProperty(zi,"__esModule",{value:!0});zi.Agent=void 0;var unt=xhe(Q("net")),Nhe=xhe(Q("http")),lnt=Q("https");Ant(She(),zi);var Gc=Symbol("AgentBaseInternalState"),x8=class extends Nhe.Agent{constructor(e){super(e),this[Gc]={}}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 unt.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)?lnt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Nhe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Gc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Gc].currentSocket;if(this[Gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gc]&&(this[Gc].defaultPort=e)}get protocol(){return this[Gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gc]&&(this[Gc].protocol=e)}};zi.Agent=x8});var Rhe=C(A0=>{"use strict";var dnt=A0&&A0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(A0,"__esModule",{value:!0});A0.parseProxyResponse=void 0;var hnt=dnt(mx()),Ex=(0,hnt.default)("https-proxy-agent:parse-proxy-response");function fnt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),Ex("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),Ex("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+O2.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Glt()+e+" "+t[0]}function Glt(){return Is.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ylt(...t){return process.stderr.write(U2.formatWithOptions(Is.inspectOpts,...t)+`
`)}function zlt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Wlt(){return process.env.DEBUG}function Jlt(t){t.inspectOpts={};let e=Object.keys(Is.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Is.inspectOpts[e[r]]}O2.exports=$5()(Is);var{formatters:zye}=O2.exports;zye.o=function(t){return this.inspectOpts.colors=this.useColors,U2.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};zye.O=function(t){return this.inspectOpts.colors=this.useColors,U2.inspect(t,this.inspectOpts)}});var H2=y((ulr,rq)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?rq.exports=Uye():rq.exports=Wye()});var jye=y(fo=>{"use strict";var Vlt=fo&&fo.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jlt=fo&&fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Jye=fo&&fo.__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)&&Vlt(e,t,r);return jlt(e,t),e};Object.defineProperty(fo,"__esModule",{value:!0});fo.req=fo.json=fo.toBuffer=void 0;var Klt=Jye(Q("http")),Xlt=Jye(Q("https"));async function Vye(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}fo.toBuffer=Vye;async function Zlt(t){let r=(await Vye(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}fo.json=Zlt;function $lt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Xlt:Klt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}fo.req=$lt});var sq=y(ta=>{"use strict";var Xye=ta&&ta.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),edt=ta&&ta.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zye=ta&&ta.__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)&&Xye(e,t,r);return edt(e,t),e},tdt=ta&&ta.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Xye(e,t,r)};Object.defineProperty(ta,"__esModule",{value:!0});ta.Agent=void 0;var rdt=Zye(Q("net")),Kye=Zye(Q("http")),ndt=Q("https");tdt(jye(),ta);var lu=Symbol("AgentBaseInternalState"),nq=class extends Kye.Agent{constructor(e){super(e),this[lu]={}}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 rdt.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)?ndt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Kye.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[lu].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[lu].currentSocket;if(this[lu].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[lu].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[lu]&&(this[lu].defaultPort=e)}get protocol(){return this[lu].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[lu]&&(this[lu].protocol=e)}};ta.Agent=nq});var $ye=y(Vy=>{"use strict";var sdt=Vy&&Vy.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vy,"__esModule",{value:!0});Vy.parseProxyResponse=void 0;var idt=sdt(H2()),q2=(0,idt.default)("https-proxy-agent:parse-proxy-response");function odt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),q2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),q2("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){Ex("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}Ex("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}A0.parseProxyResponse=fnt});var Mhe=C(Uo=>{"use strict";var gnt=Uo&&Uo.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pnt=Uo&&Uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_he=Uo&&Uo.__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)&&gnt(e,t,r);return pnt(e,t),e},Fhe=Uo&&Uo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HttpsProxyAgent=void 0;var Cx=_he(Q("net")),Dhe=_he(Q("tls")),mnt=Fhe(Q("assert")),Ent=Fhe(mx()),Cnt=R8(),Int=Q("url"),ynt=Rhe(),cB=(0,Ent.default)("https-proxy-agent"),khe=t=>t.servername===void 0&&t.host&&!Cx.isIP(t.host)?{...t,servername:t.host}:t,Ix=class extends Cnt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Int.URL(e):e,this.proxyHeaders=r?.headers??{},cB("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?vhe(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:"?(cB("Creating `tls.Socket`: %o",this.connectOpts),s=Dhe.connect(khe(this.connectOpts))):(cB("Creating `net.Socket`: %o",this.connectOpts),s=Cx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Cx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){q2("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=f.split(" "),E=+m[1],g=m.slice(2).join(" "),C={};for(let I of h){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let M=I.slice(0,B).toLowerCase(),J=I.slice(B+1).trimStart(),F=C[M];typeof F=="string"?C[M]=[F,J]:Array.isArray(F)?F.push(J):C[M]=J}q2("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:E,statusText:g,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Vy.parseProxyResponse=odt});var iCe=y(Xa=>{"use strict";var adt=Xa&&Xa.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cdt=Xa&&Xa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nCe=Xa&&Xa.__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)&&adt(e,t,r);return cdt(e,t),e},sCe=Xa&&Xa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.HttpsProxyAgent=void 0;var G2=nCe(Q("net")),eCe=nCe(Q("tls")),Adt=sCe(Q("assert")),udt=sCe(H2()),ldt=sq(),ddt=Q("url"),hdt=$ye(),Ew=(0,udt.default)("https-proxy-agent"),tCe=t=>t.servername===void 0&&t.host&&!G2.isIP(t.host)?{...t,servername:t.host}:t,Y2=class extends ldt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new ddt.URL(e):e,this.proxyHeaders=r?.headers??{},Ew("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?rCe(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:"?(Ew("Creating `tls.Socket`: %o",this.connectOpts),s=eCe.connect(tCe(this.connectOpts))):(Ew("Creating `net.Socket`: %o",this.connectOpts),s=G2.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=G2.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let c=(0,ynt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Bnt),r.secureEndpoint?(cB("Upgrading socket connection to TLS"),Dhe.connect({...vhe(khe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new Cx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{cB("Replaying proxy buffer for failed request"),(0,mnt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Ix.protocols=["http","https"];Uo.HttpsProxyAgent=Ix;function Bnt(t){t.resume()}function vhe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Phe=C(Po=>{"use strict";var bnt=Po&&Po.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Qnt=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Uhe=Po&&Po.__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)&&bnt(e,t,r);return Qnt(e,t),e},wnt=Po&&Po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Po,"__esModule",{value:!0});Po.HttpProxyAgent=void 0;var Snt=Uhe(Q("net")),Nnt=Uhe(Q("tls")),Tnt=wnt(mx()),xnt=Q("events"),Rnt=R8(),Lhe=Q("url"),u0=(0,Tnt.default)("http-proxy-agent"),yx=class extends Rnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Lhe.URL(e):e,this.proxyHeaders=r?.headers??{},u0("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?Dnt(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",o=`${s}//${i}`,a=new Lhe.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(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;u0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(u0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,hdt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",fdt),r.secureEndpoint?(Ew("Upgrading socket connection to TLS"),eCe.connect({...rCe(tCe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new G2.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Ew("Replaying proxy buffer for failed request"),(0,Adt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Y2.protocols=["http","https"];Xa.HttpsProxyAgent=Y2;function fdt(t){t.resume()}function rCe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var cCe=y(Za=>{"use strict";var mdt=Za&&Za.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pdt=Za&&Za.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aCe=Za&&Za.__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)&&mdt(e,t,r);return pdt(e,t),e},gdt=Za&&Za.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Za,"__esModule",{value:!0});Za.HttpProxyAgent=void 0;var Edt=aCe(Q("net")),ydt=aCe(Q("tls")),Cdt=gdt(H2()),Idt=Q("events"),Bdt=sq(),oCe=Q("url"),jy=(0,Cdt.default)("http-proxy-agent"),z2=class extends Bdt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new oCe.URL(e):e,this.proxyHeaders=r?.headers??{},jy("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?bdt(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",o=`${s}//${i}`,a=new oCe.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(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;jy("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(jy("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+n.substring(s),u0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(u0("Creating `tls.Socket`: %o",this.connectOpts),i=Nnt.connect(this.connectOpts)):(u0("Creating `net.Socket`: %o",this.connectOpts),i=Snt.connect(this.connectOpts)),await(0,xnt.once)(i,"connect"),i}};yx.protocols=["http","https"];Po.HttpProxyAgent=yx;function Dnt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Afe=C(vx=>{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});vx.state=void 0;vx.state={instrumenterImplementation:void 0}});var Sfe=C(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.state=void 0;Ux.state={operationRequestMap:new WeakMap}});var Ame=C((_pr,PAt)=>{PAt.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var lme=C((Fpr,ume)=>{var OAt=Ame();ume.exports={version:OAt.version}});var pD=C(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.isJsonObject=_0.typeofJsonValue=void 0;function jAt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}_0.typeofJsonValue=jAt;function KAt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}_0.isJsonObject=KAt});var ED=C(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});F0.base64encode=F0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),mD=[];for(let t=0;t<Gu.length;t++)mD[Gu[t].charCodeAt(0)]=t;mD[45]=Gu.indexOf("+");mD[95]=Gu.indexOf("/");function $At(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=mD[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}F0.base64decode=$At;function XAt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}F0.base64encode=XAt});var pme=C(CD=>{"use strict";Object.defineProperty(CD,"__esModule",{value:!0});CD.utf8read=void 0;var B9=t=>String.fromCharCode.apply(String,t);function ZAt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)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(B9(n)),s=0);return r.length?(s&&r.push(B9(n.slice(0,s))),r.join("")):B9(n.slice(0,s))}CD.utf8read=ZAt});var sb=C(hA=>{"use strict";Object.defineProperty(hA,"__esModule",{value:!0});hA.WireType=hA.mergeBinaryOptions=hA.UnknownFieldHandler=void 0;var eut;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},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=r=>r&&Array.isArray(r[t.symbol])})(eut=hA.UnknownFieldHandler||(hA.UnknownFieldHandler={}));function tut(t,e){return Object.assign(Object.assign({},t),e)}hA.mergeBinaryOptions=tut;var rut;(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"})(rut=hA.WireType||(hA.WireType={}))});var yD=C(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.varint32read=mi.varint32write=mi.int64toString=mi.int64fromString=mi.varint64write=mi.varint64read=void 0;function nut(){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")}mi.varint64read=nut;function sut(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)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 o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}mi.varint64write=sut;var ID=65536*65536;function iut(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=ID&&(s=s+(n/ID|0),n=n%ID)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}mi.int64fromString=iut;function out(t,e){if(e>>>0<=2097151)return""+(ID*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}mi.int64toString=out;function aut(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)}}mi.varint32write=aut;function cut(){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}mi.varint32read=cut});var Id=C(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.PbLong=Cd.PbULong=Cd.detectBi=void 0;var ib=yD(),or;function mme(){let t=new DataView(new ArrayBuffer(8));or=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}Cd.detectBi=mme;mme();function Eme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Cme=/^-?[0-9]+$/,bD=4294967296,BD=2147483648,QD=c Line truncated
`)}};zD.RpcError=j9});var $9=C(KD=>{"use strict";Object.defineProperty(KD,"__esModule",{value:!0});KD.mergeRpcOptions=void 0;var jme=At();function Rlt(t,e){if(!e)return t;let r={};jD(t,r),jD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=jme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=jme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},jD(t.meta,r.meta),jD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}KD.mergeRpcOptions=Rlt;function jD(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}});var Z9=C(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.Deferred=Xf.DeferredState=void 0;var pA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(pA=Xf.DeferredState||(Xf.DeferredState={}));var X9=class{constructor(e=!0){this._state=pA.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!==pA.PENDING)throw new Error(`cannot resolve ${pA[this.state].toLowerCase()}`);this._resolve(e),this._state=pA.RESOLVED}reject(e){if(this.state!==pA.PENDING)throw new Error(`cannot reject ${pA[this.state].toLowerCase()}`);this._reject(e),this._state=pA.REJECTED}resolvePending(e){this._state===pA.PENDING&&this.resolve(e)}rejectPending(e){this._state===pA.PENDING&&this.reject(e)}};Xf.Deferred=X9});var tG=C($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});$D.RpcOutputStreamController=void 0;var Kme=Z9(),Zf=At(),eG=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 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){Zf.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){Zf.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){Zf.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(){Zf.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;Zf.assert(e,"bad state"),Zf.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 Kme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Zf.assert(n.state==Kme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};$D.RpcOutputStreamController=eG});var nG=C(G0=>{"use strict";var Dlt=G0&&G0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(G0,"__esModule",{value:!0});G0.UnaryCall=void 0;var rG=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 Dlt(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}})}};G0.UnaryCall=rG});var iG=C(q0=>{"use strict";var klt=q0&&q0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(q0,"__esModule",{value:!0});q0.ServerStreamingCall=void 0;var sG=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),jy("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(jy("Creating `tls.Socket`: %o",this.connectOpts),i=ydt.connect(this.connectOpts)):(jy("Creating `net.Socket`: %o",this.connectOpts),i=Edt.connect(this.connectOpts)),await(0,Idt.once)(i,"connect"),i}};z2.protocols=["http","https"];Za.HttpProxyAgent=z2;function bdt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var DCe=y(V2=>{"use strict";Object.defineProperty(V2,"__esModule",{value:!0});V2.state=void 0;V2.state={instrumenterImplementation:void 0}});var aIe=y(ok=>{"use strict";Object.defineProperty(ok,"__esModule",{value:!0});ok.state=void 0;ok.state={operationRequestMap:new WeakMap}});var Obe=y((ZTr,f0t)=>{f0t.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"~1.23.0","@azure/storage-blob":"~12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var qbe=y(($Tr,Hbe)=>{var m0t=Obe();Hbe.exports={version:m0t.version}});var Fv=y(DC=>{"use strict";Object.defineProperty(DC,"__esModule",{value:!0});DC.isJsonObject=DC.typeofJsonValue=void 0;function Q0t(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}DC.typeofJsonValue=Q0t;function w0t(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}DC.isJsonObject=w0t});var _v=y(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.base64encode=kC.base64decode=void 0;var Ud="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Lv=[];for(let t=0;t<Ud.length;t++)Lv[Ud[t].charCodeAt(0)]=t;Lv[45]=Ud.indexOf("+");Lv[95]=Ud.indexOf("/");function N0t(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=Lv[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}kC.base64decode=N0t;function x0t(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ud[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ud[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ud[s|n>>6],e+=Ud[n&63],r=0;break}return r&&(e+=Ud[s],e+="=",r==1&&(e+="=")),e}kC.base64encode=x0t});var Jbe=y(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0});Uv.utf8read=void 0;var iW=t=>String.fromCharCode.apply(String,t);function S0t(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)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(iW(n)),s=0);return r.length?(s&&r.push(iW(n.slice(0,s))),r.join("")):iW(n.slice(0,s))}Uv.utf8read=S0t});var CN=y(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.WireType=Lu.mergeBinaryOptions=Lu.UnknownFieldHandler=void 0;var T0t;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},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=r=>r&&Array.isArray(r[t.symbol])})(T0t=Lu.UnknownFieldHandler||(Lu.UnknownFieldHandler={}));function R0t(t,e){return Object.assign(Object.assign({},t),e)}Lu.mergeBinaryOptions=R0t;var D0t;(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"})(D0t=Lu.WireType||(Lu.WireType={}))});var Hv=y(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.varint32read=bo.varint32write=bo.int64toString=bo.int64fromString=bo.varint64write=bo.varint64read=void 0;function k0t(){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")}bo.varint64read=k0t;function v0t(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)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 o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}bo.varint64write=v0t;var Ov=65536*65536;function P0t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=Ov&&(s=s+(n/Ov|0),n=n%Ov)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}bo.int64fromString=P0t;function M0t(t,e){if(e>>>0<=2097151)return""+(Ov*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}bo.int64toString=M0t;function F0t(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)}}bo.varint32write=F0t;function L0t(){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}bo.varint32read=L0t});var Hf=y(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.PbLong=Of.PbULong=Of.detectBi=void 0;var IN=Hv(),kr;function Vbe(){let t=new DataView(new ArrayBuffer(8));kr=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}Of.detectBi=Vbe;Vbe();function jbe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Kbe=/^-?[0-9]+$/,Gv=4294967296,qv=2147483648,Yv=c Line truncated
`)}};fP.RpcError=kW});var PW=y(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0});pP.mergeRpcOptions=void 0;var NQe=St();function iCt(t,e){if(!e)return t;let r={};mP(t,r),mP(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=NQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=NQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},mP(t.meta,r.meta),mP(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}pP.mergeRpcOptions=iCt;function mP(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}});var FW=y(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.Deferred=Bg.DeferredState=void 0;var Ou;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ou=Bg.DeferredState||(Bg.DeferredState={}));var MW=class{constructor(e=!0){this._state=Ou.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!==Ou.PENDING)throw new Error(`cannot resolve ${Ou[this.state].toLowerCase()}`);this._resolve(e),this._state=Ou.RESOLVED}reject(e){if(this.state!==Ou.PENDING)throw new Error(`cannot reject ${Ou[this.state].toLowerCase()}`);this._reject(e),this._state=Ou.REJECTED}resolvePending(e){this._state===Ou.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ou.PENDING&&this.reject(e)}};Bg.Deferred=MW});var _W=y(gP=>{"use strict";Object.defineProperty(gP,"__esModule",{value:!0});gP.RpcOutputStreamController=void 0;var xQe=FW(),bg=St(),LW=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 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){bg.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){bg.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){bg.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(){bg.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;bg.assert(e,"bad state"),bg.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 xQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;bg.assert(n.state==xQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};gP.RpcOutputStreamController=LW});var OW=y(UC=>{"use strict";var oCt=UC&&UC.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(UC,"__esModule",{value:!0});UC.UnaryCall=void 0;var UW=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 oCt(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}})}};UC.UnaryCall=UW});var qW=y(OC=>{"use strict";var aCt=OC&&OC.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(OC,"__esModule",{value:!0});OC.ServerStreamingCall=void 0;var HW=class{constructor(e 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 oye=C(iye=>{"use strict";var tV=el().Buffer;iye._dbcs=tl;var rs=-1,sye=-2,aa=-10,Hs=-1e3,yE=new Array(256),oQ=-1;for(Fk=0;Fk<256;Fk++)yE[Fk]=rs;var Fk;function tl(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]=yE.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(yE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(yE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hs-o[n]],c=48;c<=57;c++){if(a[c]===rs)a[c]=Hs-s;else if(a[c]>Hs)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hs-a[c]],u=129;u<=254;u++){if(A[u]===rs)A[u]=Hs-i;else{if(A[u]===Hs-i)continue;if(A[u]>Hs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hs-A[u]],d=48;d<=57;d++)l[d]===rs&&(l[d]=sye)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Dyt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(pyt.has(s)){r=s;break}}return r}function kyt(t,e){let r=Dyt(e);r!==""&&(t.referrerPolicy=r)}function vyt(){return"allowed"}function _yt(){return"success"}function Fyt(){return"success"}function Myt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Lyt(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&&I7(t.origin)&&!I7(Tg(t))&&(e=null);break;case"same-origin":pQ(t,Tg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function SE(t,e){return t}function Uyt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:SE(t.domainLookupStartTime,r),domainLookupEndTime:SE(t.domainLookupEndTime,r),connectionStartTime:SE(t.connectionStartTime,r),connectionEndTime:SE(t.connectionEndTime,r),secureConnectionStartTime:SE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Pyt(t){return SE(Iyt.now(),t)}function Oyt(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 Fbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Hyt(t){return{referrerPolicy:t.referrerPolicy}}function Gyt(t){let e=t.referrerPolicy;mQ(e);let r=null;if(t.referrer==="client"){let i=Rbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yd.is.URL(t.referrer)&&(r=t.referrer);let n=C7(r),s=C7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??C7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Tg(t);return pQ(n,i)?n:Ng(n)&&!Ng(i)?"no-referrer":s}case"same-origin":return pQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return pQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":n}}}function C7(t,e=!1){return mQ(Yd.is.URL(t)),t=new URL(t),Pbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var qyt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),Yyt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Mbe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Yyt(t)):qyt(t)}function Vyt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Mbe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Ng(t){return Yd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Vyt(t.origin):!1}function Wyt(t){}function pQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Jyt(t){return t.controller.state==="aborted"}function zyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function jyt(t){return Byt[t.toLowerCase()]??t}var Kyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Lbe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,Kyt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function $yt(t,e,r,n=0,s=1){let i=Lbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ua(a=>x7(a)&&a!==59,t,e);i=N7.decode(o)}return{name:n,value:i,extended:s}}function yBt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw wi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ua(a=>a!==10&&a!==13&&a!==58,t,e);if(o=T7(o,!0,!0,a=>a===9||a===32),!hBt.test(o.toString()))throw wi("header name does not match the field-name token production");if(t[e.position]!==58)throw wi("expected :");switch(e.position++,ua(a=>a===32||a===9,t,e),dBt(o)){case"content-disposition":{r=n=null;let a=!1;if(ua(A=>x7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw wi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=IBt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw wi("name attribute is required in content-disposition header");break}case"content-type":{let a=ua(c=>c!==10&&c!==13,t,e);a=T7(a,!1,!0,c=>c===9||c===32),s=Vbe(a);break}case"content-transfer-encoding":{let a=ua(c=>c!==10&&c!==13,t,e);a=T7(a,!1,!0,c=>c===9||c===32),i=Vbe(a);break}default:ua(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw wi("expected CRLF");e.position+=2}}function ua(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function T7(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)}function BBt(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}function wi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function bBt(t){return t<=31||t===127}function QBt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function x7(t){return t<=127&&t!==32&&t!==9&&!bBt(t)&&!QBt(t)}Wbe.exports={multipartFormDataParser:CBt,validateBoundary:EBt}});var EQ=C((qbr,zbe)=>{"use strict";function wBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}zbe.exports={createDeferredPromise:wBt}});var xE=C((Ybr,Zbe)=>{"use strict";var k7=Ze(),{ReadableStreamFrom:SBt,readableStreamClose:NBt,fullyReadBody:TBt,extractMimeType:xBt}=ao(),{FormData:jbe,setFormDataState:RBt}=ov(),{webidl:uc}=ns(),R7=Q("node:assert"),{isErrored:D7,isDisturbed:DBt}=Q("node:stream"),{isUint8Array:kBt}=Q("node:util/types"),{serializeAMimeType:vBt}=Aa(),{multipartFormDataParser:_Bt}=Jbe(),{createDeferredPromise:FBt}=EQ(),{parseJSONFromBytes:MBt}=sl(),{utf8DecodeBytes:LBt}=ev(),{runtimeFeatures:UBt}=il(),PBt=UBt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),av=new TextEncoder;function OBt(){}var HBt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!DBt(e)&&!D7(e)&&e.cancel("Response object has been garbage collected").catch(OBt)});function $be(t,e=!1){let r=null,n=null;uc.is.ReadableStream(t)?r=t:uc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),R7(uc.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(uc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(uc.is.BufferSource(t))i=uc.util.getCopyOfBytesHeldByBufferSource(t);else if(uc.is.FormData(t)){let A=`----formdata-undici-0${`${PBt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=av.encode(u+`; name="${l(d(m))}"\r
\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 uSe=y(ASe=>{"use strict";var bV=Jd().Buffer;ASe._dbcs=Vd;var Ks=-1,cSe=-2,yc=-10,Hi=-1e3,mI=new Array(256),fx=-1;for($M=0;$M<256;$M++)mI[$M]=Ks;var $M;function Vd(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]=mI.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(mI.slice(0));var i=this.decodeTables.length;this.decodeTables.push(mI.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hi-o[n]],c=48;c<=57;c++){if(a[c]===Ks)a[c]=Hi-s;else if(a[c]>Hi)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hi-a[c]],u=129;u<=254;u++){if(A[u]===Ks)A[u]=Hi-i;else{if(A[u]===Hi-i)continue;if(A[u]>Hi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hi-A[u]],d=48;d<=57;d++)l[d]===Ks&&(l[d]=cSe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function X1t(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(F1t.has(s)){r=s;break}}return r}function Z1t(t,e){let r=X1t(e);r!==""&&(t.referrerPolicy=r)}function $1t(){return"allowed"}function eTt(){return"success"}function tTt(){return"success"}function rTt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function nTt(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&&qj(t.origin)&&!qj(Vg(t))&&(e=null);break;case"same-origin":Qx(t,Vg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function CI(t,e){return t}function sTt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:CI(t.domainLookupStartTime,r),domainLookupEndTime:CI(t.domainLookupEndTime,r),connectionStartTime:CI(t.connectionStartTime,r),connectionEndTime:CI(t.connectionEndTime,r),secureConnectionStartTime:CI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function iTt(t){return CI(O1t.now(),t)}function oTt(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 UTe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function aTt(t){return{referrerPolicy:t.referrerPolicy}}function cTt(t){let e=t.referrerPolicy;wx(e);let r=null;if(t.referrer==="client"){let i=PTe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else am.is.URL(t.referrer)&&(r=t.referrer);let n=Hj(r),s=Hj(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??Hj(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Vg(t);return Qx(n,i)?n:Jg(n)&&!Jg(i)?"no-referrer":s}case"same-origin":return Qx(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Qx(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":n}}}function Hj(t,e=!1){return wx(am.is.URL(t)),t=new URL(t),GTe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var ATt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),uTt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function OTe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),uTt(t)):ATt(t)}function lTt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||OTe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Jg(t){return am.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:lTt(t.origin):!1}function dTt(t){}function Qx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function hTt(t){return t.controller.state==="aborted"}function fTt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function mTt(t){return q1t[t.toLowerCase()]??t}var pTt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function HTe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,pTt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function gTt(t,e,r,n=0,s=1){let i=HTe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return am.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return am.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Bc(a=>Xj(a)&&a!==59,t,e);i=jj.decode(o)}return{name:n,value:i,extended:s}}function HTt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Do("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Bc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Kj(o,!0,!0,a=>a===9||a===32),!vTt.test(o.toString()))throw Do("header name does not match the field-name token production");if(t[e.position]!==58)throw Do("expected :");switch(e.position++,Bc(a=>a===32||a===9,t,e),kTt(o)){case"content-disposition":{r=n=null;let a=!1;if(Bc(A=>Xj(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Do("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=OTt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Do("name attribute is required in content-disposition header");break}case"content-type":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Kj(a,!1,!0,c=>c===9||c===32),s=jTe(a);break}case"content-transfer-encoding":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Kj(a,!1,!0,c=>c===9||c===32),i=jTe(a);break}default:Bc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Do("expected CRLF");e.position+=2}}function Bc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Kj(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)}function qTt(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}function Do(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function GTt(t){return t<=31||t===127}function YTt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function Xj(t){return t<=127&&t!==32&&t!==9&&!GTt(t)&&!YTt(t)}KTe.exports={multipartFormDataParser:UTt,validateBoundary:_Tt}});var Nx=y((kFr,ZTe)=>{"use strict";function zTt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}ZTe.exports={createDeferredPromise:zTt}});var bI=y((vFr,nRe)=>{"use strict";var eK=ht(),{ReadableStreamFrom:WTt,readableStreamClose:JTt,fullyReadBody:VTt,extractMimeType:jTt}=fa(),{FormData:$Te,setFormDataState:KTt}=QF(),{webidl:xA}=Xs(),Zj=Q("node:assert"),{isErrored:$j,isDisturbed:XTt}=Q("node:stream"),{isUint8Array:ZTt}=Q("node:util/types"),{serializeAMimeType:$Tt}=Ic(),{multipartFormDataParser:eRt}=XTe(),{createDeferredPromise:tRt}=Nx(),{parseJSONFromBytes:rRt}=Xd(),{utf8DecodeBytes:nRt}=EF(),{runtimeFeatures:sRt}=Zd(),iRt=sRt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),wF=new TextEncoder;function oRt(){}var aRt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!XTt(e)&&!$j(e)&&e.cancel("Response object has been garbage collected").catch(oRt)});function tRe(t,e=!1){let r=null,n=null;xA.is.ReadableStream(t)?r=t:xA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),Zj(xA.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(xA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(xA.is.BufferSource(t))i=xA.util.getCopyOfBytesHeldByBufferSource(t);else if(xA.is.FormData(t)){let A=`----formdata-undici-0${`${iRt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=g=>g.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=g=>g.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let m=!1;for(let[g,C]of t)if(typeof C=="string"){let I=wF.encode(u+`; name="${l(d(g))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=av.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(I),o+=I.byteLength}else{let I=wF.encode(`${u}; name="${l(d(g))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=av.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(uc.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(k7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=uc.is.ReadableStream(t)?t:SBt(t)}return(typeof i=="string"||kBt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(D7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!D7(r)&&n.enqueue(typeof A=="string"?av.encode(A):new Uint8Array(A));queueMicrotask(()=>NBt(n))})(),[{stream:r,source:i,length:o},a]}function GBt(t,e=!1){return uc.is.ReadableStream(t)&&(R7(!k7.isDisturbed(t),"The body has already been consumed."),R7(!t.locked,"The stream is locked.")),$be(t,e)}function qBt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function YBt(t,e){return{blob(){return TE(this,n=>{let s=Kbe(e(this));return s===null?s="":s&&(s=vBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return TE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return TE(this,LBt,t,e)},json(){return TE(this,MBt,t,e)},formData(){return TE(this,n=>{let s=Kbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=_Bt(n,s),o=new jbe;return RBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new jbe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return TE(this,n=>new Uint8Array(n),t,e)}}}function VBt(t,e){Object.assign(t.prototype,YBt(t,e))}function TE(t,e,r,n){try{uc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Xbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=FBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(TBt(t.body,o,i),s.promise)}function Xbe(t){let e=t.body;return e!=null&&(e.stream.locked||k7.isDisturbed(e.stream))}function Kbe(t){let e=t.headersList,r=xBt(e);return r==="failure"?null:r}Zbe.exports={extractBody:$be,safelyExtractBody:GBt,cloneBody:qBt,mixinBody:VBt,streamRegistry:HBt,bodyUnusable:Xbe}});var fQe=C((Vbr,hQe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:eQe}=Gd(),v7=hV(),{RequestContentLengthMismatchError:xg,ResponseContentLengthMismatchError:tQe,RequestAbortedError:AQe,InvalidArgumentError:WBt,HeadersTimeoutError:JBt,HeadersOverflowError:zBt,SocketError:Rg,InformationalError:RE,BodyTimeoutError:jBt,HTTPParserError:KBt,ResponseExceededMaxSizeError:$Bt}=Xe(),{kUrl:uQe,kReset:Si,kClient:dv,kParser:pr,kBlocking:yQ,kRunning:fn,kPending:O7,kSize:rQe,kWriting:Vd,kQueue:lc,kNoRef:CQ,kKeepAliveDefaultTimeout:XBt,kHostHeader:ZBt,kPendingIdx:ebt,kRunningIdx:la,kError:Gs,kPipelining:uv,kSocket:kg,kKeepAliveTimeoutValue:hv,kMaxHeadersSize:tbt,kKeepAliveMaxTimeout:rbt,kKeepAliveTimeoutThreshold:nbt,kHeadersTimeout:sbt,kBodyTimeout:ibt,kStrictContentLength:M7,kMaxRequests:nQe,kCounter:obt,kMaxResponseSize:abt,kOnError:sQe,kResume:al,kHTTPContext:lQe,kClosed:L7}=Kt(),co=ZBe(),iQe=Buffer.alloc(0),cv=Buffer[Symbol.species],cbt=De.removeAllListeners,vg=Symbol("kIdleSocketValidation"),Dg=Symbol("kIdleSocketValidationTimeout"),H7=Symbol("kSocketUsed"),_7;function Abt(){let t=process.env.JEST_WORKER_ID?o7():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(rbe())}catch{}return e||(e=new WebAssembly.Module(t||o7())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onStatus(new cv(NA.buffer,o,i))},wasm_on_message_begin:n=>(He(zr.ptr===n),zr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderField(new cv(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderValue(new cv(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(zr.ptr===n),zr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onBody(new cv(NA.buffer,o,i))},wasm_on_message_complete:n=>(He(zr.ptr===n),zr.onMessageComplete())}})}var F7=null,zr=null,NA=null,Av=0,TA=null,ubt=0,IQ=1,DE=2|IQ,lv=4|IQ,U7=8|ubt,P7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[tbt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[ZBt],i?g+=`connection: upgrade\r
`);h.push(I,C,f),typeof C.size=="number"?o+=I.byteLength+C.size+f.byteLength:m=!0}let E=wF.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,m&&(o=null),i=t,s=async function*(){for(let g of h)g.stream?yield*g.stream():yield g},a=`multipart/form-data; boundary=${A}`}else if(xA.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(eK.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=xA.is.ReadableStream(t)?t:WTt(t)}return(typeof i=="string"||ZTt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if($j(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!$j(r)&&n.enqueue(typeof A=="string"?wF.encode(A):new Uint8Array(A));queueMicrotask(()=>JTt(n))})(),[{stream:r,source:i,length:o},a]}function cRt(t,e=!1){return xA.is.ReadableStream(t)&&(Zj(!eK.isDisturbed(t),"The body has already been consumed."),Zj(!t.locked,"The stream is locked.")),tRe(t,e)}function ARt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function uRt(t,e){return{blob(){return BI(this,n=>{let s=eRe(e(this));return s===null?s="":s&&(s=$Tt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return BI(this,n=>new Uint8Array(n).buffer,t,e)},text(){return BI(this,nRt,t,e)},json(){return BI(this,rRt,t,e)},formData(){return BI(this,n=>{let s=eRe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=eRt(n,s),o=new $Te;return KTt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new $Te;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return BI(this,n=>new Uint8Array(n),t,e)}}}function lRt(t,e){Object.assign(t.prototype,uRt(t,e))}function BI(t,e,r,n){try{xA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),rRe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=tRt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(VTt(t.body,o,i),s.promise)}function rRe(t){let e=t.body;return e!=null&&(e.stream.locked||eK.isDisturbed(e.stream))}function eRe(t){let e=t.headersList,r=jTt(e);return r==="failure"?null:r}nRe.exports={extractBody:tRe,safelyExtractBody:cRt,cloneBody:ARt,mixinBody:lRt,streamRegistry:aRt,bodyUnusable:rRe}});var ERe=y((PFr,gRe)=>{"use strict";var $e=Q("node:assert"),He=ht(),{channels:sRe}=im(),tK=MV(),{RequestContentLengthMismatchError:jg,ResponseContentLengthMismatchError:iRe,RequestAbortedError:hRe,InvalidArgumentError:dRt,HeadersTimeoutError:hRt,HeadersOverflowError:fRt,SocketError:Kg,InformationalError:QI,BodyTimeoutError:mRt,HTTPParserError:pRt,ResponseExceededMaxSizeError:gRt}=At(),{kUrl:fRe,kReset:ko,kClient:RF,kParser:Yr,kBlocking:Tx,kRunning:jn,kPending:cK,kSize:oRe,kWriting:cm,kQueue:SA,kNoRef:xx,kKeepAliveDefaultTimeout:ERt,kHostHeader:yRt,kPendingIdx:CRt,kRunningIdx:bc,kError:qi,kPipelining:SF,kSocket:Xg,kKeepAliveTimeoutValue:DF,kMaxHeadersSize:IRt,kKeepAliveMaxTimeout:BRt,kKeepAliveTimeoutThreshold:bRt,kHeadersTimeout:QRt,kBodyTimeout:wRt,kStrictContentLength:sK,kMaxRequests:aRe,kCounter:NRt,kMaxResponseSize:xRt,kOnError:cRe,kResume:eh,kHTTPContext:mRe,kClosed:iK}=br(),ma=nTe(),ARe=Buffer.alloc(0),NF=Buffer[Symbol.species],SRt=He.removeAllListeners,Zg=Symbol("kIdleSocketValidation"),wI=Symbol("kIdleSocketValidationTimeout"),AK=Symbol("kSocketUsed"),rK;function TRt(){let t=process.env.JEST_WORKER_ID?Sj():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(oTe())}catch{}return e||(e=new WebAssembly.Module(t||Sj())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onStatus(new NF(Zu.buffer,o,i))},wasm_on_message_begin:n=>($e(wn.ptr===n),wn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderField(new NF(Zu.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderValue(new NF(Zu.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>($e(wn.ptr===n),wn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onBody(new NF(Zu.buffer,o,i))},wasm_on_message_complete:n=>($e(wn.ptr===n),wn.onMessageComplete())}})}var nK=null,wn=null,Zu=null,xF=0,$u=null,RRt=0,Sx=1,NI=2|Sx,TF=4|Sx,oK=8|RRt,aK=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ma.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[IRt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?m+=`host: ${s}\r
`:m+=t[yRt],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[uv]&&!h[Si]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return eQe.sendHeaders.hasSubscribers&&eQe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?aQe(f,null,t,e,h,u,g,l):De.isBuffer(c)?aQe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?cQe(f,c.stream(),t,e,h,u,g,l):Bbt(f,c,t,e,h,u,g,l):De.isStream(c)?ybt(f,c,t,e,h,u,g,l):De.isIterable(c)?cQe(f,c,t,e,h,u,g,l):He(!1),!0}function ybt(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"stream body cannot be pipelined");let c=!1,A=new fv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new AQe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Vd]&&r[fn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function aQe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[SF]&&!h[ko]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let g=A[E+0],C=A[E+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)m+=`${g}: ${C[I]}\r
`;else m+=`${g}: ${C}\r
`}return sRe.sendHeaders.hasSubscribers&&sRe.sendHeaders.publish({request:e,headers:m,socket:h}),!c||d===0?lRe(f,null,t,e,h,u,m,l):He.isBuffer(c)?lRe(f,c,t,e,h,u,m,l):He.isBlobLike(c)?typeof c.stream=="function"?dRe(f,c.stream(),t,e,h,u,m,l):qRt(f,c,t,e,h,u,m,l):He.isStream(c)?HRt(f,c,t,e,h,u,m,l):He.isIterable(c)?dRe(f,c,t,e,h,u,m,l):$e(!1),!0}function HRt(t,e,r,n,s,i,o,a){$e(i!==0||r[jn]===0,"stream body cannot be pipelined");let c=!1,A=new kF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(m){He.destroy(this,m)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new hRe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,$e(s.destroyed||s[cm]&&r[jn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(m){f=m}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?He.destroy(e,f):He.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function lRe(t,e,r,n,s,i,o,a){try{e?He.isBuffer(e)&&($e(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Si]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[ko]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(He(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[al]()}catch(c){t(c)}}async function Bbt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):($e(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[eh]()}catch(c){t(c)}}async function qRt(t,e,r,n,s,i,o,a){$e(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new jg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Si]=!0),r[al]()}catch(c){t(c)}}async function cQe(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{He(c===null),s[Gs]?h(s[Gs]):c=d});s.on("close",A).on("drain",A);let l=new fv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Gs])throw s[Gs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var fv=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Vd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Gs])throw r[Gs];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[M7])throw new xg;process.emitWarning(new xg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Si]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ko]=!0),r[eh]()}catch(c){t(c)}}async function dRe(t,e,r,n,s,i,o,a){$e(i!==0||r[jn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{$e(c===null),s[qi]?h(s[qi]):c=d});s.on("close",A).on("drain",A);let l=new kF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[qi])throw s[qi];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var kF=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[cm]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[qi])throw r[qi];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[sK])throw new jg;process.emitWarning(new jg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ko]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[pr].timeout&&r[pr].timeoutType===DE&&r[pr].timeout.refresh&&r[pr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Vd]=!1,e[Gs])throw e[Gs];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===NI&&r[Yr].timeout.refresh&&r[Yr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[cm]=!1,e[qi])throw e[qi];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[M7])throw new xg;process.emitWarning(new xg)}e[pr].timeout&&e[pr].timeoutType===DE&&e[pr].timeout.refresh&&e[pr].timeout.refresh(),n[al]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vd]=!1,e&&(He(n[fn]<=1,"pipeline should only contain this request"),s(e))}};hQe.exports=lbt});var bQe=C((Wbr,BQe)=>{"use strict";var ha=Q("node:assert"),{pipeline:bbt}=Q("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:V7,RequestAbortedError:Qbt,SocketError:wQ,InformationalError:Wd,InvalidArgumentError:wbt}=Xe(),{kUrl:QQ,kReset:Ev,kClient:Ao,kRunning:SQ,kPending:Sbt,kQueue:Jd,kPendingIdx:J7,kRunningIdx:dc,kError:uo,kSocket:vr,kStrictContentLength:Nbt,kOnError:kE,kMaxConcurrentStreams:pv,kPingInterval:gQe,kHTTP2Session:cl,kHTTP2InitialWindowSize:Tbt,kHTTP2ConnectionWindowSize:xbt,kResume:xA,kSize:Rbt,kHTTPContext:z7,kClosed:W7,kBodyTimeout:Dbt,kEnableConnectProtocol:BQ,kRemoteSettings:bQ,kHTTP2Stream:gv,kHTTP2SessionState:j7}=Kt(),{channels:pQe}=Gd(),da=Symbol("open streams"),mQe,mv;try{mv=Q("node:http2")}catch{mv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:kbt,HTTP2_HEADER_METHOD:EQe,HTTP2_HEADER_PATH:CQe,HTTP2_HEADER_SCHEME:G7,HTTP2_HEADER_CONTENT_LENGTH:vbt,HTTP2_HEADER_EXPECT:_bt,HTTP2_HEADER_STATUS:q7,HTTP2_HEADER_PROTOCOL:Fbt,NGHTTP2_REFUSED_STREAM:Mbt,NGHTTP2_CANCEL:Lbt}}=mv;function Y7(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}function Ubt(t,e){t[vr]=e;let r=t[Tbt],n=t[xbt],s=mv.connect(t[QQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[pv],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[vr]=e,s[da]=0,s[Ao]=t,s[vr]=e,s[j7]={ping:{interval:t[gQe]===0?null:setInterval(Gbt,t[gQe],s).unref()}},s[BQ]=!1,s[bQ]=!1,n&&ut.addListener(s,"connect",Obt.bind(s,n)),ut.addListener(s,"error",qbt),ut.addListener(s,"frameError",Ybt),ut.addListener(s,"end",Vbt),ut.addListener(s,"goaway",Wbt),ut.addListener(s,"close",Jbt),ut.addListener(s,"remoteSettings",Hbt),s.unref(),t[cl]=s,e[cl]=s,ut.addListener(e,"error",jbt),ut.addListener(e,"end",Kbt),ut.addListener(e,"close",zbt),e[W7]=!1,e.on("close",$bt),{version:"h2",defaultPipelining:1/0,write(i){return Zbt(t,i)},resume(){Pbt(t)},destroy(i,o){e[W7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[SQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[bQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[bQ]===!1;return!1}}}function Pbt(t){let e=t[vr];e?.destroyed===!1&&(t[Rbt]===0||t[pv]===0?(e.unref(),t[cl].unref()):(e.ref(),t[cl].ref()))}function Obt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Hbt(t){if(this[Ao][pv]=t.maxConcurrentStreams??this[Ao][pv],this[bQ]===!0&&this[BQ]===!0&&t.enableConnectProtocol===!1){let e=new Wd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[vr][uo]=e,this[Ao][kE](e);return}this[BQ]=t.enableConnectProtocol??this[BQ],this[bQ]=!0,this[Ao][xA]()}function Gbt(t){let e=t[j7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Ao],o=this[Ao];if(n!=null){let a=new Wd(`HTTP/2: "PING" errored - type ${n.message}`);o[uo]=a,i[kE](a)}else i.emit("ping",s)}}function qbt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vr][uo]=t,this[Ao][kE](t)}function Ybt(t,e,r){if(r===0){let n=new Wd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vr][uo]=n,this[Ao][kE](n)}}function Vbt(){let t=new wQ("other side closed",ut.getSocketInfo(this[vr]));this.destroy(t),ut.destroy(this[vr],t)}function Wbt(t){let e=this[uo]||new wQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[vr])),r=this[Ao];if(r[vr]=null,r[z7]=null,this.close(),this[cl]=null,ut.destroy(this[vr],e),r[dc]<r[Jd].length){let n=r[Jd][r[dc]];r[Jd][r[dc]++]=null,ut.errorRequest(r,n,e),r[J7]=r[dc]}ha(r[SQ]===0),r.emit("disconnect",r[QQ],[r],e),r.emit("connectionError",r[QQ],[r],e),r[xA]()}function Jbt(){let{[Ao]:t,[j7]:e}=this,{[vr]:r}=t,n=this[vr][uo]||this[uo]||new wQ("closed",ut.getSocketInfo(r));if(t[vr]=null,t[z7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ha(t[Sbt]===0);let s=t[Jd].splice(t[dc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function zbt(){let t=this[uo]||new wQ("closed",ut.getSocketInfo(this)),e=this[cl][Ao];e[vr]=null,e[z7]=null,this[cl]!==null&&this[cl].destroy(t),e[J7]=e[dc],ha(e[SQ]===0),e.emit("disconnect",e[QQ],[e],t),e[xA]()}function jbt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[uo]=t,this[Ao][kE](t)}function Kbt(){ut.destroy(this,new wQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;pQe.sendHeaders.publish({request:e,headers:k,socket:n[vr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[_bt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[gv]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[gv]=!0,V()),++n[da],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[q7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),Y7(v),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Jd][t[dc]++]=null,t[xA]()):(m(new Wd("HTTP/2: stream half-closed (remote)")),t[Jd][t[dc]++]=null,t[J7]=t[dc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[da]-=1,n[da]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Wd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Wd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[da]-=1,n[da]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?IQe(m,f,null,t,e,t[vr],y,I):ut.isBuffer(d)?IQe(m,f,d,t,e,t[vr],y,I):ut.isBlobLike(d)?typeof d.stream=="function"?yQe(m,f,d.stream(),t,e,t[vr],y,I):tQt(m,f,d,t,e,t[vr],y,I):ut.isStream(d)?eQt(m,t[vr],I,f,d,t,e,y):ut.isIterable(d)?yQe(m,f,d,t,e,t[vr],y,I):ha(!1)}}function IQe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ha(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Ev]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function eQt(t,e,r,n,s,i,o,a){ha(a!==0||i[SQ]===0,"stream body cannot be pipelined");let c=bbt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Ev]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function tQt(t,e,r,n,s,i,o,a){ha(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new V7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Ev]=!0),n[xA]()}catch(c){t(c)}}async function yQe(t,e,r,n,s,i,o,a){ha(o!==0||n[SQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ha(c===null),i[uo]?d(i[uo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[uo])throw i[uo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Ev]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}BQe.exports=Ubt});var $d=C((Jbr,DQe)=>{"use strict";var Al=Q("node:assert"),NQe=Q("node:net"),NQ=Q("node:http"),_g=Ze(),{ClientStats:rQt}=GV(),{channels:vE}=Gd(),nQt=HBe(),sQt=Qg(),{InvalidArgumentError:mr,InformationalError:iQt,ClientDestroyedError:oQt}=Xe(),aQt=wg(),{kUrl:RA,kServerName:Kd,kClient:cQt,kBusy:$7,kConnect:AQt,kResuming:Fg,kRunning:DQ,kPending:kQ,kSize:TQ,kQueue:hc,kConnected:uQt,kConnecting:_E,kNeedDrain:jd,kKeepAliveDefaultTimeout:QQe,kHostHeader:lQt,kPendingIdx:fc,kRunningIdx:ll,kError:dQt,kPipelining:Cv,kKeepAliveTimeoutValue:hQt,kMaxHeadersSize:fQt,kKeepAliveMaxTimeout:gQt,kKeepAliveTimeoutThreshold:pQt,kHeadersTimeout:mQt,kBodyTimeout:EQt,kStrictContentLength:CQt,kConnector:xQ,kMaxRequests:X7,kCounter:IQt,kClose:yQt,kDestroy:BQt,kDispatch:bQt,kLocalAddress:RQ,kMaxResponseSize:QQt,kOnError:wQt,kHTTPContext:on,kMaxConcurrentStreams:SQt,kHTTP2InitialWindowSize:NQt,kHTTP2ConnectionWindowSize:TQt,kResume:ul,kPingInterval:xQt}=Kt(),RQt=fQe(),DQt=bQe(),zd=Symbol("kClosedResolve"),kQt=NQ&&NQ.maxHeaderSize&&Number.isInteger(NQ.maxHeaderSize)&&NQ.maxHeaderSize>0?()=>NQ.maxHeaderSize:()=>{throw new mr("http module not available or http.maxHeaderSize invalid")},wQe=()=>{};function TQe(t){return t[Cv]??t[on]?.defaultPipelining??1}var Z7=class extends sQt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:X,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new mr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new mr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new mr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[EQt]=a??3e5,this[mQt]=n??3e5,this[CQt]=m??!0,this[X7]=B,this[zd]=null,this[QQt]=V>-1?V:-1,this[on]=null,this[SQt]=v??100,this[NQt]=te??262144,this[TQt]=ce??524288,this[xQt]=ue??6e4,this[hc]=[],this[ll]=0,this[fc]=0,this[ul]=ke=>eW(this,ke),this[wQt]=ke=>xQe(this,ke)}get pipelining(){return this[Cv]}set pipelining(e){this[Cv]=e,this[ul](!0)}get stats(){return new rQt(this)}get[kQ](){return this[hc].length-this[fc]}get[DQ](){return this[fc]-this[ll]}get[TQ](){return this[hc].length-this[ll]}get[uQt](){return!!this[on]&&!this[_E]&&!this[on].destroyed}get[$7](){return!!(this[on]?.busy(null)||this[TQ]>=(TQe(this)||1)||this[kQ]>0)}[AQt](e){RQe(this),this.once("connect",e)}[bQt](e,r){let n=new nQt(this[RA].origin,e,r);return this[hc].push(n),this[Fg]||(_g.bodyLength(n.body)==null&&_g.isIterable(n.body)?(this[Fg]=1,queueMicrotask(()=>eW(this))):this[ul](!0)),this[Fg]&&this[jd]!==2&&this[$7]&&(this[jd]=2),this[jd]<2}[yQt](){return new Promise(e=>{this[TQ]?this[zd]=e:e(null)})}[BQt](e){return new Promise(r=>{let n=this[hc].splice(this[fc]);for(let i=0;i<n.length;i++){let o=n[i];_g.errorRequest(this,o,e)}let s=()=>{this[zd]&&(this[zd](),this[zd]=null),r(null)};this[on]?(this[on].destroy(e,s),this[on]=null):queueMicrotask(s),this[ul]()})}};function xQe(t,e){if(t[DQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Al(t[fc]===t[ll]);let r=t[hc].splice(t[ll]);for(let n=0;n<r.length;n++){let s=r[n];_g.errorRequest(t,s,e)}Al(t[TQ]===0)}}function RQe(t){Al(!t[_E]),Al(!t[on]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");Al(i!==-1);let o=r.substring(1,i);Al(NQe.isIPv6(o)),r=o}t[_E]=!0,vE.beforeConnect.hasSubscribers&&vE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ]});try{t[xQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Kd],localAddress:t[RQ]},(i,o)=>{if(i){K7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ul]();return}if(t.destroyed){_g.destroy(o.on("error",wQe),new oQt),t[ul]();return}Al(o);try{t[on]=o.alpnProtocol==="h2"?DQt(t,o):RQt(t,o)}catch(a){o.destroy().on("error",wQe),K7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[ul]();return}t[_E]=!1,o[IQt]=0,o[X7]=t[X7],o[cQt]=t,o[dQt]=null,vE.connected.hasSubscribers&&vE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ],socket:o}),t.emit("connect",t[RA],[t]),t[ul]()})}catch(i){K7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ul]()}}function K7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[_E]=!1,vE.connectError.hasSubscribers&&vE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Al(t[DQ]===0);t[kQ]>0&&t[hc][t[fc]].servername===t[Kd];){let o=t[hc][t[fc]++];_g.errorRequest(t,o,e)}else xQe(t,e);t.emit("connectionError",t[RA],[t],e)}}function SQe(t){t[jd]=0,t.emit("drain",t[RA],[t])}function eW(t,e){t[Fg]!==2&&(t[Fg]=2,vQt(t,e),t[Fg]=0,t[ll]>256&&(t[hc].splice(0,t[ll]),t[fc]-=t[ll],t[ll]=0))}function vQt(t,e){for(;;){if(t.destroyed){Al(t[kQ]===0);return}if(t[zd]&&!t[TQ]){t[zd](),t[zd]=null;return}if(t[on]&&t[on].resume(),t[$7])t[jd]=2;else if(t[jd]===2){e?(t[jd]=1,queueMicrotask(()=>SQe(t))):SQe(t);continue}if(t[kQ]===0||t[DQ]>=(TQe(t)||1))return;let r=t[hc][t[fc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[Kd]!==r.servername){if(t[DQ]>0)return;t[Kd]=r.servername,t[on]?.destroy(new iQt("servername changed"),()=>{t[on]=null,eW(t)})}if(t[_E])return;if(!t[on]){RQe(t);return}if(t[on].destroyed||t[on].busy(r))return;!r.aborted&&t[on].write(r)?t[fc]++:t[hc].splice(t[fc],1)}}DQe.exports=Z7});var tW=C((jbr,kQe)=>{"use strict";var Iv=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};kQe.exports=class{constructor(){this.head=this.tail=new Iv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Iv),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var yv=C((Kbr,HQe)=>{"use strict";var{PoolStats:_Qt}=GV(),FQt=Qg(),MQt=tW(),{kConnected:rW,kSize:vQe,kRunning:_Qe,kPending:FQe,kQueued:vQ,kBusy:LQt,kFree:UQt,kUrl:PQt,kClose:OQt,kDestroy:HQt,kDispatch:GQt}=Kt(),Jn=Symbol("clients"),qs=Symbol("needDrain"),_Q=Symbol("queue"),nW=Symbol("closed resolve"),sW=Symbol("onDrain"),MQe=Symbol("onConnect"),LQe=Symbol("onDisconnect"),UQe=Symbol("onConnectionError"),iW=Symbol("get dispatcher"),PQe=Symbol("add client"),OQe=Symbol("remove client"),oW=class extends FQt{[_Q]=new MQt;[vQ]=0;[Jn] Line truncated
`,"latin1"),r!==null&&s!==r){if(n[sK])throw new jg;process.emitWarning(new jg)}e[Yr].timeout&&e[Yr].timeoutType===NI&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[eh]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[cm]=!1,e&&($e(n[jn]<=1,"pipeline should only contain this request"),s(e))}};gRe.exports=DRt});var xRe=y((MFr,NRe)=>{"use strict";var wc=Q("node:assert"),{pipeline:GRt}=Q("node:stream"),Tt=ht(),{RequestContentLengthMismatchError:hK,RequestAbortedError:YRt,SocketError:Mx,InformationalError:Am,InvalidArgumentError:zRt,HeadersTimeoutError:WRt,BodyTimeoutError:JRt}=At(),{kUrl:Px,kReset:MF,kClient:pa,kRunning:Fx,kPending:VRt,kQueue:Dx,kPendingIdx:$g,kRunningIdx:el,kError:ga,kSocket:An,kStrictContentLength:jRt,kOnError:xI,kMaxConcurrentStreams:fK,kPingInterval:yRe,kHTTP2Session:th,kHTTP2InitialWindowSize:KRt,kHTTP2ConnectionWindowSize:XRt,kResume:tl,kSize:ZRt,kHTTPContext:pK,kClosed:mK,kBodyTimeout:$Rt,kHeadersTimeout:eDt,kEnableConnectProtocol:kx,kRemoteSettings:vx,kHTTP2Stream:vF,kHTTP2SessionState:gK}=br(),{channels:CRe}=im(),Qc=Symbol("open streams"),IRe,PF;try{PF=Q("node:http2")}catch{PF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tDt,HTTP2_HEADER_METHOD:BRe,HTTP2_HEADER_PATH:bRe,HTTP2_HEADER_SCHEME:uK,HTTP2_HEADER_CONTENT_LENGTH:rDt,HTTP2_HEADER_EXPECT:nDt,HTTP2_HEADER_STATUS:lK,HTTP2_HEADER_PROTOCOL:sDt,NGHTTP2_REFUSED_STREAM:iDt,NGHTTP2_CANCEL:oDt}}=PF;function dK(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}function aDt(t,e){t[An]=e;let r=t[KRt],n=t[XRt],s=PF.connect(t[Px],{createConnection:()=>e,peerMaxConcurrentStreams:t[fK],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[An]=e,s[Qc]=0,s[pa]=t,s[An]=e,s[gK]={ping:{interval:t[yRe]===0?null:setInterval(lDt,t[yRe],s).unref()}},s[kx]=!1,s[vx]=!1,n&&Tt.addListener(s,"connect",ADt.bind(s,n)),Tt.addListener(s,"error",dDt),Tt.addListener(s,"frameError",hDt),Tt.addListener(s,"end",fDt),Tt.addListener(s,"goaway",mDt),Tt.addListener(s,"close",pDt),Tt.addListener(s,"remoteSettings",uDt),s.unref(),t[th]=s,e[th]=s,Tt.addListener(e,"error",EDt),Tt.addListener(e,"end",yDt),Tt.addListener(e,"close",gDt),e[mK]=!1,e.on("close",CDt),{version:"h2",defaultPipelining:1/0,write(i){return BDt(t,i)},resume(){cDt(t)},destroy(i,o){e[mK]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Fx]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[vx]===!1||Tt.bodyLength(i.body)!==0&&(Tt.isStream(i.body)||Tt.isAsyncIterable(i.body)||Tt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[vx]===!1;return!1}}}function cDt(t){let e=t[An];e?.destroyed===!1&&(t[ZRt]===0?(e.unref(),t[th].unref()):(e.ref(),t[th].ref()))}function ADt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function uDt(t){if(this[pa][fK]=t.maxConcurrentStreams??this[pa][fK],this[vx]===!0&&this[kx]===!0&&t.enableConnectProtocol===!1){let e=new Am("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[An][ga]=e,this[pa][xI](e);return}this[kx]=t.enableConnectProtocol??this[kx],this[vx]=!0,this[pa][tl]()}function lDt(t){let e=t[gK];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[pa],o=this[pa];if(n!=null){let a=new Am(`HTTP/2: "PING" errored - type ${n.message}`);o[ga]=a,i[xI](a)}else i.emit("ping",s)}}function dDt(t){wc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[An][ga]=t,this[pa][xI](t)}function hDt(t,e,r){if(r===0){let n=new Am(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[An][ga]=n,this[pa][xI](n)}}function fDt(){let t=new Mx("other side closed",Tt.getSocketInfo(this[An]));this.destroy(t),Tt.destroy(this[An],t)}function Rx(t,e,r=!1){let n=t[Dx],s=t[el];if(s<t[$g]&&n[s]===e){n[s]=null,t[el]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[$g]||(n.splice(i,1),t[$g]--,r&&t[$g]<t[el]&&(t[$g]=t[el]))}function mDt(t){let e=this[ga]||new Mx(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this[An])),r=this[pa];if(r[An]=null,r[pK]=null,this.close(),this[th]=null,Tt.destroy(this[An],e),r[el]<r[Dx].length){let n=r[Dx][r[el]];r[Dx][r[el]++]=null,n!=null&&Tt.errorRequest(r,n,e),r[$g]=r[el]}wc(r[Fx]===0),r.emit("disconnect",r[Px],[r],e),r.emit("connectionError",r[Px],[r],e),r[tl]()}function pDt(){let{[pa]:t,[gK]:e}=this,{[An]:r}=t,n=this[An][ga]||this[ga]||new Mx("closed",Tt.getSocketInfo(r));if(t[An]=null,t[pK]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){wc(t[VRt]===0);let s=t[Dx].splice(t[el]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&Tt.errorRequest(t,o,n)}}}function gDt(){let t=this[ga]||new Mx("closed",Tt.getSocketInfo(this)),e=this[th][pa];e[An]=null,e[pK]=null,this[th]!==null&&this[ Line truncated
`;CRe.sendHeaders.publish({request:e,headers:H,socket:s[An]})}let M=i==="GET"||i==="HEAD"||h===null;A?(f[nDt]="100-continue",m=s.request(f,{endStream:M,signal:u}),m[vF]=!0,m.once("continue",F)):(m=s.request(f,{endStream:M,signal:u}),m[vF]=!0,F()),++s[Qc],m.setTimeout(r);let J=!1;return m.once("response",H=>{let{[lK]:k,...j}=H;if(e.onResponseStarted(),J=!0,m.setTimeout(n),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(k),dK(j),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",$=>{e.aborted||e.completed||e.onData($)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),J?(!e.aborted&&!e.completed&&e.onComplete({}),Rx(t,e),t[tl]()):(C(new Am("HTTP/2: stream half-closed (remote)")),Rx(t,e,!0),t[tl]())}),m.once("close",()=>{m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),!e.aborted&&!e.completed&&C(new Am("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(H){m.removeAllListeners("data"),C(H)}),m.once("frameError",(H,k)=>{m.removeAllListeners("data"),C(new Am(`HTTP/2: "frameError" received - type ${H}, code ${k}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let H=J?new JRt(`HTTP/2: "body timeout after ${n}"`):new WRt(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),C(H)}),m.once("trailers",H=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(H))}),!0;function F(){!h||B===0?QRe(C,m,null,t,e,t[An],B,I):Tt.isBuffer(h)?QRe(C,m,h,t,e,t[An],B,I):Tt.isBlobLike(h)?typeof h.stream=="function"?wRe(C,m,h.stream(),t,e,t[An],B,I):QDt(C,m,h,t,e,t[An],B,I):Tt.isStream(h)?bDt(C,t[An],I,m,h,t,e,B):Tt.isIterable(h)?wRe(C,m,h,t,e,t[An],B,I):wc(!1)}}function QRe(t,e,r,n,s,i,o,a){try{r!=null&&Tt.isBuffer(r)&&(wc(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[MF]=!0),s.onRequestSent(),n[tl]()}catch(c){t(c)}}function bDt(t,e,r,n,s,i,o,a){wc(a!==0||i[Fx]===0,"stream body cannot be pipelined");let c=GRt(s,n,u=>{u?(Tt.destroy(c,u),t(u)):(Tt.removeAllListeners(c),o.onRequestSent(),r||(e[MF]=!0),i[tl]())});Tt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function QDt(t,e,r,n,s,i,o,a){wc(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new hK;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[MF]=!0),n[tl]()}catch(c){t(c)}}async function wRe(t,e,r,n,s,i,o,a){wc(o!==0||n[Fx]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{wc(c===null),i[ga]?d(i[ga]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[ga])throw i[ga];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[MF]=!0),n[tl]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}NRe.exports=aDt});var hm=y((FFr,MRe)=>{"use strict";var rh=Q("node:assert"),DRe=Q("node:net"),Lx=Q("node:http"),eE=ht(),{ClientStats:wDt}=uj(),{channels:SI}=im(),NDt=z1e(),xDt=Yg(),{InvalidArgumentError:zr,InformationalError:SDt,ClientDestroyedError:TDt}=At(),RDt=zg(),{kUrl:rl,kServerName:dm,kClient:DDt,kBusy:yK,kConnect:kDt,kResuming:tE,kRunning:Hx,kPending:qx,kSize:_x,kQueue:TA,kConnected:vDt,kConnecting:TI,kNeedDrain:lm,kKeepAliveDefaultTimeout:SRe,kHostHeader:PDt,kPendingIdx:RA,kRunningIdx:sh,kError:MDt,kPipelining:FF,kKeepAliveTimeoutValue:FDt,kMaxHeadersSize:LDt,kKeepAliveMaxTimeout:_Dt,kKeepAliveTimeoutThreshold:UDt,kHeadersTimeout:ODt,kBodyTimeout:HDt,kStrictContentLength:qDt,kConnector:Ux,kMaxRequests:CK,kCounter:GDt,kClose:YDt,kDestroy:zDt,kDispatch:WDt,kLocalAddress:Ox,kMaxResponseSize:JDt,kOnError:VDt,kHTTPContext:On,kMaxConcurrentStreams:jDt,kHTTP2InitialWindowSize:KDt,kHTTP2ConnectionWindowSize:XDt,kResume:nh,kPingInterval:ZDt}=br(),$Dt=ERe(),e2t=xRe(),um=Symbol("kClosedResolve"),t2t=Lx&&Lx.maxHeaderSize&&Number.isInteger(Lx.maxHeaderSize)&&Lx.maxHeaderSize>0?()=>Lx.maxHeaderSize:()=>{throw new zr("http module not available or http.maxHeaderSize invalid")},TRe=()=>{};function kRe(t){return t[FF]??t[On]?.defaultPipelining??1}var IK=class extends xDt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:m,tls:E,strictContentLength:g,maxCachedSessions:C,connect:I,maxRequestsPerClient:B,localAddress:M,maxResponseSize:J,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:k,allowH2:j,useH2c:$,initialWindowSize:ne,connectionWindowSize:le,pingInterval:fe,webSocket:Ve}={}){if(A!==void 0)throw new zr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new zr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new zr("unsupported requestTimeout, use headersTimeout & Line truncated
`,this[HDt]=a??3e5,this[ODt]=n??3e5,this[qDt]=g??!0,this[CK]=B,this[um]=null,this[JDt]=J>-1?J:-1,this[On]=null,this[jDt]=k??100,this[KDt]=ne??262144,this[XDt]=le??524288,this[ZDt]=fe??6e4,this[TA]=[],this[sh]=0,this[RA]=0,this[nh]=ze=>BK(this,ze),this[VDt]=ze=>vRe(this,ze)}get pipelining(){return this[FF]}set pipelining(e){this[FF]=e,this[nh](!0)}get stats(){return new wDt(this)}get[qx](){return this[TA].length-this[RA]}get[Hx](){return this[RA]-this[sh]}get[_x](){return this[TA].length-this[sh]}get[vDt](){return!!this[On]&&!this[TI]&&!this[On].destroyed}get[yK](){return!!(this[On]?.busy(null)||this[_x]>=(kRe(this)||1)||this[qx]>0)}[kDt](e){PRe(this),this.once("connect",e)}[WDt](e,r){let n=new NDt(this[rl].origin,e,r);return this[TA].push(n),this[tE]||(eE.bodyLength(n.body)==null&&eE.isIterable(n.body)?(this[tE]=1,queueMicrotask(()=>BK(this))):this[nh](!0)),this[tE]&&this[lm]!==2&&this[yK]&&(this[lm]=2),this[lm]<2}[YDt](){return new Promise(e=>{this[_x]?this[um]=e:e(null)})}[zDt](e){return new Promise(r=>{let n=this[TA].splice(this[RA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&eE.errorRequest(this,o,e)}let s=()=>{this[um]&&(this[um](),this[um]=null),r(null)};this[On]?(this[On].destroy(e,s),this[On]=null):queueMicrotask(s),this[nh]()})}};function vRe(t,e){if(t[Hx]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){rh(t[RA]===t[sh]);let r=t[TA].splice(t[sh]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&eE.errorRequest(t,s,e)}rh(t[_x]===0)}}function PRe(t){rh(!t[TI]),rh(!t[On]);let{host:e,hostname:r,protocol:n,port:s}=t[rl];if(r[0]==="["){let i=r.indexOf("]");rh(i!==-1);let o=r.substring(1,i);rh(DRe.isIPv6(o)),r=o}t[TI]=!0,SI.beforeConnect.hasSubscribers&&SI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[dm],localAddress:t[Ox]},connector:t[Ux]});try{t[Ux]({host:e,hostname:r,protocol:n,port:s,servername:t[dm],localAddress:t[Ox]},(i,o)=>{if(i){EK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[nh]();return}if(t.destroyed){eE.destroy(o.on("error",TRe),new TDt),t[nh]();return}rh(o);try{t[On]=o.alpnProtocol==="h2"?e2t(t,o):$Dt(t,o)}catch(a){o.destroy().on("error",TRe),EK(t,a,{host:e,hostname:r,protocol:n,port:s}),t[nh]();return}t[TI]=!1,o[GDt]=0,o[CK]=t[CK],o[DDt]=t,o[MDt]=null,SI.connected.hasSubscribers&&SI.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[dm],localAddress:t[Ox]},connector:t[Ux],socket:o}),t.emit("connect",t[rl],[t]),t[nh]()})}catch(i){EK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[nh]()}}function EK(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[TI]=!1,SI.connectError.hasSubscribers&&SI.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[On]?.version,servername:t[dm],localAddress:t[Ox]},connector:t[Ux],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(rh(t[Hx]===0);t[qx]>0&&t[TA][t[RA]].servername===t[dm];){let o=t[TA][t[RA]++];eE.errorRequest(t,o,e)}else vRe(t,e);t.emit("connectionError",t[rl],[t],e)}}function RRe(t){t[lm]=0,t.emit("drain",t[rl],[t])}function BK(t,e){t[tE]!==2&&(t[tE]=2,r2t(t,e),t[tE]=0,t[sh]>256&&(t[TA].splice(0,t[sh]),t[RA]-=t[sh],t[sh]=0))}function r2t(t,e){for(;;){if(t.destroyed){rh(t[qx]===0);return}if(t[um]&&!t[_x]){t[um](),t[um]=null;return}if(t[On]&&t[On].resume(),t[yK])t[lm]=2;else if(t[lm]===2){e?(t[lm]=1,queueMicrotask(()=>RRe(t))):RRe(t);continue}if(t[qx]===0||t[Hx]>=(kRe(t)||1))return;let r=t[TA][t[RA]];if(r===null)return;if(t[rl].protocol==="https:"&&t[dm]!==r.servername){if(t[Hx]>0)return;t[dm]=r.servername,t[On]?.destroy(new SDt("servername changed"),()=>{t[On]=null,BK(t)})}if(t[TI])return;if(!t[On]){PRe(t);return}if(t[On].destroyed||t[On].busy(r))return;!r.aborted&&t[On].write(r)?t[RA]++:t[TA].splice(t[RA],1)}}MRe.exports=IK});var bK=y((_Fr,FRe)=>{"use strict";var LF=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};FRe.exports=class{constructor(){this.head=this.tail=new LF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new LF),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var _F=y((UFr,zRe)=>{"use strict";var{PoolStats:n2t}=uj(),s2t=Yg(),i2t=bK(),{kConnected:QK,kSize:LRe,kRunning:_Re,kPending:URe,kQueued:Gx,kBusy:o2t,kFree:a2t,kUrl:c2t,kClose:A2t,kDestroy:u2t,kDispatch:l2t}=br(),Ps=Symbol("clients"),Gi=Symbol("needDrain"),Yx=Symbol("queue"),wK=Symbol("closed resolve"),NK=Symbol("onDrain"),ORe=Symbol("onConnect"),HRe=Symbol("onDisconnect"),qRe=Symbol("onConnectionError"),xK=Symbol("get dispatcher"),GRe=Symbol("add client"),YRe=Symbol("remove client"),SK=class extends s2t{[Yx]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};dSe.exports=QJ});var SJ=C((NQr,pSe)=>{"use strict";var{InvalidArgumentError:USt}=Xe(),{runtimeFeatures:PSt}=il();function OSt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var hSe=PSt.has("crypto")?Q("node:crypto"):null,HSt=hSe?.hash?t=>hSe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function gSe(t){return Array.isArray(t)&&(t.length&1)===0}function GSt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function qSt(t){let e={};if(!t)return e;if(gSe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var fSe=["record","playback","update"];function YSt(t){if(!fSe.includes(t))throw new USt(`Invalid snapshot mode: ${t}. Must be one of: ${fSe.join(", ")}`)}pSe.exports={createHeaderFilters:OSt,hashId:HSt,isUndiciHeaders:gSe,normalizeHeaders:qSt,isUrlExcludedFactory:GSt,validateSnapshotMode:YSt}});var wSe=C((TQr,QSe)=>{"use strict";var{writeFile:VSt,readFile:WSt,mkdir:JSt}=Q("node:fs/promises"),{dirname:zSt,resolve:mSe}=Q("node:path"),{setTimeout:jSt,clearTimeout:ESe}=Q("node:timers"),{InvalidArgumentError:CSe,UndiciError:KSt}=Xe(),{hashId:$St,isUrlExcludedFactory:XSt,normalizeHeaders:ISe,createHeaderFilters:ySe}=SJ();function WQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||ISe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:BSe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function BSe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function bSe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function JQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return $St(r)}var NJ=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#c=ySe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=XSt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=WQ(e,this.#c,this.matchOptions),s=JQ(n),i=ISe(r.headers),o={statusCode:r.statusCode,headers:bSe(i,this.#c,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=WQ(e,this.#c,this.matchOptions),n=JQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new CSe("Snapshot path is required");try{let n=await WSt(mSe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new KSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new CSe("Snapshot path is required");let n=mSe(r);await JSt(zSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await VSt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};pke.exports=WX});var VX=y((pLr,Cke)=>{"use strict";var{InvalidArgumentError:aPt}=At(),{runtimeFeatures:cPt}=Zd();function APt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var gke=cPt.has("crypto")?Q("node:crypto"):null,uPt=gke?.hash?t=>gke.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function yke(t){return Array.isArray(t)&&(t.length&1)===0}function lPt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function dPt(t){let e={};if(!t)return e;if(yke(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var Eke=["record","playback","update"];function hPt(t){if(!Eke.includes(t))throw new aPt(`Invalid snapshot mode: ${t}. Must be one of: ${Eke.join(", ")}`)}Cke.exports={createHeaderFilters:APt,hashId:uPt,isUndiciHeaders:yke,normalizeHeaders:dPt,isUrlExcludedFactory:lPt,validateSnapshotMode:hPt}});var Tke=y((gLr,Ske)=>{"use strict";var{writeFile:fPt,readFile:mPt,mkdir:pPt}=Q("node:fs/promises"),{dirname:gPt,resolve:Ike}=Q("node:path"),{setTimeout:EPt,clearTimeout:Bke}=Q("node:timers"),{InvalidArgumentError:bke,UndiciError:yPt}=At(),{hashId:CPt,isUrlExcludedFactory:IPt,normalizeHeaders:Qke,createHeaderFilters:wke}=VX();function nS(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Qke(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:Nke(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Nke(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function xke(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function sS(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return CPt(r)}var jX=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=wke(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=IPt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=nS(e,this.#a,this.matchOptions),s=sS(n),i=Qke(r.headers),o={statusCode:r.statusCode,headers:xke(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=nS(e,this.#a,this.matchOptions),n=sS(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new bke("Snapshot path is required");try{let n=await mPt(Ike(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new yPt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new bke("Snapshot path is required");let n=Ike(r);await pPt(gPt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await fPt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ho} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ya} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +132,8 @@ ${e.format(r)}`.trim())}};dSe.exports=QJ});var SJ=C((NQr,pSe)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ho}_getValuesQuery ON cacheInterceptorV${ho}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ho}_deleteByUrlQuery ON cacheInterceptorV${ho}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ya}_getValuesQuery ON cacheInterceptorV${ya}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ya}_deleteByUrlQuery ON cacheInterceptorV${ya}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +147,14 @@ ${e.format(r)}`.trim())}};dSe.exports=QJ});var SJ=C((NQr,pSe)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${ho}
FROM cacheInterceptorV${ya}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${ho} SET
UPDATE cacheInterceptorV${ya} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -168,7 +167,7 @@ ${e.format(r)}`.trim())}};dSe.exports=QJ});var SJ=C((NQr,pSe)=>{"use strict";var
WHERE
id = ?
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ho} (
INSERT INTO cacheInterceptorV${ya} (
url,
method,
body,
@@ -182,91 +181,91 @@ ${e.format(r)}`.trim())}};dSe.exports=QJ});var SJ=C((NQr,pSe)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ho} WHERE url = ?`),this.#a=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ho}`),this.#c=this.#n.prepare(`DELETE FROM cacheInterceptorV${ho} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ho}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ya} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ya}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ya} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ya}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${ho}
FROM cacheInterceptorV${ya}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){tz(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){tz(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){tz(e),txt(r);let n=0,s=[],i=this;return new ext({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#c.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#a.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!rxt(s[l],u[l])){A=!1;break}}if(A)return c}}};function rxt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Xg=C((KQr,JNe)=>{"use strict";var{kConstruct:nxt}=Kt(),{kEnumerableProperty:XE}=Ze(),{iteratorMixin:sxt,isValidHeaderName:ew,isValidHeaderValue:GNe}=ao(),{webidl:wt}=ns(),nz=Q("node:assert"),Xv=Q("node:util");function HNe(t){return t===10||t===13||t===9||t===32}function qNe(t){let e=0,r=t.length;for(;r>e&&HNe(t.charCodeAt(r-1));)--r;for(;r>e&&HNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function YNe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});sz(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)sz(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function sz(t,e,r){if(r=qNe(r),ew(e)){if(!GNe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(WNe(t)==="immutable")throw new TypeError("immutable");return e_(t).append(e,r,!1)}function ixt(t){let e=e_(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function VNe(t,e){return t[0]<e[0]?-1:1}var Zv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":Xxe(i)&&(r[s]=i);break;case"id":Zxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Xxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Zxe(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}}};eRe.exports={EventSourceStream:Yz}});var ARe=C((ywr,cRe)=>{"use strict";var{pipeline:ykt}=Q("node:stream"),{fetching:Bkt}=iw(),{makeRequest:bkt}=eC(),{webidl:Vs}=ns(),{EventSourceStream:Qkt}=tRe(),{parseMIMEType:wkt}=Aa(),{createFastMessageEvent:Skt}=w_(),{isNetworkError:rRe}=rw(),{kEnumerableProperty:op}=Ze(),{environmentSettingsObject:nRe}=ao(),sRe=!1,iRe=3e3,dw=0,oRe=1,hw=2,Nkt="anonymous",Tkt="use-credentials",uC=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=dw;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),Vs.util.markAsUncloneable(this);let n="EventSource constructor";Vs.argumentLengthCheck(arguments,1,n),sRe||(sRe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Vs.converters.USVString(e),r=Vs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=nRe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Nkt;r.withCredentials===!0&&(o=Tkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=nRe.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=bkt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===hw)return;this.#r=dw;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!rRe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(rRe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?wkt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=oRe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Qkt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Skt(c.type,c.options))}});ykt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Bkt(e)}#A(){this.#r!==hw&&(this.#r=dw,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===dw&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){Vs.brandCheck(this,t),this.#r!==hw&&(this.#r=hw,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},aRe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:dw,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:oRe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:hw,writable:!1}};Object.defineProperties(uC,aRe);Object.defineProperties(uC.prototype,aRe);Object.defineProperties(uC.prototype,{close:op,onerror:op,onmessage:op,onopen:op,readyState:op,url:op,withCredentials:op});Vs.converters.EventSourceInitDict=Vs.dictionaryConverter([{key:"withCredentials",converter:Vs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Vs.converters.any},{key:"node",converter:Vs.dictionaryConverter([{key:"reconnectionTime",converter:Vs.converters["unsigned long"],defaultValue:()=>iRe},{key:"dispatcher",converter:Vs.converters.any}]),defaultValue:()=>({})}]);cRe.exports={EventSource:uC,defaultReconnectionTime:iRe}});var gRe=C((Bwr,pe)=>{"use strict";var xkt=$d(),lRe=lQ(),Rkt=Mg(),Dkt=jQe(),kkt=ZQe(),vkt=Pg(),_kt=TW(),Fkt=QW(),Mkt=Uwe(),Lkt=Vwe(),Ukt=zwe(),dRe=Xe(),U_=Ze(),{InvalidArgumentError:L_}=dRe,lC=x1e(),Pkt=wg(),Okt=hJ(),{MockCallHistory:Hk Line truncated
`)}close(){this.#n.close()}get(e){QZ(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){QZ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){QZ(e),wFt(r);let n=0,s=[],i=this;return new QFt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!NFt(s[l],u[l])){A=!1;break}}if(A)return c}}};function NFt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var IE=y((ULr,$ve)=>{"use strict";var{kConstruct:xFt}=br(),{kEnumerableProperty:zI}=ht(),{iteratorMixin:SFt,isValidHeaderName:AS,isValidHeaderValue:Vve}=fa(),{webidl:jt}=Xs(),NZ=Q("node:assert"),pL=Q("node:util");function Jve(t){return t===10||t===13||t===9||t===32}function jve(t){let e=0,r=t.length;for(;r>e&&Jve(t.charCodeAt(r-1));)--r;for(;r>e&&Jve(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Kve(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw jt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});xZ(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)xZ(t,r[n],e[r[n]])}else throw jt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function xZ(t,e,r){if(r=jve(r),AS(e)){if(!Vve(r))throw jt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw jt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Zve(t)==="immutable")throw new TypeError("immutable");return EL(t).append(e,r,!1)}function TFt(t){let e=EL(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function Xve(t,e){return t[0]<e[0]?-1:1}var gL=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${o}`;return}if(t_(e,s,KOt)){XOt(e,i)&&(r.retry=e.toString("utf8",i));return}if(t_(e,s,jOt)){ZOt(e,i)&&(r.id=e.toString("utf8",i));return}if(t_(e,s,VOt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&GOt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&YOt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===nB[0]||(this.checkBOM=!1),!0):n===void 0?e===nB[0]&&r===nB[1]?!0:(this.checkBOM=!1,!1):(e===nB[0]&&r===nB[1]&&n===nB[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};sFe.exports={EventSourceStream:h$}});var hFe=y((u_r,dFe)=>{"use strict";var{pipeline:$Ot}=Q("node:stream"),{fetching:e3t}=fS(),{makeRequest:t3t}=JI(),{webidl:zi}=Xs(),{EventSourceStream:r3t}=iFe(),{parseMIMEType:n3t}=Ic(),{createFastMessageEvent:s3t}=GL(),{isNetworkError:oFe}=lS(),{kEnumerableProperty:TE}=ht(),{environmentSettingsObject:aFe}=fa(),cFe=!1,AFe=3e3,IS=0,uFe=1,BS=2,i3t="anonymous",o3t="use-credentials",sB=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=IS;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),zi.util.markAsUncloneable(this);let n="EventSource constructor";zi.argumentLengthCheck(arguments,1,n),cFe||(cFe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=zi.converters.USVString(e),r=zi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=aFe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=i3t;r.withCredentials===!0&&(o=o3t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=aFe.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=t3t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===BS)return;this.#r=IS;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!oFe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(oFe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?n3t(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=uFe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new r3t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(s3t(c.type,c.options))}});$Ot(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=e3t(e)}#A(){this.#r!==BS&&(this.#r=IS,this.dispatchEvent(new Event("error")),setTime Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return Xkt(e,r).catch(n=>{throw uRe?fRe(n,uRe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Xg().Headers;pe.exports.Response=rw().Response;pe.exports.Request=eC().Request;pe.exports.FormData=ov().FormData;var{setGlobalOrigin:Zkt,getGlobalOrigin:evt}=A7();pe.exports.setGlobalOrigin=Zkt;pe.exports.getGlobalOrigin=evt;var{CacheStorage:tvt}=KTe(),{kConstruct:rvt}=Kt();pe.exports.caches=new tvt(rvt);var{deleteCookie:nvt,getCookies:svt,getSetCookies:ivt,setCookie:ovt,parseCookie:avt}=cxe();pe.exports.deleteCookie=nvt;pe.exports.getCookies=svt;pe.exports.getSetCookies=ivt;pe.exports.setCookie=ovt;pe.exports.parseCookie=avt;var{parseMIMEType:cvt,serializeAMimeType:Avt}=Aa();pe.exports.parseMIMEType=cvt;pe.exports.serializeAMimeType=Avt;var{CloseEvent:uvt,ErrorEvent:lvt,MessageEvent:dvt}=w_(),{WebSocket:hvt,ping:fvt}=Hxe();pe.exports.WebSocket=hvt;pe.exports.CloseEvent=uvt;pe.exports.ErrorEvent=lvt;pe.exports.MessageEvent=dvt;pe.exports.ping=fvt;pe.exports.WebSocketStream=jxe().WebSocketStream;pe.exports.WebSocketError=Pz().WebSocketError;pe.exports.request=fw(lC.request);pe.exports.stream=fw(lC.stream);pe.exports.pipeline=fw(lC.pipeline);pe.exports.connect=fw(lC.connect);pe.exports.upgrade=fw(lC.upgrade);pe.exports.MockClient=Okt;pe.exports.MockCallHistory=Hkt;pe.exports.MockCallHistoryLog=Gkt;pe.exports.MockPool=Ykt;pe.exports.MockAgent=qkt;pe.exports.SnapshotAgent=Vkt;pe.exports.mockErrors=Wkt;var{EventSource:gvt}=ARe();pe.exports.EventSource=gvt;function pvt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=pvt});var gw=C(lh=>{"use strict";lh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var mRe=C((wwr,pRe)=>{"use strict";var{asciiLowercase:P_,solelyContainsHTTPTokenCodePoints:mvt,soleyContainsHTTPQuotedStringTokenCodePoints:Evt}=gw();pRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=P_(String(e)),this._map.get(e)}has(e){return e=P_(String(e)),this._map.has(e)}set(e,r){if(e=P_(String(e)),r=String(r),!mvt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Evt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=P_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var IRe=C((Swr,CRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Cvt,removeTrailingHTTPWhitespace:ERe,isHTTPWhitespaceChar:Ivt,solelyContainsHTTPTokenCodePoints:Vz,soleyContainsHTTPQuotedStringTokenCodePoints:yvt,asciiLowercase:Wz,collectAnHTTPQuotedString:Bvt}=gw();CRe.exports=t=>{t=Cvt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Vz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=ERe(n),n.length===0||!Vz(n))return null;let s={type:Wz(r),subtype:Wz(n),parameters:new Map};for(;e<t.length;){for(++e;Ivt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Wz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Bvt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=ERe(o),o==="")continue}i.length>0&&Vz(i)&&yvt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var BRe=C((Nwr,yRe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:bvt}=gw();yRe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!bvt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var SRe=C((xwr,wRe)=>{"use strict";var Qvt=mRe(),wvt=IRe(),Svt=BRe(),{asciiLowercase:bRe,solelyContainsHTTPTokenCodePoints:QRe}=gw();wRe.exports=class{constructor(e){e=String(e);let r=wvt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Qvt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=bRe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!QRe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=bRe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!QRe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Svt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var KRe=C(Sn=>{"use strict";var tj=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),o_t=tj(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?Vj:f.type==="?"?zj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=X_t[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),X=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+X,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=X;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");X=Fe;let ke=X===""&&r!==Wj?"(?:$|\\/)":"";s=v+z+X+ke+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===Wj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return eFt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Vj:r.dot?K_t:$_t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?rFt(a):a===Ws?Ws:a._src).reduce((a,c)=>(a[a.length-1]===Ws&&c===Ws||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ws||o[c-1]===Ws||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Ws))}),o.filter(a=>a!==Ws).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;Jj.sep!=="/"&&(e=e.split(Jj.sep).join("/")),e=e.split(c2e),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Co.defaults(e).Minimatch}};Co.Minimatch=EC});var p2e=C((RSr,g2e)=>{g2e.exports=f2e;var $j=Q("fs"),{EventEmitter:sFt}=Q("events"),{Minimatch:Kj}=l2e(),{resolve:iFt}=Q("path");function oFt(t,e){return new Promise((r,n)=>{$j.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function d2e(t,e){return new Promise((r,n)=>{(e?$j.stat:$j.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?d2e(t,!1):null):r(null):r(o)})})}async function*h2e(t,e,r,n,s,i){let o=await oFt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await d2e(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*h2e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*aFt(t,e,r,n){yield*h2e("",t,e,r,n,!0)}function cFt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var X_=class extends sFt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=cFt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new Kj(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new Kj(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new Kj(i,{dot:!0}))}this.iterator=aFt(iFt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,S);S=G===-1?w.length:G}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let G=w.indexOf("*/",S);G!==-1?(S=G+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function CI(w){let b=EI(w.toString()),S=b.match(aL);if(S||(S=b.match(cL)),!S)throw new Error(`could not parse args in autoInject
${i}`:s.stack}Qe.exports.fetch=function(e,r=void 0){return R3t(e,r).catch(n=>{throw fFe?EFe(n,fFe):n&&typeof n=="object"&&Error.captureStackTrace(n,Qe.exports.fetch),n})};Qe.exports.Headers=IE().Headers;Qe.exports.Response=lS().Response;Qe.exports.Request=JI().Request;Qe.exports.FormData=QF().FormData;var{setGlobalOrigin:D3t,getGlobalOrigin:k3t}=Dj();Qe.exports.setGlobalOrigin=D3t;Qe.exports.getGlobalOrigin=k3t;var{CacheStorage:v3t}=rMe(),{kConstruct:P3t}=br();Qe.exports.caches=new v3t(P3t);var{deleteCookie:M3t,getCookies:F3t,getSetCookies:L3t,setCookie:_3t,parseCookie:U3t}=fMe();Qe.exports.deleteCookie=M3t;Qe.exports.getCookies=F3t;Qe.exports.getSetCookies=L3t;Qe.exports.setCookie=_3t;Qe.exports.parseCookie=U3t;var{parseMIMEType:O3t,serializeAMimeType:H3t}=Ic();Qe.exports.parseMIMEType=O3t;Qe.exports.serializeAMimeType=H3t;var{CloseEvent:q3t,ErrorEvent:G3t,MessageEvent:Y3t}=GL(),{WebSocket:z3t,ping:W3t}=JMe();Qe.exports.WebSocket=z3t;Qe.exports.CloseEvent=q3t;Qe.exports.ErrorEvent=G3t;Qe.exports.MessageEvent=Y3t;Qe.exports.ping=W3t;Qe.exports.WebSocketStream=tFe().WebSocketStream;Qe.exports.WebSocketError=c$().WebSocketError;Qe.exports.request=bS(iB.request);Qe.exports.stream=bS(iB.stream);Qe.exports.pipeline=bS(iB.pipeline);Qe.exports.connect=bS(iB.connect);Qe.exports.upgrade=bS(iB.upgrade);Qe.exports.MockClient=E3t;Qe.exports.MockCallHistory=y3t;Qe.exports.MockCallHistoryLog=C3t;Qe.exports.MockPool=B3t;Qe.exports.MockAgent=I3t;Qe.exports.SnapshotAgent=b3t;Qe.exports.mockErrors=Q3t;var{EventSource:J3t}=hFe();Qe.exports.EventSource=J3t;function V3t(){globalThis.fetch=Qe.exports.fetch,globalThis.Headers=Qe.exports.Headers,globalThis.Response=Qe.exports.Response,globalThis.Request=Qe.exports.Request,globalThis.FormData=Qe.exports.FormData,globalThis.WebSocket=Qe.exports.WebSocket,globalThis.CloseEvent=Qe.exports.CloseEvent,globalThis.ErrorEvent=Qe.exports.ErrorEvent,globalThis.MessageEvent=Qe.exports.MessageEvent,globalThis.EventSource=Qe.exports.EventSource}Qe.exports.install=V3t});var QS=y(Nm=>{"use strict";Nm.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Nm.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Nm.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Nm.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Nm.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Nm.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Nm.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var IFe=y((f_r,CFe)=>{"use strict";var{asciiLowercase:s_,solelyContainsHTTPTokenCodePoints:j3t,soleyContainsHTTPQuotedStringTokenCodePoints:K3t}=QS();CFe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=s_(String(e)),this._map.get(e)}has(e){return e=s_(String(e)),this._map.has(e)}set(e,r){if(e=s_(String(e)),r=String(r),!j3t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!K3t(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=s_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var QFe=y((m_r,bFe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:X3t,removeTrailingHTTPWhitespace:BFe,isHTTPWhitespaceChar:Z3t,solelyContainsHTTPTokenCodePoints:f$,soleyContainsHTTPQuotedStringTokenCodePoints:$3t,asciiLowercase:m$,collectAnHTTPQuotedString:e4t}=QS();bFe.exports=t=>{t=X3t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!f$(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=BFe(n),n.length===0||!f$(n))return null;let s={type:m$(r),subtype:m$(n),parameters:new Map};for(;e<t.length;){for(++e;Z3t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=m$(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=e4t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=BFe(o),o==="")continue}i.length>0&&f$(i)&&$3t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var NFe=y((p_r,wFe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:t4t}=QS();wFe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!t4t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var RFe=y((E_r,TFe)=>{"use strict";var r4t=IFe(),n4t=QFe(),s4t=NFe(),{asciiLowercase:xFe,solelyContainsHTTPTokenCodePoints:SFe}=QS();TFe.exports=class{constructor(e){e=String(e);let r=n4t(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new r4t(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=xFe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!SFe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=xFe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!SFe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return s4t(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var $Fe=y(cs=>{"use strict";var Q$=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),L4t=Q$(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,F,F,f,s);let H=f.type==="*"?Une:f.type==="?"?qne:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+H+"\\("+F}B(),o&&(s+="\\\\");let M=o5t[s.charAt(0)];for(let F=c.length-1;F>-1;F--){let H=c[F],k=s.slice(0,H.reStart),j=s.slice(H.reStart,H.reEnd-8),$=s.slice(H.reEnd),ne=s.slice(H.reEnd-8,H.reEnd)+$,le=k.split(")").length,fe=k.split("(").length-le,Ve=$;for(let ft=0;ft<fe;ft++)Ve=Ve.replace(/\)[+*?]?/,"");$=Ve;let ze=$===""&&r!==One?"(?:$|\\/)":"";s=k+j+$+ze+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===One)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return c5t(e);let J=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",J),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Une:r.dot?s5t:i5t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?u5t(a):a===Ji?Ji:a._src).reduce((a,c)=>(a[a.length-1]===Ji&&c===Ji||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ji||o[c-1]===Ji||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Ji))}),o.filter(a=>a!==Ji).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;Hne.sep!=="/"&&(e=e.split(Hne.sep).join("/")),e=e.split(UUe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Sa.defaults(e).Minimatch}};Sa.Minimatch=IB});var JUe=y(($Hr,WUe)=>{WUe.exports=zUe;var zne=Q("fs"),{EventEmitter:d5t}=Q("events"),{Minimatch:Yne}=qUe(),{resolve:h5t}=Q("path");function f5t(t,e){return new Promise((r,n)=>{zne.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function GUe(t,e){return new Promise((r,n)=>{(e?zne.stat:zne.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?GUe(t,!1):null):r(null):r(o)})})}async function*YUe(t,e,r,n,s,i){let o=await f5t(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await GUe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*YUe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*m5t(t,e,r,n){yield*YUe("",t,e,r,n,!0)}function p5t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var mU=class extends d5t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=p5t(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new Yne(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new Yne(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new Yne(i,{dot:!0}))}this.iterator=m5t(h5t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this Line truncated
`,x);x=Y===-1?w.length:Y}else if(P!==-1&&w[x]==="/"&&w[x+1]==="*"){let Y=w.indexOf("*/",x);Y!==-1?(x=Y+2,P=w.indexOf("*/",x)):(b+=w[x],x++)}else b+=w[x],x++;return b}function fs(w){let b=Qi(w.toString()),x=b.match(Oo);if(x||(x=b.match(ed)),!x)throw new Error(`could not parse args in autoInject
Source:
`+b);let[,F]=S;return F.replace(/\s/g,"").split(O1).map(G=>G.replace(H1,"").trim())}function II(w,b){var S={};return Object.keys(w).forEach(F=>{var G=w[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),S[F]=Y.concat(Y.length>0?re:G);else if(j)S[F]=G;else{if(Y=CI(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(re)}function re(Se,Bt){var Lt=Y.map(St=>Se[St]);Lt.push(Bt),E(G)(...Lt)}}),mI(S,b)}class yI{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):BI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):BI(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function BI(w,b){w.length=1,w.head=w.tail=b}function Vp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function re(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function Bt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var Br,Dn;function So(Oh,...xI){if(Oh)return Ye?Dn(Oh):Br();if(xI.length<=1)return Br(xI[0]);Br(xI)}var jp=Ut._createTaskItem(qe,Ye?So:Nt||So);if(be?Ut._tasks.unshift(jp):Ut._tasks.push(jp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Oh,xI)=>{Br=Oh,Dn=xI})}function wo(qe){return function(be,...Ye){G-=1;for(var Nt=0,Br=qe.length;Nt<Br;Nt++){var Dn=qe[Nt],So=Y.indexOf(Dn);So===0?Y.shift():So>0&&Y.splice(So,1),Dn.callback(be,...Ye),be!=null&&Bt("error",be,Dn.data)}G<=Ut.concurrency-Ut.buffer&&Bt("unsaturated"),Ut.idle()&&Bt("drain"),Ut.process()}}function zp(qe){return qe.length===0&&Ut.idle()?(A(()=>Bt("drain")),!0):!1}let Ph=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{re(qe,(Br,Dn)=>{if(Br)return Nt(Br);Ye(Dn)})});Se(qe),j(qe,be)};var TI=!1,Ut={_tasks:new yI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!TI){for(TI=!0;!Ut.paused&&G<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var Br=Ut._tasks.shift();qe.push(Br),Y.push(Br),be.push(Br.data)}G+=1,Ut._tasks.length===0&&Bt("empty"),G===Ut.concurrency&&Bt("saturated");var Dn=te(wo(qe));F(be,Dn)}TI=!1}},length(){return Ut._tasks.length},running(){return G},workersList(){return Y},idle(){return Ut._tasks.length+G===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:Ph("saturated")},unsaturated:{writable:!1,value:Ph("unsaturated")},empty:{writable:!1,value:Ph("empty")},drain:{writable:!1,value:Ph("drain")},error:{writable:!1,value:Ph("error")}}),Ut}function bI(w,b){return Vp(w,1,b)}function Wp(w,b,S){return Vp(w,b,S)}function Qo(w,b,S,F){F=V(F);var G=E(S);return Zs(w,(Y,J,j)=>{G(b,Y,(re,Se)=>{b=Se,j(re)})},Y=>F(Y,b))}var Ta=m(Qo,4);function Jp(...w){var b=w.map(E);return function(...S){var F=this,G=S[S.length-1];return typeof G=="function"?S.pop():G=cu(),Ta(b,S,(Y,J,j)=>{J.apply(F,Y.concat((re,...Se)=>{j(re,Se)}))},(Y,J)=>G(Y,...J)),G[au]}}function G1(...w){return Jp(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var H=m(we,4);function T(w,b,S,F){var G=E(S);return H(w,b,(Y,J)=>{G(Y,(j,...re)=>j?J(j):J(j,re))},(Y,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(Y,j)})}var q=m(T,4);function K(w,b,S){return q(w,1/0,b,S)}var $=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});Fr[is]||(S2e=global[is]||[],T2e(Fr,S2e),Fr.close=(function(t){function e(r,n){return t.call(Fr,r,function(s){s||N2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,nF,{value:t}),e})(Fr.close),Fr.closeSync=(function(t){function e(r){t.apply(Fr,arguments),N2e()}return Object.defineProperty(e,nF,{value:t}),e})(Fr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fp(Fr[is]),Q("assert").equal(Fr[is].length,0)}));var S2e;global[is]||T2e(global,Fr[is]);tK.exports=Zj(mFt(Fr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Fr.__patched&&(tK.exports=Zj(Fr),Fr.__patched=!0);function Zj(t){gFt(t),t.gracefulify=Zj,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,X){return typeof z=="function"&&(X=z,z=null),te(v,z,X);function te(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?CC([te,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,X,te){return typeof X=="function"&&(te=X,X=0),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,X){typeof z=="function"&&(X=z,z=null);var te=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return te(v,z,X);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?CC([te,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=pFt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,En){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function CC(t){fp("ENQUEUE",t[0].name,t[1]),Fr[is].push(t),eK()}var rF;function N2e(){for(var t=Date.now(),e=0;e<Fr[is].length;++e)Fr[is][e].length>2&&(Fr[is][e][3]=t,Fr[is][e][4]=t);eK()}function eK(){if(clearTimeout(rF),rF=void 0,Fr[is].length!==0){var t=Fr[is].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)fp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){fp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(fp("RETRY",e.name,r),e.apply(null,r.concat([s]))):Fr[is].push(t)}rF===void 0&&(rF=setTimeout(eK,0))}}});var sF=C((FSr,x2e)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable=t=>JA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};a_e.exports={AggregateError:LK,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var UK=C((VNr,c_e)=>{"use strict";c_e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=C((WNr,l_e)=>{"use strict";var{format:OPt,inspect:bF}=UK(),{AggregateError:HPt}=Rr(),GPt=globalThis.AggregateError||HPt,qPt=Symbol("kIsNodeError"),YPt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],VPt=/^([A-Z][a-z0-9]*)+$/,WPt="__node_internal_",QF={};function mp(t,e){if(!t)throw new QF.ERR_INTERNAL_ASSERTION(e)}function A_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function JPt(t,e,r){if(typeof e=="function")return mp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return mp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:OPt(e,...r)}function as(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(JPt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[qPt]=!0,QF[t]=n}function u_e(t){let e=WPt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function zPt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new GPt([e,t],e.message);return r.code=e.code,r}return t||e}var PK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new QF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};as("ERR_ASSERTION","%s",Error);as("ERR_INVALID_ARG_TYPE",(t,e,r)=>{mp(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)mp(typeof c=="string","All expected entries have to be of type string"),YPt.includes(c)?s.push(c.toLowerCase()):VPt.test(c)?i.push(c):(mp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=EZ(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=EZ(" "+s+"="+n[s]+`
`);return kt.from(r)};oI.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};oI.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,Dh(e.mode&c7t,6),100),kt.write(r,Dh(e.uid,6),108),kt.write(r,Dh(e.gid,6),116),g7t(e.size,r,124),kt.write(r,Dh(e.mtime.getTime()/1e3|0,11),136),r[156]=XM+h7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(v3e,r,D1),kt.copy(i7t,r,CZ),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Dh(e.devmajor||0,6),329),kt.write(r,Dh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Dh(F3e(r),6),148),r)};oI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-XM,i=iI(e,0,100,r),o=Rh(e,100,8),a=Rh(e,108,8),c=Rh(e,116,8),A=Rh(e,124,12),u=Rh(e,136,12),l=d7t(s),d=e[157]===0?null:iI(e,157,100,r),h=iI(e,265,32),f=iI(e,297,32),g=Rh(e,329,8),E=Rh(e,337,8),m=F3e(e);if(m===256)return null;if(m!==Rh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(A7t(e))e[345]&&(i=iI(e,345,155,r)+"/"+i);else if(!u7t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function A7t(t){return kt.equals(v3e,t.subarray(D1,D1+6))}function u7t(t){return kt.equals(o7t,t.subarray(D1,D1+6))&&kt.equals(a7t,t.subarray(CZ,CZ+2))}function l7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function d7t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function h7t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function _3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function F3e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Dh(t,e){return t=t.toString(8),t.length>e?s7t.slice(0,e)+" ":n7t.slice(0,e-t.length)+t+" "}function f7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function g7t(t,e,r){t.toString(8).length>11?f7t(t,e,r):kt.write(e,Dh(t,11),r)}function p7t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Rh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return p7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=l7t(_3e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function iI(t,e,r,n){return kt.toString(t.subarray(e,_3e(t,0,e,e+r)),n)}function EZ(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var O3e=C((ERr,P3e)=>{var{Writable:m7t,Readable:E7t,getStreamError:M3e}=mZ(),C7t=rZ(),L3e=eI(),aI=IZ(),I7t=L3e.alloc(0),BZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new C7t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return I7t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return L3e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},bZ=class extends E7t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(M3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=U3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},QZ=class extends m7t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function CAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",lS(t,e));process.stdout.write(r3.EOL),Ra("set-output",{name:t},Qc(e))}function gf(t){process.exitCode=t3.Failure,Yi(t)}function Ha(){return process.env.RUNNER_DEBUG==="1"}function O(t){Ra("debug",{},t)}function Yi(t,e={}){Ra("error",cS(e),t instanceof Error?t.toString():t)}function je(t,e={}){Ra("warning",cS(e),t instanceof Error?t.toString():t)}function IAe(t,e={}){Ra("notice",cS(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+r3.EOL)}function yAe(t){EL("group",t)}function BAe(){EL("endgroup")}function pT(t,e){return zKe(this,void 0,void 0,function*(){yAe(t);let r;try{r=yield e()}finally{BAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",lS(t,e));Ra("save-state",{name:t},Qc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as $z from"fs";import*as Xz from"path";import*as G_ from"os";import{readFileSync as jKe,existsSync as KKe}from"fs";import{EOL as $Ke}from"os";var Jm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(KKe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(jKe(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${$Ke}`)}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 a3=ge(NAe(),1),TAe=ge(aT(),1),u$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function xAe(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}`}function RAe(t){return new a3.HttpClient().getAgent(t)}function l$e(t){return new a3.HttpClient().getAgentDispatcher(t)}function DAe(t){let e=l$e(t);return(n,s)=>u$e(this,void 0,void 0,function*(){return(0,TAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function kAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function c3(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}function Zl(){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>"}function bT(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)=>bT.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))}function vAe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function _Ae(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)}var FAe=Function.bind,MAe=FAe.bind(FAe);function LAe(t,e,r){let n=MAe(_Ae,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]=MAe(vAe,null). Line truncated
`+b);let[,P]=x;return P.replace(/\s/g,"").split(YA).map(Y=>Y.replace(b0,"").trim())}function Jc(w,b){var x={};return Object.keys(w).forEach(P=>{var Y=w[P],W,K=h(Y),Z=!K&&Y.length===1||K&&Y.length===0;if(Array.isArray(Y))W=[...Y],Y=W.pop(),x[P]=W.concat(W.length>0?se:Y);else if(Z)x[P]=Y;else{if(W=fs(Y),Y.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),x[P]=W.concat(se)}function se(Fe,Wt){var cr=W.map(Xt=>Fe[Xt]);cr.push(Wt),E(Y)(...cr)}}),$l(x,b)}class Vc{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,x){x.prev=b,x.next=b.next,b.next?b.next.prev=x:this.tail=x,b.next=x,this.length+=1}insertBefore(b,x){x.prev=b.prev,x.next=b,b.prev?b.prev.next=x:this.head=x,b.prev=x,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Uh(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Uh(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var x=this.head;x;){var{next:P}=x;b(x)&&this.removeLink(x),x=P}return this}}function Uh(w,b){w.length=1,w.head=w.tail=b}function zA(w,b,x){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var P=E(w),Y=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Z(tt,Pe){K[tt].push(Pe)}function se(tt,Pe){let rt=(...Zt)=>{Fe(tt,rt),Pe(...Zt)};K[tt].push(rt)}function Fe(tt,Pe){if(!tt)return Object.keys(K).forEach(rt=>K[rt]=[]);if(!Pe)return K[tt]=[];K[tt]=K[tt].filter(rt=>rt!==Pe)}function Wt(tt,...Pe){K[tt].forEach(rt=>rt(...Pe))}var cr=!1;function Xt(tt,Pe,rt,Zt){if(Zt!=null&&typeof Zt!="function")throw new Error("task callback must be a function");Ar.started=!0;var Kr,gs;function Ma(lp,...Rb){if(lp)return rt?gs(lp):Kr();if(Rb.length<=1)return Kr(Rb[0]);Kr(Rb)}var M0=Ar._createTaskItem(tt,rt?Ma:Zt||Ma);if(Pe?Ar._tasks.unshift(M0):Ar._tasks.push(M0),cr||(cr=!0,A(()=>{cr=!1,Ar.process()})),rt||!Zt)return new Promise((lp,Rb)=>{Kr=lp,gs=Rb})}function Pa(tt){return function(Pe,...rt){Y-=1;for(var Zt=0,Kr=tt.length;Zt<Kr;Zt++){var gs=tt[Zt],Ma=W.indexOf(gs);Ma===0?W.shift():Ma>0&&W.splice(Ma,1),gs.callback(Pe,...rt),Pe!=null&&Wt("error",Pe,gs.data)}Y<=Ar.concurrency-Ar.buffer&&Wt("unsaturated"),Ar.idle()&&Wt("drain"),Ar.process()}}function P0(tt){return tt.length===0&&Ar.idle()?(A(()=>Wt("drain")),!0):!1}let up=tt=>Pe=>{if(!Pe)return new Promise((rt,Zt)=>{se(tt,(Kr,gs)=>{if(Kr)return Zt(Kr);rt(gs)})});Fe(tt),Z(tt,Pe)};var Tb=!1,Ar={_tasks:new Vc,_createTaskItem(tt,Pe){return{data:tt,callback:Pe}},*[Symbol.iterator](){yield*Ar._tasks[Symbol.iterator]()},concurrency:b,payload:x,buffer:b/4,started:!1,paused:!1,push(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!1,!1,Pe)):Xt(tt,!1,!1,Pe)},pushAsync(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!1,!0,Pe)):Xt(tt,!1,!0,Pe)},kill(){Fe(),Ar._tasks.empty()},unshift(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!0,!1,Pe)):Xt(tt,!0,!1,Pe)},unshiftAsync(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!0,!0,Pe)):Xt(tt,!0,!0,Pe)},remove(tt){Ar._tasks.remove(tt)},process(){if(!Tb){for(Tb=!0;!Ar.paused&&Y<Ar.concurrency&&Ar._tasks.length;){var tt=[],Pe=[],rt=Ar._tasks.length;Ar.payload&&(rt=Math.min(rt,Ar.payload));for(var Zt=0;Zt<rt;Zt++){var Kr=Ar._tasks.shift();tt.push(Kr),W.push(Kr),Pe.push(Kr.data)}Y+=1,Ar._tasks.length===0&&Wt("empty"),Y===Ar.concurrency&&Wt("saturated");var gs=ne(Pa(tt));P(Pe,gs)}Tb=!1}},length(){return Ar._tasks.length},running(){return Y},workersList(){return W},idle(){return Ar._tasks.length+Y===0},pause(){Ar.paused=!0},resume(){Ar.paused!==!1&&(Ar.paused=!1,A(Ar.process))}};return Object.defineProperties(Ar,{saturated:{writable:!1,value:up("saturated")},unsaturated:{writable:!1,value:up("unsaturated")},empty:{writable:!1,value:up("empty")},drain:{writable:!1,value:up("drain")},error:{writable:!1,value:up("error")}}),Ar}function td(w,b){return zA(w,1,b)}function rd(w,b,x){return zA(w,b,x)}function eo(w,b,x,P){P=J(P);var Y=E(x);return Gs(w,(W,K,Z)=>{Y(b,W,(se,Fe)=>{b=Fe,Z(se)})},W=>P(W,b))}var wi=g(eo,4);function nd(...w){var b=w.map(E);return function(...x){var P=this,Y=x[x.length-1];return typeof Y=="function"?x.pop():Y=GA(),wi(b,x,(W,K,Z)=>{K.apply(P,W.concat((se,...Fe)=>{Z(se,Fe)}))},(W,K)=>Y(W,...K)),Y[Wc]}}function ip(...w){return nd(...w.reverse())}function ve(w,b,x,P){return I(fe(b),w,x,P)}var q=g(ve,4);function T(w,b,x,P){var Y=E(x);return q(w,b,(W,K)=>{Y(W,(Z,...se)=>Z?K(Z):K(Z,se))},(W,K)=>{for(var Z=[],se=0;se<K.length;se++)K[se]&&(Z=Z.concat(...K[se]));return P(W,Z)})}var z=g(T,4);function X(w,b,x){return z(w,1/0,b,x)}var ee=g(X,3);function Ae(w,b,x){retu Line truncated
GFS4: `),console.error(t)});dn[$s]||(nOe=global[$s]||[],iOe(dn,nOe),dn.close=(function(t){function e(r,n){return t.call(dn,r,function(s){s||sOe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,CU,{value:t}),e})(dn.close),dn.closeSync=(function(t){function e(r){t.apply(dn,arguments),sOe()}return Object.defineProperty(e,CU,{value:t}),e})(dn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){jE(dn[$s]),Q("assert").equal(dn[$s].length,0)}));var nOe;global[$s]||iOe(global,dn[$s]);jne.exports=Jne(w5t(dn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!dn.__patched&&(jne.exports=Jne(dn),dn.__patched=!0);function Jne(t){b5t(t),t.gracefulify=Jne,t.createReadStream=M,t.createWriteStream=J;var e=t.readFile;t.readFile=r;function r(k,j,$){return typeof j=="function"&&($=j,j=null),ne(k,j,$);function ne(le,fe,Ve,ze){return e(le,fe,function(ft){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?BB([ne,[le,fe,Ve],ft,ze||Date.now(),Date.now()]):typeof Ve=="function"&&Ve.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return n(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return i(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,$,ne){return typeof $=="function"&&(ne=$,$=0),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return a(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,$){typeof j=="function"&&($=j,j=null);var ne=u.test(process.version)?function(Ve,ze,ft,ar){return A(Ve,le(Ve,ze,ft,ar))}:function(Ve,ze,ft,ar){return A(Ve,ze,le(Ve,ze,ft,ar))};return ne(k,j,$);function le(fe,Ve,ze,ft){return function(ar,dr){ar&&(ar.code==="EMFILE"||ar.code==="ENFILE")?BB([ne,[fe,Ve,ze],ar,ft||Date.now(),Date.now()]):(dr&&dr.sort&&dr.sort(),typeof ze=="function"&&ze.call(this,ar,dr))}}}if(process.version.substr(0,4)==="v0.8"){var d=Q5t(t);g=d.ReadStream,I=d.WriteStream}var h=t.ReadStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=C);var f=t.WriteStream;f&&(I.prototype=Object.create(f.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(k){I=k},enumerable:!0,configurable:!0});var m=g;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function g(k,j){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$),k.read())})}function I(k,j){return this instanceof I?(f.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$))})}function M(k,j){return new t.ReadStream(k,j)}function J(k,j){return new t.WriteStream(k,j)}var F=t.open;t.open=H;function H(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return F(fe,Ve,ze,function(dr,mn){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}return t}function BB(t){jE("ENQUEUE",t[0].name,t[1]),dn[$s].push(t),Vne()}var yU;function sOe(){for(var t=Date.now(),e=0;e<dn[$s].length;++e)dn[$s][e].length>2&&(dn[$s][e][3]=t,dn[$s][e][4]=t);Vne()}function Vne(){if(clearTimeout(yU),yU=void 0,dn[$s].length!==0){var t=dn[$s].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)jE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){jE("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(jE("RETRY",e.name,r),e.apply(null,r.concat([s]))):dn[$s].push(t)}yU===void 0&&(yU=setTimeout(Vne,0))}}});var IU=y((s6r,oOe)=>{"use strict";var Fl=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Fl.writable=t=>Fl(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Fl.readable=t=>Fl(t)&&t.readable!= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};_4e.exports={AggregateError:Dse,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var kse=y((f5r,U4e)=>{"use strict";U4e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Ci=y((m5r,q4e)=>{"use strict";var{format:VYt,inspect:OU}=kse(),{AggregateError:jYt}=sn(),KYt=globalThis.AggregateError||jYt,XYt=Symbol("kIsNodeError"),ZYt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],$Yt=/^([A-Z][a-z0-9]*)+$/,ezt="__node_internal_",HU={};function ZE(t,e){if(!t)throw new HU.ERR_INTERNAL_ASSERTION(e)}function O4e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function tzt(t,e,r){if(typeof e=="function")return ZE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return ZE(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:VYt(e,...r)}function ti(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(tzt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[XYt]=!0,HU[t]=n}function H4e(t){let e=ezt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function rzt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new KYt([e,t],e.message);return r.code=e.code,r}return t||e}var vse=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new HU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ti("ERR_ASSERTION","%s",Error);ti("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ZE(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)ZE(typeof c=="string","All expected entries have to be of type string"),ZYt.includes(c)?s.push(c.toLowerCase()):$Yt.test(c)?i.push(c):(ZE(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;defaulLine truncated
`)),e.linkname&&(r+=hae(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=hae(" "+s+"="+n[s]+`
`);return ir.from(r)};Ab.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(ir.toString(e.subarray(0,n)),10);if(!s)return r;let i=ir.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};Ab.encode=function(e){let r=ir.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ir.byteLength(n)!==n.length)return null;for(;ir.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return ir.byteLength(n)>100||ir.byteLength(s)>155||e.linkname&&ir.byteLength(e.linkname)>100?null:(ir.write(r,n),ir.write(r,Zm(e.mode&Err,6),100),ir.write(r,Zm(e.uid,6),108),ir.write(r,Zm(e.gid,6),116),wrr(e.size,r,124),ir.write(r,Zm(e.mtime.getTime()/1e3|0,11),136),r[156]=m3+brr(e.type),e.linkname&&ir.write(r,e.linkname,157),ir.copy(yYe,r,oT),ir.copy(mrr,r,fae),e.uname&&ir.write(r,e.uname,265),e.gname&&ir.write(r,e.gname,297),ir.write(r,Zm(e.devmajor||0,6),329),ir.write(r,Zm(e.devminor||0,6),337),s&&ir.write(r,s,345),ir.write(r,Zm(IYe(r),6),148),r)};Ab.decode=function(e,r,n){let s=e[156]===0?0:e[156]-m3,i=cb(e,0,100,r),o=Xm(e,100,8),a=Xm(e,108,8),c=Xm(e,116,8),A=Xm(e,124,12),u=Xm(e,136,12),l=Brr(s),d=e[157]===0?null:cb(e,157,100,r),h=cb(e,265,32),f=cb(e,297,32),m=Xm(e,329,8),E=Xm(e,337,8),g=IYe(e);if(g===256)return null;if(g!==Xm(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(yrr(e))e[345]&&(i=cb(e,345,155,r)+"/"+i);else if(!Crr(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:m,devminor:E,pax:null}};function yrr(t){return ir.equals(yYe,t.subarray(oT,oT+6))}function Crr(t){return ir.equals(prr,t.subarray(oT,oT+6))&&ir.equals(grr,t.subarray(fae,fae+2))}function Irr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function Brr(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function brr(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function CYe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function IYe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Zm(t,e){return t=t.toString(8),t.length>e?frr.slice(0,e)+" ":hrr.slice(0,e-t.length)+t+" "}function Qrr(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function wrr(t,e,r){t.toString(8).length>11?Qrr(t,e,r):ir.write(e,Zm(t,11),r)}function Nrr(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Xm(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return Nrr(t);{for(;e<t.length&&t[e]===32;)e++;let n=Irr(CYe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(ir.toString(t.subarray(e,n)),8)}}function cb(t,e,r,n){return ir.toString(t.subarray(e,CYe(t,0,e,e+r)),n)}function hae(t){let e=ir.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var NYe=y((YGr,wYe)=>{var{Writable:xrr,Readable:Srr,getStreamError:BYe}=dae(),Trr=Koe(),bYe=nb(),ub=mae(),Rrr=bYe.alloc(0),Drr=4*1024*1024,gae=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Trr,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this.buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return Rrr;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return bYe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Eae=class extends Srr{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(BYe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=QYe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Ope(t,e){if(process.env.GITHUB_OUTPUT||"")return Db("OUTPUT",MT(t,e));process.stdout.write(S6.EOL),Xc("set-output",{name:t},JA(e))}function Up(t){process.exitCode=x6.Failure,$o(t)}function cA(){return process.env.RUNNER_DEBUG==="1"}function G(t){Xc("debug",{},t)}function $o(t,e={}){Xc("error",kT(e),t instanceof Error?t.toString():t)}function nt(t,e={}){Xc("warning",kT(e),t instanceof Error?t.toString():t)}function R6(t,e={}){Xc("notice",kT(e),t instanceof Error?t.toString():t)}function re(t){process.stdout.write(t+S6.EOL)}function Hpe(t){Y3("group",t)}function qpe(){Y3("endgroup")}function qD(t,e){return dit(this,void 0,void 0,function*(){Hpe(t);let r;try{r=yield e()}finally{qpe()}return r})}function au(t,e){if(process.env.GITHUB_STATE||"")return Db("STATE",MT(t,e));Xc("save-state",{name:t},JA(e))}function _Q(t){return process.env[`STATE_${t}`]||""}import*as C$ from"fs";import*as I$ from"path";import*as a_ from"os";import{readFileSync as hit,existsSync as fit}from"fs";import{EOL as mit}from"os";var vy=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(fit(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(hit(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${mit}`)}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 P6=be(Jpe(),1),Vpe=be(kD(),1),Sit=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function jpe(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}`}function Kpe(t){return new P6.HttpClient().getAgent(t)}function Tit(t){return new P6.HttpClient().getAgentDispatcher(t)}function Xpe(t){let e=Tit(t);return(n,s)=>Sit(this,void 0,void 0,function*(){return(0,Vpe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Zpe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function M6(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}function df(){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>"}function jD(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)=>jD.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))}function $pe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function ege(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)}var tge=Function.bind,rge=tge.bind(tge);function nge(t,e,r){let n=rge(ege,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]=rge($pe,null). Line truncated
`+n.repeat(l));let E=f.val[f.index],g=o(f.val,String(f.index),E);if(q6(g))u.push("null"),f.first=!1,f.index++;else{let C=g!==null&&typeof g=="object",I=G6(g);if(C&&!I){if(h.has(g))throw new TypeError("Converting circular structure to JSON");h.add(g),d.push({parent:f.val,key:String(f.index),val:g,isArray:Array.isArray(g),keys:Array.isArray(g)?null:Object.keys(g),index:0,first:!0}),f.first=!1,f.index++}else u.push(hf(g)),f.first=!1,f.index++}}else m=!0;else{for(;f.index<f.keys.length;){let g=f.keys[f.index++];if(i&&!i.has(g))continue;let I=f.val[g],B=o(f.val,g,I);if(q6(B))continue;f.first||u.push(","),n?u.push(`
`+n.repeat(l)+hf(g)+": "):u.push(hf(g)+":");let M=B!==null&&typeof B=="object",J=G6(B);if(M&&!J){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:g,val:B,isArray:Array.isArray(B),keys:Array.isArray(B)?null:Object.keys(B),index:0,first:!0}),f.first=!1;break}else u.push(hf(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(m=!0)}m&&(l--,!f.first&&n&&u.push(`
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},bge=(t,e,r)=>{try{return"rawJSON"in JSON?hf(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?hf(t,(a,c)=>typeof c=="string"&&XD.test(c)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(Ege,"$1$2$3").replace(yge,"$1$2$3"):hf(t,e,r)}catch(n){if(n instanceof RangeError){let s=Xit(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(Ege,"$1$2$3").replace(yge,"$1$2$3")}throw n}},KD=new Map,Zit=()=>{let t=JSON.parse.toString();if(KD.has(t))return KD.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return KD.set(t,e),e}catch{return KD.set(t,!1),!1}},$it=(t,e,r,n)=>typeof e=="string"&&Bge.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&XD.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,eot=(t,e)=>JSON.parse(t,(r,n,s)=>{let i=typeof n=="number",o=n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER,a=i&&o,c=s&&Kit.test(s.source);return a&&c?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),Qge=Number.MAX_SAFE_INTEGER.toString(),Cge=Qge.length,tot=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,rot=/^"-?\d+n+"$/,not=(t,e)=>{let r={"":t},n=[{parent:r,key:"",visited:!1}];for(;n.length>0;){let s=n[n.length-1];if(s.visited){let{parent:i,key:o}=s,a=i[o];typeof a=="string"&&(Bge.test(a)?a=BigInt(a.slice(0,-1)):XD.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,n.pop()}else{s.visited=!0;let i=s.parent[s.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let c=a.length-1;c>=0;c--)n.push({parent:i,key:a[c],visited:!1})}}}return r[""]},Ige=t=>t.replace(tot,(e,r,n,s)=>{let i=e[0]==='"';if(i&&rot.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,c=r&&(r.length<Cge||r.length===Cge&&r<=Qge);return i||a||c?e:'"'+e+'n"'}),wge=(t,e)=>{if(!t)return H6(t,e);try{if(Zit())return eot(t,e);let r=Ige(t);return H6(r,(n,s,i)=>$it(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=Ige(t),s=H6(n);return not(s,e)}throw r}};var Bd=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var sot="10.0.16",iot={headers:{"user-agent":`octokit-request.js/${sot} ${df()}`}};function oot(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var Nge=()=>"";async function xge(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=oot(t.body)||Array.isArray(t.body)?bge(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new Bd(d,500,{request:t});throw h.cause=l,h}let a=o.status,c=o.url,A={};for(let[l,d]of o.headers)A[l]=d;let u={url:c,status:a,headers:A,data:""};if("deprecation"in A){let l=A.link&&A.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${A.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new Bd(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await Y6(o),new Bd("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await Y6(o),new Bd(cot(u.data),a,{response:u,request:t});return u.data=n?await Y6(o):o.body,u}async function Y6(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Nge);let r=fge(e);if(aot(r)){let n="";try{return n=await t.text(),wge(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet- Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var Z$e=class extends Error{constructor(t,e,r){super(X$e(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},eXe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],tXe=["query","method","url"],cue=/\/api\/v3\/?$/;function rXe(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(tXe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>eXe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return cue.test(i)&&(s.url=i.replace(cue,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new Z$e(s,a,o.data)}return o.data.data})}function m3(t,e){let r=t.defaults(e);return Object.assign((s,i)=>rXe(r,s,i),{defaults:m3.bind(null,r),endpoint:r.endpoint})}var Zjt=m3(Py,{headers:{"user-agent":`octokit-graphql.js/${$$e} ${Zl()}`},method:"POST",url:"/graphql"});function Aue(t){return m3(t,{method:"POST",url:"/graphql"})}var E3="(?:[a-zA-Z0-9_-]+)",uue="\\.",lue=new RegExp(`^${E3}${uue}${E3}${uue}${E3}$`),nXe=lue.test.bind(lue);async function sXe(t){let e=nXe(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"}}function iXe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function oXe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=iXe(t),e(s)}var due=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(sXe.bind(null,e),{hook:oXe.bind(null,e)})};var C3="7.0.6";var hue=()=>{},aXe=console.warn.bind(console),cXe=console.error.bind(console);function AXe(t={}){return typeof t.debug!="function"&&(t.debug=hue),typeof t.info!="function"&&(t.info=hue),typeof t.warn!="function"&&(t.warn=aXe),typeof t.error!="function"&&(t.error=cXe),t}var fue=`octokit-core.js/${C3} ${Zl()}`,ST=class{static VERSION=C3;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new UAe.Collection,n={baseUrl:Py.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} ${fue}`:fue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Py.defaults(n),this.graphql=Aue(this.request).defaults(n),this.log=AXe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(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 i=due(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 I3="17.0.0";var uXe={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
`)}var lot=class extends Error{constructor(t,e,r){super(uot(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)}request;headers;response;name="GraphqlResponseError";errors;data},dot=["method","baseUrl","url","headers","request","query","mediaType","operationName"],hot=["query","method","url"],Sge=/\/api\/v3\/?$/;function fot(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(hot.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>dot.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Sge.test(i)&&(s.url=i.replace(Sge,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new lot(s,a,o.data)}return o.data.data})}function W6(t,e){let r=t.defaults(e);return Object.assign((s,i)=>fot(r,s,i),{defaults:W6.bind(null,r),endpoint:r.endpoint})}var har=W6(HQ,{headers:{"user-agent":`octokit-graphql.js/${Aot} ${df()}`},method:"POST",url:"/graphql"});function Tge(t){return W6(t,{method:"POST",url:"/graphql"})}var J6="(?:[a-zA-Z0-9_-]+)",Rge="\\.",Dge=new RegExp(`^${J6}${Rge}${J6}${Rge}${J6}$`),mot=Dge.test.bind(Dge);async function pot(t){let e=mot(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"}}function got(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Eot(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=got(t),e(s)}var kge=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(pot.bind(null,e),{hook:Eot.bind(null,e)})};var V6="7.0.8";var vge=()=>{},yot=console.warn.bind(console),Cot=console.error.bind(console);function Iot(t={}){return typeof t.debug!="function"&&(t.debug=vge),typeof t.info!="function"&&(t.info=vge),typeof t.warn!="function"&&(t.warn=yot),typeof t.error!="function"&&(t.error=Cot),t}var Pge=`octokit-core.js/${V6} ${df()}`,ZD=class{static VERSION=V6;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new sge.Collection,n={baseUrl:HQ.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} ${Pge}`:Pge,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=HQ.defaults(n),this.graphql=Tge(this.request).defaults(n),this.log=Iot(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(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 i=kge(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 j6="17.0.0";var Bot={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/{secr Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Vy(i));return n.searchPaths.push(...T3(n.patterns)),n})}static stat(e,r,n){return _3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Xm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 Xm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Xm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var WXe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Vue(t,e){return WXe(this,void 0,void 0,function*(){return yield kT.create(t,e)})}var Lde=ge(Xy(),1);import*as jT from"crypto";import*as r0 from"fs";import*as Qf from"path";import*as Ude from"util";var Zy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zy||(Zy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Wi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Wi||(Wi={}));var WT=2,JT=5e3,t8=5e3,r8=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Mde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,eB="cache.tar",n8="manifest.txt",J$t=10*Math.pow(1024,3),zT="cache read denied:";var t0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},nrt=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},srt="1.0";function tB(){return t0(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=Qf.join(n,"actions","temp")}let r=Qf.join(e,jT.randomUUID());return yield ff(r),r})}function Oc(t){return r0.statSync(t).size}function s8(t){return t0(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield Vue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=nrt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Qf.relative(a,s).replace(new RegExp(`\\${Qf.sep}`,"g"),"/");O(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function rB(t){return t0(this,void 0,void 0,function*(){return Ude.promisify(r0.unlink)(t)})}function Pde(t){return t0(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),O(`Checking ${e} ${r.join(" ")}`);try{yield Lc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){O(s.message)}return n=n.trim(),O(n),n})}function nB(){return t0(this,void 0,void 0,function*(){let t=yield Pde("zstd",["--quiet"]),e=Lde.clean(t);return O(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function sd(t){return t===vs.Gzip?Zy.Gzip:Zy.Zstd}function Ode(){return t0(this,void 0,void 0,function*(){return r0.existsSync(r8)?r8:(yield Pde("tar")).toLowerCase().includes("gnu tar")?qi("tar"):""})}function i8(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function n0(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(srt),jT.createHash("sha256").update(n.join("|")).digest("hex")}function Hde(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as v0 from"fs";import{URL as HAt}from"url";var Hc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as irt}from"node:os";import ort from"node:util";import art from"node:process";function Gde(t,...e){art.stderr.write(`${ort.format(t,...e)}${irt}`)}import sB from"node:process";function $T(t){return sB.env[t]}var qde=typeof sB.versions.deno=="string"&&sB.versions.deno.length>0,Yde=typeof sB.versions.bun=="string"&&sB.versions.bun.length>0,XT=!0;var Vde=$T("DEBUG"),Jde,o8=[],a8=[],ZT=[];Vde&&c8(Vde);var zde=Object.assign(t=>jde(t),{enable:c8,enabled:A8,disable:crt,log:Gde});function c8(t){Jde=t,o8=[],a8=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?a8.push(r.substring(1)):o8.push(r);for(let r of ZT)r.enabled=A8(r.namespace)}function A8(t){if(t.endsWith("*"))return!0;for(let e of a8)if(Wde(t,e))return!1;for(let e of o8)if(Wde(t,e))return!0;return!1}function Wde(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function crt(){let t=Jde||"";return c8(""),t}function jde(t){let e=Object.assign(r,{enabled:A8(t),destroy:Art,log:zde.log,namespace:t,extend:urt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ZT.push(e),e}function Art(){let t=ZT.indexOf(this);return t>=0?(ZT.splice(t,1),!0):!1}function urt(t){let e=jde(`${this.namespace}:${t}`);return e.log=this.log,e}var s0=zde;var u8=["verbose","info","warning","error"],Kde={verbose:400,info:300,warning:200,error:100};function $de(t,e){e.log=(...r)=>{t.log(...r)}}function Xde(t){return u8.includes(t)}function ex(t){let e=new Set,r=$T(t.logLevelEnvVarName),n,s=s0(t.namespace);s.log=(...u)=>{s0.log(...u)};function i(u){if(u&&!Xde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${u8.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);s0.enable(l.join(","))}r&&(Xde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${u8.join(", ")}.`));function o(u){return!!(n&&Kde[u.level]<=Kde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if($de(u,d),o(d)){let h=s0.disable();s0.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return $de(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var Zde=ex({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),lrt=Zde.logger;function iB(t){return Zde.createClientLogger(t)}function tx(t){return t.toLowerCase()}function drt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*hrt(t){for(let e of t.values())yield[e.name,e.value]}var l8=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(tx(e),{name:e,value:drt(r)})}get(e){return this._headersMap.get(tx(e))?.value}has(e){return this._ Line truncated
${mrt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function i0(t){return t instanceof _s?!0:Sf(t)&&t.name==="RestError"}function ai(t,e){return Buffer.from(t,e)}import g8 from"node:http";import p8 from"node:https";import rhe from"node:zlib";import{Transform as Ert}from"node:stream";var ci=iB("ts-http-runtime");var Crt={};function oB(t){return t&&typeof t.pipe=="function"}function nhe(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 she(t){return t&&typeof t.byteLength=="number"}var sx=class extends Ert{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}},m8=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Hc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Wa;ci.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=brt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new sx(f);g.on("error",E=>{ci.error("Error in upload progress",E)}),oB(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Irt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?yrt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new sx(h);f.on("error",g=>{ci.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Brt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();oB(a)&&(A=nhe(a));let u=Promise.resolve();oB(c)&&(u=nhe(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ci.warning("Error when cleaning up abortListener on httpRequest",l)})}}}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 a={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((c,A)=>{let u=i?g8.request(a,c):p8.request(a,c);u.once("error",l=>{A(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Hc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&oB(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):she(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ci.error("Unrecognized body type",n),A(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g8.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g8.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return p8.globalAgent;let s=e.tlsSettings??Crt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ci.info("No cached TLS Agent exist, creating a new Agent"),i=new p8.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Irt(t){let e=Ji();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}function yrt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=rhe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=rhe.createInflate();return t.pipe(n),n}return t}function Brt(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 _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function brt(t){return t?Buffer.isBuffer(t)?t.length:oB(t)?null:she(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ihe(){return new m8}function ix(){return ihe()}var E8="logPolicy";function ox(t={}){let e=t.logger??ci.info,r=new Wa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:E8,asy Line truncated
`;return e}function Ynt(t){return t instanceof Uint8Array?t.byteLength:AB(t)?t.size===-1?void 0:t.size:void 0}function Vnt(t){let e=0;for(let r of t){let n=Ynt(r);if(n===void 0)return;e+=n}return e}async function Wnt(t,e,r){let n=[ai(`--${r}`,"utf-8"),...e.flatMap(i=>[ai(`\r
`,"utf-8"),ai(qnt(i.headers),"utf-8"),ai(`\r
`,"utf-8"),i.body,ai(`\r
--${r}`,"utf-8")]),ai(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new VQ(i));return n.searchPaths.push(...n5(n.patterns)),n})}static stat(e,r,n){return l5(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield _y.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`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 _y.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield _y.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as d5 from"crypto";import*as s2 from"fs";import*as AEe from"stream";import*as uEe from"util";import*as lEe from"path";var Oat=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Hat=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function dEe(t,e){return Oat(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?re:G,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=d5.createHash("sha256"),f=0;try{for(var m=!0,E=Hat(r.globGenerator()),g;g=yield E.next(),i=g.done,!i;m=!0){c=g.value,m=!1;let C=c;if(u(C),!C.startsWith(`${d}${lEe.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(s2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let I=d5.createHash("sha256");yield uEe.promisify(AEe.pipeline)(s2.createReadStream(C),I),h.write(I.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!m&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var hEe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function KQ(t,e){return hEe(this,void 0,void 0,function*(){return yield r2.create(t,e)})}function fEe(t){return hEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield KQ(e,{followSymbolicLinks:i});return dEe(o,r,s)})}var oye=be(g2(),1);import*as I2 from"crypto";import*as qy from"fs";import*as Jp from"path";import*as aye from"util";var rw;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(rw||(rw={}));var Pi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Pi||(Pi={}));var ea;(function(t){t.GNU="gnu",t.BSD="bsd"})(ea||(ea={}));var E2=2,y2=5e3,P5=5e3,M5=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,iye=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,nw="cache.tar",F5="manifest.txt",QAr=10*Math.pow(1024,3),C2="cache read denied:";var Hy=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},jut=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},Kut="1.0";function Vp(){return Hy(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=Jp.join(n,"actions","temp")}let r=Jp.join(e,I2.randomUUID());return yield _p(r),r})}function Au(t){return qy.statSync(t).size}function L5(t){return Hy(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield KQ Line truncated
`),{implicitDescendants:!1});try{for(var A=!0,u=jut(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Jp.relative(a,s).replace(new RegExp(`\\${Jp.sep}`,"g"),"/");G(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function sw(t){return Hy(this,void 0,void 0,function*(){return aye.promisify(qy.unlink)(t)})}function cye(t){return Hy(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield ou(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}function iw(){return Hy(this,void 0,void 0,function*(){let t=yield cye("zstd",["--quiet"]),e=oye.clean(t);return G(`zstd version: ${e}`),t===""?Pi.Gzip:Pi.ZstdWithoutLong})}function yf(t){return t===Pi.Gzip?rw.Gzip:rw.Zstd}function Aye(){return Hy(this,void 0,void 0,function*(){return qy.existsSync(M5)?M5:(yield cye("tar")).toLowerCase().includes("gnu tar")?Zo("tar"):""})}function _5(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Gy(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Kut),I2.createHash("sha256").update(n.join("|")).digest("hex")}function uye(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as RC from"fs";import{URL as p0t}from"url";var uu=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Xut}from"node:os";import Zut from"node:util";import $ut from"node:process";function lye(t,...e){$ut.stderr.write(`${Zut.format(t,...e)}${Xut}`)}import ow from"node:process";function b2(t){return ow.env[t]}var dye=typeof ow.versions.deno=="string"&&ow.versions.deno.length>0,hye=typeof ow.versions.bun=="string"&&ow.versions.bun.length>0,Q2=!0;var fye=b2("DEBUG"),pye,U5=[],O5=[],w2=[];fye&&H5(fye);var gye=Object.assign(t=>Eye(t),{enable:H5,enabled:q5,disable:elt,log:lye});function H5(t){pye=t,U5=[],O5=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?O5.push(r.substring(1)):U5.push(r);for(let r of w2)r.enabled=q5(r.namespace)}function q5(t){if(t.endsWith("*"))return!0;for(let e of O5)if(mye(t,e))return!1;for(let e of U5)if(mye(t,e))return!0;return!1}function mye(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function elt(){let t=pye||"";return H5(""),t}function Eye(t){let e=Object.assign(r,{enabled:q5(t),destroy:tlt,log:gye.log,namespace:t,extend:rlt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return w2.push(e),e}function tlt(){let t=w2.indexOf(this);return t>=0?(w2.splice(t,1),!0):!1}function rlt(t){let e=Eye(`${this.namespace}:${t}`);return e.log=this.log,e}var Yy=gye;var G5=["verbose","info","warning","error"],yye={verbose:400,info:300,warning:200,error:100};function Cye(t,e){e.log=(...r)=>{t.log(...r)}}function Iye(t){return G5.includes(t)}function N2(t){let e=new Set,r=b2(t.logLevelEnvVarName),n,s=Yy(t.namespace);s.log=(...u)=>{Yy.log(...u)};function i(u){if(u&&!Iye(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${G5.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Yy.enable(l.join(","))}r&&(Iye(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${G5.join(", ")}.`));function o(u){return!!(n&&yye[u.level]<=yye[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Cye(u,d),o(d)){let h=Yy.disable();Yy.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Cye(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var Bye=N2({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),nlt=Bye.logger;function aw(t){return Bye.createClientLogger(t)}function x2(t){return t.toLowerCase()}function slt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*ilt(t){for(let e of t.values())yield[e.name,e.value]}var Y5=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(x2(e),{name:e,value:slt(r)})}get(e){return this._headersMap.get(x2(e))?.value}has(e){return this._ Line truncated
${Alt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function If(t){return t instanceof Ai?!0:Kp(t)&&t.name==="RestError"}function uw(t,e){return Buffer.from(t).toString(e)}function Mi(t,e){return Buffer.from(t,e)}import V5 from"node:http";import j5 from"node:https";import wye from"node:zlib";import{Transform as ult}from"node:stream";var lo=aw("ts-http-runtime");var llt={};function lw(t){return t&&typeof t.pipe=="function"}function Nye(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 xye(t){return t&&typeof t.byteLength=="number"}var S2=class extends ult{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}},K5=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new uu("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new ja;lo.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=mlt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,m=new S2(f);m.on("error",E=>{lo.error("Error in upload progress",E)}),lw(a)?a.pipe(m):m.end(a),a=m}let A=await this.makeRequest(e,r,a),u=dlt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?hlt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new S2(h);f.on("error",m=>{lo.error("Error in download progress",m)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await flt(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();lw(a)&&(A=Nye(a));let u=Promise.resolve();lw(c)&&(u=Nye(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{lo.warning("Error when cleaning up abortListener on httpRequest",l)})}}}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 a={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((c,A)=>{let u=i?V5.request(a,c):j5.request(a,c);u.once("error",l=>{A(new Ai(l.message,{code:l.code??Ai.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new uu("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&lw(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):xye(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(lo.error("Unrecognized body type",n),A(new Ai("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V5.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V5.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return j5.globalAgent;let s=e.tlsSettings??llt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(lo.info("No cached TLS Agent exist, creating a new Agent"),i=new j5.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function dlt(t){let e=uo();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}function hlt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=wye.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=wye.createInflate();return t.pipe(n),n}return t}function flt(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 Ai(`Error reading response as text: ${s.message}`,{code:Ai.PARSE_ERROR}))})})}function mlt(t){return t?Buffer.isBuffer(t)?t.length:lw(t)?null:xye(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Sye(){return new K5}function dw(){return Sye()}var T2="logPolicy";function hw(t={}){let e=t.logger??lo.info,r=new ja({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi Line truncated
`;return e}function Fdt(t){return t instanceof Uint8Array?t.byteLength:Qw(t)?t.size===-1?void 0:t.size:void 0}function Ldt(t){let e=0;for(let r of t){let n=Fdt(r);if(n===void 0)return;e+=n}return e}async function _dt(t,e,r){let n=[Mi(`--${r}`,"utf-8"),...e.flatMap(i=>[Mi(`\r
`,"utf-8"),Mi(Mdt(i.headers),"utf-8"),Mi(`\r
`,"utf-8"),i.body,Mi(`\r
--${r}`,"utf-8")]),Mi(`--\r
\r
`,"utf-8")],s=Vnt(n);s&&t.headers.set("Content-Length",s),t.body=await $he(n)}var uB="multipartPolicy",Jnt=70,znt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function jnt(t){if(t.length>Jnt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!znt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Tx(){return{name:uB,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,o]=s;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?jnt(r):r=Gnt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Wnt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function xx(){return nx()}var Xhe=ex({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),jtr=Xhe.logger;function Oo(t){return Xhe.createClientLogger(t)}var qc=Oo("core-rest-pipeline");function M8(t={}){return ox({logger:qc.info,...t})}var L8=Sx;function U8(t={}){return Nx(t)}import P8 from"node:os";import ad from"node:process";function Zhe(){return"User-Agent"}async function efe(t){if(ad&&ad.versions){let e=`${P8.type()} ${P8.release()}; ${P8.arch()}`;ad.versions.bun?t.set("Bun",`${ad.versions.bun} (${e})`):ad.versions.deno?t.set("Deno",`${ad.versions.deno} (${e})`):ad.versions.node&&t.set("Node",`${ad.versions.node} (${e})`)}}var Rx="1.24.0";function nst(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function tfe(){return Zhe()}async function Dx(t){let e=new Map;e.set("core-rest-pipeline",Rx),await efe(e);let r=nst(e);return t?`${t} ${r}`:r}var rfe=tfe(),nfe="userAgentPolicy";function O8(t={}){let e=Dx(t.userAgentPrefix);return{name:nfe,async sendRequest(r,n){return r.headers.has(rfe)||r.headers.set(rfe,await e),n(r)}}}var sfe=Symbol("rawContent");function H8(t){return typeof t[sfe]=="function"}function ife(t){return H8(t)?t[sfe]():t}var kx=uB;function G8(){let t=Tx();return{name:kx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)H8(n.body)&&(n.body=ife(n.body));return t.sendRequest(e,r)}}}var q8=Qx;function Y8(){return wx()}function V8(t={}){return Ax(t)}function W8(){return ux()}var lB=class extends Error{constructor(e){super(e),this.name="AbortError"}};function J8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new lB(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var dst="The delay was aborted.";function l0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return J8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??dst})}function cd(t){if(Sf(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 ofe(t){return Sf(t)}function d0(){return wf()}var Jt=XT;function Ad(t){return k8(t)}function j8(t,e){return bx(t,e)}var afe="setClientRequestIdPolicy";function K8(t="x-ms-client-request-id"){return{name:afe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function $8(t){return lx(t)}function X8(t){return dx(t)}var h0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function cfe(t={}){let e=new Z8(t.parentContext);return t.span&&(e=e.setValue(h0.span,t.span)),t.namespace&&(e=e.setValue(h0.namespace,t.namespace)),e}var Z8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var ufe=ge(Afe(),1),_x=ufe.state;function hst(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function fst(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:hst(),tracingContext:cfe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dB(){return _x.instrumenterImplementation||(_x.instrumenterImplementation=fst()),_x.instrumenterImplementation}function hB(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dB().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Mit(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",tn("InvalidTag",l,Fs(t,i))}let A=Dit(t,i);if(A===!1)return tn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fs(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Vfe(u,e);if(d===!0)n=!0;else return tn(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return tn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return tn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fs(t,l.tagStartPos);return tn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return tn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fs(t,i));else{let l=Vfe(u,e);if(l!==!0)return tn(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return tn("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Yfe(t,i);continue}else if(t[i+1]==="?"){if(i=qfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=_it(t,i);if(l==-1)return tn("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!Gfe(t[i]))return tn("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(Gfe(t[i]))continue;return tn("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return tn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return tn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return tn("InvalidXml","Start tag expected.",1);return!0}function Gfe(t){return t===" "||t===" "||t===`
`||t==="\r"}function qfe(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 tn("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Yfe(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 xit='"',Rit="'";function Dit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===xit||t[e]===Rit)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}}var kit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Vfe(t,e){let r=qx(t,kit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return tn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bB(r[s]));let i=r[s][2];if(!Fit(i))return tn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return tn("InvalidAttr","Attribute '"+i+"' is repeated.",bB(r[s]))}return!0}function vit(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 _it(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vit(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 tn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Fit(t){return m4(t)}function Mit(t){return m4(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bB(t){return t.startIndex+t[1].length}var Wfe={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:"%",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"},Jfe={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"},zfe={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",Lcaron:"\u013Line truncated
`);let e=new di("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new SB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=C0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=w4(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=S4(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new di(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=C0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=C0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=S4(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=cot(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=aot(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new di(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s));let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new di(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function fot(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))}function got(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)}function pot(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}function mot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Eot(t,e,r=">"){Line truncated
`;function Sot(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(k4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Ige(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function D4(t,e){let r="";e.format&&(r=wot);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new $i(a)):a instanceof $i&&n.push(a)}let s=Sot(t,e),i=new Wc;return yge(t,e,r,i,n,s)}function yge(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=R4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=k4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Ige(u,!1,e,n,i),h=Not(A[":@"],e);n.push(d,h);let f=xot(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=R4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],B=eR(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Zx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Cge(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Cge(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Bge(A[u],e):I=yge(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function Not(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]=dd(t[s]),n=!0}return n?r:null}function Bge(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=k4(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 o=Tot(s[":@"],e),a=Bge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Tot(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)}="${dd(s)}"`}return r}function k4(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}}function Cge(t,e,r,n,s){let i="";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:Ige(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=R4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${dd(A)}"`}return i}function xot(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 R4(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}function v4(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 Rot={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 fi(t){if(this.options=Object.assign({},Rot,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 $i(r)):r instanceof $i&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=Ldt(n);s&&t.headers.set("Content-Length",s),t.body=await CCe(n)}var Xy="multipartPolicy",Udt=70,Odt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Hdt(t){if(t.length>Udt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Odt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ww(){return{name:Xy,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,o]=s;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?Hdt(r):r=Pdt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await _dt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}var ICe=N2({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Nhr=ICe.logger;function Bs(t){return ICe.createClientLogger(t)}var Nw=Bs("core-rest-pipeline");function SCe(){return"User-Agent"}function TCe(){return SCe()}var pfr=TCe();var Mn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function aq(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Mn(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var Zdt="The delay was aborted.";function du(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return aq(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Zdt})}function Nd(t){if(Kp(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 Aq(t){return Kp(t)}function $a(){return jp()}var ct=Q2;function uq(t,e){return uw(t,e)}function lq(t,e){return Mi(t,e)}var dq=Ky;function Qf(t){return yw(t)}var Zy={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function RCe(t={}){let e=new hq(t.parentContext);return t.span&&(e=e.setValue(Zy.span,t.span)),t.namespace&&(e=e.setValue(Zy.namespace,t.namespace)),e}var hq=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var kCe=be(DCe(),1),j2=kCe.state;function $dt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function eht(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:$dt(),tracingContext:RCe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function xw(){return j2.instrumenterImplementation||(j2.instrumenterImplementation=eht()),j2.instrumenterImplementation}function wf(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=xw().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(Zy.namespace)||(h=h.setValue(Zy.namespace,e)),f.setAttribute("az.namespace",h.getValue(Zy.namespace));let m=Object.assign({},u,{tracingOptions:{...u?.tracingOptions,tracingContext:h}});return{span:f,updatedOptions:m}}async function i(A,u,l,d){let{span:h,updatedOptions:f}=s(A,u,d);try{let m=await o(f.tracingOptions.tracingContext,()=>l(f,h));return h.setStatus({status:"success"}),m}catch(m){throw h.setStatus({status:"error",error:m}),m}finally{h.end()}}function o(A,u,...l){return xw().withContext(A,u,...l)}function a(A){return xw().parseTraceparentHeader(A)}function c(A){return xw().createRequestHeaders(A)}return{startSpan:s,withSpan:i,withContext:o,parseTraceparentHeader:a,createRequestHeaders:c}}function K2(t){return If(t)}var Cpr=Bs("core-rest-pipeline retryPolicy");var mht={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function pht(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let i=await t();if(i===null)throw new Error("Failed to refresh access token.");return i}}let s=await n();for(;s===null;)await du(e),s=await n();return s}function fq(t,e){let r=null,n=null,s,i={...mht,...e},o={get isRefreshing(){return r!==null},get shouldRefresh(){return o.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-i.refreshWindowInMs<Date.now()},get mustRefresh(){return n===n Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Gft(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Fn("InvalidTag",l,Fi(t,i))}let A=_ft(t,i);if(A===!1)return Fn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fi(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=xIe(u,e);if(d===!0)n=!0;else return Fn(d.err.code,d.err.msg,Fi(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Fn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fi(t,o));if(r.length===0)return Fn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fi(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fi(t,l.tagStartPos);return Fn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fi(t,o))}r.length==0&&(s=!0)}}else return Fn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fi(t,i));else{let l=xIe(u,e);if(l!==!0)return Fn(l.err.code,l.err.msg,Fi(t,i-u.length+l.err.line));if(s===!0)return Fn("InvalidXml","Multiple possible root nodes found.",Fi(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=NIe(t,i);continue}else if(t[i+1]==="?"){if(i=wIe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Hft(t,i);if(l==-1)return Fn("InvalidChar","char '&' is not expected.",Fi(t,i));i=l}else if(s===!0&&!tC(t[i]))return Fn("InvalidXml","Extra text at the end",Fi(t,i));t[i]==="<"&&i--}}else{if(tC(t[i]))continue;return Fn("InvalidChar","char '"+t[i]+"' is not expected.",Fi(t,i))}if(n){if(r.length==1)return Fn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fi(t,r[0].tagStartPos));if(r.length>0)return Fn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Fn("InvalidXml","Start tag expected.",1);return!0}function tC(t){return t===" "||t===" "||t===`
`||t==="\r"}function wIe(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 Fn("InvalidXml","XML declaration allowed only at the start of the document.",Fi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function NIe(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 Fft='"',Lft="'";function _ft(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Fft||t[e]===Lft)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}}function Uft(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&tC(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!tC(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&tC(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&tC(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,m=t.indexOf(t[d],f);m!==-1&&(u=t[d],l=t.slice(f,m),n=m+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function xIe(t,e){let r=Uft(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",_w(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",_w(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Fn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",_w(r[s]));let i=r[s][2];if(!qft(i))return Fn("InvalidAttr","Attribute '"+i+"' is an invalid name.",_w(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Fn("InvalidAttr","Attribute '"+i+"' is repeated.",_w(r[s]))}return!0}function Oft(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 Hft(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Oft(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 Fn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function qft(t){return Wq(t)}function Gft(t){return Wq(t)}function Fi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function _w(t){return t.startIndex+t[1].length}var Jq={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Uw={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Vq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var rC=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Yft=new Set("!?\\\\/[]$%{}^&*()<>|+");function SIe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Yft.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Ow(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var sg="external",uk="base",jq="all";function zft(t){return!t||t===sg?new Set([sg]):t===jq?new Set([jq]):t===uk?new Set([uk]):Array.isArray(t)?new Set(t):new Set([sg])}var mo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Wft=new Set([9,10,13]);function Jft(t){if(!t)return{xmlVersion:1,onLevel:mo.allow,nullLevel:mo.remove};let e=t.xmlVersion===1.1?1.1:1,r=mo[t.onNCR]??mo.allow,n=mo[t.nullNCR]??mo.remove,s=Math.max(n,mo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var nC=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=zft(this._limit.applyLimitsTo??sg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Ow(Uw,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le Line truncated
`);let e=new po("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s=this.options,i=new qw(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=cC(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=cG(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop()||e,s.captureMetaData&&r&&r.addEndIndex(u+1),n="",a=u}else if(A===63){let u=AG(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new po(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),s.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=cC(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=cC(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=AG(t,a,s.removeNSPrefix);if(!u){let J=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${J}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,m=u.closeIndex;if({tagName:l,tagExp:h}=cG(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(g=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,I={},B;B=Tmt(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(I=Smt(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let J="";if(g)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let H=this.readStopNodeData(t,d,m+1);if(!H)throw new Error(`Unexpected end of ${d}`);a=H.i,J=H.tagContent}let F=new po(l);C&&(F[":@"]=C),F.add(s.textNodeName,J),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(a+1)}else{if(g){({tagName:l,tagExp:h}=cG(s.transformTagName,l,h,s));let J=new po(l);C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(m+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let J=new po(l);C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let J=new po(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),r=J}n="",a=m}}}else n+=t[a];return e.child};function Mmt(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))}function Fmt(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)}function Lmt(t,e,Line truncated
`;function Jmt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(mG(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function JIe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function fG(t,e){let r="";e.format&&(r=Wmt);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 ra(c)):c instanceof ra&&n.push(c)}let s=Jmt(t,e),i=lk("qName",{xmlVersion:s}),o=new pu;return VIe(t,e,r,o,n,i)}function VIe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=js(t);return c=hG(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=mG(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:JIe(u,!1,e,n,i),h=Vmt(A[":@"],e);n.push(d,h);let f=Kmt(n,s);if(d===e.textNodeName){let I=A[u];f||(I=e.tagValueProcessor(d,I),I=hG(I,e)),I=js(I),a&&(o+=r),o+=I,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let I=A[u][0][e.textNodeName],B=pk(I);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let I=A[u][0][e.textNodeName],B=zw(I);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let I=WIe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${I}?>`,a=!0,n.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let E=WIe(A[":@"],e,f,n,i),g=r+`<${d}${E}`,C;f?C=jIe(A[u],e):C=VIe(A[u],e,m,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}</${d}>`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function Vmt(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]=gu(t[s]),n=!0}return n?r:null}function jIe(t,e){if(!Array.isArray(t))return t!=null?js(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=mG(s);if(i===e.textNodeName)r+=js(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 o=jmt(s[":@"],e),a=jIe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function jmt(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)}="${gu(s)}"`}return r}function mG(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}}function WIe(t,e,r,n,s){let i="";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:JIe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=hG(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${gu(A)}"`}return i}function Kmt(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 hG(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}function pG(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 Xmt={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 Eo(t){if(this.options=Object.assign({},Xmt,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 ra(r)):r instanceof ra&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Dot(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"}function _4(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}fi.prototype.build=function(t){if(this.options.preserveOrder)return D4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wc,r=Dot(t,this.options);return this.j2x(t,0,e,r).val}};fi.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 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:_4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=_4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=_4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};fi.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+'="'+dd(e)+'"'};function kot(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}fi.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]=dd(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]=dd(t[n]),r=!0)}return r?e:null};fi.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 n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Zmt(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"}function gG(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Eo.prototype.build=function(t){if(this.options.preserveOrder)return fG(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new pu,r=Zmt(t,this.options),n=lk("qName",{xmlVersion:r});return this.j2x(t,0,e,n).val}};Eo.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 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:gG(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=gG(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,js(t[c]),a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,js(t[c]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=js(t[c]);h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let m=t[c][f];if(!(typeof m>"u"))if(m===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=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,n);r.pop(),d+=E.val,this.options.attributesGroupName&&m.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(m,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,m);E=this.replaceEntitiesValue(E),E=js(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let g=js(m);g===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+g+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(m,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=gG(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,js(t[c][l[h]]),a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};Eo.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,js(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+gu(e)+'"'};function $mt(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}Eo.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]=gu(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]=gu(t[n]),r=!0)}return r?e:null};Eo.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 n=t[r];if(r===this.options.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set($e.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===$e.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE));r.sort((s,i)=>lR(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=cR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=AR(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Or=class extends Mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new DB(e,r,this)}computeHMACSHA256(e){return Yot("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Lf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var yn=Oo("storage-common");var Ho;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ho||(Ho={}));var fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Vot=new Lf("The operation was aborted."),kB=class extends Jc{retryOptions;constructor(e,r,n=fd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:fd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):fd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:fd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:fd.maxRetryDelayInMs):fd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:fd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:fd.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=aR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=hd(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(yn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(yn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return yn.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 o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return yn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return yn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return yn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get($e.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(yn.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 Ho.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ho.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return yn.info(`RetryPolicy: Delay for ${s}ms`),uR(s,n,Vot)}};var vB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kB(e,r,this.retryOptions)}};var Wot="storageBrowserPolicy";function Nge(){return{name:Wot,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=hd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}var Jot="StorageCorrectContentLengthPolicy";function Tge(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Jot,async sendRequest(e,r){return t(e),r(e)}}}var zot="storageRetryPolicy",y0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},jot=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Kot=new Lf("The operation was aborted.");function xge(t={}){let e=t.retryPolicyType??y0.retryPolicyType,r=t.maxTries??y0.maxTries,n=t.retryDelayInMs??y0.retryDelayInMs,s=t.maxRetryDelayInMs??y0.maxRetryDelayInMs,i=t.secondaryHost??y0.secondaryHost,o=t.tryTimeoutInMs??y0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return yn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of jot)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Qt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Qt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Qt.PREFIX_FOR_STORAGE));r.sort((s,i)=>Sk(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=wk(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Nk(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var It=class extends vf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new fC(e,r,this)}computeHMACSHA256(e){return ypt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var ns=Bs("storage-common");var ia;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ia||(ia={}));var Pf={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ia.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Cpt=new Mn("The operation was aborted."),mC=class extends dA{retryOptions;constructor(e,r,n=Pf){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Pf.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Pf.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Pf.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Pf.maxRetryDelayInMs):Pf.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Pf.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Pf.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=Qk(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=bk(s.url,Kw.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(ns.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(ns.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return ns.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 o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return ns.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return ns.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return ns.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(Qt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(ns.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 ia.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ia.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return ns.info(`RetryPolicy: Delay for ${s}ms`),xk(s,n,Cpt)}};var Mf=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new mC(e,r,this.retryOptions)}};var Ipt="storageBrowserPolicy";function Tk(){return{name:Ipt,async sendRequest(t,e){return e(t)}}}var Bpt="StorageCorrectContentLengthPolicy";function Rk(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Qt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Bpt,async sendRequest(e,r){return t(e),r(e)}}}var bpt="storageRetryPolicy",pC={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ia.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Qpt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],wpt=new Mn("The operation was aborted.");function Dk(t={}){let e=t.retryPolicyType??pC.retryPolicyType,r=t.maxTries??pC.maxTries,n=t.retryDelayInMs??pC.retryDelayInMs,s=t.maxRetryDelayInMs??pC.maxRetryDelayInMs,i=t.secondaryHost??pC.secondaryHost,o=t.tryTimeoutInMs??pC.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return ns.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Qpt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return ns.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return ns.info("RetryPolicy: Incomplete XML response likely due Line truncated
`)+`
`+n(i)+s(i),a=$ot("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set($e.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===$e.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>lR(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=cR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=AR(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Xot,async sendRequest(i,o){return e(i),o(i)}}}var Zot="storageRequestFailureDetailsParserPolicy";function Rge(){return{name:Zot,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}}}}import{createHmac as eat}from"node:crypto";var dR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return eat("sha256",this.key).update(e,"utf8").digest("base64")}};var hR="12.31.0",fR="2026-02-06";var gR="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ja="",O4="*",tat=1*1024*1024;var rat=4*tat;var Dge="AES256",kge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vge=["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"],_ge=["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"],Fge="BlobUsesCustomerSpecifiedEncryption",Mge="BlobDoesNotUseCustomerSpecifiedEncryption",Lge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(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 _B=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function rn(t,e={}){t||(t=new Nr);let r=new _B([],e);return r._credential=t,r}function nat(t){let e=[sat,Uge,iat,oat,aat,cat,uat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Aat(s));return{wrappedPolicies:g4(r),afterRetry:n}}}}function H4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?p4(e):U4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${hR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pB({...r,loggingOptions:{additionalAllowedHeaderNames:vge,additionalAllowedQueryParameters:_ge,logger:rR.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:tR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:M4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:q8}),s.addPolicy(Tge()),s.addPolicy(xge(r.retryOptions),{phase:"Retry"}),s.addPolicy(Rge()),s.addPolicy(Nge());let a=nat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=G4(t);ji(c)?s.addPolicy(f0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Xa(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}}function sAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,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 iAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,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}}function oAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,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}}function aAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(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,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,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}}function cAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(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,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,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}}function AAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(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,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,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}}function Vf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Wf(t){let e=t.version?t.version:fR;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 WB=class{_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=d0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>_e(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!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=_e(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!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>_e(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!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||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 Be.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"}};D0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jf=class extends Error{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"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var kAt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},g9=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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`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=()=>{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 $pe(t,e,r){return kAt(this,void 0,void 0,function*(){var n;let s=new Za(t),i=s.getBlockBlobClient(),o=new g9((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new AD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw je(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Zpe from"buffer";import*as dA from"fs";import*as eme from"stream";import*as tme from"util";var uD=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function lD(t){return t?t>=200&&t<300:!1}function vAt(t){return t?t>=500:!0}function _At(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function FAt(t){return uD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Xpe(t,e,r){return uD(this,arguments,void 0,function*(n,s,i,o=WT,a=JT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!vAt(d)))return l;if(d&&(h=_At(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield FAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Fc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function k0(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.message.statusCode,s,i)})}var Wo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function MAt(t,e){return Wo(this,void 0,void 0,function*(){yield tme.promisify(eme.pipeline)(t.message,e)})}var dD=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,O(`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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function I9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new HAt(t),s=ime(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield nme(t,e,s):s.concurrentBlobDownloads?yield rme(t,e,s):yield hD(t,e):yield hD(t,e)})}function gme(t,e,r){return pi(this,void 0,void 0,function*(){let n=C9(),s=n0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function hme(t,e){return`bytes ${t}-${e}/*`}function VAt(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${hme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":hme(n,s)},o=yield k0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!lD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function WAt(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=v0.openSync(r,"r"),a=p9(n),c=i8("uploadConcurrency",a.uploadConcurrency),A=i8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield VAt(t,i,()=>v0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{v0.closeSync(o)}})}function JAt(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function y9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(p9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield $pe(r,e,n)}else{let i=C9();O("Upload cache"),yield WAt(i,t,e,n),O("Commiting cache");let o=Oc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield JAt(i,t,o);if(!lD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var c0e=ge(dG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var pG=ge(At(),1),mG=ge(At(),1),i0e=ge(At(),1),o0e=ge(At(),1),a0e=ge(At(),1);var hG=ge(At(),1),fG=ge(At(),1),r0e=ge(At(),1),n0e=ge(At(),1),s0e=ge(At(),1),gG=class extends s0e.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,n0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,r0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?fG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,hG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,hG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?fG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},e2=new gG;var EG=class extends a0e.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:()=>e2}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,o0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,i0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(e2.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?mG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,pG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)e2.internalBinaryWrite(e.scope[i],r.tag(2,pG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?mG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield vG(r,"create");yield _G(n,t)})}var j0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},LG="cache write denied:",n2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},d0e=zT,s2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},i2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function h0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function UG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function f0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function o2(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),h0e(s);let u=E9();if(!ame(u)){Z(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield udt(s,i,o,a,c):yield Adt(s,i,o,a,c)})}function Adt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UG(h);let l=yield nB(),d="";try{let h;try{h=yield fme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(d0e)?new s2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),sd(l)),O(`Archive Path: ${d}`),yield I9(h.archiveLocation,d,a),Ha()&&(yield Eb(d,l));let f=Oc(d);return Z(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield FG(d,l),Z("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Fc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):je(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function udt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)UG(d);let l="";try{let d=kG(),h=yield nB(),f={key:i,restoreKeys:o,version:n0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(d0e)?new s2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?Z(`Cache hit for restore-key: ${g.matchedKey}`):Z(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),sd(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield I9(g.signedDownloadUrl,l,a);let m=Oc(l);return Z(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Ha()&&(yield Eb(l,h)),yield FG(l,h),Z("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Fc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):je(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function a2(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),h0e(n),UG(s);let c=E9();return cme(c)?a==="v2"?yield ddt(n,s,i,o):yield ldt(n,s,i,o):(Z(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ldt(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield s8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.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 E=yield tB(),m=Cb.join(E,sd(h));O(`Archive Path: ${m}`);try{yield MG(E,g,h),Ha()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if( Line truncated
See ${r.getDocumentationLink()}`;g0e.push(n),gf(n)}function p0e(){Uc("deprecation-collector_deprecations",JSON.stringify(OG)),Uc("deprecation-collector_errors",JSON.stringify(g0e))}import*as l2 from"path";var m0e="GRADLE_ACTION_ID";var g2=".setup-gradle",Bb=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return gdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,E0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return l2.resolve(bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new d2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var K0=class{isCacheDisabled(){return f0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=yb("gradle-home-cache-cleanup");if(e!==void 0)return A2("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return n3("gradle-home-cache-includes")}getCacheExcludes(){return n3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var rc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return yb("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return yb("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return yb("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return yb("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new d2}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(je("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},d2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-password")}},h2=class{getGradleVersion(){re Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new xb(i));return n.searchPaths.push(...YG(n.patterns)),n})}static stat(e,r,n){return XG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Z0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 Z0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Z0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as ZG from"crypto";import*as B2 from"fs";import*as W0e from"stream";import*as J0e from"util";import*as z0e from"path";var vht=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},_ht=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function j0e(t,e){return vht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=ZG.createHash("sha256"),f=0;try{for(var g=!0,E=_ht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${z0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(B2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=ZG.createHash("sha256");yield J0e.promisify(W0e.pipeline)(B2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var K0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function eq(t,e){return K0e(this,void 0,void 0,function*(){return yield I2.create(t,e)})}function $0e(t){return K0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield eq(e,{followSymbolicLinks:i});return j0e(o,r,s)})}import*as tq from"path";var Fht="Gradle User Home",Z0e="BASIC_CACHE_PRIMARY_KEY",eEe="BASIC_CACHE_RESTORED_KEY",Mht="setup-java",tEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],b2=class{async restore(e,r){let n=rEe(e),s=await Lht();Uc(Z0e,s);try{let i=await o2(n,s);i?(Uc(eEe,i),Z(`Basic caching restored from cache key: ${i}`)):Z("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){je(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(Z0e),i=My(eEe);if(n.readOnly)return{status:"read-only",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return Z(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=rEe(e);try{return await a2(o,s)===-1?(je(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return je(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${tEe}], make sure you have checked out the target repository`);return`${Mht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Pht="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Oht="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",nq=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function iEe(t){return t.isCacheDisabled()?(rq("Cache is disabled: will not restore state from previous builds."),new nq):t.getCacheProvider()==="basic"?(rq(Oht),new b2):(rq(Pht),Hht())}async function Hht(){let t=Ght();return await import(Uht(t).href)}function Ght(){let t=import.meta.dirname,e=sEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(nEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function rq(t){console.info(t)}import Q2 from"fs";import oEe from"path";var w2=class{constructor(e){this.cacheFile=oEe.resolve(e,g2,"valid-wrappers.json")}load(){if(Q2.existsSync(this.cacheFile))try{return JSON.parse(Q2.readFileSync(this.cacheFile,"utf-8"))}catch(e){je(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];Q2.mkdirSync(oEe.dirname(this.cacheFile),{recursive:!0}),Q2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var dEe=ge(uEe(),1);import*as lEe from"util";import*as S2 from"path";import*as N2 from"fs";var zht=lEe.promisify(N2.readdir);async function hEe(t){return(await fEe(t)).filter(r=>(0,dEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>S2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function fEe(t){let e=await zht(t),r=await Promise.all(e.map(async n=>{let s=S2.resolve(t,n),i=N2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?fEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Kht={_useHtmlParser2:!1};function eE(t,e){if(!t)return e??Kht;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Nq={};xa(Nq,{contains:()=>G2,extract:()=>Yft,html:()=>Oft,merge:()=>LEe,parseHTML:()=>Gft,root:()=>qft,text:()=>fg,xml:()=>Hft});var kd={};xa(kd,{DocumentPosition:()=>Zo,append:()=>Bft,appendChild:()=>yft,compareDocumentPosition:()=>vEe,existsOne:()=>DEe,filter:()=>iE,find:()=>U2,findAll:()=>Sft,findOne:()=>P2,findOneChild:()=>wft,getAttributeValue:()=>mft,getChildren:()=>sE,getElementById:()=>Rft,getElements:()=>xft,getElementsByClassName:()=>Dft,getElementsByTagName:()=>hg,getElementsByTagType:()=>kft,getFeed:()=>Sq,getInnerHTML:()=>pft,getName:()=>Cft,getOuterHTML:()=>xEe,getParent:()=>REe,getSiblings:()=>Qq,getText:()=>F2,hasAttrib:()=>Eft,hasChildren:()=>rr,innerText:()=>Mb,isCDATA:()=>tE,isComment:()=>dg,isDocument:()=>Xo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>M2,prepend:()=>Qft,prependChild:()=>bft,prevElementSibling:()=>L2,removeElement:()=>Ku,removeSubsets:()=>vft,replaceElement:()=>Ift,testElement:()=>Tft,textContent:()=>ju,uniqueSort:()=>Rd});var $o={};xa($o,{CDATA:()=>dq,Comment:()=>cq,Directive:()=>aq,Doctype:()=>hq,ElementType:()=>bt,Root:()=>iq,Script:()=>Aq,Style:()=>uq,Tag:()=>lq,Text:()=>oq,isTag:()=>sq});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function sq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var iq=bt.Root,oq=bt.Text,aq=bt.Directive,cq=bt.Comment,Aq=bt.Script,uq=bt.Style,lq=bt.Tag,dq=bt.CDATA,hq=bt.Doctype;var T2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return rE(this,e)}},kb=class extends T2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends kb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends kb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends kb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},vb=class extends T2{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.le Line truncated
`:F2(t.children):tE(t)?F2(t.children):Ii(t)?t.data:""}function ju(t){return Array.isArray(t)?t.map(ju).join(""):rr(t)&&!dg(t)?ju(t.children):Ii(t)?t.data:""}function Mb(t){return Array.isArray(t)?t.map(Mb).join(""):rr(t)&&(t.type===bt.Tag||tE(t))?Mb(t.children):Ii(t)?t.data:""}function sE(t){return rr(t)?t.children:[]}function REe(t){return t.parent||null}function Qq(t){let e=REe(t);if(e!=null)return sE(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function mft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Eft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Cft(t){return t.name}function M2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function L2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ku(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Ift(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function yft(t,e){if(Ku(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Bft(t,e){Ku(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function bft(t,e){if(Ku(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Qft(t,e){Ku(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function iE(t,e,r=!0,n=1/0){return U2(t,Array.isArray(e)?e:[e],r,n)}function U2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function wft(t,e){return e.find(t)}function P2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=P2(t,i.children,!0);if(o)return o}}return null}function DEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&DEe(t,r.children))}function Sft(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var O2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Ii(e)&&t(e.data):e=>Ii(e)&&e.data===t}};function wq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Nft(t,e){return r=>t(r)||e(r)}function kEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(O2,r)?O2[r](n):wq(r,n)});return e.length===0?null:e.reduce(Nft)}function Tft(t,e){let r=kEe(t);return r?r(e):!0}function xft(t,e,r,n=1/0){let s=kEe(t);return s?iE(s,e,r,n):[]}function Rft(t,e,r=!0){return Array.isArray(e)||(e=[e]),P2(wq("id",t),e,r)}function hg(t,e,r=!0,n=1/0){return iE(O2.tag_name(t),e,r,n)}function Dft(t,e,r=!0,n=1/0){return iE(wq("class",t),e,r,n)}function kft(t,e,r=!0,n=1/0){return iE(O2.tag_type(t),e,r,n)}function vft(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Zo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Zo||(Zo={}));function vEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Zo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Zo.FOLLOWING|Zo.CONTAINED_BY:Zo.FOLLOWING:a===t?Zo.PRECEDING|Zo.CONTAINS:Zo.PRECEDING}function Rd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=vEe(e,r);return n&Zo.PRECEDING?-1:n&Zo.FOLLOWING?1:0}),t}function Sq(t){let e=H2(Uft,t);return e?e.name==="feed"?_ft(e):Fft(e):null}function _ft(t){var e;let r=t.children,n={type:"atom",items:hg("entry",r).map(o=>{var a;let{children:c}=o,A={media:_Ee(c)};yi(A,"id","id",c),yi(A,"title","title",c);let u=(a=H2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dd("summary",c)||Dd("conten Line truncated
`+n(i)+s(i),a=Npt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Qt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Qt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(Qt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>Sk(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=wk(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Nk(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:xpt,async sendRequest(i,o){return e(i),o(i)}}}var Spt="storageRequestFailureDetailsParserPolicy";function kk(){return{name:Spt,async sendRequest(t,e){try{let r=await e(t);return r.status===400&&r.bodyAsText?.includes("<Error><Code>InvalidHeaderValue</Code>")&&r.bodyAsText.includes("<HeaderName>x-ms-version</HeaderName>")&&(r.bodyAsText=r.bodyAsText.replace(/<Message>.*<\/Message>/s,"<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.</Message>")),r}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}}}}import{createHmac as Tpt}from"node:crypto";var EC=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Tpt("sha256",this.key).update(e,"utf8").digest("base64")}};var vk="12.31.0",Pk="2026-02-06";var Mk="https://storage.azure.com/.default",Rd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var hA="",bG="*",Rpt=1*1024*1024;var Dpt=4*Rpt;var cBe="AES256",ABe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",uBe=["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"],lBe=["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"],dBe="BlobUsesCustomerSpecifiedEncryption",hBe="BlobDoesNotUseCustomerSpecifiedEncryption",fBe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Dd(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 Xw=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Ln(t,e={}){t||(t=new lt);let r=new Xw([],e);return r._credential=t,r}function kpt(t){let e=[vpt,mBe,Ppt,Mpt,Fpt,Lpt,Upt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>_pt(s));return{wrappedPolicies:Mw(r),afterRetry:n}}}}function QG(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?Fw(e):jw(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${vk}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=eg({...r,loggingOptions:{additionalAllowedHeaderNames:uBe,additionalAllowedQueryParameters:lBe,logger:gk.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:ag,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Ww,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:dq}),s.addPolicy(Rk()),s.addPolicy(Dk(r.retryOptions),{phase:"Retry"}),s.addPolicy(kk()),s.addPolicy(Tk());let a=kpt(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=wG(t);Hr(c)?s.addPolicy(Z2({credential:c,scopes:r.audience??Mk,c Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new EA(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}}function vEt(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?gA(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new EA(t.version,o,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 PEt(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?gA(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new EA(t.version,o,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}}function MEt(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?gA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new EA(t.version,o,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}}function FEt(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?gA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new EA(t.version,o,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}}function LEt(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?gA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new EA(t.version,o,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}}function _Et(t,e){if(t=pg(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=Pu.parse(t.permissions.toString()).toString():s=Mu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",mg(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?gA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new EA(t.version,o,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}}function mg(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function pg(t){let e=t.version?t.version:Pk;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 AN=class{_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=$a()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==hA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==hA||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 De.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ge(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!==hA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==hA||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 De.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ge(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!==hA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==hA||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 De.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ge(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!==hA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==hA||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 De.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"}};SC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var yg=class extends Error{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"}};yg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var pN=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var a0t=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Zz=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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`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=()=>{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 Sbe(t,e,r){return a0t(this,void 0,void 0,function*(){var n;let s=new _d(t),i=s.getBlockBlobClient(),o=new Zz((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new Tv(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw nt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Rbe from"buffer";import*as Fu from"fs";import*as Dbe from"stream";import*as kbe from"util";var Rv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Dv(t){return t?t>=200&&t<300:!1}function c0t(t){return t?t>=500:!0}function A0t(t){return t?[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout].includes(t):!1}function u0t(t){return Rv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Tbe(t,e,r){return Rv(this,arguments,void 0,function*(n,s,i,o=E2,a=y2,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!c0t(d)))return l;if(d&&(h=A0t(d),A=`Cache service responded with ${d}`),G(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){G(`${n} - Error is not retryable`);break}yield u0t(a),u++}throw Error(`${n} failed: ${A}`)})}function gN(t,e){return Rv(this,arguments,void 0,function*(r,n,s=E2,i=y2){return yield Tbe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof su)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function TC(t,e){return Rv(this,arguments,void 0,function*(r,n,s=E2,i=y2){return yield Tbe(r,n,o=>o.message.statusCode,s,i)})}var ic=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function l0t(t,e){return ic(this,void 0,void 0,function*(){yield kbe.promisify(Dbe.pipeline)(t.message,e)})}var kv=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,G(`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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function nW(t,e,r){return Bo(this,void 0,void 0,function*(){let n=new p0t(t),s=Fbe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Pbe(t,e,s):s.concurrentBlobDownloads?yield vbe(t,e,s):yield vv(t,e):yield vv(t,e)})}function Wbe(t,e,r){return Bo(this,void 0,void 0,function*(){let n=rW(),s=Gy(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield gN("reserveCache",()=>Bo(this,void 0,void 0,function*(){return n.postJson(yN("caches"),i)}))})}function Ybe(t,e){return`bytes ${t}-${e}/*`}function C0t(t,e,r,n,s){return Bo(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ybe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Ybe(n,s)},o=yield TC(`uploadChunk (start: ${n}, end: ${s})`,()=>Bo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Dv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function I0t(t,e,r,n){return Bo(this,void 0,void 0,function*(){let s=Au(r),i=yN(`caches/${e.toString()}`),o=RC.openSync(r,"r"),a=$z(n),c=_5("uploadConcurrency",a.uploadConcurrency),A=_5("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Bo(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield C0t(t,i,()=>RC.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),h,f)}})))}finally{RC.closeSync(o)}})}function B0t(t,e,r){return Bo(this,void 0,void 0,function*(){let n={size:r};return yield gN("commitCache",()=>Bo(this,void 0,void 0,function*(){return t.postJson(yN(`caches/${e.toString()}`),n)}))})}function sW(t,e,r,n){return Bo(this,void 0,void 0,function*(){if($z(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Sbe(r,e,n)}else{let i=rW();G("Upload cache"),yield I0t(i,t,e,n),G("Commiting cache");let o=Au(e);re(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield B0t(i,t,o);if(!Dv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);re("Cache saved successfully")}})}var UQe=be(jW(),1),Un=be(St(),1),ca=be(St(),1),Qg=be(St(),1),wg=be(St(),1),Ng=be(St(),1);var $W=be(St(),1),e7=be(St(),1),FQe=be(St(),1),LQe=be(St(),1),_Qe=be(St(),1);var KW=be(St(),1),XW=be(St(),1),vQe=be(St(),1),PQe=be(St(),1),MQe=be(St(),1),ZW=class extends MQe.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,PQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,vQe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?XW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,KW.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,KW.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XW.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},CP=new ZW;var t7=class extends _Qe.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:()=>CP}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,LQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,FQe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(CP.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?e7.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,$W.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)CP.internalBinaryWrite(e.scope[i],r.tag(2,$W.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?e7.UnknownFieldHandler.onWrite Line truncated
`));let{commands:n}=yield qQe(r,"create");yield YQe(n,t)})}var WC=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Aa=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Od=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},y7="cache write denied:",bP=class t extends Od{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},WQe=C2,QP=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},wP=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function JQe(t){if(!t||t.length===0)throw new Aa("Path Validation Error: At least one directory or file path is required")}function C7(t){if(t.length>512)throw new Aa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Aa(`Key Validation Error: ${t} cannot contain commas.`)}function VQe(){return EN()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function NP(t,e,r,n){return WC(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=EN();G(`Cache service version: ${A}`),JQe(s);let u=tW();if(!_be(u)){re(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),G(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield UCt(s,i,o,a,c):yield _Ct(s,i,o,a,c)})}function _Ct(t,e,r,n){return WC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Aa("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)C7(h);let l=yield iw(),d="";try{let h;try{h=yield zbe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(m){let E=(A=m?.message)!==null&&A!==void 0?A:"";throw E.includes(WQe)?new QP(E):m}if(!h?.archiveLocation)return;if(a?.lookupOnly)return re("Lookup only - skipping download"),h.cacheKey;d=MN.join(yield Vp(),yf(l)),G(`Archive Path: ${d}`),yield nW(h.archiveLocation,d,a),cA()&&(yield PN(d,l));let f=Au(d);return re(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield g7(d,l),re("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Aa.name)throw h;f instanceof su&&typeof f.statusCode=="number"&&f.statusCode>=500?$o(`Failed to restore: ${h.message}`):nt(`Failed to restore: ${h.message}`)}finally{try{yield sw(d)}catch(h){G(`Failed to delete archive: ${h}`)}}})}function UCt(t,e,r,n){return WC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Aa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)C7(d);let l="";try{let d=m7(),h=yield iw(),f={key:i,restoreKeys:o,version:Gy(s,h,c)},m;try{m=yield d.GetCacheEntryDownloadURL(f)}catch(C){let I=(A=C?.message)!==null&&A!==void 0?A:"";throw I.includes(WQe)?new QP(I):C}if(!m.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==m.matchedKey?re(`Cache hit for restore-key: ${m.matchedKey}`):re(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return re("Lookup only - skipping download"),m.matchedKey;l=MN.join(yield Vp(),yf(h)),G(`Archive path: ${l}`),G(`Starting download of archive to: ${l}`),yield nW(m.signedDownloadUrl,l,a);let g=Au(l);return re(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),cA()&&(yield PN(l,h)),yield g7(l,h),re("Cache restored successfully"),m.matchedKey}catch(d){let h=d;if(h.name===Aa.name)throw d;h instanceof su&&typeof h.statusCode=="number"&&h.statusCode>=500?$o(`Failed to restore: ${d.message}`):nt(`Failed to restore: ${d.message}`)}finally{try{l&&(yield sw(l))}catch(d){G(`Failed to delete archive: ${d}`)}}})}function xP(t,e,r){return WC(this,arguments,void 0,function*(n,s,i,o=!1){let a=EN();G(`Cache service version: ${a}`),JQe(n),C7(s);let c=tW();return Ube(c)?a==="v2"?yield HCt(n,s,i,o):yield OCt(n,s,i,o):(re(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),G(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function OCt(t,e,r){return WC(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield iw(),f=-1,m=yield L5(n);if(G("Cache Paths:"),G(`${JSON.stringify(m)}`),m.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 E=yield Vp(),g=MN.join(E,yf(h));G(`Archive Path: ${g}`);try{yield E7(E,m,h),cA()&&(yield PN(g,h));let C=10*1024 Line truncated
See ${r.getDocumentationLink()}`;jQe.push(n),Up(n)}function KQe(){au("deprecation-collector_deprecations",JSON.stringify(B7)),au("deprecation-collector_errors",JSON.stringify(jQe))}import*as DP from"path";var XQe="GRADLE_ACTION_ID";var MP=".setup-gradle",_N=class t{getDependencyGraphOption(){let e=Ur("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return Gu("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Ur("artifact-retention-days");return YCt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(co.workflow,co.job,ZQe())}getReportDirectory(){let e=Ur("dependency-graph-report-dir");return DP.resolve(Yf(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return xg("dependency-graph-exclude-projects")}getIncludeProjects(){return xg("dependency-graph-include-projects")}getExcludeConfigurations(){return xg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return xg("dependency-graph-include-configurations")}getPluginRepository(){return new kP}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var JC=class{isCacheDisabled(){return VQe()?Gu("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Gu("cache-read-only")}isCacheWriteOnly(){return Gu("cache-write-only")}isCacheOverwriteExisting(){return Gu("cache-overwrite-existing")}isCacheStrictMatch(){return Gu("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=LN("gradle-home-cache-cleanup");if(e!==void 0)return TP("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Ur("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Ur("cache-encryption-key")}getCacheIncludes(){return T6("gradle-home-cache-includes")}getCacheExcludes(){return T6("gradle-home-cache-excludes")}getCacheProvider(){let e=Ur("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var IA=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Gu("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Ur("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Ur("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Ur("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Ur("develocity-token-expiry")}getDevelocityInjectionEnabled(){return LN("develocity-injection-enabled")}getDevelocityUrl(){return Ur("develocity-url")}getDevelocityAllowUntrustedServer(){return LN("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return LN("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return LN("develocity-enforce-url")}getDevelocityPluginVersion(){return Ur("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Ur("develocity-ccud-plugin-version")}getPluginRepository(){return new kP}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(nt("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},kP=class{getUrl(){return xg("gradle-plugin-repository-url")}getUsername(){return xg("gradle-plugin-repository-username")}getPassword(){return xg("gradle-plugin-repository-p Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${iwe}], make sure you have checked out the target repository`);return`${tIt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var sIt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",iIt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",oIt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",HP=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function Awe(t){return t.getCacheProvider()==="external"?(OP(oIt),new HP("external")):t.isCacheDisabled()?(OP("Cache is disabled: will not restore state from previous builds."),new HP("disabled")):t.getCacheProvider()==="basic"?(OP(iIt),new UP):(OP(sIt),aIt())}async function aIt(){let t=cIt();return await import(nIt(t).href)}function cIt(){let t=import.meta.dirname,e=cwe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(awe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function OP(t){console.info(t)}import qP from"fs";import uwe from"path";var GP=class{constructor(e){this.cacheFile=uwe.resolve(e,MP,"valid-wrappers.json")}load(){if(qP.existsSync(this.cacheFile))try{return JSON.parse(qP.readFileSync(this.cacheFile,"utf-8"))}catch(e){nt(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];qP.mkdirSync(uwe.dirname(this.cacheFile),{recursive:!0}),qP.writeFileSync(this.cacheFile,JSON.stringify(r))}};var pwe=be(fwe(),1);import*as mwe from"util";import*as YP from"path";import*as zP from"fs";var fIt=mwe.promisify(zP.readdir);async function gwe(t){return(await Ewe(t)).filter(r=>(0,pwe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>YP.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Ewe(t){let e=await fIt(t),r=await Promise.all(e.map(async n=>{let s=YP.resolve(t,n),i=zP.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Ewe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var pIt={_useHtmlParser2:!1};function VC(t,e){if(!t)return e??pIt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var j7={};Fa(j7,{contains:()=>oM,extract:()=>uBt,html:()=>oBt,merge:()=>Hwe,parseHTML:()=>cBt,root:()=>ABt,text:()=>Pg,xml:()=>aBt});var jf={};Fa(jf,{DocumentPosition:()=>lc,append:()=>qIt,appendChild:()=>HIt,compareDocumentPosition:()=>Lwe,existsOne:()=>Mwe,filter:()=>$C,find:()=>rM,findAll:()=>WIt,findOne:()=>nM,findOneChild:()=>zIt,getAttributeValue:()=>LIt,getChildren:()=>ZC,getElementById:()=>KIt,getElements:()=>jIt,getElementsByClassName:()=>XIt,getElementsByTagName:()=>vg,getElementsByTagType:()=>ZIt,getFeed:()=>V7,getInnerHTML:()=>FIt,getName:()=>UIt,getOuterHTML:()=>vwe,getParent:()=>Pwe,getSiblings:()=>W7,getText:()=>$P,hasAttrib:()=>_It,hasChildren:()=>Tr,innerText:()=>YN,isCDATA:()=>jC,isComment:()=>kg,isDocument:()=>uc,isTag:()=>Me,isText:()=>No,nextElementSibling:()=>eM,prepend:()=>YIt,prependChild:()=>GIt,prevElementSibling:()=>tM,removeElement:()=>Gd,removeSubsets:()=>$It,replaceElement:()=>OIt,testElement:()=>VIt,textContent:()=>qd,uniqueSort:()=>Jf});var Ac={};Fa(Ac,{CDATA:()=>P7,Comment:()=>R7,Directive:()=>T7,Doctype:()=>M7,ElementType:()=>Jt,Root:()=>x7,Script:()=>D7,Style:()=>k7,Tag:()=>v7,Text:()=>S7,isTag:()=>N7});var Jt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Jt||(Jt={}));function N7(t){return t.type===Jt.Tag||t.type===Jt.Script||t.type===Jt.Style}var x7=Jt.Root,S7=Jt.Text,T7=Jt.Directive,R7=Jt.Comment,D7=Jt.Script,k7=Jt.Style,v7=Jt.Tag,P7=Jt.CDATA,M7=Jt.Doctype;var WP=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return KC(this,e)}},ON=class extends WP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},zu=class extends ON{constructor(){super(...arguments),this.type=Jt.Text}get nodeType(){return 3}},Tg=class extends ON{constructor(){super(...arguments),this.type=Jt.Comment}get nodeType(){return 8}},Rg=class extends ON{constructor(e,r){super(r),this.name=e,this.type=Jt.Di Line truncated
`:$P(t.children):jC(t)?$P(t.children):No(t)?t.data:""}function qd(t){return Array.isArray(t)?t.map(qd).join(""):Tr(t)&&!kg(t)?qd(t.children):No(t)?t.data:""}function YN(t){return Array.isArray(t)?t.map(YN).join(""):Tr(t)&&(t.type===Jt.Tag||jC(t))?YN(t.children):No(t)?t.data:""}function ZC(t){return Tr(t)?t.children:[]}function Pwe(t){return t.parent||null}function W7(t){let e=Pwe(t);if(e!=null)return ZC(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function LIt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function _It(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function UIt(t){return t.name}function eM(t){let{next:e}=t;for(;e!==null&&!Me(e);)({next:e}=e);return e}function tM(t){let{prev:e}=t;for(;e!==null&&!Me(e);)({prev:e}=e);return e}function Gd(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function OIt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function HIt(t,e){if(Gd(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function qIt(t,e){Gd(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function GIt(t,e){if(Gd(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function YIt(t,e){Gd(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function $C(t,e,r=!0,n=1/0){return rM(t,Array.isArray(e)?e:[e],r,n)}function rM(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&Tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function zIt(t,e){return e.find(t)}function nM(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Me(i)&&t(i))return i;if(r&&Tr(i)&&i.children.length>0){let o=nM(t,i.children,!0);if(o)return o}}return null}function Mwe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Me(r)&&t(r)||Tr(r)&&Mwe(t,r.children))}function WIt(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Me(i)&&t(i)&&r.push(i),Tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var sM={tag_name(t){return typeof t=="function"?e=>Me(e)&&t(e.name):t==="*"?Me:e=>Me(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>No(e)&&t(e.data):e=>No(e)&&e.data===t}};function J7(t,e){return typeof e=="function"?r=>Me(r)&&e(r.attribs[t]):r=>Me(r)&&r.attribs[t]===e}function JIt(t,e){return r=>t(r)||e(r)}function Fwe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(sM,r)?sM[r](n):J7(r,n)});return e.length===0?null:e.reduce(JIt)}function VIt(t,e){let r=Fwe(t);return r?r(e):!0}function jIt(t,e,r,n=1/0){let s=Fwe(t);return s?$C(s,e,r,n):[]}function KIt(t,e,r=!0){return Array.isArray(e)||(e=[e]),nM(J7("id",t),e,r)}function vg(t,e,r=!0,n=1/0){return $C(sM.tag_name(t),e,r,n)}function XIt(t,e,r=!0,n=1/0){return $C(J7("class",t),e,r,n)}function ZIt(t,e,r=!0,n=1/0){return $C(sM.tag_type(t),e,r,n)}function $It(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var lc;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(lc||(lc={}));function Lwe(t,e){let r=[],n=[];if(t===e)return 0;let s=Tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=Tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return lc.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?lc.FOLLOWING|lc.CONTAINED_BY:lc.FOLLOWING:a===t?lc.PRECEDING|lc.CONTAINS:lc.PRECEDING}function Jf(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=Lwe(e,r);return n&lc.PRECEDING?-1:n&lc.FOLLOWING?1:0}),t}function V7(t){let e=iM(sBt,t);return e?e.name==="feed"?eBt(e):tBt(e):null}function eBt(t){var e;let r=t.children,n={type:"atom",items:vg("entry",r).map(o=>{var a;let{children:c}=o,A={media:_we(c)};xo(A,"id","id",c),xo(A,"title","title",c);let u=(a=iM("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Vf("summary",c)||Vf("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var ra=ge(vd(),1);var qq={};function Yq(t,e){return t===ra.default.falseFunc?ra.default.falseFunc:r=>e.isTag(r)&&t(r)}function Vq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function Gq(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Hq=(t,e,r,n,s)=>{let i=s(e,Gq(r),n);return i===ra.default.trueFunc?t:i===ra.default.falseFunc?ra.default.falseFunc:o=>i(o)&&t(o)},ek={is:Hq,matches:Hq,where:Hq,not(t,e,r,n,s){let i=s(e,Gq(r),n);return i===ra.default.falseFunc?t:i===ra.default.trueFunc?ra.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=Gq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(qb))?[qq]:void 0,c=s(e,o,a);if(c===ra.default.falseFunc)return ra.default.falseFunc;let A=Yq(c,i);if(a&&c!==ra.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...Vq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function BCe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in ek))throw new Error(`Unknown pseudo-class :${o}(${a})`);return ek[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Z2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,yCe.parse)(A);return ek.is(t,u,r,n,s)}if(typeof c=="function")return Oq(c,o,a,1),u=>c(u,a)&&t(u);if(o in fE)return fE[o](t,a,r,n);if(o in Vb){let u=Vb[o];return Oq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var na=ge(dE(),1);function Wq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function bCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case na.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case na.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case na.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),mCe[e.action](t,e,r)}case na.SelectorType.Pseudo:return BCe(t,e,r,n,s);case na.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case na.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Wq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Wq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=Wq(A,i));return!1};case na.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case na.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case na.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case na.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case na.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function QCe(t,e,r){let n=tk(t,e,r);return Yq(n,e.adapter)}function tk(t,e,r){let n=typeof t=="string"?(0,oc.parse)(t):t;return rk(n,e,r)}function wCe(t){return t.type===oc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(wCe)))}var xgt={type:oc.SelectorType.Descendant},Rgt={type:"_flexibleDescendant"},Dgt={type:oc.SelectorType.Pseudo,name:"scope",data:null};function kgt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===qq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(HCe,`\r
`)}}).toArray()}var cY={};xa(cY,{extract:()=>Jpt});function Wpt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Jpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Wpt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Md=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Md.prototype.cheerio="[cheerio object]";Md.prototype.splice=Array.prototype.splice;Md.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Md.prototype,Fq,sY,iY,oY,aY,cY);function GCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=eE(s),a=t(n,o,i,null);class c extends Md{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&ea(u))return u;let f=eE(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=ea(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&Lb(u)?t(u,f,!1,null).children:zpt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?Lb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):ea(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,Nq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function zpt(t){return!!t.name||t.type===$o.Root||t.type===$o.Text||t.type===$o.Comment}var jpt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",N;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(N||(N={}));var Os={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ck(t){return t>=55296&&t<=57343}function qCe(t){return t>=56320&&t<=57343}function YCe(t,e){return(t-55296)*1024+9216+e}function Ak(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function uk(t){return t>=64976&&t<=65007||jpt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var fc=be(Kf(),1);var lJ={};function dJ(t,e){return t===fc.default.falseFunc?fc.default.falseFunc:r=>e.isTag(r)&&t(r)}function hJ(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function uJ(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var AJ=(t,e,r,n,s)=>{let i=s(e,uJ(r),n);return i===fc.default.trueFunc?t:i===fc.default.falseFunc?fc.default.falseFunc:o=>i(o)&&t(o)},EM={is:AJ,matches:AJ,where:AJ,not(t,e,r,n,s){let i=s(e,uJ(r),n);return i===fc.default.falseFunc?t:i===fc.default.trueFunc?fc.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=uJ(r);o.relativeSelector=!0;let a=e.some(u=>u.some(XN))?[lJ]:void 0,c=s(e,o,a);if(c===fc.default.falseFunc)return fc.default.falseFunc;let A=dJ(c,i);if(a&&c!==fc.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...hJ(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function NNe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in EM))throw new Error(`Unknown pseudo-class :${o}(${a})`);return EM[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:gM[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,wNe.parse)(A);return EM.is(t,u,r,n,s)}if(typeof c=="function")return cJ(c,o,a,1),u=>c(u,a)&&t(u);if(o in cI)return cI[o](t,a,r,n);if(o in $N){let u=$N[o];return cJ(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var mc=be(oI(),1);function fJ(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function xNe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case mc.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case mc.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case mc.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),INe[e.action](t,e,r)}case mc.SelectorType.Pseudo:return NNe(t,e,r,n,s);case mc.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case mc.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=fJ(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=fJ(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=fJ(A,i));return!1};case mc.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case mc.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case mc.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case mc.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case mc.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function SNe(t,e,r){let n=yM(t,e,r);return dJ(n,e.adapter)}function yM(t,e,r){let n=typeof t=="string"?(0,bA.parse)(t):t;return CM(n,e,r)}function TNe(t){return t.type===bA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(TNe)))}var jBt={type:bA.SelectorType.Descendant},KBt={type:"_flexibleDescendant"},XBt={type:bA.SelectorType.Pseudo,name:"scope",data:null};function ZBt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===lJ||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(zNe,`\r
`)}}).toArray()}var RJ={};Fa(RJ,{extract:()=>hQt});function dQt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function hQt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=dQt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var $f=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};$f.prototype.cheerio="[cheerio object]";$f.prototype.splice=Array.prototype.splice;$f.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign($f.prototype,nJ,NJ,xJ,SJ,TJ,RJ);function WNe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=VC(s),a=t(n,o,i,null);class c extends $f{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&dc(u))return u;let f=VC(h,o),m=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=dc(m)?m:new c(m,null,f);if(E._root=E,!u)return new c(void 0,E,f);let g=typeof u=="string"&&zN(u)?t(u,f,!1,null).children:fQt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(g,E,f);if(g)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let I=u,B=l?typeof l=="string"?zN(l)?new c([t(l,f,!1,null)],E,f):(I=`${l} ${I}`,E):dc(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(I):C}return Object.assign(A,j7,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function fQt(t){return!!t.name||t.type===Ac.Root||t.type===Ac.Text||t.type===Ac.Comment}var mQt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Fr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Oi={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function NM(t){return t>=55296&&t<=57343}function JNe(t){return t>=56320&&t<=57343}function VNe(t,e){return(t-55296)*1024+9216+e}function xM(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function SM(t){return t>=64976&&t<=65007||mQt.has(t)}var V;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},H_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var ap=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function _Re(t){if(t instanceof AggregateError){gf("Multiple errors returned");for(let e of t.errors)Yi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof ap?(gf(String(t)),t.stack&&Z(t.stack)):(gf(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function FRe(t,e,r){if(!t.doValidateWrappers())return;let n=new w2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await vRe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await pT("All Gradle Wrapper jars are valid",async()=>{O(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new ap(`At least one Gradle Wrapper Jar failed validation!
`)}`}},o_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var RE=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function LFe(t){if(t instanceof AggregateError){Up("Multiple errors returned");for(let e of t.errors)$o(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&re(e.stack)}else t instanceof RE?(Up(String(t)),t.stack&&re(t.stack)):(Up(String(t)),t instanceof Error&&t.stack&&re(t.stack))}async function _Fe(t,e,r){if(!t.doValidateWrappers())return;let n=new GP(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await FFe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await qD("All Gradle Wrapper jars are valid",async()=>{G(`Loaded previously validated checksums from cache: ${i.join(", ")}`),re(o.toDisplayString())});else throw re(o.toDisplayString()),new RE(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import mo from"fs";import cp from"path";function MRe(t,e,r){let n=cp.resolve(e,g2);mo.mkdirSync(n,{recursive:!0}),Pvt(e),Ovt(t),Ha()&&Hvt(e),r&&Zn("GRADLE_ENCRYPTION_KEY",r)}function Pvt(t){let e=cp.resolve(t,"init.d");mo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=Gvt("init-scripts",n),i=cp.resolve(e,n);mo.writeFileSync(i,s)}}function Ovt(t){let e=qvt();if(e==null)return;let r=cp.resolve(t,".m2"),n=cp.resolve(r,"toolchains.xml");if(!mo.existsSync(n))mo.mkdirSync(r,{recursive:!0}),mo.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=mo.readFileSync(n,"utf8"),i=Yvt(s,e);mo.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function Hvt(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import ba from"fs";import DE from"path";function UFe(t,e,r){let n=DE.resolve(e,MP);ba.mkdirSync(n,{recursive:!0}),p4t(e),g4t(t),cA()&&E4t(e),r&&Ws("GRADLE_ENCRYPTION_KEY",r)}function p4t(t){let e=DE.resolve(t,"init.d");ba.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=y4t("init-scripts",n),i=DE.resolve(e,n);ba.writeFileSync(i,s)}}function g4t(t){let e=C4t();if(e==null)return;let r=DE.resolve(t,".m2"),n=DE.resolve(r,"toolchains.xml");if(!ba.existsSync(n))ba.mkdirSync(r,{recursive:!0}),ba.writeFileSync(n,e),re(`Wrote default JDK locations to ${n}`);else{let s=ba.readFileSync(n,"utf8"),i=I4t(s,e);ba.writeFileSync(n,i),re(`Merged default JDK locations into ${n}`)}}function E4t(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=cp.resolve(t,"gradle.properties");if(mo.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=mo.readFileSync(r,"utf-8");mo.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),mo.writeFileSync(r,e)}function Gvt(...t){let e=import.meta.dirname,r=cp.resolve(e,"..","..","..","sources","src","resources",...t);return mo.readFileSync(r,"utf8")}function qvt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
`,r=DE.resolve(t,"gradle.properties");if(ba.existsSync(r)){re(`Merged --info and --stacktrace into existing ${r} file`);let n=ba.readFileSync(r,"utf-8");ba.writeFileSync(r,`${e}
${n}`)}else re(`Created a new ${r} with --info and --stacktrace`),ba.writeFileSync(r,e)}function y4t(...t){let e=import.meta.dirname,r=DE.resolve(e,"..","..","..","sources","src","resources",...t);return ba.readFileSync(r,"utf8")}function C4t(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
@@ -280,49 +279,60 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function Yvt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Kz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Vvt="GRADLE_USER_HOME",Wvt="DEVELOCITY_CACHE_TOKEN";async function LRe(t,e,r){let n=await URe(),s=await zvt();if(process.env[Kz])return Z("Gradle setup only performed on first gradle/actions step in workflow."),!1;Zn(Kz,!0),Uc(Kz,!0),Uc(Vvt,s),MRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await B0e(e);return Uc(Wvt,o??""),await(await iEe(t)).restore(s,Jvt(t,i,o)),await FRe(r,bd(),s),I0e(e),!0}function Jvt(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function zvt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bd();return Xz.resolve(r,t)}let e=Xz.resolve(await URe(),".gradle");if($z.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Zn("GRADLE_USER_HOME",e),e;if(G_.platform()==="win32"&&e.startsWith("C:\\")&&$z.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Zn("GRADLE_USER_HOME",r),r}return Zn("GRADLE_USER_HOME",e),e}async function URe(){let t=await Fy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return Z("Could not determine user.home from java -version output. Using os.homedir()."),G_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}import*as dC from"fs";import*as EDe from"os";import*as dh from"path";import*as ej from"crypto";import*as up from"fs";var Kvt=ge(Xy(),1);import*as pw from"path";var V_=ge(Xy(),1);import*as ORe from"stream";import*as HRe from"util";import{ok as Xvt}from"assert";var PRe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},q_=class{constructor(e,r,n){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(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return PRe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;Z(i.message)}let s=this.getSleepAmount();Z(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return PRe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Y_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Zvt=process.platform==="win32",C1r=process.platform==="darwin",e_t="actions/tool-cache";function GRe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||pw.join(YRe(),ej.randomUUID()),yield ff(pw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=Zz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Zz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new q_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield t_t(t,e||"",r,n)}),c=>!(c instanceof Y_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function t_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(e_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new Y_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=HRe.promisify(ORe.pipeline),c=Zz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield AAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function qRe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yie Line truncated
`," Line feed \\n"]]),vDe=new Map([...Pj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function _De(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of vDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function I4t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var y$="GRADLE_BUILD_ACTION_SETUP_COMPLETED",B4t="GRADLE_USER_HOME",b4t="DEVELOCITY_CACHE_TOKEN";async function OFe(t,e,r){let n=await HFe(),s=await w4t();if(process.env[y$])return re("Gradle setup only performed on first gradle/actions step in workflow."),!1;Ws(y$,!0),au(y$,!0),au(B4t,s),UFe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await rwe(e);return au(b4t,o??""),await(await Awe(t)).restore(s,Q4t(t,i,o)),await _Fe(r,Yf(),s),ewe(e),!0}function Q4t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function w4t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Yf();return I$.resolve(r,t)}let e=I$.resolve(await HFe(),".gradle");if(C$.existsSync(e))return re(`Gradle User Home already exists at ${e}`),Ws("GRADLE_USER_HOME",e),e;if(a_.platform()==="win32"&&e.startsWith("C:\\")&&C$.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return re(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Ws("GRADLE_USER_HOME",r),r}return Ws("GRADLE_USER_HOME",e),e}async function HFe(){let t=await LQ("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return re("Could not determine user.home from java -version output. Using os.homedir()."),a_.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}import*as oB from"fs";import*as CLe from"os";import*as xm from"path";import*as b$ from"crypto";import*as vE from"fs";var x4t=be(g2(),1);import*as wS from"path";var u_=be(g2(),1);import*as GFe from"stream";import*as YFe from"util";import{ok as T4t}from"assert";var qFe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},c_=class{constructor(e,r,n){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(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return qFe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;re(i.message)}let s=this.getSleepAmount();re(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return qFe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var kE=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},A_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},R4t=process.platform==="win32",AUr=process.platform==="darwin",D4t="actions/tool-cache";function zFe(t,e,r,n){return kE(this,void 0,void 0,function*(){e=e||wS.join(JFe(),b$.randomUUID()),yield _p(wS.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=B$("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=B$("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new c_(s,i,o).execute(()=>kE(this,void 0,void 0,function*(){return yield k4t(t,e||"",r,n)}),c=>!(c instanceof A_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function k4t(t,e,r,n){return kE(this,void 0,void 0,function*(){if(vE.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new gn(D4t,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new A_(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=YFe.promisify(GFe.pipeline),c=B$("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,vE.createWriteStream(e)),G("download complete"),A=!0,e}finally{if(!A){G("download failed");try{yield LD(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function WFe(t,e){return kE(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return Line truncated
`," Line feed \\n"]]),MLe=new Map([...aee,["\\"," Backslash \\"],["/"," Forward slash /"]]);function FLe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of MLe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(vDe.values()).toString()}
Invalid characters include: ${Array.from(MLe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Z("Artifact name is valid!")}function Oj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Pj)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);re("Artifact name is valid!")}function cee(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of aee)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(Pj.values()).toString()}
Invalid characters include: ${Array.from(aee.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var UDe=ge(LDe(),1);function YA(){return`@actions/artifact-${UDe.version}`}var pC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},El=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Cl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},hh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},Il=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};Il.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var dp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function M_t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function L_t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return M_t(e)}catch{return atob(e)}}function PDe(t,e){if(typeof t!="string")throw new hp("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=L_t(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var j_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=J_(),e=PDe(t);if(!e.scp)throw j_;let r=e.scp.split(" ");if(r.length===0)throw j_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw j_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw j_}function ODe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function HDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ODe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ODe(t.signed_url)}var K_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Hj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=J_();this.baseUrl=BDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return K_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>K_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return K_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(HDe(A),O(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)throw a;if(Il.isNetworkErrorCode(a?.code))throw new Il(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);Z(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return K_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function WA(t){let e=new Hj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new z_(e)}import*as mC from"fs";import{normalize as GDe,resolve as qDe}from"path";function YDe(t){if(!mC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&je("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);Z(`Redirecting to blob download url: ${t4e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield r4e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function i4e(){return lI(this,arguments,void 0,function*(t=bDe()){return(yield IWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield K8e.mkdir(t,{recursive:!0})),t})}var BWt=5,bWt=[400,401,403,404,422];function dI(t,e=BWt,r=bWt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return O(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var o4e="6.0.0";function Gp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Gp.VERSION=o4e;var A4e=ge(a4e(),1);var nL=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var QWt="0.0.0-development";async function c4e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function wWt(t,e,r,n){let s=new A4e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(SWt.bind(null,t,e,r),n)}async function SWt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new nL(s.data.errors[0].message,500,{request:n,response:s});return c4e(t,e,i,n)}return s}function qp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",c4e.bind(null,r,t)),t.hook.wrap("request",wWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=QWt;var u4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function sL(t,e,r,n,s){return u4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield Ga(s,c,qp,Gp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new El(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}
`)}var OLe=be(ULe(),1);function gl(){return`@actions/artifact-${OLe.version}`}var uB=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},uh=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},lh=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Sm=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},dh=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};dh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var ME=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};ME.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var FE=class extends Error{};FE.prototype.name="InvalidTokenError";function h8t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function f8t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return h8t(e)}catch{return atob(e)}}function HLe(t,e){if(typeof t!="string")throw new FE("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new FE(`Invalid token specified: missing part #${r+1}`);let s;try{s=f8t(n)}catch(i){throw new FE(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new FE(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var f_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function El(){let t=d_(),e=HLe(t);if(!e.scp)throw f_;let r=e.scp.split(" ");if(r.length===0)throw f_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw f_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return G(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),G(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw f_}function qLe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ga(r),Ga(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function GLe(t){if(typeof t!="object"||t===null){G("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&qLe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&qLe(t.signed_url)}var m_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Aee=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=8e3,this.retryMultiplier=1.5,this.retryTimeoutMilliseconds=12e4;let i=d_();this.baseUrl=QLe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new gn(e,[new Cd(i)])}request(e,r,n,s){return m_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;G(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>m_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return m_(this,void 0,void 0,function*(){let r=0,n="",s="",i=0;for(;r<this.maxAttempts;){let o=!1,a;try{let A=yield e(),u=A.message.statusCode;u===Br.TooManyRequests&&(a=this.getRetryAfterSeconds(A)),s=yield A.readBody(),G(`[Response] - ${A.message.statusCode}`),G(`Headers: ${JSON.stringify(A.message.headers,null,2)}`);let l=JSON.parse(s);if(GLe(l),G(`Body: ${JSON.stringify(l,null,2)}`),this.isSuccessStatusCode(u))return{response:A,body:l};if(o=this.isRetryableHttpStatusCode(u),n=`Failed request: (${u}) ${A.message.statusMessage}`,l.msg){if(ME.isUsageErrorMessage(l.msg))throw new ME;n=`${n}: ${l.msg}`}}catch(A){if(A instanceof SyntaxError&&G(`Raw Body: ${s}`),A instanceof ME)throw A;if(dh.isNetworkErrorCode(A?.code))throw new dh(A?.code);o=!0,n=A.message}if(!o)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let c=a!==void 0?a*1e3:this.getExponentialRetryTimeMilliseconds(r);if(i+c>this.retryTimeoutMilliseconds)throw new Error(`Retry wait of ${c} ms would exceed the maximum total retry wait of ${this.retryTimeoutMilliseconds} ms: ${n}`);re(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${c} ms...`),yield this.sleep(c),i+=c,r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Br.BadGateway,Br.GatewayTimeout,Br.InternalServerError,Br.ServiceUnavailable,Br.TooManyRequests].includes(e):!1}getRetryAfterSeconds(e){var r;let n=e.message.headers["retry-after"],s=(r=Array.isArray(n)?n[0]:n)===null||r===void 0?void 0:r.trim();if(s===void 0||!/^\d+$/.test(s))return;let i=parseInt(s,10);return!isNaN(i)&&i>0?i:void 0}sleep(e){return m_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getEx Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new xa(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}}function E6t(t,e){if(t=Bh(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=Lc.parse(t.permissions.toString()).toString():s=_c.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Ih(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Na(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new xa(t.version,o,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 y6t(t,e){if(t=Bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=CB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Ih(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Na(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(o);return{sasQueryParameters:new xa(t.version,a,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function C6t(t,e){if(t=Bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=CB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Ih(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Na(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(o);return{sasQueryParameters:new xa(t.version,a,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,void 0,void 0,void 0,s),stringToSign:o}}function I6t(t,e){if(t=Bh(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=Lc.parse(t.permissions.toString()).toString():s=_c.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Ih(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Na(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new xa(t.version,o,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}}function B6t(t,e){if(t=Bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=CB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Ih(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Na(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new xa(t.version,a,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function b6t(t,e){if(t=Bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=CB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Ih(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Na(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(o);return{sasQueryParameters:new xa(t.version,a,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,void 0,void 0,void 0,s),stringToSign:o}}function Q6t(t,e){if(t=Bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=CB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Ih(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Na(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(o);return{sasQueryParameters:new xa(t.version,a,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,void 0,void 0,s),stringToSign:o}}function w6t(t,e){if(t=Bh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=CB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Lc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Ih(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Na(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,N6t(t.requestHeaders),x6t(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new xa(t.version,a,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,aUe(t.requestHeaders),aUe(t.requestQueryParameters),s),stringToSign:o}}function N6t(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function x6t(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function aUe(t){if(t===void 0)return;let e="",r=0;return Object.keys(t).forEach(function(n){r!==0&&(e=e+","),e=e+n,++r}),e}function Ih(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Bh(t){let e=t.version?t.version:E_;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}function CB(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var HS=class{_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=$a()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==vA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vA||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 ke.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ye(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!==vA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vA||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 ke.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ye(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!==vA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==vA||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 ke.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ye(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!==vA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==vA||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 ke.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&nt("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);re(`Redirecting to blob download url: ${Hze(u)}`);try{re(`Starting download of artifact to: ${r}`);let l=yield qze(u,r,e?.skipDecompress);re("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,G(`Computed digest: ${l.sha256Digest}`),G(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function zze(){return fb(this,arguments,void 0,function*(t=wLe()){return(yield Dnr(t))?G(`Artifact destination folder already exists: ${t}`):(G(`Artifact destination folder does not exist, creating: ${t}`),yield Fze.mkdir(t,{recursive:!0})),t})}var vnr=5,Pnr=[400,401,403,404,422];function mb(t,e=vnr,r=Pnr){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return G(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var Wze="6.0.0";function C0(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}C0.VERSION=Wze;var jze=be(Jze(),1);var Mnr="0.0.0-development";function Fnr(t){return t.request!==void 0}async function Vze(t,e,r,n){if(!Fnr(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function Lnr(t,e,r,n){let s=new jze.default;return s.on("failed",function(i,o){let a=~~i.request.request?.retries,c=~~i.request.request?.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(_nr.bind(null,t,e,r),n)}async function _nr(t,e,r,n){let s=await r(n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new Bd(s.data.errors[0].message,500,{request:n,response:s});return Vze(t,e,i,n)}return s}function I0(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:(s,i,o)=>(s.request.request=Object.assign({},s.request.request,{retries:i,retryAfter:o}),s)}};return r.enabled&&(t.hook.error("request",Vze.bind(null,r,n)),t.hook.wrap("request",Lnr.bind(null,r,n))),n}I0.VERSION=Mnr;var Kze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function C3(t,e,r,n,s){return Kze(this,void 0,void 0,function*(){var i;let[o,a]=mb(Hp),c={log:void 0,userAgent:gl(),previews:void 0,retry:o,request:a},u=yield AA(s,c,I0,C0).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new uh(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new lh(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],O(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function l4e(t){return u4e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:pn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],G(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function Xze(t){return Kze(this,void 0,void 0,function*(){var e;let r=yl(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=El(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Xn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new lh(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var d4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function h4e(t,e,r,n,s){return d4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=Ga(s,c,qp,Gp),u=yield sL(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new El(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function f4e(t){return d4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var g4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},iL=SDe(),oL=100,NWt=Math.ceil(iL/oL);function p4e(t,e,r,n){return g4e(this,arguments,void 0,function*(s,i,o,a,c=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=dI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=Ga(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:oL,page:f}),E=Math.ceil(g.total_count/oL),m=g.total_count;m>iL&&(je(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${iL}. Results will be incomplete as only the first ${iL} artifacts will be returned`),E=NWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:oL,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=E4e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function m4e(){return g4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=E4e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function E4e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var U1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},TWt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},hI=class{uploadArtifact(e,r,n,s){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;return g8e(e,r,n,s)}catch(i){throw je(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Qa.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var Zze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function $ze(t,e,r,n,s){return Zze(this,void 0,void 0,function*(){var i;let[o,a]=mb(Hp),c={log:void 0,userAgent:gl(),previews:void 0,retry:o,request:a},A=AA(s,c,I0,C0),u=yield C3(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new uh(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function eWe(t){return Zze(this,void 0,void 0,function*(){let e=yl(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=El(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Xn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new lh(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return re(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var tWe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},I3=SLe(),B3=100,Unr=Math.ceil(I3/B3);function rWe(t,e,r,n){return tWe(this,arguments,void 0,function*(s,i,o,a,c=!1){re(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=mb(Hp),d={log:void 0,userAgent:gl(),previews:void 0,retry:u,request:l},h=AA(a,d,I0,C0),f=1,{data:m}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:B3,page:f}),E=Math.ceil(m.total_count/B3),g=m.total_count;g>I3&&(nt(`Workflow run ${s} has ${g} artifacts, exceeding the limit of ${I3}. Results will be incomplete as only the first ${I3} artifacts will be returned`),E=Unr);for(let C of m.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=E;f++){G(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:B3,page:f});for(let I of C.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest})}return c&&(A=sWe(A)),re(`Found ${A.length} artifact(s)`),{artifacts:A}})}function nWe(){return tWe(this,arguments,void 0,function*(t=!1){let e=yl(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=El(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Qa.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=sWe(o)),re(`Found ${o.length} artifact(s)`),{artifacts:o}})}function sWe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var hT=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Onr=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},pb=class{uploadArtifact(e,r,n,s){return hT(this,void 0,void 0,function*(){try{if(aB())throw new Sm;return tze(e,r,n,s)}catch(i){throw nt(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=TWt(r,["findBy"]);return n4e(e,n,s,i,o)}return s4e(e,r)}catch(n){throw je(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return hT(this,void 0,void 0,function*(){try{if(aB())throw new Sm;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=Onr(r,["findBy"]);return Gze(e,n,s,i,o)}return Yze(e,r)}catch(n){throw nt(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return p4e(r,n,s,i,e?.latest)}return m4e(e?.latest)}catch(r){throw je(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return hT(this,void 0,void 0,function*(){try{if(aB())throw new Sm;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return rWe(r,n,s,i,e?.latest)}return nWe(e?.latest)}catch(r){throw nt(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return sL(e,n,s,i,o)}return l4e(e)}catch(n){throw je(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return hT(this,void 0,void 0,function*(){try{if(aB())throw new Sm;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return C3(e,n,s,i,o)}return Xze(e)}catch(n){throw nt(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return h4e(e,i,n,s,o)}return f4e(e)}catch(n){throw je(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return hT(this,void 0,void 0,function*(){try{if(aB())throw new Sm;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return $ze(e,i,n,s,o)}return eWe(e)}catch(n){throw nt(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var E2r=new hI;import*as UZ from"path";import PZ from"fs";var xWt="dependency-graph_";async function C4e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Zn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await RWt(t);return}Z("Enabling dependency graph generation"),Zn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Xs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",oi.runId.toString()),Xs("GITHUB_DEPENDENCY_GRAPH_REF",oi.ref),Xs("GITHUB_DEPENDENCY_GRAPH_SHA",HWt()),Xs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",bd()),Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Xs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Xs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Xs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Xs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Xs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Xs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Xs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Xs(t,e){process.env[t]||e!==void 0&&Zn(t,e)}async function RWt(t){if(GWt()){Z("Dependency graph not supported in the ACT environment.");return}try{await vWt(await DWt(t))}catch(e){PWt(t,"download-and-submit",e)}}async function DWt(t){let e=oi.payload.workflow_run?{token:p2(),workflowRunId:oi.payload.workflow_run.id,repositoryName:oi.repo.repo,repositoryOwner:oi.repo.owner}:void 0,r=new hI,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(xWt)),s=t.getDownloadArtifactName();s&&(Z(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});Z(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return kWt()}async function kWt(){let r=(await(await eq(`${MWt()}/**/*.json`)).glob()).filter(n=>!LWt(n));return r.forEach(UWt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function vWt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await FWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=_Wt(e,r)),r}}function _Wt(t,e){let n=`Dependency submission failed for ${I4e(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var GYr=new pb;import*as vae from"path";import Pae from"fs";var Hnr="dependency-graph_";async function iWe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Ws("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await qnr(t);return}re("Enabling dependency graph generation"),Ws("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),$i("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_ID",co.runId.toString()),$i("GITHUB_DEPENDENCY_GRAPH_REF",co.ref),$i("GITHUB_DEPENDENCY_GRAPH_SHA",$nr()),$i("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Yf()),$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),$i("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),$i("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),$i("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),$i("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),$i("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),$i("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),$i("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function $i(t,e){process.env[t]||e!==void 0&&Ws(t,e)}async function qnr(t){if(esr()){re("Dependency graph not supported in the ACT environment.");return}try{await znr(await Gnr(t))}catch(e){Xnr(t,"download-and-submit",e)}}async function Gnr(t){let e=co.payload.workflow_run?{token:FP(),workflowRunId:co.payload.workflow_run.id,repositoryName:co.repo.repo,repositoryOwner:co.repo.owner}:void 0,r=new pb,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(Hnr)),s=t.getDownloadArtifactName();s&&(re(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});re(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Ynr()}async function Ynr(){let r=(await(await KQ(`${Vnr()}/**/*.json`)).glob()).filter(n=>!jnr(n));return r.forEach(Knr),re(`Found dependency graph files: ${r.join(", ")}`),r}async function znr(t){if(t.length===0){re("No dependency graph files found to submit.");return}for(let e of t)try{await Jnr(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Wnr(e,r)),r}}function Wnr(t,e){let n=`Dependency submission failed for ${oWe(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function FWt(t){let e=OWt(),r=PZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=I4e(t);IAe(`Submitted ${i}: ${s.data.message}`)}function MWt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function LWt(t){let e=`${t}.processed`;return PZ.existsSync(e)}function UWt(t){let e=`${t}.processed`;PZ.writeFileSync(e,"")}function PWt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);je(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function OWt(){return Ga(p2())}function I4e(t){let e=bd();return UZ.relative(e,t)}function HWt(){let t=oi;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function GWt(){return process.env.ACT!==void 0}function YWt(t=process.platform){return t==="win32"?50:0}async function y4e(t=process.platform){let e=YWt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function VWt(){try{Ib()==="gradle/gradle-build-action"&&u2("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),C0e("gradle/actions/setup-gradle"),await LRe(new K0,new rc,new f2),await C4e(new Bb);let t=new h2;t.verifyNoArguments(),await nj(t.getGradleVersion()),p0e()}catch(t){_Re(t)}await y4e()}VWt();export{VWt as run};
`:n}async function Jnr(t){let e=Znr(),r=Pae.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=co.repo.owner,n.repo=co.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=oWe(t);R6(`Submitted ${i}: ${s.data.message}`)}function Vnr(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function jnr(t){let e=`${t}.processed`;return Pae.existsSync(e)}function Knr(t){let e=`${t}.processed`;Pae.writeFileSync(e,"")}function Xnr(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new RE(r);nt(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Znr(){return AA(FP())}function oWe(t){let e=Yf();return vae.relative(e,t)}function $nr(){let t=co;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function esr(){return process.env.ACT!==void 0}function rsr(t=process.platform){return t==="win32"?50:0}async function aWe(t=process.platform){let e=rsr(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function nsr(){try{FN()==="gradle/gradle-build-action"&&RP("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),$Qe("gradle/actions/setup-gradle"),await OFe(new JC,new IA,new PP),await iWe(new _N);let t=new vP;t.verifyNoArguments(),await w$(t.getGradleVersion()),KQe()}catch(t){LFe(t)}await aWe()}nsr();export{nsr as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -333,13 +343,6 @@ undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
@@ -409,12 +412,21 @@ archiver/index.js:
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
@octokit/request-error/dist-src/index.js:
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
@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 *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
@octokit/graphql/dist-bundle/index.js:
(* v8 ignore if -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+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.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": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAUH,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,IAAUH,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,IAAmBH,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,IAAUH,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,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine 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.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": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAUH,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,IAAUH,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,IAAmBH,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,IAAUH,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,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine 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
}
+209 -189
View File
@@ -1,120 +1,119 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var L8e=Object.create;var FM=Object.defineProperty;var U8e=Object.getOwnPropertyDescriptor;var P8e=Object.getOwnPropertyNames;var O8e=Object.getPrototypeOf,H8e=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Qa=(t,e)=>{for(var r in e)FM(t,r,{get:e[r],enumerable:!0})},G8e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of P8e(e))!H8e.call(t,s)&&s!==r&&FM(t,s,{get:()=>e[s],enumerable:!(n=U8e(e,s))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?L8e(O8e(t)):{},G8e(e||!t||!t.__esModule?FM(r,"default",{value:t,enumerable:!0}):r,t));var VZ=C(Lp=>{"use strict";var l7t=Q("net"),z8e=Q("tls"),PM=Q("http"),GZ=Q("https"),j8e=Q("events"),d7t=Q("assert"),K8e=Q("util");Lp.httpOverHttp=$8e;Lp.httpsOverHttp=X8e;Lp.httpOverHttps=Z8e;Lp.httpsOverHttps=e4e;function $8e(t){var e=new $A(t);return e.request=PM.request,e}function X8e(t){var e=new $A(t);return e.request=PM.request,e.createSocket=qZ,e.defaultPort=443,e}function Z8e(t){var e=new $A(t);return e.request=GZ.request,e}function e4e(t){var e=new $A(t);return e.request=GZ.request,e.createSocket=qZ,e.defaultPort=443,e}function $A(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||PM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=YZ(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}K8e.inherits($A,j8e.EventEmitter);$A.prototype.addRequest=function(e,r,n,s){var i=this,o=OM({request:e},i.options,YZ(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};$A.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=OM({},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")),Ql("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Ql("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){Ql("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return Ql("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Ql(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};$A.prototype.removeSocket=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)})}};function qZ(t,e){var r=this;$A.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=OM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=z8e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function YZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function OM(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,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Ql;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ql=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)}:Ql=function(){};Lp.debug=Ql});var HM=C((f7t,WZ)=>{WZ.exports=VZ()});var Br=C((g7t,JZ)=>{JZ.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 _t=C((p7t,Eee)=>{"use strict";var zZ=Symbol.for("undici.error.UND_ERR"),br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[zZ]===!0}[zZ]=!0},jZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),GM=class extends br{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[jZ]===!0}[jZ]=!0},KZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),qM=class extends br{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[KZ]===!0}[KZ]=!0},$Z=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),YM=class extends br{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[$Z]===!0}[$Z]=!0},XZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),VM=class extends br{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[XZ]===!0}[XZ]=!0},ZZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),WM=class extends br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.s Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function p5e(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 o=n[i-1].trim();if(e5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function m5e(){return"allowed"}function E5e(){return"success"}function C5e(){return"success"}function I5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function y5e(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&&LL(t.origin)&&!LL(NI(t))&&(e=null);break;case"same-origin":pS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Jp(t,e){return t}function B5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Jp(t.domainLookupStartTime,r),domainLookupEndTime:Jp(t.domainLookupEndTime,r),connectionStartTime:Jp(t.connectionStartTime,r),connectionEndTime:Jp(t.connectionEndTime,r),secureConnectionStartTime:Jp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function b5e(t){return Jp(i5e.now(),t)}function Q5e(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 kte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function w5e(t){return{referrerPolicy:t.referrerPolicy}}function S5e(t){let e=t.referrerPolicy;_h(e);let r=null;if(t.referrer==="client"){let a=Ste();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=ML(r),s=ML(r,!0);n.toString().length>4096&&(n=s);let i=pS(t,n),o=SI(n)&&!SI(t.url);switch(e){case"origin":return s??ML(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 a=NI(t);return pS(n,a)?n:SI(n)&&!SI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function ML(t,e){return _h(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 SI(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"))}}function N5e(t,e){if(gS===void 0)return!0;let r=vte(e);if(r==="no metadata"||r.length===0)return!0;let n=x5e(r),s=R5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=gS.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)),D5e(c,a))return!0}return!1}var T5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function vte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=T5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Tte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function x5e(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}function R5e(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}function D5e(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 k5e(t){}function pS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function v5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function _5e(t){return t.controller.state==="aborted"}function F5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function M5e(t){return c5e[t.toLowerCase()]??t}function L5e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return _h(typeof e=="string"),e}var U5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function _te(t,e,r=0,n=1){class s{ Line truncated
`);function fHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function gHe(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}function pHe(t,e){ES(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 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(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&CS(t,dHe,i)||i.position===t.length-4&&CS(t,hHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=mHe(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",fHe(u)||(u=""),h=new uHe([d],A,{type:u})):h=iHe(Buffer.from(d)),ES(Wte(c)),ES(typeof h=="string"&&Wte(h)||aHe(h)),s.push(cHe(c,h,A))}}function mHe(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 o=jp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=YL(o,!0,!0,a=>a===9||a===32),!oHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,jp(a=>a===32||a===9,t,e),sHe(o)){case"content-disposition":{if(r=n=null,!CS(t,lHe,e)||(e.position+=17,r=jte(t,e),r===null))return"failure";if(CS(t,zte,e)){let a=e.position+zte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=jte(t,e),n===null))return"failure"}break}case"content-type":{let a=jp(c=>c!==10&&c!==13,t,e);a=YL(a,!1,!0,c=>c===9||c===32),s=Jte(a);break}case"content-transfer-encoding":{let a=jp(c=>c!==10&&c!==13,t,e);a=YL(a,!1,!0,c=>c===9||c===32),i=Jte(a);break}default:jp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function jte(t,e){ES(t[e.position-1]===34);let r=jp(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)}function jp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function YL(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)}function CS(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}Kte.exports={multipartFormDataParser:pHe,validateBoundary:gHe}});var Xp=C((H7t,are)=>{"use strict";var RI=lt(),{ReadableStreamFrom:EHe,isBlobLike:Xte,isReadableStreamLike:CHe,readableStreamClose:IHe,createDeferredPromise:yHe,fullyReadBody:BHe,extractMimeType:bHe,utf8DecodeBytes:tre}=Ri(),{FormData:Zte}=xI(),{kState:$p}=wl(),{webidl:QHe}=Kn(),{Blob:wHe}=Q("node:buffer"),VL=Q("node:assert"),{isErrored:rre,isDisturbed:SHe}=Q("node:stream"),{isArrayBuffer:NHe}=Q("node:util/types"),{serializeAMimeType:THe}=$s(),{multipartFormDataParser:xHe}=$te(),WL;try{let t=Q("node:crypto");WL=e=>t.randomInt(0,e)}catch{WL=t=>Math.floor(Math.random(t))}var IS=new TextEncoder;function RHe(){}var nre=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,sre;nre&&(sre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!SHe(e)&&!rre(e)&&e.cancel("Response object has been garbage collected").catch(RHe)}));function ire(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Xte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?IS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>IHe(c))},start(){},type:"bytes"}),VL(CHe(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(NHe(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(RI.isFormDataLike(t)){let c=`----formdata-undici-0${`${WL(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
var oze=Object.create;var c3=Object.defineProperty;var aze=Object.getOwnPropertyDescriptor;var cze=Object.getOwnPropertyNames;var Aze=Object.getPrototypeOf,uze=Object.prototype.hasOwnProperty;var w=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var y=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ra=(t,e)=>{for(var r in e)c3(t,r,{get:e[r],enumerable:!0})},lze=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of cze(e))!uze.call(t,s)&&s!==r&&c3(t,s,{get:()=>e[s],enumerable:!(n=aze(e,s))||n.enumerable});return t};var xe=(t,e,r)=>(r=t!=null?oze(Aze(t)):{},lze(e||!t||!t.__esModule?c3(r,"default",{value:t,enumerable:!0}):r,t));var gae=y(b0=>{"use strict";var _rr=w("net"),gze=w("tls"),d3=w("http"),fae=w("https"),Eze=w("events"),Urr=w("assert"),yze=w("util");b0.httpOverHttp=Cze;b0.httpsOverHttp=Ize;b0.httpOverHttps=Bze;b0.httpsOverHttps=bze;function Cze(t){var e=new Jl(t);return e.request=d3.request,e}function Ize(t){var e=new Jl(t);return e.request=d3.request,e.createSocket=mae,e.defaultPort=443,e}function Bze(t){var e=new Jl(t);return e.request=fae.request,e}function bze(t){var e=new Jl(t);return e.request=fae.request,e.createSocket=mae,e.defaultPort=443,e}function Jl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||d3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=pae(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}yze.inherits(Jl,Eze.EventEmitter);Jl.prototype.addRequest=function(e,r,n,s){var i=this,o=h3({request:e},i.options,pae(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};Jl.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=h3({},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")),Lh("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Lh("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){Lh("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return Lh("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Lh(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Jl.prototype.removeSocket=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)})}};function mae(t,e){var r=this;Jl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=h3({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=gze.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function pae(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function h3(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,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Lh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Lh=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)}:Lh=function(){};b0.debug=Lh});var f3=y((Hrr,Eae)=>{Eae.exports=gae()});var Kr=y((qrr,yae)=>{yae.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 or=y((Grr,Yae)=>{"use strict";var Cae=Symbol.for("undici.error.UND_ERR"),Xr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Cae]===!0}[Cae]=!0},Iae=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),m3=class extends Xr{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[Iae]===!0}[Iae]=!0},Bae=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),p3=class extends Xr{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[Bae]===!0}[Bae]=!0},bae=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),g3=class extends Xr{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[bae]===!0}[bae]=!0},Qae=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),E3=class extends Xr{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[Qae]===!0}[Qae]=!0},wae=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),y3=class extends Xr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function U7e(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 o=n[i-1].trim();if(b7e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function O7e(){return"allowed"}function H7e(){return"success"}function q7e(){return"success"}function G7e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Y7e(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&&u4(t.origin)&&!u4(Sb(t))&&(e=null);break;case"same-origin":qT(t,Sb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function v0(t,e){return t}function z7e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:v0(t.domainLookupStartTime,r),domainLookupEndTime:v0(t.domainLookupEndTime,r),connectionStartTime:v0(t.connectionStartTime,r),connectionEndTime:v0(t.connectionEndTime,r),secureConnectionStartTime:v0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function W7e(t){return v0(S7e.now(),t)}function J7e(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 sAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function V7e(t){return{referrerPolicy:t.referrerPolicy}}function j7e(t){let e=t.referrerPolicy;ap(e);let r=null;if(t.referrer==="client"){let a=Zce();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=A4(r),s=A4(r,!0);n.toString().length>4096&&(n=s);let i=qT(t,n),o=xb(n)&&!xb(t.url);switch(e){case"origin":return s??A4(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 a=Sb(t);return qT(n,a)?n:xb(n)&&!xb(a)?"no-referrer":s}default:return o?"no-referrer":s}}function A4(t,e){return ap(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 xb(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"))}}function K7e(t,e){if(HT===void 0)return!0;let r=iAe(e);if(r==="no metadata"||r.length===0)return!0;let n=Z7e(r),s=$7e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=HT.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)),eJe(c,a))return!0}return!1}var X7e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function iAe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=X7e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();eAe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function Z7e(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}function $7e(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}function eJe(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 tJe(t){}function qT(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function rJe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function nJe(t){return t.controller.state==="aborted"}function sJe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function iJe(t){return D7e[t.toLowerCase()]??t}function oJe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ap(typeof e=="string"),e}var aJe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oAe(t,e,r=0,n=1){class s{ Line truncated
`);function LJe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function _Je(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}function UJe(t,e){YT(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 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(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&zT(t,MJe,i)||i.position===t.length-4&&zT(t,FJe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=OJe(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",LJe(u)||(u=""),h=new vJe([d],A,{type:u})):h=SJe(Buffer.from(d)),YT(EAe(c)),YT(typeof h=="string"&&EAe(h)||RJe(h)),s.push(DJe(c,h,A))}}function OJe(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 o=M0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=g4(o,!0,!0,a=>a===9||a===32),!TJe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,M0(a=>a===32||a===9,t,e),xJe(o)){case"content-disposition":{if(r=n=null,!zT(t,PJe,e)||(e.position+=17,r=IAe(t,e),r===null))return"failure";if(zT(t,CAe,e)){let a=e.position+CAe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=IAe(t,e),n===null))return"failure"}break}case"content-type":{let a=M0(c=>c!==10&&c!==13,t,e);a=g4(a,!1,!0,c=>c===9||c===32),s=yAe(a);break}case"content-transfer-encoding":{let a=M0(c=>c!==10&&c!==13,t,e);a=g4(a,!1,!0,c=>c===9||c===32),i=yAe(a);break}default:M0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function IAe(t,e){YT(t[e.position-1]===34);let r=M0(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)}function M0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function g4(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)}function zT(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}BAe.exports={multipartFormDataParser:UJe,validateBoundary:_Je}});var _0=y((fnr,vAe)=>{"use strict";var Db=kt(),{ReadableStreamFrom:HJe,isBlobLike:QAe,isReadableStreamLike:qJe,readableStreamClose:GJe,createDeferredPromise:YJe,fullyReadBody:zJe,extractMimeType:WJe,utf8DecodeBytes:xAe}=Uo(),{FormData:wAe}=Rb(),{kState:L0}=_h(),{webidl:JJe}=Gs(),{Blob:VJe}=w("node:buffer"),E4=w("node:assert"),{isErrored:SAe,isDisturbed:jJe}=w("node:stream"),{isArrayBuffer:KJe}=w("node:util/types"),{serializeAMimeType:XJe}=eo(),{multipartFormDataParser:ZJe}=bAe(),y4;try{let t=w("node:crypto");y4=e=>t.randomInt(0,e)}catch{y4=t=>Math.floor(Math.random(t))}var WT=new TextEncoder;function $Je(){}var TAe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,RAe;TAe&&(RAe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!jJe(e)&&!SAe(e)&&e.cancel("Response object has been garbage collected").catch($Je)}));function DAe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:QAe(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?WT.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>GJe(c))},start(){},type:"bytes"}),E4(qJe(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(KJe(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(Db.isFormDataLike(t)){let c=`----formdata-undici-0${`${y4(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=IS.encode(A+`; name="${u(l(E))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,g]of t)if(typeof g=="string"){let C=WT.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=IS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
${l(g)}\r
`);d.push(C),i+=C.byteLength}else{let C=WT.encode(`${A}; name="${u(l(E))}"`+(g.name?`; filename="${u(g.name)}"`:"")+`\r
Content-Type: ${g.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=IS.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(Xte(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(RI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:EHe(t)}if((typeof s=="string"||RI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!rre(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function DHe(t,e=!1){return t instanceof ReadableStream&&(VL(!RI.isDisturbed(t),"The body has already been consumed."),VL(!t.locked,"The stream is locked.")),ire(t,e)}function kHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function vHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function _He(t){return{blob(){return Kp(this,r=>{let n=ere(this);return n===null?n="":n&&(n=THe(n)),new wHe([r],{type:n})},t)},arrayBuffer(){return Kp(this,r=>new Uint8Array(r).buffer,t)},text(){return Kp(this,tre,t)},json(){return Kp(this,MHe,t)},formData(){return Kp(this,r=>{let n=ere(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=xHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Zte;return i[$p]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Zte;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Kp(this,r=>new Uint8Array(r),t)}}}function FHe(t){Object.assign(t.prototype,_He(t))}async function Kp(t,e,r){if(QHe.brandCheck(t,r),ore(t))throw new TypeError("Body is unusable: Body has already been read");vHe(t[$p]);let n=yHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[$p].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await BHe(t[$p].body,i,s),n.promise)}function ore(t){let e=t[$p].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function MHe(t){return JSON.parse(tre(t))}function ere(t){let e=t[$p].headersList,r=bHe(e);return r==="failure"?null:r}are.exports={extractBody:ire,safelyExtractBody:DHe,cloneBody:kHe,mixinBody:FHe,streamRegistry:sre,hasFinalizationRegistry:nre,bodyUnusable:ore}});var bre=C((G7t,Bre)=>{"use strict";var Me=Q("node:assert"),Pe=lt(),{channels:cre}=Pp(),JL=TL(),{RequestContentLengthMismatchError:Fh,ResponseContentLengthMismatchError:Are,RequestAbortedError:mre,InvalidArgumentError:LHe,HeadersTimeoutError:UHe,HeadersOverflowError:PHe,SocketError:Zp,InformationalError:em,BodyTimeoutError:OHe,HTTPParserError:HHe,ResponseExceededMaxSizeError:GHe}=_t(),{kUrl:Ere,kReset:Xs,kClient:QS,kParser:lr,kBlocking:vI,kRunning:an,kPending:Cre,kSize:ure,kWriting:Sl,kQueue:wa,kNoRef:DI,kKeepAliveDefaultTimeout:qHe,kHostHeader:YHe,kPendingIdx:VHe,kRunningIdx:Bo,kError:Ss,kPipelining:wS,kSocket:Lh,kKeepAliveTimeoutValue:NS,kMaxHeadersSize:zL,kKeepAliveMaxTimeout:WHe,kKeepAliveTimeoutThreshold:JHe,kHeadersTimeout:zHe,kBodyTimeout:jHe,kStrictContentLength:$L,kMaxRequests:lre,kCounter:KHe,kMaxResponseSize:$He,kOnError:dre,kResume:nu,kHTTPContext:Ire}=Br(),Di=ste(),hre=Buffer.alloc(0),yS=Buffer[Symbol.species],BS=Pe.addListener,XHe=Pe.removeAllListeners,Uh=Symbol("kIdleSocketValidation"),Mh=Symbol("kIdleSocketValidationTimeout"),tU=Symbol("kSocketUsed"),jL;async function ZHe(){let t=process.env.JEST_WORKER_ID?DL():void 0,e;try{e=await WebAssembly.compile(ate())}catch{e=await WebAssembly.compile(t||DL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onStatus(new yS(Ec.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Lr.ptr===r),Lr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onHeaderField(new yS(Ec.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onHeaderValue(new yS(Ec.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Lr.ptr===r),Lr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onBody(new yS(Ec.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Lr.ptr===r),Lr.onMessageComplete()||0)}})}var KL=null,XL=ZHe();XL.catch();var Lr=null,Ec=null,bS=0,Cc=null,e9e=0,kI=1,tm=2|kI,SS=4|kI,ZL=8|e9e,eU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[zL])&&e[zL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Di.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[YHe],i?g+=`connection: upgrade\r
`);d.push(C,g,h),typeof g.size=="number"?i+=C.byteLength+g.size+h.byteLength:f=!0}let m=WT.encode(`--${c}--\r
`);d.push(m),i+=m.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(QAe(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Db.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:HJe(t)}if((typeof s=="string"||Db.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!SAe(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function eVe(t,e=!1){return t instanceof ReadableStream&&(E4(!Db.isDisturbed(t),"The body has already been consumed."),E4(!t.locked,"The stream is locked.")),DAe(t,e)}function tVe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function rVe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function nVe(t){return{blob(){return F0(this,r=>{let n=NAe(this);return n===null?n="":n&&(n=XJe(n)),new VJe([r],{type:n})},t)},arrayBuffer(){return F0(this,r=>new Uint8Array(r).buffer,t)},text(){return F0(this,xAe,t)},json(){return F0(this,iVe,t)},formData(){return F0(this,r=>{let n=NAe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=ZJe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new wAe;return i[L0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new wAe;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return F0(this,r=>new Uint8Array(r),t)}}}function sVe(t){Object.assign(t.prototype,nVe(t))}async function F0(t,e,r){if(JJe.brandCheck(t,r),kAe(t))throw new TypeError("Body is unusable: Body has already been read");rVe(t[L0]);let n=YJe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[L0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await zJe(t[L0].body,i,s),n.promise)}function kAe(t){let e=t[L0].body;return e!=null&&(e.stream.locked||Db.isDisturbed(e.stream))}function iVe(t){return JSON.parse(xAe(t))}function NAe(t){let e=t[L0].headersList,r=WJe(e);return r==="failure"?null:r}vAe.exports={extractBody:DAe,safelyExtractBody:eVe,cloneBody:tVe,mixinBody:sVe,streamRegistry:RAe,hasFinalizationRegistry:TAe,bodyUnusable:kAe}});var jAe=y((mnr,VAe)=>{"use strict";var We=w("node:assert"),Xe=kt(),{channels:PAe}=w0(),C4=t4(),{RequestContentLengthMismatchError:cp,ResponseContentLengthMismatchError:MAe,RequestAbortedError:GAe,InvalidArgumentError:oVe,HeadersTimeoutError:aVe,HeadersOverflowError:cVe,SocketError:U0,InformationalError:O0,BodyTimeoutError:AVe,HTTPParserError:uVe,ResponseExceededMaxSizeError:lVe}=or(),{kUrl:YAe,kReset:to,kClient:KT,kParser:Lr,kBlocking:Pb,kRunning:Gn,kPending:zAe,kSize:FAe,kWriting:Uh,kQueue:zc,kNoRef:kb,kKeepAliveDefaultTimeout:dVe,kHostHeader:hVe,kPendingIdx:fVe,kRunningIdx:ka,kError:Ni,kPipelining:XT,kSocket:Ap,kKeepAliveTimeoutValue:$T,kMaxHeadersSize:I4,kKeepAliveMaxTimeout:mVe,kKeepAliveTimeoutThreshold:pVe,kHeadersTimeout:gVe,kBodyTimeout:EVe,kStrictContentLength:Q4,kMaxRequests:LAe,kCounter:yVe,kMaxResponseSize:CVe,kOnError:_Ae,kResume:$l,kHTTPContext:WAe}=Kr(),Oo=Rce(),UAe=Buffer.alloc(0),JT=Buffer[Symbol.species],VT=Xe.addListener,IVe=Xe.removeAllListeners,up=Symbol("kIdleSocketValidation"),H0=Symbol("kIdleSocketValidationTimeout"),S4=Symbol("kSocketUsed"),B4;async function BVe(){let t=process.env.JEST_WORKER_ID?s4():void 0,e;try{e=await WebAssembly.compile(vce())}catch{e=await WebAssembly.compile(t||s4())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onStatus(new JT(HA.buffer,i,s))||0},wasm_on_message_begin:r=>(We(mn.ptr===r),mn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onHeaderField(new JT(HA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onHeaderValue(new JT(HA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(We(mn.ptr===r),mn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onBody(new JT(HA.buffer,i,s))||0},wasm_on_message_complete:r=>(We(mn.ptr===r),mn.onMessageComplete()||0)}})}var b4=null,w4=BVe();w4.catch();var mn=null,HA=null,jT=0,qA=null,bVe=0,vb=1,q0=2|vb,ZT=4|vb,N4=8|bVe,x4=class{constructor(e,r,{exports:n}){We(Number.isFinite(e[I4])&&e[I4]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Oo.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?m+=`host: ${s}\r
`:m+=t[hVe],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[wS]&&!h[Xs]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return cre.sendHeaders.hasSubscribers&&cre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?gre(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?gre(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?pre(f,c.stream(),t,e,h,u,g,l):a9e(f,c,t,e,h,u,g,l):Pe.isStream(c)?o9e(f,c,t,e,h,u,g,l):Pe.isIterable(c)?pre(f,c,t,e,h,u,g,l):Me(!1),!0}function o9e(t,e,r,n,s,i,o,a){Me(i!==0||r[an]===0,"stream body cannot be pipelined");let c=!1,A=new TS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new mre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[Sl]&&r[an]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Pe.destroy(e,f):Pe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function gre(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[XT]&&!h[to]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let g=A[E+0],C=A[E+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)m+=`${g}: ${C[I]}\r
`;else m+=`${g}: ${C}\r
`}return PAe.sendHeaders.hasSubscribers&&PAe.sendHeaders.publish({request:e,headers:m,socket:h}),!c||d===0?HAe(f,null,t,e,h,u,m,l):Xe.isBuffer(c)?HAe(f,c,t,e,h,u,m,l):Xe.isBlobLike(c)?typeof c.stream=="function"?qAe(f,c.stream(),t,e,h,u,m,l):RVe(f,c,t,e,h,u,m,l):Xe.isStream(c)?TVe(f,c,t,e,h,u,m,l):Xe.isIterable(c)?qAe(f,c,t,e,h,u,m,l):We(!1),!0}function TVe(t,e,r,n,s,i,o,a){We(i!==0||r[Gn]===0,"stream body cannot be pipelined");let c=!1,A=new eR({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(m){Xe.destroy(this,m)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new GAe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,We(s.destroyed||s[Uh]&&r[Gn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(m){f=m}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function HAe(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(We(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Xs]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[to]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[nu]()}catch(c){t(c)}}async function a9e(t,e,r,n,s,i,o,a){Me(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Fh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(We(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[$l]()}catch(c){t(c)}}async function RVe(t,e,r,n,s,i,o,a){We(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new cp;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Xs]=!0),r[nu]()}catch(c){t(c)}}async function pre(t,e,r,n,s,i,o,a){Me(i!==0||r[an]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Me(c===null),s[Ss]?h(s[Ss]):c=d});s.on("close",A).on("drain",A);let l=new TS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ss])throw s[Ss];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var TS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Sl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ss])throw r[Ss];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[$L])throw new Fh;process.emitWarning(new Fh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Xs]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[to]=!0),r[$l]()}catch(c){t(c)}}async function qAe(t,e,r,n,s,i,o,a){We(i!==0||r[Gn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{We(c===null),s[Ni]?h(s[Ni]):c=d});s.on("close",A).on("drain",A);let l=new eR({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ni])throw s[Ni];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var eR=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Uh]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ni])throw r[Ni];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[Q4])throw new cp;process.emitWarning(new cp)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[to]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===tm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Sl]=!1,e[Ss])throw e[Ss];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Lr].timeout&&r[Lr].timeoutType===q0&&r[Lr].timeout.refresh&&r[Lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Uh]=!1,e[Ni])throw e[Ni];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[$L])throw new Fh;process.emitWarning(new Fh)}e[lr].timeout&&e[lr].timeoutType===tm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[nu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Sl]=!1,e&&(Me(n[an]<=1,"pipeline should only contain this request"),s(e))}};Bre.exports=t9e});var Dre=C((q7t,Rre)=>{"use strict";var bo=Q("node:assert"),{pipeline:c9e}=Q("node:stream"),mt=lt(),{RequestContentLengthMismatchError:rU,RequestAbortedError:Qre,SocketError:_I,InformationalError:nU}=_t(),{kUrl:xS,kReset:DS,kClient:rm,kRunning:kS,kPending:A9e,kQueue:Nl,kPendingIdx:sU,kRunningIdx:Sa,kError:Ta,kSocket:Dn,kStrictContentLength:u9e,kOnError:iU,kMaxConcurrentStreams:xre,kHTTP2Session:Na,kResume:Tl,kSize:l9e,kHTTPContext:d9e}=Br(),su=Symbol("open streams"),wre,Sre=!1,RS;try{RS=Q("node:http2")}catch{RS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:h9e,HTTP2_HEADER_METHOD:f9e,HTTP2_HEADER_PATH:g9e,HTTP2_HEADER_SCHEME:p9e,HTTP2_HEADER_CONTENT_LENGTH:m9e,HTTP2_HEADER_EXPECT:E9e,HTTP2_HEADER_STATUS:C9e}}=RS;function I9e(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}async function y9e(t,e){t[Dn]=e,Sre||(Sre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=RS.connect(t[xS],{createConnection:()=>e,peerMaxConcurrentStreams:t[xre]});r[su]=0,r[rm]=t,r[Dn]=e,mt.addListener(r,"error",b9e),mt.addListener(r,"frameError",Q9e),mt.addListener(r,"end",w9e),mt.addListener(r,"goaway",S9e),mt.addListener(r,"close",function(){let{[rm]:s}=this,{[Dn]:i}=s,o=this[Dn][Ta]||this[Ta]||new _I("closed",mt.getSocketInfo(i));if(s[Na]=null,s.destroyed){bo(s[A9e]===0);let a=s[Nl].splice(s[Sa]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[Na]=r,e[Na]=r,mt.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ta]=s,this[rm][iU](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new _I("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Ta]||new _I("closed",mt.getSocketInfo(this));t[Dn]=null,this[Na]!=null&&this[Na].destroy(s),t[sU]=t[Sa],bo(t[kS]===0),t.emit("disconnect",t[xS],[t],s),t[Tl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return T9e(t,...s)},resume(){B9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function B9e(t){let e=t[Dn];e?.destroyed===!1&&(t[l9e]===0&&t[xre]===0?(e.unref(),t[Na].unref()):(e.ref(),t[Na].ref()))}function b9e(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][Ta]=t,this[rm][iU](t)}function Q9e(t,e,r){if(r===0){let n=new nU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][Ta]=n,this[rm][iU](n)}}function w9e(){let t=new _I("other side closed",mt.getSocketInfo(this[Dn]));this.destroy(t),mt.destroy(this[Dn],t)}function S9e(t){let e=this[Ta]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[rm];if(r[Dn]=null,r[d9e]=null,this[Na]!=null&&(this[Na].destroy(e),this[Na]=null),mt.destroy(this[Dn],e),r[Sa]<r[Nl].length){let n=r[Nl][r[Sa]];r[Nl][r[Sa]++]=null,mt.errorRequest(r,n,e),r[sU]=r[Sa]}bo(r[kS]===0),r.emit("disconnect",r[xS],[r],e),r[Tl]()}function N9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function T9e(t,e){let r=t[Na],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[xS];l[h9e]=i||`${h}${f?`:${f}`:""}`,l[f9e]=n;let g=B=>{e.aborted||e.completed||(B=B||new Qre,mt.errorRequest(t,e,B),d!=null&&mt.destroy(d,B),mt.destroy(u,B),t[Nl][t[Sa]++]=null,t[Tl]())};try{e.onConnect(g)}catch(B){mt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[su],t[Nl][t[Sa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[su],t[Nl][t[Sa]++]=null}),d.once("close",()=>{r[su]-=1,r[su]===0&&r.unref()}),!0;l[g9e]=s,l[p9e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){wre??=Xp().extractBody;let[B,M]=wre(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),N9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[u9e])return mt.errorRequest(t,e,new rU),!1;process.emitWarning(new rU)}m!=null&&(bo(u,"no body must not have content length"),l[m9e]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[E9e]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[eGe]=c??3e5,this[Z9e]=s??3e5,this[tGe]=I??!0,this[rGe]=B,this[AU]=V,this[Rl]=null,this[aGe]=P>-1?P:-1,this[AGe]=X??100,this[Kr]=null,this[xa]=[],this[ou]=0,this[Ra]=0,this[UI]=ue=>lU(this,ue),this[cGe]=ue=>qre(this,ue)}get pipelining(){return this[MS]}set pipelining(e){this[MS]=e,this[UI](!0)}get[HI](){return this[xa].length-this[Ra]}get[OI](){return this[Ra]-this[ou]}get[PI](){return this[xa].length-this[ou]}get[W9e](){return!!this[Kr]&&!this[sm]&&!this[Kr].destroyed}get[cU](){return!!(this[Kr]?.busy(null)||this[PI]>=(Gre(this)||1)||this[HI]>0)}[V9e](e){Yre(this),this.once("connect",e)}[oGe](e,r){let n=e.origin||this[yc].origin,s=new P9e(n,e,r);return this[xa].push(s),this[Oh]||(Ph.bodyLength(s.body)==null&&Ph.isIterable(s.body)?(this[Oh]=1,queueMicrotask(()=>lU(this))):this[UI](!0)),this[Oh]&&this[Dl]!==2&&this[cU]&&(this[Dl]=2),this[Dl]<2}async[sGe](){return new Promise(e=>{this[PI]?this[Rl]=e:e(null)})}async[iGe](e){return new Promise(r=>{let n=this[xa].splice(this[Ra]);for(let i=0;i<n.length;i++){let o=n[i];Ph.errorRequest(this,o,e)}let s=()=>{this[Rl]&&(this[Rl](),this[Rl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},dGe=FS();function qre(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){iu(t[Ra]===t[ou]);let r=t[xa].splice(t[ou]);for(let n=0;n<r.length;n++){let s=r[n];Ph.errorRequest(t,s,e)}iu(t[PI]===0)}}async function Yre(t){iu(!t[sm]),iu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");iu(i!==-1);let o=r.substring(1,i);iu(Hre.isIP(o)),r=o}t[sm]=!0,nm.beforeConnect.hasSubscribers&&nm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[xl],localAddress:t[LI]},connector:t[MI]});try{let i=await new Promise((o,a)=>{t[MI]({host:e,hostname:r,protocol:n,port:s,servername:t[xl],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Ph.destroy(i.on("error",Pre),new G9e);return}iu(i);try{t[Kr]=i.alpnProtocol==="h2"?await lGe(t,i):await uGe(t,i)}catch(o){throw i.destroy().on("error",Pre),o}t[sm]=!1,i[nGe]=0,i[AU]=t[AU],i[Y9e]=t,i[z9e]=null,nm.connected.hasSubscribers&&nm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[xl],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[yc],[t])}catch(i){if(t.destroyed)return;if(t[sm]=!1,nm.connectError.hasSubscribers&&nm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[xl],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(iu(t[OI]===0);t[HI]>0&&t[xa][t[Ra]].servername===t[xl];){let o=t[xa][t[Ra]++];Ph.errorRequest(t,o,i)}else qre(t,i);t.emit("connectionError",t[yc],[t],i)}t[UI]()}function Ore(t){t[Dl]=0,t.emit("drain",t[yc],[t])}function lU(t,e){t[Oh]!==2&&(t[Oh]=2,hGe(t,e),t[Oh]=0,t[ou]>256&&(t[xa].splice(0,t[ou]),t[Ra]-=t[ou],t[ou]=0))}function hGe(t,e){for(;;){if(t.destroyed){iu(t[HI]===0);return}if(t[Rl]&&!t[PI]){t[Rl](),t[Rl]=null;return}if(t[Kr]&&t[Kr].resume(),t[cU])t[Dl]=2;else if(t[Dl]===2){e?(t[Dl]=1,queueMicrotask(()=>Ore(t))):Ore(t);continue}if(t[HI]===0||t[OI]>=(Gre(t)||1))return;let r=t[xa][t[Ra]];if(t[yc].protocol==="https:"&&t[xl]!==r.servername){if(t[OI]>0)return;t[xl]=r.servername,t[Kr]?.destroy(new H9e("servername changed"),()=>{t[Kr]=null,lU(t)})}if(t[sm])return;if(!t[Kr]){Yre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ra]++:t[xa].splice(t[Ra],1)}}Vre.exports=uU});var dU=C((z7t,Wre)=>{"use strict";var LS=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)}};Wre.exports=class{constructor(){this.head=this.tail=new LS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new LS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var zre=C((j7t,Jre)=>{var{kFree:fGe,kConnected:gGe,kPending:pGe,kQueued:mGe,kRunning:EGe,kSize:CGe}=Br(),Hh=Symbol("pool"),hU=class{constructor(e){this[Hh]=e}get connected(){return this[Hh][gGe]}get free(){return this[Hh][fGe]}get pending(){return this[Hh][pGe]}get queued(){return this[Hh][mGe]}get running(){return this[Hh][EGe]}get size(){return this[Hh][CGe]}};Jre.exports=hU});var CU=C((K7t,sne)=>{"use strict";var IGe=qp(),yGe=dU(),{kConnected:fU,kSize:jre,kRunning:Kre,kPending:$re,kQueued:GI,kBusy:BGe,kFree:bGe,kUrl:QGe,kClose:wGe,kDestroy:SGe,kDispatch:NGe}=Br(),TGe=zre(),Zs=Symbol("clients"),Ns=Symbol("needDrain"),qI=Symbol("queue"),gU=Symbol("closed resolve"),pU=Symbol("onDrain"),Xre=Symbol("onConnect"),Zre=Symbol("onDisconnect"),ene=Symbol("onCo Line truncated
`,"latin1"),r!==null&&s!==r){if(n[Q4])throw new cp;process.emitWarning(new cp)}e[Lr].timeout&&e[Lr].timeoutType===q0&&e[Lr].timeout.refresh&&e[Lr].timeout.refresh(),n[$l]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Uh]=!1,e&&(We(n[Gn]<=1,"pipeline should only contain this request"),s(e))}};VAe.exports=QVe});var nue=y((pnr,rue)=>{"use strict";var va=w("node:assert"),{pipeline:DVe}=w("node:stream"),Ht=kt(),{RequestContentLengthMismatchError:T4,RequestAbortedError:KAe,SocketError:Mb,InformationalError:R4}=or(),{kUrl:tR,kReset:nR,kClient:G0,kRunning:sR,kPending:kVe,kQueue:Oh,kPendingIdx:D4,kRunningIdx:Wc,kError:Vc,kSocket:gs,kStrictContentLength:vVe,kOnError:k4,kMaxConcurrentStreams:tue,kHTTP2Session:Jc,kResume:Hh,kSize:PVe,kHTTPContext:MVe}=Kr(),ed=Symbol("open streams"),XAe,ZAe=!1,rR;try{rR=w("node:http2")}catch{rR={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:FVe,HTTP2_HEADER_METHOD:LVe,HTTP2_HEADER_PATH:_Ve,HTTP2_HEADER_SCHEME:UVe,HTTP2_HEADER_CONTENT_LENGTH:OVe,HTTP2_HEADER_EXPECT:HVe,HTTP2_HEADER_STATUS:qVe}}=rR;function GVe(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}async function YVe(t,e){t[gs]=e,ZAe||(ZAe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=rR.connect(t[tR],{createConnection:()=>e,peerMaxConcurrentStreams:t[tue]});r[ed]=0,r[G0]=t,r[gs]=e,Ht.addListener(r,"error",WVe),Ht.addListener(r,"frameError",JVe),Ht.addListener(r,"end",VVe),Ht.addListener(r,"goaway",jVe),Ht.addListener(r,"close",function(){let{[G0]:s}=this,{[gs]:i}=s,o=this[gs][Vc]||this[Vc]||new Mb("closed",Ht.getSocketInfo(i));if(s[Jc]=null,s.destroyed){va(s[kVe]===0);let a=s[Oh].splice(s[Wc]);for(let c=0;c<a.length;c++){let A=a[c];Ht.errorRequest(s,A,o)}}}),r.unref(),t[Jc]=r,e[Jc]=r,Ht.addListener(e,"error",function(s){va(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Vc]=s,this[G0][k4](s)}),Ht.addListener(e,"end",function(){Ht.destroy(this,new Mb("other side closed",Ht.getSocketInfo(this)))}),Ht.addListener(e,"close",function(){let s=this[Vc]||new Mb("closed",Ht.getSocketInfo(this));t[gs]=null,this[Jc]!=null&&this[Jc].destroy(s),t[D4]=t[Wc],va(t[sR]===0),t.emit("disconnect",t[tR],[t],s),t[Hh]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return XVe(t,...s)},resume(){zVe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function zVe(t){let e=t[gs];e?.destroyed===!1&&(t[PVe]===0&&t[tue]===0?(e.unref(),t[Jc].unref()):(e.ref(),t[Jc].ref()))}function WVe(t){va(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[gs][Vc]=t,this[G0][k4](t)}function JVe(t,e,r){if(r===0){let n=new R4(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[gs][Vc]=n,this[G0][k4](n)}}function VVe(){let t=new Mb("other side closed",Ht.getSocketInfo(this[gs]));this.destroy(t),Ht.destroy(this[gs],t)}function jVe(t){let e=this[Vc]||new Mb(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ht.getSocketInfo(this)),r=this[G0];if(r[gs]=null,r[MVe]=null,this[Jc]!=null&&(this[Jc].destroy(e),this[Jc]=null),Ht.destroy(this[gs],e),r[Wc]<r[Oh].length){let n=r[Oh][r[Wc]];r[Oh][r[Wc]++]=null,Ht.errorRequest(r,n,e),r[D4]=r[Wc]}va(r[sR]===0),r.emit("disconnect",r[tR],[r],e),r[Hh]()}function KVe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function XVe(t,e){let r=t[Jc],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Ht.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],W=A[B+1];if(Array.isArray(W))for(let F=0;F<W.length;F++)l[M]?l[M]+=`,${W[F]}`:l[M]=W[F];else l[M]=W}let d,{hostname:h,port:f}=t[tR];l[FVe]=i||`${h}${f?`:${f}`:""}`,l[LVe]=n;let m=B=>{e.aborted||e.completed||(B=B||new KAe,Ht.errorRequest(t,e,B),d!=null&&Ht.destroy(d,B),Ht.destroy(u,B),t[Oh][t[Wc]++]=null,t[Hh]())};try{e.onConnect(m)}catch(B){Ht.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[ed],t[Oh][t[Wc]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ed],t[Oh][t[Wc]++]=null}),d.once("close",()=>{r[ed]-=1,r[ed]===0&&r.unref()}),!0;l[_Ve]=s,l[UVe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=Ht.bodyLength(u);if(Ht.isFormDataLike(u)){XAe??=_0().extractBody;let[B,M]=XAe(u);l["content-type"]=M,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!E)&&(g=null),KVe(n)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[vVe])return Ht.errorRequest(t,e,new T4),!1;process.emitWarning(new T4)}g!=null&&(va(u,"no body must not have content length"),l[OVe]=`${g}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[HVe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[bje]=c??3e5,this[Bje]=s??3e5,this[Qje]=C??!0,this[wje]=B,this[F4]=W,this[Gh]=null,this[Rje]=H>-1?H:-1,this[kje]=$??100,this[Rn]=null,this[jc]=[],this[rd]=0,this[Kc]=0,this[Ub]=fe=>_4(this,fe),this[Dje]=fe=>mue(this,fe)}get pipelining(){return this[cR]}set pipelining(e){this[cR]=e,this[Ub](!0)}get[qb](){return this[jc].length-this[Kc]}get[Hb](){return this[Kc]-this[rd]}get[Ob](){return this[jc].length-this[rd]}get[mje](){return!!this[Rn]&&!this[z0]&&!this[Rn].destroyed}get[M4](){return!!(this[Rn]?.busy(null)||this[Ob]>=(fue(this)||1)||this[qb]>0)}[fje](e){pue(this),this.once("connect",e)}[Tje](e,r){let n=e.origin||this[YA].origin,s=new cje(n,e,r);return this[jc].push(s),this[dp]||(lp.bodyLength(s.body)==null&&lp.isIterable(s.body)?(this[dp]=1,queueMicrotask(()=>_4(this))):this[Ub](!0)),this[dp]&&this[Yh]!==2&&this[M4]&&(this[Yh]=2),this[Yh]<2}async[xje](){return new Promise(e=>{this[Ob]?this[Gh]=e:e(null)})}async[Sje](e){return new Promise(r=>{let n=this[jc].splice(this[Kc]);for(let i=0;i<n.length;i++){let o=n[i];lp.errorRequest(this,o,e)}let s=()=>{this[Gh]&&(this[Gh](),this[Gh]=null),r(null)};this[Rn]?(this[Rn].destroy(e,s),this[Rn]=null):queueMicrotask(s),this[Ub]()})}},Mje=aR();function mue(t,e){if(t[Hb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){td(t[Kc]===t[rd]);let r=t[jc].splice(t[rd]);for(let n=0;n<r.length;n++){let s=r[n];lp.errorRequest(t,s,e)}td(t[Ob]===0)}}async function pue(t){td(!t[z0]),td(!t[Rn]);let{host:e,hostname:r,protocol:n,port:s}=t[YA];if(r[0]==="["){let i=r.indexOf("]");td(i!==-1);let o=r.substring(1,i);td(hue.isIP(o)),r=o}t[z0]=!0,Y0.beforeConnect.hasSubscribers&&Y0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Rn]?.version,servername:t[qh],localAddress:t[_b]},connector:t[Lb]});try{let i=await new Promise((o,a)=>{t[Lb]({host:e,hostname:r,protocol:n,port:s,servername:t[qh],localAddress:t[_b]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){lp.destroy(i.on("error",lue),new lje);return}td(i);try{t[Rn]=i.alpnProtocol==="h2"?await Pje(t,i):await vje(t,i)}catch(o){throw i.destroy().on("error",lue),o}t[z0]=!1,i[Nje]=0,i[F4]=t[F4],i[hje]=t,i[gje]=null,Y0.connected.hasSubscribers&&Y0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Rn]?.version,servername:t[qh],localAddress:t[_b]},connector:t[Lb],socket:i}),t.emit("connect",t[YA],[t])}catch(i){if(t.destroyed)return;if(t[z0]=!1,Y0.connectError.hasSubscribers&&Y0.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Rn]?.version,servername:t[qh],localAddress:t[_b]},connector:t[Lb],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(td(t[Hb]===0);t[qb]>0&&t[jc][t[Kc]].servername===t[qh];){let o=t[jc][t[Kc]++];lp.errorRequest(t,o,i)}else mue(t,i);t.emit("connectionError",t[YA],[t],i)}t[Ub]()}function due(t){t[Yh]=0,t.emit("drain",t[YA],[t])}function _4(t,e){t[dp]!==2&&(t[dp]=2,Fje(t,e),t[dp]=0,t[rd]>256&&(t[jc].splice(0,t[rd]),t[Kc]-=t[rd],t[rd]=0))}function Fje(t,e){for(;;){if(t.destroyed){td(t[qb]===0);return}if(t[Gh]&&!t[Ob]){t[Gh](),t[Gh]=null;return}if(t[Rn]&&t[Rn].resume(),t[M4])t[Yh]=2;else if(t[Yh]===2){e?(t[Yh]=1,queueMicrotask(()=>due(t))):due(t);continue}if(t[qb]===0||t[Hb]>=(fue(t)||1))return;let r=t[jc][t[Kc]];if(t[YA].protocol==="https:"&&t[qh]!==r.servername){if(t[Hb]>0)return;t[qh]=r.servername,t[Rn]?.destroy(new uje("servername changed"),()=>{t[Rn]=null,_4(t)})}if(t[z0])return;if(!t[Rn]){pue(t);return}if(t[Rn].destroyed||t[Rn].busy(r))return;!r.aborted&&t[Rn].write(r)?t[Kc]++:t[jc].splice(t[Kc],1)}}gue.exports=L4});var U4=y((Inr,Eue)=>{"use strict";var AR=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)}};Eue.exports=class{constructor(){this.head=this.tail=new AR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new AR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Cue=y((Bnr,yue)=>{var{kFree:Lje,kConnected:_je,kPending:Uje,kQueued:Oje,kRunning:Hje,kSize:qje}=Kr(),hp=Symbol("pool"),O4=class{constructor(e){this[hp]=e}get connected(){return this[hp][_je]}get free(){return this[hp][Lje]}get pending(){return this[hp][Uje]}get queued(){return this[hp][Oje]}get running(){return this[hp][Hje]}get size(){return this[hp][qje]}};yue.exports=O4});var W4=y((bnr,Rue)=>{"use strict";var Gje=T0(),Yje=U4(),{kConnected:H4,kSize:Iue,kRunning:Bue,kPending:bue,kQueued:Gb,kBusy:zje,kFree:Wje,kUrl:Jje,kClose:Vje,kDestroy:jje,kDispatch:Kje}=Kr(),Xje=Cue(),ro=Symbol("clients"),xi=Symbol("needDrain"),Yb=Symbol("queue"),q4=Symbol("closed resolve"),G4=Symbol("onDrain"),Que=Symbol("onConnect"),wue=Symbol("onDisconnect"),Nue=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};lie.exports=CP});var tN=C((QWt,pie)=>{"use strict";var hie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:eVe}=_t(),tVe=am();gie()===void 0&&fie(new tVe);function fie(t){if(!t||typeof t.dispatch!="function")throw new eVe("Argument agent must implement Agent");Object.defineProperty(globalThis,hie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function gie(){return globalThis[hie]}pie.exports={setGlobalDispatcher:fie,getGlobalDispatcher:gie}});var rN=C((SWt,mie)=>{"use strict";mie.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 Cie=C((NWt,Eie)=>{"use strict";var rVe=_S();Eie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new rVe(r,o,s,i);return r(a,c)}}});var yie=C((TWt,Iie)=>{"use strict";var nVe=VS();Iie.exports=t=>e=>function(n,s){return e(n,new nVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var bie=C((xWt,Bie)=>{"use strict";var sVe=lt(),{InvalidArgumentError:iVe,RequestAbortedError:oVe}=_t(),aVe=rN(),IP=class extends aVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new iVe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=sVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new oVe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function cVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new IP({maxSize:i},s);return e(n,o)}}Bie.exports=cVe});var Sie=C((RWt,wie)=>{"use strict";var{isIP:AVe}=Q("node:net"),{lookup:uVe}=Q("node:dns"),lVe=rN(),{InvalidArgumentError:Em,InformationalError:dVe}=_t(),Qie=Math.pow(2,31)-1,yP=class{#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.#i}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,(o,a)=>{if(o||a==null||a.length===0){n(o??new dVe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){uVe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Qie?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Qie?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,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 o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new BP(this,e,r)}},BP=class extends lVe{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":sce(i)&&(r[s]=i);break;case"id":ice(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&sce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&ice(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}}};oce.exports={EventSourceStream:lO}});var gce=C((aJt,fce)=>{"use strict";var{pipeline:Ize}=Q("node:stream"),{fetching:yze}=ty(),{makeRequest:Bze}=ym(),{webidl:lu}=Kn(),{EventSourceStream:bze}=ace(),{parseMIMEType:Qze}=$s(),{createFastMessageEvent:wze}=Nm(),{isNetworkError:cce}=ZI(),{delay:Sze}=AO(),{kEnumerableProperty:rf}=lt(),{environmentSettingsObject:Ace}=Ri(),uce=!1,lce=3e3,gy=0,dce=1,py=2,Nze="anonymous",Tze="use-credentials",km=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),lu.util.markAsUncloneable(this);let n="EventSource constructor";lu.argumentLengthCheck(arguments,1,n),uce||(uce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lu.converters.USVString(e,n,"url"),r=lu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:lce};let s=Ace,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Nze;r.withCredentials&&(o=Tze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Ace.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=Bze(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===py)return;this.#r=gy;let e={request:this.#i,dispatcher:this.#c},r=n=>{cce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Qze(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=dce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new bze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(wze(c.type,c.options))}});Ize(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=yze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await Sze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){lu.brandCheck(this,t),this.#r!==py&&(this.#r=py,this.#s.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}},hce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(km,hce);Object.defineProperties(km.prototype,hce);Object.defineProperties(km.prototype,{close:rf,onerror:rf,onmessage:rf,onopen:rf,readyState:rf,url:rf,withCredentials:rf});lu.converters.EventSourceInitDict=lu.dictionaryConverter([{key:"withCredentials",converter:lu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lu.converters.any}]);fce.exports={EventSource:km,defaultReconnectionTime:lce}});var YN=C((cJt,ze)=>{"use strict";var xze=im(),pce=II(),Rze=om(),Dze=hne(),kze=am(),vze=kU(),_ze=Lne(),Fze=Yne(),mce=_t(),qN=lt(),{InvalidArgumentError:GN}=mce,vm=Rse(),Mze=BI(),Lze=hP(),Uze=die(),Pze=pP(),Oze=eP(),Hze=VS(),{getGlobalDispatcher:Ece,setGlobalDispatcher:Gze}=tN(),qze=rN(),Yze=_S(),Vze=FS();Object.assign(pce.prototype,vm);ze.exports.Dispatcher=pce;ze.exports.Client=xze;ze.exports.Pool=Rze;ze.exports.BalancedPool=Dze;ze.exports.Agent=kze;ze.exports.ProxyAgent=vze;ze.exports.EnvHttpProxyAgent=_ze;ze.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?n3:I.type==="?"?r3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var v=a[P],z=n.slice(0,v.reStart),X=n.slice(v.reStart,v.reEnd-8),ee=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);ee+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==dT&&(ke="$");var et=z+X+ce+ke+ee;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===dT)return[n,s];if(!s)return v$e(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Hi.makeRe=function(t,e){return new un(t,e||{}).makeRe()};un.prototype.makeRe=k$e;function k$e(){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?n3:e.dot?Q$e:w$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===uf?r:typeof o=="string"?_$e(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Hi.match=function(t,e,r){r=r||{};var n=new un(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};un.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 n=this.options;Ty.sep!=="/"&&(e=e.split(Ty.sep).join("/")),e=e.split(oue),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};un.prototype.matchOne=function(t,e,r){return e.indexOf(uf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};un.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===uf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===uf){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===uf?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};un.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};un.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===uf)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function v$e(t){return t.replace(/\\(.)/g,"$1")}function _$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Om=C((ujt,hue)=>{"use strict";var G$e="2.0.0",q$e=Number.MAX_SAFE_INTEGER||9007199254740991,Y$e=16,V$e=250,W$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];hue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Y$e,MAX_SAFE_BUILD_LENGTH:V$e,MAX_SAFE_INTEGER:q$e,RELEASE_TYPES:W$e,SEMVER_SPEC_VERSION:G$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ky=C((ljt,fue)=>{"use strict";var J$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fue.exports=J$e});var Hm=C((xc,gue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:i3,MAX_SAFE_BUILD_LENGTH:z$e,MAX_LENGTH:j$e}=Om(),K$e=ky();xc=gue.exports={};var $$e=xc.re=[],X$e=xc.safeRe=[],me=xc.src=[],Z$e=xc.safeSrc=[],Ee=xc.t={},eXe=0,o3="[a-zA-Z0-9-]",tXe=[["\\s",1],["\\d",j$e],[o3,z$e]],rXe=t=>{for(let[e,r]of tXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};Lde.exports=W8});var xR=y((Xnr,qde)=>{"use strict";var Ude=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:bZe}=or(),QZe=V0();Hde()===void 0&&Ode(new QZe);function Ode(t){if(!t||typeof t.dispatch!="function")throw new bZe("Argument agent must implement Agent");Object.defineProperty(globalThis,Ude,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Hde(){return globalThis[Ude]}qde.exports={setGlobalDispatcher:Ode,getGlobalDispatcher:Hde}});var SR=y(($nr,Gde)=>{"use strict";Gde.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 zde=y((esr,Yde)=>{"use strict";var wZe=oR();Yde.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new wZe(r,o,s,i);return r(a,c)}}});var Jde=y((tsr,Wde)=>{"use strict";var NZe=gR();Wde.exports=t=>e=>function(n,s){return e(n,new NZe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var jde=y((rsr,Vde)=>{"use strict";var xZe=kt(),{InvalidArgumentError:SZe,RequestAbortedError:TZe}=or(),RZe=SR(),J8=class extends RZe{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new SZe("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.#s=e}onHeaders(e,r,n,s){let o=xZe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new TZe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function DZe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new J8({maxSize:i},s);return e(n,o)}}Vde.exports=DZe});var Zde=y((nsr,Xde)=>{"use strict";var{isIP:kZe}=w("node:net"),{lookup:vZe}=w("node:dns"),PZe=SR(),{InvalidArgumentError:ny,InformationalError:MZe}=or(),Kde=Math.pow(2,31)-1,V8=class{#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.#i}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,(o,a)=>{if(o||a==null||a.length===0){n(o??new MZe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){vZe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Kde?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Kde?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,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 o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new j8(this,e,r)}},j8=class extends PZe{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${o}`;return}if(fD(e,s,Krt)){Xrt(e,i)&&(r.retry=e.toString("utf8",i));return}if(fD(e,s,jrt)){Zrt(e,i)&&(r.id=e.toString("utf8",i));return}if(fD(e,s,Vrt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&Grt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Yrt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===gy[0]||(this.checkBOM=!1),!0):n===void 0?e===gy[0]&&r===gy[1]?!0:(this.checkBOM=!1,!1):(e===gy[0]&&r===gy[1]&&n===gy[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Rme.exports={EventSourceStream:_H}});var Ume=y((Psr,_me)=>{"use strict";var{pipeline:$rt}=w("node:stream"),{fetching:ent}=nQ(),{makeRequest:tnt}=oy(),{webidl:od}=Gs(),{EventSourceStream:rnt}=Dme(),{parseMIMEType:nnt}=eo(),{createFastMessageEvent:snt}=dy(),{isNetworkError:kme}=tQ(),{delay:int}=FH(),{kEnumerableProperty:Tp}=kt(),{environmentSettingsObject:vme}=Uo(),Pme=!1,Mme=3e3,gQ=0,Fme=1,EQ=2,ont="anonymous",ant="use-credentials",Ey=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gQ;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),od.util.markAsUncloneable(this);let n="EventSource constructor";od.argumentLengthCheck(arguments,1,n),Pme||(Pme=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=od.converters.USVString(e,n,"url"),r=od.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Mme};let s=vme,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=ont;r.withCredentials&&(o=ant,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=vme.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=tnt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===EQ)return;this.#r=gQ;let e={request:this.#i,dispatcher:this.#a},r=n=>{kme(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kme(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?nnt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Fme,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new rnt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(snt(c.type,c.options))}});$rt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=ent(e)}async#A(){this.#r!==EQ&&(this.#r=gQ,this.dispatchEvent(n Line truncated
`).join(`
`+i),t.push(s+"m+"+XT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Vtt()+e+" "+t[0]}function Vtt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Wtt(...t){return process.stderr.write($T.formatWithOptions(vn.inspectOpts,...t)+`
`)}function Jtt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ztt(){return process.env.DEBUG}function jtt(t){t.inspectOpts={};let e=Object.keys(vn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=vn.inspectOpts[e[r]]}XT.exports=j3()(vn);var{formatters:Yde}=XT.exports;Yde.o=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Yde.O=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts)}});var ZT=C((H$t,X3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?X3.exports=Ude():X3.exports=Vde()});var zde=C(ai=>{"use strict";var Ktt=ai&&ai.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$tt=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wde=ai&&ai.__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)&&Ktt(e,t,r);return $tt(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var Xtt=Wde(Q("http")),Ztt=Wde(Q("https"));async function Jde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=Jde;async function ert(t){let r=(await Jde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=ert;function trt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Ztt:Xtt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=trt});var e8=C(Yi=>{"use strict";var Kde=Yi&&Yi.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rrt=Yi&&Yi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$de=Yi&&Yi.__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)&&Kde(e,t,r);return rrt(e,t),e},nrt=Yi&&Yi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Kde(e,t,r)};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.Agent=void 0;var srt=$de(Q("net")),jde=$de(Q("http")),irt=Q("https");nrt(zde(),Yi);var kc=Symbol("AgentBaseInternalState"),Z3=class extends jde.Agent{constructor(e){super(e),this[kc]={}}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 srt.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)?irt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof jde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[kc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kc].currentSocket;if(this[kc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kc]&&(this[kc].defaultPort=e)}get protocol(){return this[kc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kc]&&(this[kc].protocol=e)}};Yi.Agent=Z3});var Xde=C(Km=>{"use strict";var ort=Km&&Km.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Km,"__esModule",{value:!0});Km.parseProxyResponse=void 0;var art=ort(ZT()),ex=(0,art.default)("https-proxy-agent:parse-proxy-response");function crt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),ex("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),ex("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+Q2.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Xut()+e+" "+t[0]}function Xut(){return ys.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Zut(...t){return process.stderr.write(b2.formatWithOptions(ys.inspectOpts,...t)+`
`)}function $ut(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function elt(){return process.env.DEBUG}function tlt(t){t.inspectOpts={};let e=Object.keys(ys.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ys.inspectOpts[e[r]]}Q2.exports=B5()(ys);var{formatters:Eye}=Q2.exports;Eye.o=function(t){return this.inspectOpts.colors=this.useColors,b2.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Eye.O=function(t){return this.inspectOpts.colors=this.useColors,b2.inspect(t,this.inspectOpts)}});var w2=y((vAr,w5)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?w5.exports=dye():w5.exports=yye()});var Bye=y(uo=>{"use strict";var rlt=uo&&uo.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nlt=uo&&uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cye=uo&&uo.__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)&&rlt(e,t,r);return nlt(e,t),e};Object.defineProperty(uo,"__esModule",{value:!0});uo.req=uo.json=uo.toBuffer=void 0;var slt=Cye(w("http")),ilt=Cye(w("https"));async function Iye(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}uo.toBuffer=Iye;async function olt(t){let r=(await Iye(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}uo.json=olt;function alt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ilt:slt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}uo.req=alt});var x5=y(Xo=>{"use strict";var Qye=Xo&&Xo.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),clt=Xo&&Xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wye=Xo&&Xo.__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)&&Qye(e,t,r);return clt(e,t),e},Alt=Xo&&Xo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qye(e,t,r)};Object.defineProperty(Xo,"__esModule",{value:!0});Xo.Agent=void 0;var ult=wye(w("net")),bye=wye(w("http")),llt=w("https");Alt(Bye(),Xo);var tu=Symbol("AgentBaseInternalState"),N5=class extends bye.Agent{constructor(e){super(e),this[tu]={}}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 ult.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)?llt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof bye.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[tu].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[tu].currentSocket;if(this[tu].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[tu].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[tu]&&(this[tu].defaultPort=e)}get protocol(){return this[tu].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[tu]&&(this[tu].protocol=e)}};Xo.Agent=N5});var Nye=y(My=>{"use strict";var dlt=My&&My.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(My,"__esModule",{value:!0});My.parseProxyResponse=void 0;var hlt=dlt(w2()),N2=(0,hlt.default)("https-proxy-agent:parse-proxy-response");function flt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),N2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),N2("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){ex("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}ex("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}Km.parseProxyResponse=crt});var she=C(ko=>{"use strict";var Art=ko&&ko.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),urt=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rhe=ko&&ko.__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)&&Art(e,t,r);return urt(e,t),e},nhe=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var tx=rhe(Q("net")),Zde=rhe(Q("tls")),lrt=nhe(Q("assert")),drt=nhe(ZT()),hrt=e8(),frt=Q("url"),grt=Xde(),Wy=(0,drt.default)("https-proxy-agent"),ehe=t=>t.servername===void 0&&t.host&&!tx.isIP(t.host)?{...t,servername:t.host}:t,rx=class extends hrt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new frt.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("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?the(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:"?(Wy("Creating `tls.Socket`: %o",this.connectOpts),s=Zde.connect(ehe(this.connectOpts))):(Wy("Creating `net.Socket`: %o",this.connectOpts),s=tx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=tx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){N2("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=f.split(" "),E=+m[1],g=m.slice(2).join(" "),C={};for(let I of h){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let M=I.slice(0,B).toLowerCase(),W=I.slice(B+1).trimStart(),F=C[M];typeof F=="string"?C[M]=[F,W]:Array.isArray(F)?F.push(W):C[M]=W}N2("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:E,statusText:g,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}My.parseProxyResponse=flt});var kye=y(Ya=>{"use strict";var mlt=Ya&&Ya.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),plt=Ya&&Ya.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Rye=Ya&&Ya.__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)&&mlt(e,t,r);return plt(e,t),e},Dye=Ya&&Ya.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ya,"__esModule",{value:!0});Ya.HttpsProxyAgent=void 0;var x2=Rye(w("net")),xye=Rye(w("tls")),glt=Dye(w("assert")),Elt=Dye(w2()),ylt=x5(),Clt=w("url"),Ilt=Nye(),nw=(0,Elt.default)("https-proxy-agent"),Sye=t=>t.servername===void 0&&t.host&&!x2.isIP(t.host)?{...t,servername:t.host}:t,S2=class extends ylt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Clt.URL(e):e,this.proxyHeaders=r?.headers??{},nw("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?Tye(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:"?(nw("Creating `tls.Socket`: %o",this.connectOpts),s=xye.connect(Sye(this.connectOpts))):(nw("Creating `net.Socket`: %o",this.connectOpts),s=x2.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=x2.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let c=(0,grt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",prt),r.secureEndpoint?(Wy("Upgrading socket connection to TLS"),Zde.connect({...the(ehe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new tx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Wy("Replaying proxy buffer for failed request"),(0,lrt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};rx.protocols=["http","https"];ko.HttpsProxyAgent=rx;function prt(t){t.resume()}function the(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ahe=C(vo=>{"use strict";var mrt=vo&&vo.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ert=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ohe=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)&&mrt(e,t,r);return Ert(e,t),e},Crt=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var Irt=ohe(Q("net")),yrt=ohe(Q("tls")),Brt=Crt(ZT()),brt=Q("events"),Qrt=e8(),ihe=Q("url"),$m=(0,Brt.default)("http-proxy-agent"),nx=class extends Qrt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ihe.URL(e):e,this.proxyHeaders=r?.headers??{},$m("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?wrt(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",o=`${s}//${i}`,a=new ihe.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(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;$m("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&($m("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,Ilt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Blt),r.secureEndpoint?(nw("Upgrading socket connection to TLS"),xye.connect({...Tye(Sye(r),"host","path","port"),socket:s})):s;s.destroy();let l=new x2.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{nw("Replaying proxy buffer for failed request"),(0,glt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};S2.protocols=["http","https"];Ya.HttpsProxyAgent=S2;function Blt(t){t.resume()}function Tye(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Mye=y(za=>{"use strict";var blt=za&&za.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Qlt=za&&za.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pye=za&&za.__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)&&blt(e,t,r);return Qlt(e,t),e},wlt=za&&za.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(za,"__esModule",{value:!0});za.HttpProxyAgent=void 0;var Nlt=Pye(w("net")),xlt=Pye(w("tls")),Slt=wlt(w2()),Tlt=w("events"),Rlt=x5(),vye=w("url"),Fy=(0,Slt.default)("http-proxy-agent"),T2=class extends Rlt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new vye.URL(e):e,this.proxyHeaders=r?.headers??{},Fy("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?Dlt(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",o=`${s}//${i}`,a=new vye.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(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Fy("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Fy("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+n.substring(s),$m("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?($m("Creating `tls.Socket`: %o",this.connectOpts),i=yrt.connect(this.connectOpts)):($m("Creating `net.Socket`: %o",this.connectOpts),i=Irt.connect(this.connectOpts)),await(0,brt.once)(i,"connect"),i}};nx.protocols=["http","https"];vo.HttpProxyAgent=nx;function wrt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Dhe=C(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.state=void 0;gx.state={instrumenterImplementation:void 0}});var zhe=C(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.state=void 0;Ix.state={operationRequestMap:new WeakMap}});var Dpe=C((Gfr,vct)=>{vct.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var vpe=C((qfr,kpe)=>{var _ct=Dpe();kpe.exports={version:_ct.version}});var XR=C(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.isJsonObject=y0.typeofJsonValue=void 0;function qct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}y0.typeofJsonValue=qct;function Yct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}y0.isJsonObject=Yct});var eD=C(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});B0.base64encode=B0.base64decode=void 0;var ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZR=[];for(let t=0;t<ku.length;t++)ZR[ku[t].charCodeAt(0)]=t;ZR[45]=ku.indexOf("+");ZR[95]=ku.indexOf("/");function Vct(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=ZR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}B0.base64decode=Vct;function Wct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=ku[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=ku[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=ku[s|n>>6],e+=ku[n&63],r=0;break}return r&&(e+=ku[s],e+="=",r==1&&(e+="=")),e}B0.base64encode=Wct});var Upe=C(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.utf8read=void 0;var WH=t=>String.fromCharCode.apply(String,t);function Jct(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)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(WH(n)),s=0);return r.length?(s&&r.push(WH(n.slice(0,s))),r.join("")):WH(n.slice(0,s))}tD.utf8read=Jct});var GB=C(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.WireType=nA.mergeBinaryOptions=nA.UnknownFieldHandler=void 0;var zct;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},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=r=>r&&Array.isArray(r[t.symbol])})(zct=nA.UnknownFieldHandler||(nA.UnknownFieldHandler={}));function jct(t,e){return Object.assign(Object.assign({},t),e)}nA.mergeBinaryOptions=jct;var Kct;(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"})(Kct=nA.WireType||(nA.WireType={}))});var nD=C(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.varint32read=fi.varint32write=fi.int64toString=fi.int64fromString=fi.varint64write=fi.varint64read=void 0;function $ct(){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")}fi.varint64read=$ct;function Xct(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)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 o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}fi.varint64write=Xct;var rD=65536*65536;function Zct(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=rD&&(s=s+(n/rD|0),n=n%rD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}fi.int64fromString=Zct;function eAt(t,e){if(e>>>0<=2097151)return""+(rD*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}fi.int64toString=eAt;function tAt(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)}}fi.varint32write=tAt;function rAt(){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}fi.varint32read=rAt});var dd=C(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.PbLong=ld.PbULong=ld.detectBi=void 0;var qB=nD(),or;function Ppe(){let t=new DataView(new ArrayBuffer(8));or=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}ld.detectBi=Ppe;Ppe();function Ope(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Hpe=/^-?[0-9]+$/,iD=4294967296,sD=2147483648,oD=c Line truncated
`)}};RD.RpcError=C9});var y9=C(kD=>{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.mergeRpcOptions=void 0;var mme=ct();function Qut(t,e){if(!e)return t;let r={};DD(t,r),DD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=mme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=mme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},DD(t.meta,r.meta),DD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}kD.mergeRpcOptions=Qut;function DD(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}});var b9=C(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.Deferred=Gf.DeferredState=void 0;var oA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oA=Gf.DeferredState||(Gf.DeferredState={}));var B9=class{constructor(e=!0){this._state=oA.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!==oA.PENDING)throw new Error(`cannot resolve ${oA[this.state].toLowerCase()}`);this._resolve(e),this._state=oA.RESOLVED}reject(e){if(this.state!==oA.PENDING)throw new Error(`cannot reject ${oA[this.state].toLowerCase()}`);this._reject(e),this._state=oA.REJECTED}resolvePending(e){this._state===oA.PENDING&&this.resolve(e)}rejectPending(e){this._state===oA.PENDING&&this.reject(e)}};Gf.Deferred=B9});var w9=C(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.RpcOutputStreamController=void 0;var Eme=b9(),qf=ct(),Q9=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 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){qf.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){qf.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){qf.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(){qf.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;qf.assert(e,"bad state"),qf.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 Eme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;qf.assert(n.state==Eme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};vD.RpcOutputStreamController=Q9});var N9=C(x0=>{"use strict";var wut=x0&&x0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(x0,"__esModule",{value:!0});x0.UnaryCall=void 0;var S9=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 wut(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}})}};x0.UnaryCall=S9});var x9=C(R0=>{"use strict";var Sut=R0&&R0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(R0,"__esModule",{value:!0});R0.ServerStreamingCall=void 0;var T9=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),Fy("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Fy("Creating `tls.Socket`: %o",this.connectOpts),i=xlt.connect(this.connectOpts)):(Fy("Creating `net.Socket`: %o",this.connectOpts),i=Nlt.connect(this.connectOpts)),await(0,Tlt.once)(i,"connect"),i}};T2.protocols=["http","https"];za.HttpProxyAgent=T2;function Dlt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var sCe=y(k2=>{"use strict";Object.defineProperty(k2,"__esModule",{value:!0});k2.state=void 0;k2.state={instrumenterImplementation:void 0}});var PCe=y(Y2=>{"use strict";Object.defineProperty(Y2,"__esModule",{value:!0});Y2.state=void 0;Y2.state={operationRequestMap:new WeakMap}});var hbe=y((I1r,BEt)=>{BEt.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"~1.23.0","@azure/storage-blob":"~12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var mbe=y((B1r,fbe)=>{var bEt=hbe();fbe.exports={version:bEt.version}});var Cv=y(EC=>{"use strict";Object.defineProperty(EC,"__esModule",{value:!0});EC.isJsonObject=EC.typeofJsonValue=void 0;function kEt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}EC.typeofJsonValue=kEt;function vEt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}EC.isJsonObject=vEt});var Bv=y(yC=>{"use strict";Object.defineProperty(yC,"__esModule",{value:!0});yC.base64encode=yC.base64decode=void 0;var Rd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Iv=[];for(let t=0;t<Rd.length;t++)Iv[Rd[t].charCodeAt(0)]=t;Iv[45]=Rd.indexOf("+");Iv[95]=Rd.indexOf("/");function PEt(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=Iv[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}yC.base64decode=PEt;function MEt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Rd[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Rd[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Rd[s|n>>6],e+=Rd[n&63],r=0;break}return r&&(e+=Rd[s],e+="=",r==1&&(e+="=")),e}yC.base64encode=MEt});var Cbe=y(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});bv.utf8read=void 0;var Sz=t=>String.fromCharCode.apply(String,t);function FEt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)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(Sz(n)),s=0);return r.length?(s&&r.push(Sz(n.slice(0,s))),r.join("")):Sz(n.slice(0,s))}bv.utf8read=FEt});var iN=y(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.WireType=xu.mergeBinaryOptions=xu.UnknownFieldHandler=void 0;var LEt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},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=r=>r&&Array.isArray(r[t.symbol])})(LEt=xu.UnknownFieldHandler||(xu.UnknownFieldHandler={}));function _Et(t,e){return Object.assign(Object.assign({},t),e)}xu.mergeBinaryOptions=_Et;var UEt;(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"})(UEt=xu.WireType||(xu.WireType={}))});var wv=y(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.varint32read=Co.varint32write=Co.int64toString=Co.int64fromString=Co.varint64write=Co.varint64read=void 0;function OEt(){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")}Co.varint64read=OEt;function HEt(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)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 o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}Co.varint64write=HEt;var Qv=65536*65536;function qEt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=Qv&&(s=s+(n/Qv|0),n=n%Qv)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Co.int64fromString=qEt;function GEt(t,e){if(e>>>0<=2097151)return""+(Qv*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}Co.int64toString=GEt;function YEt(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)}}Co.varint32write=YEt;function zEt(){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}Co.varint32read=zEt});var Mf=y(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.PbLong=Pf.PbULong=Pf.detectBi=void 0;var oN=wv(),kr;function Ibe(){let t=new DataView(new ArrayBuffer(8));kr=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}Pf.detectBi=Ibe;Ibe();function Bbe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var bbe=/^-?[0-9]+$/,xv=4294967296,Nv=2147483648,Sv=c Line truncated
`)}};Zv.RpcError=tW});var nW=y(eP=>{"use strict";Object.defineProperty(eP,"__esModule",{value:!0});eP.mergeRpcOptions=void 0;var $be=St();function hyt(t,e){if(!e)return t;let r={};$v(t,r),$v(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=$be.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=$be.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},$v(t.meta,r.meta),$v(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}eP.mergeRpcOptions=hyt;function $v(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}});var iW=y(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});dg.Deferred=dg.DeferredState=void 0;var Ru;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ru=dg.DeferredState||(dg.DeferredState={}));var sW=class{constructor(e=!0){this._state=Ru.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!==Ru.PENDING)throw new Error(`cannot resolve ${Ru[this.state].toLowerCase()}`);this._resolve(e),this._state=Ru.RESOLVED}reject(e){if(this.state!==Ru.PENDING)throw new Error(`cannot reject ${Ru[this.state].toLowerCase()}`);this._reject(e),this._state=Ru.REJECTED}resolvePending(e){this._state===Ru.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ru.PENDING&&this.reject(e)}};dg.Deferred=sW});var aW=y(tP=>{"use strict";Object.defineProperty(tP,"__esModule",{value:!0});tP.RpcOutputStreamController=void 0;var eQe=iW(),hg=St(),oW=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 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){hg.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){hg.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){hg.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(){hg.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;hg.assert(e,"bad state"),hg.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 eQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;hg.assert(n.state==eQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};tP.RpcOutputStreamController=oW});var AW=y(NC=>{"use strict";var fyt=NC&&NC.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(NC,"__esModule",{value:!0});NC.UnaryCall=void 0;var cW=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 fyt(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}})}};NC.UnaryCall=cW});var lW=y(xC=>{"use strict";var myt=xC&&xC.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(xC,"__esModule",{value:!0});xC.ServerStreamingCall=void 0;var uW=class{constructor(e 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 _Ie=C(vIe=>{"use strict";var wY=Yu().Buffer;vIe._dbcs=Vu;var es=-1,kIe=-2,ra=-10,Ps=-1e3,AE=new Array(256),Wb=-1;for(ok=0;ok<256;ok++)AE[ok]=es;var ok;function Vu(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]=AE.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(AE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(AE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Ps-o[n]],c=48;c<=57;c++){if(a[c]===es)a[c]=Ps-s;else if(a[c]>Ps)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Ps-a[c]],u=129;u<=254;u++){if(A[u]===es)A[u]=Ps-i;else{if(A[u]===Ps-i)continue;if(A[u]>Ps)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Ps-A[u]],d=48;d<=57;d++)l[d]===es&&(l[d]=kIe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function OIt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(wIt.has(s)){r=s;break}}return r}function HIt(t,e){let r=OIt(e);r!==""&&(t.referrerPolicy=r)}function GIt(){return"allowed"}function qIt(){return"success"}function YIt(){return"success"}function VIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function WIt(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&&YV(t.origin)&&!YV(Cg(t))&&(e=null);break;case"same-origin":rQ(t,Cg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function fE(t,e){return t}function JIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:fE(t.domainLookupStartTime,r),domainLookupEndTime:fE(t.domainLookupEndTime,r),connectionStartTime:fE(t.connectionStartTime,r),connectionEndTime:fE(t.connectionEndTime,r),secureConnectionStartTime:fE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function zIt(t){return fE(xIt.now(),t)}function jIt(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 Abe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function KIt(t){return{referrerPolicy:t.referrerPolicy}}function $It(t){let e=t.referrerPolicy;nQ(e);let r=null;if(t.referrer==="client"){let i=sbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Fd.is.URL(t.referrer)&&(r=t.referrer);let n=qV(r),s=qV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??qV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Cg(t);return Eg(n)&&!Eg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Cg(t);return rQ(n,i)?n:Eg(n)&&!Eg(i)?"no-referrer":s}case"same-origin":return rQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return rQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Cg(t);return Eg(n)&&!Eg(i)?"no-referrer":n}}}function qV(t,e=!1){return nQ(Fd.is.URL(t)),t=new URL(t),hbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var XIt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),ZIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function ube(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),ZIt(t)):XIt(t)}function eyt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||ube(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Eg(t){return Fd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:eyt(t.origin):!1}function tyt(t){}function rQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ryt(t){return t.controller.state==="aborted"}function nyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function syt(t){return DIt[t.toLowerCase()]??t}var iyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function lbe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,iyt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function oyt(t,e,r,n=0,s=1){let i=lbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Fd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Fd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ia(a=>ZV(a)&&a!==59,t,e);i=$V.decode(o)}return{name:n,value:i,extended:s}}function Ryt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Bi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ia(a=>a!==10&&a!==13&&a!==58,t,e);if(o=XV(o,!0,!0,a=>a===9||a===32),!Byt.test(o.toString()))throw Bi("header name does not match the field-name token production");if(t[e.position]!==58)throw Bi("expected :");switch(e.position++,ia(a=>a===32||a===9,t,e),yyt(o)){case"content-disposition":{r=n=null;let a=!1;if(ia(A=>ZV(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Bi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=xyt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Bi("name attribute is required in content-disposition header");break}case"content-type":{let a=ia(c=>c!==10&&c!==13,t,e);a=XV(a,!1,!0,c=>c===9||c===32),s=Cbe(a);break}case"content-transfer-encoding":{let a=ia(c=>c!==10&&c!==13,t,e);a=XV(a,!1,!0,c=>c===9||c===32),i=Cbe(a);break}default:ia(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Bi("expected CRLF");e.position+=2}}function ia(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function XV(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)}function Dyt(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}function Bi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function kyt(t){return t<=31||t===127}function vyt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function ZV(t){return t<=127&&t!==32&&t!==9&&!kyt(t)&&!vyt(t)}Ibe.exports={multipartFormDataParser:Tyt,validateBoundary:Nyt}});var sQ=C((zyr,Bbe)=>{"use strict";function _yt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Bbe.exports={createDeferredPromise:_yt}});var mE=C((jyr,Nbe)=>{"use strict";var r7=Ze(),{ReadableStreamFrom:Fyt,readableStreamClose:Myt,fullyReadBody:Lyt,extractMimeType:Uyt}=ro(),{FormData:bbe,setFormDataState:Pyt}=Dk(),{webidl:tc}=ts(),e7=Q("node:assert"),{isErrored:t7,isDisturbed:Oyt}=Q("node:stream"),{isUint8Array:Hyt}=Q("node:util/types"),{serializeAMimeType:Gyt}=sa(),{multipartFormDataParser:qyt}=ybe(),{createDeferredPromise:Yyt}=sQ(),{parseJSONFromBytes:Vyt}=zu(),{utf8DecodeBytes:Wyt}=wk(),{runtimeFeatures:Jyt}=ju(),zyt=Jyt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),kk=new TextEncoder;function jyt(){}var Kyt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Oyt(e)&&!t7(e)&&e.cancel("Response object has been garbage collected").catch(jyt)});function wbe(t,e=!1){let r=null,n=null;tc.is.ReadableStream(t)?r=t:tc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),e7(tc.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(tc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(tc.is.BufferSource(t))i=tc.util.getCopyOfBytesHeldByBufferSource(t);else if(tc.is.FormData(t)){let A=`----formdata-undici-0${`${zyt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=kk.encode(u+`; name="${l(d(m))}"\r
\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 Zxe=y(Xxe=>{"use strict";var VJ=_d().Buffer;Xxe._dbcs=Ud;var Vs=-1,Kxe=-2,hc=-10,Oi=-1e3,nI=new Array(256),rx=-1;for(wM=0;wM<256;wM++)nI[wM]=Vs;var wM;function Ud(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]=nI.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(nI.slice(0));var i=this.decodeTables.length;this.decodeTables.push(nI.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Oi-o[n]],c=48;c<=57;c++){if(a[c]===Vs)a[c]=Oi-s;else if(a[c]>Oi)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Oi-a[c]],u=129;u<=254;u++){if(A[u]===Vs)A[u]=Oi-i;else{if(A[u]===Oi-i)continue;if(A[u]>Oi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Oi-A[u]],d=48;d<=57;d++)l[d]===Vs&&(l[d]=Kxe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function I1t(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(o1t.has(s)){r=s;break}}return r}function B1t(t,e){let r=I1t(e);r!==""&&(t.referrerPolicy=r)}function b1t(){return"allowed"}function Q1t(){return"success"}function w1t(){return"success"}function N1t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function x1t(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&&hj(t.origin)&&!hj(Ug(t))&&(e=null);break;case"same-origin":dx(t,Ug(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function cI(t,e){return t}function S1t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:cI(t.domainLookupStartTime,r),domainLookupEndTime:cI(t.domainLookupEndTime,r),connectionStartTime:cI(t.connectionStartTime,r),connectionEndTime:cI(t.connectionEndTime,r),secureConnectionStartTime:cI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function T1t(t){return cI(u1t.now(),t)}function R1t(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 xTe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function D1t(t){return{referrerPolicy:t.referrerPolicy}}function k1t(t){let e=t.referrerPolicy;hx(e);let r=null;if(t.referrer==="client"){let i=BTe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else em.is.URL(t.referrer)&&(r=t.referrer);let n=dj(r),s=dj(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??dj(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Ug(t);return _g(n)&&!_g(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Ug(t);return dx(n,i)?n:_g(n)&&!_g(i)?"no-referrer":s}case"same-origin":return dx(t,n)?n:"no-referrer";case"origin-when-cross-origin":return dx(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Ug(t);return _g(n)&&!_g(i)?"no-referrer":n}}}function dj(t,e=!1){return hx(em.is.URL(t)),t=new URL(t),DTe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var v1t=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),P1t=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function STe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),P1t(t)):v1t(t)}function M1t(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||STe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function _g(t){return em.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:M1t(t.origin):!1}function F1t(t){}function dx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function L1t(t){return t.controller.state==="aborted"}function _1t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function U1t(t){return d1t[t.toLowerCase()]??t}var O1t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function TTe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,O1t),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function H1t(t,e,r,n=0,s=1){let i=TTe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return em.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return em.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=pc(a=>Bj(a)&&a!==59,t,e);i=Cj.decode(o)}return{name:n,value:i,extended:s}}function lTt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw So("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=pc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Ij(o,!0,!0,a=>a===9||a===32),!nTt.test(o.toString()))throw So("header name does not match the field-name token production");if(t[e.position]!==58)throw So("expected :");switch(e.position++,pc(a=>a===32||a===9,t,e),rTt(o)){case"content-disposition":{r=n=null;let a=!1;if(pc(A=>Bj(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw So("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=uTt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw So("name attribute is required in content-disposition header");break}case"content-type":{let a=pc(c=>c!==10&&c!==13,t,e);a=Ij(a,!1,!0,c=>c===9||c===32),s=LTe(a);break}case"content-transfer-encoding":{let a=pc(c=>c!==10&&c!==13,t,e);a=Ij(a,!1,!0,c=>c===9||c===32),i=LTe(a);break}default:pc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw So("expected CRLF");e.position+=2}}function pc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Ij(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)}function dTt(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}function So(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function hTt(t){return t<=31||t===127}function fTt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function Bj(t){return t<=127&&t!==32&&t!==9&&!hTt(t)&&!fTt(t)}_Te.exports={multipartFormDataParser:ATt,validateBoundary:cTt}});var fx=y((VPr,OTe)=>{"use strict";function mTt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}OTe.exports={createDeferredPromise:mTt}});var lI=y((jPr,zTe)=>{"use strict";var wj=ht(),{ReadableStreamFrom:pTt,readableStreamClose:gTt,fullyReadBody:ETt,extractMimeType:yTt}=Aa(),{FormData:HTe,setFormDataState:CTt}=KM(),{webidl:EA}=js(),bj=w("node:assert"),{isErrored:Qj,isDisturbed:ITt}=w("node:stream"),{isUint8Array:BTt}=w("node:util/types"),{serializeAMimeType:bTt}=mc(),{multipartFormDataParser:QTt}=UTe(),{createDeferredPromise:wTt}=fx(),{parseJSONFromBytes:NTt}=qd(),{utf8DecodeBytes:xTt}=YM(),{runtimeFeatures:STt}=Gd(),TTt=STt.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),XM=new TextEncoder;function RTt(){}var DTt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!ITt(e)&&!Qj(e)&&e.cancel("Response object has been garbage collected").catch(RTt)});function GTe(t,e=!1){let r=null,n=null;EA.is.ReadableStream(t)?r=t:EA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),bj(EA.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(EA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(EA.is.BufferSource(t))i=EA.util.getCopyOfBytesHeldByBufferSource(t);else if(EA.is.FormData(t)){let A=`----formdata-undici-0${`${TTt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=g=>g.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=g=>g.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let m=!1;for(let[g,C]of t)if(typeof C=="string"){let I=XM.encode(u+`; name="${l(d(g))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=kk.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(I),o+=I.byteLength}else{let I=XM.encode(`${u}; name="${l(d(g))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=kk.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(tc.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(r7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=tc.is.ReadableStream(t)?t:Fyt(t)}return(typeof i=="string"||Hyt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(t7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!t7(r)&&n.enqueue(typeof A=="string"?kk.encode(A):new Uint8Array(A));queueMicrotask(()=>Myt(n))})(),[{stream:r,source:i,length:o},a]}function $yt(t,e=!1){return tc.is.ReadableStream(t)&&(e7(!r7.isDisturbed(t),"The body has already been consumed."),e7(!t.locked,"The stream is locked.")),wbe(t,e)}function Xyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Zyt(t,e){return{blob(){return pE(this,n=>{let s=Qbe(e(this));return s===null?s="":s&&(s=Gyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return pE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return pE(this,Wyt,t,e)},json(){return pE(this,Vyt,t,e)},formData(){return pE(this,n=>{let s=Qbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=qyt(n,s),o=new bbe;return Pyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new bbe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return pE(this,n=>new Uint8Array(n),t,e)}}}function eBt(t,e){Object.assign(t.prototype,Zyt(t,e))}function pE(t,e,r,n){try{tc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Sbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Yyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(Lyt(t.body,o,i),s.promise)}function Sbe(t){let e=t.body;return e!=null&&(e.stream.locked||r7.isDisturbed(e.stream))}function Qbe(t){let e=t.headersList,r=Uyt(e);return r==="failure"?null:r}Nbe.exports={extractBody:wbe,safelyExtractBody:$yt,cloneBody:Xyt,mixinBody:eBt,streamRegistry:Kyt,bodyUnusable:Sbe}});var Gbe=C((Kyr,Hbe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:Tbe}=vd(),n7=LY(),{RequestContentLengthMismatchError:Ig,ResponseContentLengthMismatchError:xbe,RequestAbortedError:Lbe,InvalidArgumentError:tBt,HeadersTimeoutError:rBt,HeadersOverflowError:nBt,SocketError:yg,InformationalError:EE,BodyTimeoutError:sBt,HTTPParserError:iBt,ResponseExceededMaxSizeError:oBt}=$e(),{kUrl:Ube,kReset:bi,kClient:Lk,kParser:gr,kBlocking:aQ,kRunning:hn,kPending:u7,kSize:Rbe,kWriting:Md,kQueue:rc,kNoRef:iQ,kKeepAliveDefaultTimeout:aBt,kHostHeader:cBt,kPendingIdx:ABt,kRunningIdx:oa,kError:Os,kPipelining:Fk,kSocket:bg,kKeepAliveTimeoutValue:Uk,kMaxHeadersSize:uBt,kKeepAliveMaxTimeout:lBt,kKeepAliveTimeoutThreshold:dBt,kHeadersTimeout:hBt,kBodyTimeout:fBt,kStrictContentLength:o7,kMaxRequests:Dbe,kCounter:gBt,kMaxResponseSize:pBt,kOnError:kbe,kResume:$u,kHTTPContext:Pbe,kClosed:a7}=Kt(),no=NBe(),vbe=Buffer.alloc(0),vk=Buffer[Symbol.species],mBt=De.removeAllListeners,Qg=Symbol("kIdleSocketValidation"),Bg=Symbol("kIdleSocketValidationTimeout"),l7=Symbol("kSocketUsed"),s7;function EBt(){let t=process.env.JEST_WORKER_ID?RV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(RBe())}catch{}return e||(e=new WebAssembly.Module(t||RV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onStatus(new vk(gA.buffer,o,i))},wasm_on_message_begin:n=>(He(Wr.ptr===n),Wr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onHeaderField(new vk(gA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onHeaderValue(new vk(gA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(Wr.ptr===n),Wr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onBody(new vk(gA.buffer,o,i))},wasm_on_message_complete:n=>(He(Wr.ptr===n),Wr.onMessageComplete())}})}var i7=null,Wr=null,gA=null,_k=0,pA=null,CBt=0,oQ=1,CE=2|oQ,Mk=4|oQ,c7=8|CBt,A7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(no.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[uBt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[cBt],i?g+=`connection: upgrade\r
`);h.push(I,C,f),typeof C.size=="number"?o+=I.byteLength+C.size+f.byteLength:m=!0}let E=XM.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,m&&(o=null),i=t,s=async function*(){for(let g of h)g.stream?yield*g.stream():yield g},a=`multipart/form-data; boundary=${A}`}else if(EA.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(wj.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=EA.is.ReadableStream(t)?t:pTt(t)}return(typeof i=="string"||BTt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(Qj(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!Qj(r)&&n.enqueue(typeof A=="string"?XM.encode(A):new Uint8Array(A));queueMicrotask(()=>gTt(n))})(),[{stream:r,source:i,length:o},a]}function kTt(t,e=!1){return EA.is.ReadableStream(t)&&(bj(!wj.isDisturbed(t),"The body has already been consumed."),bj(!t.locked,"The stream is locked.")),GTe(t,e)}function vTt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function PTt(t,e){return{blob(){return uI(this,n=>{let s=qTe(e(this));return s===null?s="":s&&(s=bTt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return uI(this,n=>new Uint8Array(n).buffer,t,e)},text(){return uI(this,xTt,t,e)},json(){return uI(this,NTt,t,e)},formData(){return uI(this,n=>{let s=qTe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=QTt(n,s),o=new HTe;return CTt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new HTe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return uI(this,n=>new Uint8Array(n),t,e)}}}function MTt(t,e){Object.assign(t.prototype,PTt(t,e))}function uI(t,e,r,n){try{EA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),YTe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=wTt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(ETt(t.body,o,i),s.promise)}function YTe(t){let e=t.body;return e!=null&&(e.stream.locked||wj.isDisturbed(e.stream))}function qTe(t){let e=t.headersList,r=yTt(e);return r==="failure"?null:r}zTe.exports={extractBody:GTe,safelyExtractBody:kTt,cloneBody:vTt,mixinBody:MTt,streamRegistry:DTt,bodyUnusable:YTe}});var oRe=y((KPr,iRe)=>{"use strict";var $e=w("node:assert"),He=ht(),{channels:WTe}=Zf(),Nj=oV(),{RequestContentLengthMismatchError:Og,ResponseContentLengthMismatchError:JTe,RequestAbortedError:tRe,InvalidArgumentError:FTt,HeadersTimeoutError:LTt,HeadersOverflowError:_Tt,SocketError:Hg,InformationalError:dI,BodyTimeoutError:UTt,HTTPParserError:OTt,ResponseExceededMaxSizeError:HTt}=At(),{kUrl:rRe,kReset:To,kClient:rF,kParser:Gr,kBlocking:gx,kRunning:Vn,kPending:vj,kSize:VTe,kWriting:tm,kQueue:yA,kNoRef:mx,kKeepAliveDefaultTimeout:qTt,kHostHeader:GTt,kPendingIdx:YTt,kRunningIdx:gc,kError:Hi,kPipelining:eF,kSocket:qg,kKeepAliveTimeoutValue:nF,kMaxHeadersSize:zTt,kKeepAliveMaxTimeout:WTt,kKeepAliveTimeoutThreshold:JTt,kHeadersTimeout:VTt,kBodyTimeout:jTt,kStrictContentLength:Tj,kMaxRequests:jTe,kCounter:KTt,kMaxResponseSize:XTt,kOnError:KTe,kResume:zd,kHTTPContext:nRe,kClosed:Rj}=br(),ua=z1e(),XTe=Buffer.alloc(0),ZM=Buffer[Symbol.species],ZTt=He.removeAllListeners,Gg=Symbol("kIdleSocketValidation"),hI=Symbol("kIdleSocketValidationTimeout"),Pj=Symbol("kSocketUsed"),xj;function $Tt(){let t=process.env.JEST_WORKER_ID?$V():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(V1e())}catch{}return e||(e=new WebAssembly.Module(t||$V())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onStatus(new ZM(Ou.buffer,o,i))},wasm_on_message_begin:n=>($e(bn.ptr===n),bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onHeaderField(new ZM(Ou.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onHeaderValue(new ZM(Ou.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>($e(bn.ptr===n),bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onBody(new ZM(Ou.buffer,o,i))},wasm_on_message_complete:n=>($e(bn.ptr===n),bn.onMessageComplete())}})}var Sj=null,bn=null,Ou=null,$M=0,Hu=null,eRt=0,px=1,fI=2|px,tF=4|px,Dj=8|eRt,kj=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ua.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[zTt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?m+=`host: ${s}\r
`:m+=t[GTt],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Fk]&&!h[bi]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return Tbe.sendHeaders.hasSubscribers&&Tbe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Fbe(f,null,t,e,h,u,g,l):De.isBuffer(c)?Fbe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?Mbe(f,c.stream(),t,e,h,u,g,l):DBt(f,c,t,e,h,u,g,l):De.isStream(c)?RBt(f,c,t,e,h,u,g,l):De.isIterable(c)?Mbe(f,c,t,e,h,u,g,l):He(!1),!0}function RBt(t,e,r,n,s,i,o,a){He(i!==0||r[hn]===0,"stream body cannot be pipelined");let c=!1,A=new Pk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Lbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Md]&&r[hn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Fbe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[eF]&&!h[To]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let g=A[E+0],C=A[E+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)m+=`${g}: ${C[I]}\r
`;else m+=`${g}: ${C}\r
`}return WTe.sendHeaders.hasSubscribers&&WTe.sendHeaders.publish({request:e,headers:m,socket:h}),!c||d===0?$Te(f,null,t,e,h,u,m,l):He.isBuffer(c)?$Te(f,c,t,e,h,u,m,l):He.isBlobLike(c)?typeof c.stream=="function"?eRe(f,c.stream(),t,e,h,u,m,l):dRt(f,c,t,e,h,u,m,l):He.isStream(c)?lRt(f,c,t,e,h,u,m,l):He.isIterable(c)?eRe(f,c,t,e,h,u,m,l):$e(!1),!0}function lRt(t,e,r,n,s,i,o,a){$e(i!==0||r[Vn]===0,"stream body cannot be pipelined");let c=!1,A=new sF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(m){He.destroy(this,m)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new tRe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,$e(s.destroyed||s[tm]&&r[Vn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(m){f=m}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?He.destroy(e,f):He.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function $Te(t,e,r,n,s,i,o,a){try{e?He.isBuffer(e)&&($e(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[bi]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[To]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(He(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[$u]()}catch(c){t(c)}}async function DBt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ig;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):($e(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[zd]()}catch(c){t(c)}}async function dRt(t,e,r,n,s,i,o,a){$e(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Og;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[bi]=!0),r[$u]()}catch(c){t(c)}}async function Mbe(t,e,r,n,s,i,o,a){He(i!==0||r[hn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{He(c===null),s[Os]?h(s[Os]):c=d});s.on("close",A).on("drain",A);let l=new Pk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Os])throw s[Os];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Pk=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Md]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Os])throw r[Os];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[o7])throw new Ig;process.emitWarning(new Ig)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bi]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[To]=!0),r[zd]()}catch(c){t(c)}}async function eRe(t,e,r,n,s,i,o,a){$e(i!==0||r[Vn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{$e(c===null),s[Hi]?h(s[Hi]):c=d});s.on("close",A).on("drain",A);let l=new sF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Hi])throw s[Hi];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var sF=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[tm]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Hi])throw r[Hi];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[Tj])throw new Og;process.emitWarning(new Og)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[To]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[gr].timeout&&r[gr].timeoutType===CE&&r[gr].timeout.refresh&&r[gr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Md]=!1,e[Os])throw e[Os];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Gr].timeout&&r[Gr].timeoutType===fI&&r[Gr].timeout.refresh&&r[Gr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[tm]=!1,e[Hi])throw e[Hi];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[o7])throw new Ig;process.emitWarning(new Ig)}e[gr].timeout&&e[gr].timeoutType===CE&&e[gr].timeout.refresh&&e[gr].timeout.refresh(),n[$u]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Md]=!1,e&&(He(n[hn]<=1,"pipeline should only contain this request"),s(e))}};Hbe.exports=IBt});var $be=C(($yr,Kbe)=>{"use strict";var ca=Q("node:assert"),{pipeline:kBt}=Q("node:stream"),At=Ze(),{RequestContentLengthMismatchError:g7,RequestAbortedError:vBt,SocketError:lQ,InformationalError:Ld,InvalidArgumentError:_Bt}=$e(),{kUrl:uQ,kReset:qk,kClient:so,kRunning:dQ,kPending:FBt,kQueue:Ud,kPendingIdx:m7,kRunningIdx:nc,kError:io,kSocket:kr,kStrictContentLength:MBt,kOnError:IE,kMaxConcurrentStreams:Hk,kPingInterval:qbe,kHTTP2Session:Xu,kHTTP2InitialWindowSize:LBt,kHTTP2ConnectionWindowSize:UBt,kResume:mA,kSize:PBt,kHTTPContext:E7,kClosed:p7,kBodyTimeout:OBt,kEnableConnectProtocol:cQ,kRemoteSettings:AQ,kHTTP2Stream:Ok,kHTTP2SessionState:C7}=Kt(),{channels:Ybe}=vd(),aa=Symbol("open streams"),Vbe,Gk;try{Gk=Q("node:http2")}catch{Gk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:HBt,HTTP2_HEADER_METHOD:Wbe,HTTP2_HEADER_PATH:Jbe,HTTP2_HEADER_SCHEME:d7,HTTP2_HEADER_CONTENT_LENGTH:GBt,HTTP2_HEADER_EXPECT:qBt,HTTP2_HEADER_STATUS:h7,HTTP2_HEADER_PROTOCOL:YBt,NGHTTP2_REFUSED_STREAM:VBt,NGHTTP2_CANCEL:WBt}}=Gk;function f7(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}function JBt(t,e){t[kr]=e;let r=t[LBt],n=t[UBt],s=Gk.connect(t[uQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[Hk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[so]=t,s[kr]=e,s[C7]={ping:{interval:t[qbe]===0?null:setInterval($Bt,t[qbe],s).unref()}},s[cQ]=!1,s[AQ]=!1,n&&At.addListener(s,"connect",jBt.bind(s,n)),At.addListener(s,"error",XBt),At.addListener(s,"frameError",ZBt),At.addListener(s,"end",ebt),At.addListener(s,"goaway",tbt),At.addListener(s,"close",rbt),At.addListener(s,"remoteSettings",KBt),s.unref(),t[Xu]=s,e[Xu]=s,At.addListener(e,"error",sbt),At.addListener(e,"end",ibt),At.addListener(e,"close",nbt),e[p7]=!1,e.on("close",obt),{version:"h2",defaultPipelining:1/0,write(i){return cbt(t,i)},resume(){zBt(t)},destroy(i,o){e[p7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[dQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[AQ]===!1||At.bodyLength(i.body)!==0&&(At.isStream(i.body)||At.isAsyncIterable(i.body)||At.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[AQ]===!1;return!1}}}function zBt(t){let e=t[kr];e?.destroyed===!1&&(t[PBt]===0||t[Hk]===0?(e.unref(),t[Xu].unref()):(e.ref(),t[Xu].ref()))}function jBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function KBt(t){if(this[so][Hk]=t.maxConcurrentStreams??this[so][Hk],this[AQ]===!0&&this[cQ]===!0&&t.enableConnectProtocol===!1){let e=new Ld("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][io]=e,this[so][IE](e);return}this[cQ]=t.enableConnectProtocol??this[cQ],this[AQ]=!0,this[so][mA]()}function $Bt(t){let e=t[C7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[so],o=this[so];if(n!=null){let a=new Ld(`HTTP/2: "PING" errored - type ${n.message}`);o[io]=a,i[IE](a)}else i.emit("ping",s)}}function XBt(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][io]=t,this[so][IE](t)}function ZBt(t,e,r){if(r===0){let n=new Ld(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][io]=n,this[so][IE](n)}}function ebt(){let t=new lQ("other side closed",At.getSocketInfo(this[kr]));this.destroy(t),At.destroy(this[kr],t)}function tbt(t){let e=this[io]||new lQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[kr])),r=this[so];if(r[kr]=null,r[E7]=null,this.close(),this[Xu]=null,At.destroy(this[kr],e),r[nc]<r[Ud].length){let n=r[Ud][r[nc]];r[Ud][r[nc]++]=null,At.errorRequest(r,n,e),r[m7]=r[nc]}ca(r[dQ]===0),r.emit("disconnect",r[uQ],[r],e),r.emit("connectionError",r[uQ],[r],e),r[mA]()}function rbt(){let{[so]:t,[C7]:e}=this,{[kr]:r}=t,n=this[kr][io]||this[io]||new lQ("closed",At.getSocketInfo(r));if(t[kr]=null,t[E7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ca(t[FBt]===0);let s=t[Ud].splice(t[nc]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function nbt(){let t=this[io]||new lQ("closed",At.getSocketInfo(this)),e=this[Xu][so];e[kr]=null,e[E7]=null,this[Xu]!==null&&this[Xu].destroy(t),e[m7]=e[nc],ca(e[dQ]===0),e.emit("disconnect",e[uQ],[e],t),e[mA]()}function sbt(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io]=t,this[so][IE](t)}function ibt(){At.destroy(this,new lQ("other side closed",At.getSocketInfo(this)))}func Line truncated
`;Ybe.sendHeaders.publish({request:e,headers:k,socket:n[kr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[qBt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[Ok]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[Ok]=!0,V()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[h7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),f7(v),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Ud][t[nc]++]=null,t[mA]()):(m(new Ld("HTTP/2: stream half-closed (remote)")),t[Ud][t[nc]++]=null,t[m7]=t[nc],t[mA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Ld(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Ld(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?zbe(m,f,null,t,e,t[kr],y,I):At.isBuffer(d)?zbe(m,f,d,t,e,t[kr],y,I):At.isBlobLike(d)?typeof d.stream=="function"?jbe(m,f,d.stream(),t,e,t[kr],y,I):ubt(m,f,d,t,e,t[kr],y,I):At.isStream(d)?Abt(m,t[kr],I,f,d,t,e,y):At.isIterable(d)?jbe(m,f,d,t,e,t[kr],y,I):ca(!1)}}function zbe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(ca(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[qk]=!0),s.onRequestSent(),n[mA]()}catch(c){t(c)}}function Abt(t,e,r,n,s,i,o,a){ca(a!==0||i[dQ]===0,"stream body cannot be pipelined");let c=kBt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[qk]=!0),i[mA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function ubt(t,e,r,n,s,i,o,a){ca(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new g7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[qk]=!0),n[mA]()}catch(c){t(c)}}async function jbe(t,e,r,n,s,i,o,a){ca(o!==0||n[dQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ca(c===null),i[io]?d(i[io]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[io])throw i[io];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[qk]=!0),n[mA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Kbe.exports=JBt});var Gd=C((Xyr,iQe)=>{"use strict";var Zu=Q("node:assert"),tQe=Q("node:net"),hQ=Q("node:http"),wg=Ze(),{ClientStats:lbt}=dV(),{channels:yE}=vd(),dbt=gBe(),hbt=gg(),{InvalidArgumentError:pr,InformationalError:fbt,ClientDestroyedError:gbt}=$e(),pbt=pg(),{kUrl:EA,kServerName:Hd,kClient:mbt,kBusy:y7,kConnect:Ebt,kResuming:Sg,kRunning:mQ,kPending:EQ,kSize:fQ,kQueue:sc,kConnected:Cbt,kConnecting:BE,kNeedDrain:Od,kKeepAliveDefaultTimeout:Xbe,kHostHeader:Ibt,kPendingIdx:ic,kRunningIdx:tl,kError:ybt,kPipelining:Yk,kKeepAliveTimeoutValue:Bbt,kMaxHeadersSize:bbt,kKeepAliveMaxTimeout:Qbt,kKeepAliveTimeoutThreshold:wbt,kHeadersTimeout:Sbt,kBodyTimeout:Nbt,kStrictContentLength:Tbt,kConnector:gQ,kMaxRequests:B7,kCounter:xbt,kClose:Rbt,kDestroy:Dbt,kDispatch:kbt,kLocalAddress:pQ,kMaxResponseSize:vbt,kOnError:_bt,kHTTPContext:sn,kMaxConcurrentStreams:Fbt,kHTTP2InitialWindowSize:Mbt,kHTTP2ConnectionWindowSize:Lbt,kResume:el,kPingInterval:Ubt}=Kt(),Pbt=Gbe(),Obt=$be(),Pd=Symbol("kClosedResolve"),Hbt=hQ&&hQ.maxHeaderSize&&Number.isInteger(hQ.maxHeaderSize)&&hQ.maxHeaderSize>0?()=>hQ.maxHeaderSize:()=>{throw new pr("http module not available or http.maxHeaderSize invalid")},Zbe=()=>{};function rQe(t){return t[Yk]??t[sn]?.defaultPipelining??1}var b7=class extends hbt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:X,initialWindowSize:ee,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new pr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new pr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[Nbt]=a??3e5,this[Sbt]=n??3e5,this[Tbt]=m??!0,this[B7]=B,this[Pd]=null,this[vbt]=V>-1?V:-1,this[sn]=null,this[Fbt]=v??100,this[Mbt]=ee??262144,this[Lbt]=ce??524288,this[Ubt]=ue??6e4,this[sc]=[],this[tl]=0,this[ic]=0,this[el]=ke=>Q7(this,ke),this[_bt]=ke=>nQe(this,ke)}get pipelining(){return this[Yk]}set pipelining(e){this[Yk]=e,this[el](!0)}get stats(){return new lbt(this)}get[EQ](){return this[sc].length-this[ic]}get[mQ](){return this[ic]-this[tl]}get[fQ](){return this[sc].length-this[tl]}get[Cbt](){return!!this[sn]&&!this[BE]&&!this[sn].destroyed}get[y7](){return!!(this[sn]?.busy(null)||this[fQ]>=(rQe(this)||1)||this[EQ]>0)}[Ebt](e){sQe(this),this.once("connect",e)}[kbt](e,r){let n=new dbt(this[EA].origin,e,r);return this[sc].push(n),this[Sg]||(wg.bodyLength(n.body)==null&&wg.isIterable(n.body)?(this[Sg]=1,queueMicrotask(()=>Q7(this))):this[el](!0)),this[Sg]&&this[Od]!==2&&this[y7]&&(this[Od]=2),this[Od]<2}[Rbt](){return new Promise(e=>{this[fQ]?this[Pd]=e:e(null)})}[Dbt](e){return new Promise(r=>{let n=this[sc].splice(this[ic]);for(let i=0;i<n.length;i++){let o=n[i];wg.errorRequest(this,o,e)}let s=()=>{this[Pd]&&(this[Pd](),this[Pd]=null),r(null)};this[sn]?(this[sn].destroy(e,s),this[sn]=null):queueMicrotask(s),this[el]()})}};function nQe(t,e){if(t[mQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Zu(t[ic]===t[tl]);let r=t[sc].splice(t[tl]);for(let n=0;n<r.length;n++){let s=r[n];wg.errorRequest(t,s,e)}Zu(t[fQ]===0)}}function sQe(t){Zu(!t[BE]),Zu(!t[sn]);let{host:e,hostname:r,protocol:n,port:s}=t[EA];if(r[0]==="["){let i=r.indexOf("]");Zu(i!==-1);let o=r.substring(1,i);Zu(tQe.isIPv6(o)),r=o}t[BE]=!0,yE.beforeConnect.hasSubscribers&&yE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[sn]?.version,servername:t[Hd],localAddress:t[pQ]},connector:t[gQ]});try{t[gQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Hd],localAddress:t[pQ]},(i,o)=>{if(i){I7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[el]();return}if(t.destroyed){wg.destroy(o.on("error",Zbe),new gbt),t[el]();return}Zu(o);try{t[sn]=o.alpnProtocol==="h2"?Obt(t,o):Pbt(t,o)}catch(a){o.destroy().on("error",Zbe),I7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[el]();return}t[BE]=!1,o[xbt]=0,o[B7]=t[B7],o[mbt]=t,o[ybt]=null,yE.connected.hasSubscribers&&yE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[sn]?.version,servername:t[Hd],localAddress:t[pQ]},connector:t[gQ],socket:o}),t.emit("connect",t[EA],[t]),t[el]()})}catch(i){I7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[el]()}}function I7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[BE]=!1,yE.connectError.hasSubscribers&&yE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[sn]?.version,servername:t[Hd],localAddress:t[pQ]},connector:t[gQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Zu(t[mQ]===0);t[EQ]>0&&t[sc][t[ic]].servername===t[Hd];){let o=t[sc][t[ic]++];wg.errorRequest(t,o,e)}else nQe(t,e);t.emit("connectionError",t[EA],[t],e)}}function eQe(t){t[Od]=0,t.emit("drain",t[EA],[t])}function Q7(t,e){t[Sg]!==2&&(t[Sg]=2,Gbt(t,e),t[Sg]=0,t[tl]>256&&(t[sc].splice(0,t[tl]),t[ic]-=t[tl],t[tl]=0))}function Gbt(t,e){for(;;){if(t.destroyed){Zu(t[EQ]===0);return}if(t[Pd]&&!t[fQ]){t[Pd](),t[Pd]=null;return}if(t[sn]&&t[sn].resume(),t[y7])t[Od]=2;else if(t[Od]===2){e?(t[Od]=1,queueMicrotask(()=>eQe(t))):eQe(t);continue}if(t[EQ]===0||t[mQ]>=(rQe(t)||1))return;let r=t[sc][t[ic]];if(r===null)return;if(t[EA].protocol==="https:"&&t[Hd]!==r.servername){if(t[mQ]>0)return;t[Hd]=r.servername,t[sn]?.destroy(new fbt("servername changed"),()=>{t[sn]=null,Q7(t)})}if(t[BE])return;if(!t[sn]){sQe(t);return}if(t[sn].destroyed||t[sn].busy(r))return;!r.aborted&&t[sn].write(r)?t[ic]++:t[sc].splice(t[ic],1)}}iQe.exports=b7});var w7=C((eBr,oQe)=>{"use strict";var Vk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};oQe.exports=class{constructor(){this.head=this.tail=new Vk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Vk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var Wk=C((tBr,gQe)=>{"use strict";var{PoolStats:qbt}=dV(),Ybt=gg(),Vbt=w7(),{kConnected:S7,kSize:aQe,kRunning:cQe,kPending:AQe,kQueued:CQ,kBusy:Wbt,kFree:Jbt,kUrl:zbt,kClose:jbt,kDestroy:Kbt,kDispatch:$bt}=Kt(),Vn=Symbol("clients"),Hs=Symbol("needDrain"),IQ=Symbol("queue"),N7=Symbol("closed resolve"),T7=Symbol("onDrain"),uQe=Symbol("onConnect"),lQe=Symbol("onDisconnect"),dQe=Symbol("onConnectionError"),x7=Symbol("get dispatcher"),hQe=Symbol("add client"),fQe=Symbol("remove client"),R7=class extends Ybt{[IQ]=new Vbt;[CQ]=0;[Vn] Line truncated
`,"latin1"),r!==null&&s!==r){if(n[Tj])throw new Og;process.emitWarning(new Og)}e[Gr].timeout&&e[Gr].timeoutType===fI&&e[Gr].timeout.refresh&&e[Gr].timeout.refresh(),n[zd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[tm]=!1,e&&($e(n[Vn]<=1,"pipeline should only contain this request"),s(e))}};iRe.exports=tRt});var mRe=y((XPr,fRe)=>{"use strict";var yc=w("node:assert"),{pipeline:hRt}=w("node:stream"),Tt=ht(),{RequestContentLengthMismatchError:_j,RequestAbortedError:fRt,SocketError:bx,InformationalError:rm,InvalidArgumentError:mRt,HeadersTimeoutError:pRt,BodyTimeoutError:gRt}=At(),{kUrl:Bx,kReset:aF,kClient:la,kRunning:Qx,kPending:ERt,kQueue:yx,kPendingIdx:Yg,kRunningIdx:qu,kError:da,kSocket:cn,kStrictContentLength:yRt,kOnError:mI,kMaxConcurrentStreams:Uj,kPingInterval:aRe,kHTTP2Session:Wd,kHTTP2InitialWindowSize:CRt,kHTTP2ConnectionWindowSize:IRt,kResume:Gu,kSize:BRt,kHTTPContext:Hj,kClosed:Oj,kBodyTimeout:bRt,kHeadersTimeout:QRt,kEnableConnectProtocol:Cx,kRemoteSettings:Ix,kHTTP2Stream:iF,kHTTP2SessionState:qj}=br(),{channels:cRe}=Zf(),Ec=Symbol("open streams"),ARe,oF;try{oF=w("node:http2")}catch{oF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:wRt,HTTP2_HEADER_METHOD:uRe,HTTP2_HEADER_PATH:lRe,HTTP2_HEADER_SCHEME:Mj,HTTP2_HEADER_CONTENT_LENGTH:NRt,HTTP2_HEADER_EXPECT:xRt,HTTP2_HEADER_STATUS:Fj,HTTP2_HEADER_PROTOCOL:SRt,NGHTTP2_REFUSED_STREAM:TRt,NGHTTP2_CANCEL:RRt}}=oF;function Lj(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}function DRt(t,e){t[cn]=e;let r=t[CRt],n=t[IRt],s=oF.connect(t[Bx],{createConnection:()=>e,peerMaxConcurrentStreams:t[Uj],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[cn]=e,s[Ec]=0,s[la]=t,s[cn]=e,s[qj]={ping:{interval:t[aRe]===0?null:setInterval(MRt,t[aRe],s).unref()}},s[Cx]=!1,s[Ix]=!1,n&&Tt.addListener(s,"connect",vRt.bind(s,n)),Tt.addListener(s,"error",FRt),Tt.addListener(s,"frameError",LRt),Tt.addListener(s,"end",_Rt),Tt.addListener(s,"goaway",URt),Tt.addListener(s,"close",ORt),Tt.addListener(s,"remoteSettings",PRt),s.unref(),t[Wd]=s,e[Wd]=s,Tt.addListener(e,"error",qRt),Tt.addListener(e,"end",GRt),Tt.addListener(e,"close",HRt),e[Oj]=!1,e.on("close",YRt),{version:"h2",defaultPipelining:1/0,write(i){return WRt(t,i)},resume(){kRt(t)},destroy(i,o){e[Oj]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Qx]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ix]===!1||Tt.bodyLength(i.body)!==0&&(Tt.isStream(i.body)||Tt.isAsyncIterable(i.body)||Tt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ix]===!1;return!1}}}function kRt(t){let e=t[cn];e?.destroyed===!1&&(t[BRt]===0?(e.unref(),t[Wd].unref()):(e.ref(),t[Wd].ref()))}function vRt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function PRt(t){if(this[la][Uj]=t.maxConcurrentStreams??this[la][Uj],this[Ix]===!0&&this[Cx]===!0&&t.enableConnectProtocol===!1){let e=new rm("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[cn][da]=e,this[la][mI](e);return}this[Cx]=t.enableConnectProtocol??this[Cx],this[Ix]=!0,this[la][Gu]()}function MRt(t){let e=t[qj];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[la],o=this[la];if(n!=null){let a=new rm(`HTTP/2: "PING" errored - type ${n.message}`);o[da]=a,i[mI](a)}else i.emit("ping",s)}}function FRt(t){yc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn][da]=t,this[la][mI](t)}function LRt(t,e,r){if(r===0){let n=new rm(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[cn][da]=n,this[la][mI](n)}}function _Rt(){let t=new bx("other side closed",Tt.getSocketInfo(this[cn]));this.destroy(t),Tt.destroy(this[cn],t)}function Ex(t,e,r=!1){let n=t[yx],s=t[qu];if(s<t[Yg]&&n[s]===e){n[s]=null,t[qu]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[Yg]||(n.splice(i,1),t[Yg]--,r&&t[Yg]<t[qu]&&(t[Yg]=t[qu]))}function URt(t){let e=this[da]||new bx(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this[cn])),r=this[la];if(r[cn]=null,r[Hj]=null,this.close(),this[Wd]=null,Tt.destroy(this[cn],e),r[qu]<r[yx].length){let n=r[yx][r[qu]];r[yx][r[qu]++]=null,n!=null&&Tt.errorRequest(r,n,e),r[Yg]=r[qu]}yc(r[Qx]===0),r.emit("disconnect",r[Bx],[r],e),r.emit("connectionError",r[Bx],[r],e),r[Gu]()}function ORt(){let{[la]:t,[qj]:e}=this,{[cn]:r}=t,n=this[cn][da]||this[da]||new bx("closed",Tt.getSocketInfo(r));if(t[cn]=null,t[Hj]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){yc(t[ERt]===0);let s=t[yx].splice(t[qu]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&Tt.errorRequest(t,o,n)}}}function HRt(){let t=this[da]||new bx("closed",Tt.getSocketInfo(this)),e=this[Wd][la];e[cn]=null,e[Hj]=null,this[Wd]!==null&&this[ Line truncated
`;cRe.sendHeaders.publish({request:e,headers:H,socket:s[cn]})}let M=i==="GET"||i==="HEAD"||h===null;A?(f[xRt]="100-continue",m=s.request(f,{endStream:M,signal:u}),m[iF]=!0,m.once("continue",F)):(m=s.request(f,{endStream:M,signal:u}),m[iF]=!0,F()),++s[Ec],m.setTimeout(r);let W=!1;return m.once("response",H=>{let{[Fj]:k,...j}=H;if(e.onResponseStarted(),W=!0,m.setTimeout(n),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(k),Lj(j),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",$=>{e.aborted||e.completed||e.onData($)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),W?(!e.aborted&&!e.completed&&e.onComplete({}),Ex(t,e),t[Gu]()):(C(new rm("HTTP/2: stream half-closed (remote)")),Ex(t,e,!0),t[Gu]())}),m.once("close",()=>{m.removeAllListeners("data"),s[Ec]-=1,s[Ec]===0&&s.unref(),!e.aborted&&!e.completed&&C(new rm("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(H){m.removeAllListeners("data"),C(H)}),m.once("frameError",(H,k)=>{m.removeAllListeners("data"),C(new rm(`HTTP/2: "frameError" received - type ${H}, code ${k}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let H=W?new gRt(`HTTP/2: "body timeout after ${n}"`):new pRt(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),s[Ec]-=1,s[Ec]===0&&s.unref(),C(H)}),m.once("trailers",H=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(H))}),!0;function F(){!h||B===0?dRe(C,m,null,t,e,t[cn],B,I):Tt.isBuffer(h)?dRe(C,m,h,t,e,t[cn],B,I):Tt.isBlobLike(h)?typeof h.stream=="function"?hRe(C,m,h.stream(),t,e,t[cn],B,I):VRt(C,m,h,t,e,t[cn],B,I):Tt.isStream(h)?JRt(C,t[cn],I,m,h,t,e,B):Tt.isIterable(h)?hRe(C,m,h,t,e,t[cn],B,I):yc(!1)}}function dRe(t,e,r,n,s,i,o,a){try{r!=null&&Tt.isBuffer(r)&&(yc(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[aF]=!0),s.onRequestSent(),n[Gu]()}catch(c){t(c)}}function JRt(t,e,r,n,s,i,o,a){yc(a!==0||i[Qx]===0,"stream body cannot be pipelined");let c=hRt(s,n,u=>{u?(Tt.destroy(c,u),t(u)):(Tt.removeAllListeners(c),o.onRequestSent(),r||(e[aF]=!0),i[Gu]())});Tt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function VRt(t,e,r,n,s,i,o,a){yc(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new _j;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[aF]=!0),n[Gu]()}catch(c){t(c)}}async function hRe(t,e,r,n,s,i,o,a){yc(o!==0||n[Qx]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{yc(c===null),i[da]?d(i[da]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[da])throw i[da];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[aF]=!0),n[Gu]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}fRe.exports=DRt});var om=y((ZPr,bRe)=>{"use strict";var Jd=w("node:assert"),yRe=w("node:net"),wx=w("node:http"),zg=ht(),{ClientStats:jRt}=MV(),{channels:pI}=Zf(),KRt=v1e(),XRt=Mg(),{InvalidArgumentError:Yr,InformationalError:ZRt,ClientDestroyedError:$Rt}=At(),eDt=Fg(),{kUrl:Yu,kServerName:im,kClient:tDt,kBusy:Yj,kConnect:rDt,kResuming:Wg,kRunning:Tx,kPending:Rx,kSize:Nx,kQueue:CA,kConnected:nDt,kConnecting:gI,kNeedDrain:sm,kKeepAliveDefaultTimeout:pRe,kHostHeader:sDt,kPendingIdx:IA,kRunningIdx:jd,kError:iDt,kPipelining:cF,kKeepAliveTimeoutValue:oDt,kMaxHeadersSize:aDt,kKeepAliveMaxTimeout:cDt,kKeepAliveTimeoutThreshold:ADt,kHeadersTimeout:uDt,kBodyTimeout:lDt,kStrictContentLength:dDt,kConnector:xx,kMaxRequests:zj,kCounter:hDt,kClose:fDt,kDestroy:mDt,kDispatch:pDt,kLocalAddress:Sx,kMaxResponseSize:gDt,kOnError:EDt,kHTTPContext:Un,kMaxConcurrentStreams:yDt,kHTTP2InitialWindowSize:CDt,kHTTP2ConnectionWindowSize:IDt,kResume:Vd,kPingInterval:BDt}=br(),bDt=oRe(),QDt=mRe(),nm=Symbol("kClosedResolve"),wDt=wx&&wx.maxHeaderSize&&Number.isInteger(wx.maxHeaderSize)&&wx.maxHeaderSize>0?()=>wx.maxHeaderSize:()=>{throw new Yr("http module not available or http.maxHeaderSize invalid")},gRe=()=>{};function CRe(t){return t[cF]??t[Un]?.defaultPipelining??1}var Wj=class extends XRt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:m,tls:E,strictContentLength:g,maxCachedSessions:C,connect:I,maxRequestsPerClient:B,localAddress:M,maxResponseSize:W,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:k,allowH2:j,useH2c:$,initialWindowSize:re,connectionWindowSize:le,pingInterval:fe,webSocket:Ve}={}){if(A!==void 0)throw new Yr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Yr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Yr("unsupported requestTimeout, use headersTimeout & Line truncated
`,this[lDt]=a??3e5,this[uDt]=n??3e5,this[dDt]=g??!0,this[zj]=B,this[nm]=null,this[gDt]=W>-1?W:-1,this[Un]=null,this[yDt]=k??100,this[CDt]=re??262144,this[IDt]=le??524288,this[BDt]=fe??6e4,this[CA]=[],this[jd]=0,this[IA]=0,this[Vd]=ze=>Jj(this,ze),this[EDt]=ze=>IRe(this,ze)}get pipelining(){return this[cF]}set pipelining(e){this[cF]=e,this[Vd](!0)}get stats(){return new jRt(this)}get[Rx](){return this[CA].length-this[IA]}get[Tx](){return this[IA]-this[jd]}get[Nx](){return this[CA].length-this[jd]}get[nDt](){return!!this[Un]&&!this[gI]&&!this[Un].destroyed}get[Yj](){return!!(this[Un]?.busy(null)||this[Nx]>=(CRe(this)||1)||this[Rx]>0)}[rDt](e){BRe(this),this.once("connect",e)}[pDt](e,r){let n=new KRt(this[Yu].origin,e,r);return this[CA].push(n),this[Wg]||(zg.bodyLength(n.body)==null&&zg.isIterable(n.body)?(this[Wg]=1,queueMicrotask(()=>Jj(this))):this[Vd](!0)),this[Wg]&&this[sm]!==2&&this[Yj]&&(this[sm]=2),this[sm]<2}[fDt](){return new Promise(e=>{this[Nx]?this[nm]=e:e(null)})}[mDt](e){return new Promise(r=>{let n=this[CA].splice(this[IA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&zg.errorRequest(this,o,e)}let s=()=>{this[nm]&&(this[nm](),this[nm]=null),r(null)};this[Un]?(this[Un].destroy(e,s),this[Un]=null):queueMicrotask(s),this[Vd]()})}};function IRe(t,e){if(t[Tx]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Jd(t[IA]===t[jd]);let r=t[CA].splice(t[jd]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&zg.errorRequest(t,s,e)}Jd(t[Nx]===0)}}function BRe(t){Jd(!t[gI]),Jd(!t[Un]);let{host:e,hostname:r,protocol:n,port:s}=t[Yu];if(r[0]==="["){let i=r.indexOf("]");Jd(i!==-1);let o=r.substring(1,i);Jd(yRe.isIPv6(o)),r=o}t[gI]=!0,pI.beforeConnect.hasSubscribers&&pI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Un]?.version,servername:t[im],localAddress:t[Sx]},connector:t[xx]});try{t[xx]({host:e,hostname:r,protocol:n,port:s,servername:t[im],localAddress:t[Sx]},(i,o)=>{if(i){Gj(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Vd]();return}if(t.destroyed){zg.destroy(o.on("error",gRe),new $Rt),t[Vd]();return}Jd(o);try{t[Un]=o.alpnProtocol==="h2"?QDt(t,o):bDt(t,o)}catch(a){o.destroy().on("error",gRe),Gj(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Vd]();return}t[gI]=!1,o[hDt]=0,o[zj]=t[zj],o[tDt]=t,o[iDt]=null,pI.connected.hasSubscribers&&pI.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Un]?.version,servername:t[im],localAddress:t[Sx]},connector:t[xx],socket:o}),t.emit("connect",t[Yu],[t]),t[Vd]()})}catch(i){Gj(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Vd]()}}function Gj(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[gI]=!1,pI.connectError.hasSubscribers&&pI.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[Un]?.version,servername:t[im],localAddress:t[Sx]},connector:t[xx],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Jd(t[Tx]===0);t[Rx]>0&&t[CA][t[IA]].servername===t[im];){let o=t[CA][t[IA]++];zg.errorRequest(t,o,e)}else IRe(t,e);t.emit("connectionError",t[Yu],[t],e)}}function ERe(t){t[sm]=0,t.emit("drain",t[Yu],[t])}function Jj(t,e){t[Wg]!==2&&(t[Wg]=2,NDt(t,e),t[Wg]=0,t[jd]>256&&(t[CA].splice(0,t[jd]),t[IA]-=t[jd],t[jd]=0))}function NDt(t,e){for(;;){if(t.destroyed){Jd(t[Rx]===0);return}if(t[nm]&&!t[Nx]){t[nm](),t[nm]=null;return}if(t[Un]&&t[Un].resume(),t[Yj])t[sm]=2;else if(t[sm]===2){e?(t[sm]=1,queueMicrotask(()=>ERe(t))):ERe(t);continue}if(t[Rx]===0||t[Tx]>=(CRe(t)||1))return;let r=t[CA][t[IA]];if(r===null)return;if(t[Yu].protocol==="https:"&&t[im]!==r.servername){if(t[Tx]>0)return;t[im]=r.servername,t[Un]?.destroy(new ZRt("servername changed"),()=>{t[Un]=null,Jj(t)})}if(t[gI])return;if(!t[Un]){BRe(t);return}if(t[Un].destroyed||t[Un].busy(r))return;!r.aborted&&t[Un].write(r)?t[IA]++:t[CA].splice(t[IA],1)}}bRe.exports=Wj});var Vj=y((eMr,QRe)=>{"use strict";var AF=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};QRe.exports=class{constructor(){this.head=this.tail=new AF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new AF),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var uF=y((tMr,vRe)=>{"use strict";var{PoolStats:xDt}=MV(),SDt=Mg(),TDt=Vj(),{kConnected:jj,kSize:wRe,kRunning:NRe,kPending:xRe,kQueued:Dx,kBusy:RDt,kFree:DDt,kUrl:kDt,kClose:vDt,kDestroy:PDt,kDispatch:MDt}=br(),ks=Symbol("clients"),qi=Symbol("needDrain"),kx=Symbol("queue"),Kj=Symbol("closed resolve"),Xj=Symbol("onDrain"),SRe=Symbol("onConnect"),TRe=Symbol("onDisconnect"),RRe=Symbol("onConnectionError"),Zj=Symbol("get dispatcher"),DRe=Symbol("add client"),kRe=Symbol("remove client"),$j=class extends SDt{[kx]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};O1e.exports=zW});var KW=C((kBr,Y1e)=>{"use strict";var{InvalidArgumentError:J1t}=$e(),{runtimeFeatures:z1t}=ju();function j1t(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var H1e=z1t.has("crypto")?Q("node:crypto"):null,K1t=H1e?.hash?t=>H1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function q1e(t){return Array.isArray(t)&&(t.length&1)===0}function $1t(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function X1t(t){let e={};if(!t)return e;if(q1e(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var G1e=["record","playback","update"];function Z1t(t){if(!G1e.includes(t))throw new J1t(`Invalid snapshot mode: ${t}. Must be one of: ${G1e.join(", ")}`)}Y1e.exports={createHeaderFilters:j1t,hashId:K1t,isUndiciHeaders:q1e,normalizeHeaders:X1t,isUrlExcludedFactory:$1t,validateSnapshotMode:Z1t}});var Z1e=C((vBr,X1e)=>{"use strict";var{writeFile:eSt,readFile:tSt,mkdir:rSt}=Q("node:fs/promises"),{dirname:nSt,resolve:V1e}=Q("node:path"),{setTimeout:sSt,clearTimeout:W1e}=Q("node:timers"),{InvalidArgumentError:J1e,UndiciError:iSt}=$e(),{hashId:oSt,isUrlExcludedFactory:aSt,normalizeHeaders:z1e,createHeaderFilters:j1e}=KW();function kQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||z1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:K1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function K1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function $1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function vQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return oSt(r)}var $W=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#c=j1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=aSt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=kQ(e,this.#c,this.matchOptions),s=vQ(n),i=z1e(r.headers),o={statusCode:r.statusCode,headers:$1e(i,this.#c,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=kQ(e,this.#c,this.matchOptions),n=vQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new J1e("Snapshot path is required");try{let n=await tSt(V1e(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new iSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new J1e("Snapshot path is required");let n=V1e(r);await rSt(nSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await eSt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};ske.exports=gX});var yX=y((kMr,cke)=>{"use strict";var{InvalidArgumentError:Dvt}=At(),{runtimeFeatures:kvt}=Gd();function vvt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var ike=kvt.has("crypto")?w("node:crypto"):null,Pvt=ike?.hash?t=>ike.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function ake(t){return Array.isArray(t)&&(t.length&1)===0}function Mvt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function Fvt(t){let e={};if(!t)return e;if(ake(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var oke=["record","playback","update"];function Lvt(t){if(!oke.includes(t))throw new Dvt(`Invalid snapshot mode: ${t}. Must be one of: ${oke.join(", ")}`)}cke.exports={createHeaderFilters:vvt,hashId:Pvt,isUndiciHeaders:ake,normalizeHeaders:Fvt,isUrlExcludedFactory:Mvt,validateSnapshotMode:Lvt}});var gke=y((vMr,pke)=>{"use strict";var{writeFile:_vt,readFile:Uvt,mkdir:Ovt}=w("node:fs/promises"),{dirname:Hvt,resolve:Ake}=w("node:path"),{setTimeout:qvt,clearTimeout:uke}=w("node:timers"),{InvalidArgumentError:lke,UndiciError:Gvt}=At(),{hashId:Yvt,isUrlExcludedFactory:zvt,normalizeHeaders:dke,createHeaderFilters:hke}=yX();function zx(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||dke(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:fke(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function fke(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function mke(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function Wx(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Yvt(r)}var CX=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=hke(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=zvt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=zx(e,this.#a,this.matchOptions),s=Wx(n),i=dke(r.headers),o={statusCode:r.statusCode,headers:mke(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=zx(e,this.#a,this.matchOptions),n=Wx(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new lke("Snapshot path is required");try{let n=await Uvt(Ake(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new Gvt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new lke("Snapshot path is required");let n=Ake(r);await Ovt(Hvt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await _vt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ao} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${fa} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +132,8 @@ ${e.format(r)}`.trim())}};O1e.exports=zW});var KW=C((kBr,Y1e)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_getValuesQuery ON cacheInterceptorV${ao}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_deleteByUrlQuery ON cacheInterceptorV${ao}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${fa}_getValuesQuery ON cacheInterceptorV${fa}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${fa}_deleteByUrlQuery ON cacheInterceptorV${fa}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +147,14 @@ ${e.format(r)}`.trim())}};O1e.exports=zW});var KW=C((kBr,Y1e)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${ao}
FROM cacheInterceptorV${fa}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${ao} SET
UPDATE cacheInterceptorV${fa} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -168,7 +167,7 @@ ${e.format(r)}`.trim())}};O1e.exports=zW});var KW=C((kBr,Y1e)=>{"use strict";var
WHERE
id = ?
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ao} (
INSERT INTO cacheInterceptorV${fa} (
url,
method,
body,
@@ -182,125 +181,137 @@ ${e.format(r)}`.trim())}};O1e.exports=zW});var KW=C((kBr,Y1e)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE url = ?`),this.#a=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#c=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ao}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${fa} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${fa}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${fa} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${fa}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${ao}
FROM cacheInterceptorV${fa}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){wJ(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){wJ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){wJ(e),uTt(r);let n=0,s=[],i=this;return new ATt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#c.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#a.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!lTt(s[l],u[l])){A=!1;break}}if(A)return c}}};function lTt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var qg=C((tbr,yNe)=>{"use strict";var{kConstruct:dTt}=Kt(),{kEnumerableProperty:OE}=Ze(),{iteratorMixin:hTt,isValidHeaderName:OQ,isValidHeaderValue:pNe}=ro(),{webidl:wt}=ts(),NJ=Q("node:assert"),bv=Q("node:util");function gNe(t){return t===10||t===13||t===9||t===32}function mNe(t){let e=0,r=t.length;for(;r>e&&gNe(t.charCodeAt(r-1));)--r;for(;r>e&&gNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function ENe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});TJ(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)TJ(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function TJ(t,e,r){if(r=mNe(r),OQ(e)){if(!pNe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(INe(t)==="immutable")throw new TypeError("immutable");return wv(t).append(e,r,!1)}function fTt(t){let e=wv(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function CNe(t,e){return t[0]<e[0]?-1:1}var Qv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":Sxe(i)&&(r[s]=i);break;case"id":Nxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Sxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Nxe(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}}};Txe.exports={EventSourceStream:fz}});var Lxe=C((Sbr,Mxe)=>{"use strict";var{pipeline:R2t}=Q("node:stream"),{fetching:D2t}=VQ(),{makeRequest:k2t}=GE(),{webidl:qs}=ts(),{EventSourceStream:v2t}=xxe(),{parseMIMEType:_2t}=sa(),{createFastMessageEvent:F2t}=Kv(),{isNetworkError:Rxe}=GQ(),{kEnumerableProperty:$g}=Ze(),{environmentSettingsObject:Dxe}=ro(),kxe=!1,vxe=3e3,XQ=0,_xe=1,ZQ=2,M2t="anonymous",L2t="use-credentials",XE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=XQ;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),qs.util.markAsUncloneable(this);let n="EventSource constructor";qs.argumentLengthCheck(arguments,1,n),kxe||(kxe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=qs.converters.USVString(e),r=qs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=Dxe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=M2t;r.withCredentials===!0&&(o=L2t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Dxe.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=k2t(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===ZQ)return;this.#r=XQ;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!Rxe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Rxe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?_2t(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=_xe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new v2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(F2t(c.type,c.options))}});R2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=D2t(e)}#A(){this.#r!==ZQ&&(this.#r=XQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===XQ&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){qs.brandCheck(this,t),this.#r!==ZQ&&(this.#r=ZQ,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Fxe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:XQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:_xe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ZQ,writable:!1}};Object.defineProperties(XE,Fxe);Object.defineProperties(XE.prototype,Fxe);Object.defineProperties(XE.prototype,{close:$g,onerror:$g,onmessage:$g,onopen:$g,readyState:$g,url:$g,withCredentials:$g});qs.converters.EventSourceInitDict=qs.dictionaryConverter([{key:"withCredentials",converter:qs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:qs.converters.any},{key:"node",converter:qs.dictionaryConverter([{key:"reconnectionTime",converter:qs.converters["unsigned long"],defaultValue:()=>vxe},{key:"dispatcher",converter:qs.converters.any}]),defaultValue:()=>({})}]);Mxe.exports={EventSource:XE,defaultReconnectionTime:vxe}});var qxe=C((Nbr,ge)=>{"use strict";var U2t=Gd(),Pxe=$b(),P2t=Ng(),O2t=bQe(),H2t=NQe(),G2t=Rg(),q2t=X7(),Y2t=z7(),V2t=dwe(),W2t=Cwe(),J2t=Bwe(),Oxe=$e(),A_=Ze(),{InvalidArgumentError:c_}=Oxe,ZE=n1e(),z2t=pg(),j2t=LW(),{MockCallHistory:K2 Line truncated
`)}close(){this.#n.close()}get(e){jX(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){jX(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){jX(e),jMt(r);let n=0,s=[],i=this;return new VMt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!KMt(s[l],u[l])){A=!1;break}}if(A)return c}}};function KMt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var dE=y((tFr,Hve)=>{"use strict";var{kConstruct:XMt}=br(),{kEnumerableProperty:vI}=ht(),{iteratorMixin:ZMt,isValidHeaderName:Xx,isValidHeaderValue:Fve}=Aa(),{webidl:Vt}=js(),XX=w("node:assert"),qF=w("node:util");function Mve(t){return t===10||t===13||t===9||t===32}function Lve(t){let e=0,r=t.length;for(;r>e&&Mve(t.charCodeAt(r-1));)--r;for(;r>e&&Mve(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function _ve(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Vt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});ZX(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)ZX(t,r[n],e[r[n]])}else throw Vt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function ZX(t,e,r){if(r=Lve(r),Xx(e)){if(!Fve(r))throw Vt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Vt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Ove(t)==="immutable")throw new TypeError("immutable");return YF(t).append(e,r,!1)}function $Mt(t){let e=YF(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function Uve(t,e){return t[0]<e[0]?-1:1}var GF=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${o}`;return}if(xL(e,s,COt)){IOt(e,i)&&(r.retry=e.toString("utf8",i));return}if(xL(e,s,yOt)){BOt(e,i)&&(r.id=e.toString("utf8",i));return}if(xL(e,s,EOt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&hOt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&fOt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===zI[0]||(this.checkBOM=!1),!0):n===void 0?e===zI[0]&&r===zI[1]?!0:(this.checkBOM=!1,!1):(e===zI[0]&&r===zI[1]&&n===zI[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};WMe.exports={EventSourceStream:_Z}});var tFe=y((NFr,eFe)=>{"use strict";var{pipeline:bOt}=w("node:stream"),{fetching:QOt}=rS(),{makeRequest:wOt}=MI(),{webidl:Yi}=js(),{EventSourceStream:NOt}=JMe(),{parseMIMEType:xOt}=mc(),{createFastMessageEvent:SOt}=mL(),{isNetworkError:VMe}=$x(),{kEnumerableProperty:CE}=ht(),{environmentSettingsObject:jMe}=Aa(),KMe=!1,XMe=3e3,AS=0,ZMe=1,uS=2,TOt="anonymous",ROt="use-credentials",WI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=AS;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Yi.util.markAsUncloneable(this);let n="EventSource constructor";Yi.argumentLengthCheck(arguments,1,n),KMe||(KMe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Yi.converters.USVString(e),r=Yi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=jMe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=TOt;r.withCredentials===!0&&(o=ROt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jMe.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=wOt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===uS)return;this.#r=AS;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!VMe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(VMe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?xOt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=ZMe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new NOt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(SOt(c.type,c.options))}});bOt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=QOt(e)}#A(){this.#r!==uS&&(this.#r=AS,this.dispatchEvent(new Event("error")),setTime Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}ge.exports.fetch=function(e,r=void 0){return akt(e,r).catch(n=>{throw Uxe?Gxe(n,Uxe):n&&typeof n=="object"&&Error.captureStackTrace(n,ge.exports.fetch),n})};ge.exports.Headers=qg().Headers;ge.exports.Response=GQ().Response;ge.exports.Request=GE().Request;ge.exports.FormData=Dk().FormData;var{setGlobalOrigin:ckt,getGlobalOrigin:Akt}=vV();ge.exports.setGlobalOrigin=ckt;ge.exports.getGlobalOrigin=Akt;var{CacheStorage:ukt}=QTe(),{kConstruct:lkt}=Kt();ge.exports.caches=new ukt(lkt);var{deleteCookie:dkt,getCookies:hkt,getSetCookies:fkt,setCookie:gkt,parseCookie:pkt}=MTe();ge.exports.deleteCookie=dkt;ge.exports.getCookies=hkt;ge.exports.getSetCookies=fkt;ge.exports.setCookie=gkt;ge.exports.parseCookie=pkt;var{parseMIMEType:mkt,serializeAMimeType:Ekt}=sa();ge.exports.parseMIMEType=mkt;ge.exports.serializeAMimeType=Ekt;var{CloseEvent:Ckt,ErrorEvent:Ikt,MessageEvent:ykt}=Kv(),{WebSocket:Bkt,ping:bkt}=gxe();ge.exports.WebSocket=Bkt;ge.exports.CloseEvent=Ckt;ge.exports.ErrorEvent=Ikt;ge.exports.MessageEvent=ykt;ge.exports.ping=bkt;ge.exports.WebSocketStream=bxe().WebSocketStream;ge.exports.WebSocketError=Az().WebSocketError;ge.exports.request=ew(ZE.request);ge.exports.stream=ew(ZE.stream);ge.exports.pipeline=ew(ZE.pipeline);ge.exports.connect=ew(ZE.connect);ge.exports.upgrade=ew(ZE.upgrade);ge.exports.MockClient=j2t;ge.exports.MockCallHistory=K2t;ge.exports.MockCallHistoryLog=$2t;ge.exports.MockPool=Z2t;ge.exports.MockAgent=X2t;ge.exports.SnapshotAgent=ekt;ge.exports.mockErrors=tkt;var{EventSource:Qkt}=Lxe();ge.exports.EventSource=Qkt;function wkt(){globalThis.fetch=ge.exports.fetch,globalThis.Headers=ge.exports.Headers,globalThis.Response=ge.exports.Response,globalThis.Request=ge.exports.Request,globalThis.FormData=ge.exports.FormData,globalThis.WebSocket=ge.exports.WebSocket,globalThis.CloseEvent=ge.exports.CloseEvent,globalThis.ErrorEvent=ge.exports.ErrorEvent,globalThis.MessageEvent=ge.exports.MessageEvent,globalThis.EventSource=ge.exports.EventSource}ge.exports.install=wkt});var tw=C(rh=>{"use strict";rh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");rh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");rh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";rh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);rh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);rh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());rh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Vxe=C((Rbr,Yxe)=>{"use strict";var{asciiLowercase:u_,solelyContainsHTTPTokenCodePoints:Skt,soleyContainsHTTPQuotedStringTokenCodePoints:Nkt}=tw();Yxe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=u_(String(e)),this._map.get(e)}has(e){return e=u_(String(e)),this._map.has(e)}set(e,r){if(e=u_(String(e)),r=String(r),!Skt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Nkt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=u_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var zxe=C((Dbr,Jxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Tkt,removeTrailingHTTPWhitespace:Wxe,isHTTPWhitespaceChar:xkt,solelyContainsHTTPTokenCodePoints:gz,soleyContainsHTTPQuotedStringTokenCodePoints:Rkt,asciiLowercase:pz,collectAnHTTPQuotedString:Dkt}=tw();Jxe.exports=t=>{t=Tkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!gz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=Wxe(n),n.length===0||!gz(n))return null;let s={type:pz(r),subtype:pz(n),parameters:new Map};for(;e<t.length;){for(++e;xkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=pz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Dkt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Wxe(o),o==="")continue}i.length>0&&gz(i)&&Rkt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var Kxe=C((kbr,jxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:kkt}=tw();jxe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!kkt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var eRe=C((_br,Zxe)=>{"use strict";var vkt=Vxe(),_kt=zxe(),Fkt=Kxe(),{asciiLowercase:$xe,solelyContainsHTTPTokenCodePoints:Xxe}=tw();Zxe.exports=class{constructor(e){e=String(e);let r=_kt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new vkt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=$xe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Xxe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=$xe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Xxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Fkt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var pRe=C((jQr,$kt)=>{$kt.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,k,k,f,s);let P=f.type==="*"?aj:f.type==="?"?uj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=gvt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),X=s.slice(P.reEnd),ee=s.slice(P.reEnd-8,P.reEnd)+X,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=X;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");X=Fe;let ke=X===""&&r!==cj?"(?:$|\\/)":"";s=v+z+X+ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===cj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return mvt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?aj:r.dot?hvt:fvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Cvt(a):a===Ys?Ys:a._src).reduce((a,c)=>(a[a.length-1]===Ys&&c===Ys||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ys||o[c-1]===Ys||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Ys))}),o.filter(a=>a!==Ys).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;Aj.sep!=="/"&&(e=e.split(Aj.sep).join("/")),e=e.split(qRe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return ho.defaults(e).Minimatch}};ho.Minimatch=oC});var $Re=C((wwr,KRe)=>{KRe.exports=jRe;var hj=Q("fs"),{EventEmitter:yvt}=Q("events"),{Minimatch:dj}=WRe(),{resolve:Bvt}=Q("path");function bvt(t,e){return new Promise((r,n)=>{hj.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function JRe(t,e){return new Promise((r,n)=>{(e?hj.stat:hj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?JRe(t,!1):null):r(null):r(o)})})}async function*zRe(t,e,r,n,s,i){let o=await bvt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await JRe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*zRe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Qvt(t,e,r,n){yield*zRe("",t,e,r,n,!0)}function wvt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var p_=class extends yvt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=wvt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new dj(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new dj(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new dj(i,{dot:!0}))}this.iterator=Qvt(Bvt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,S);S=H===-1?w.length:H}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let H=w.indexOf("*/",S);H!==-1?(S=H+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function aI(w){let b=oI(w.toString()),S=b.match(SM);if(S||(S=b.match(NM)),!S)throw new Error(`could not parse args in autoInject
${i}`:s.stack}be.exports.fetch=function(e,r=void 0){return e3t(e,r).catch(n=>{throw rFe?oFe(n,rFe):n&&typeof n=="object"&&Error.captureStackTrace(n,be.exports.fetch),n})};be.exports.Headers=dE().Headers;be.exports.Response=$x().Response;be.exports.Request=MI().Request;be.exports.FormData=KM().FormData;var{setGlobalOrigin:t3t,getGlobalOrigin:r3t}=rj();be.exports.setGlobalOrigin=t3t;be.exports.getGlobalOrigin=r3t;var{CacheStorage:n3t}=YPe(),{kConstruct:s3t}=br();be.exports.caches=new n3t(s3t);var{deleteCookie:i3t,getCookies:o3t,getSetCookies:a3t,setCookie:c3t,parseCookie:A3t}=rMe();be.exports.deleteCookie=i3t;be.exports.getCookies=o3t;be.exports.getSetCookies=a3t;be.exports.setCookie=c3t;be.exports.parseCookie=A3t;var{parseMIMEType:u3t,serializeAMimeType:l3t}=mc();be.exports.parseMIMEType=u3t;be.exports.serializeAMimeType=l3t;var{CloseEvent:d3t,ErrorEvent:h3t,MessageEvent:f3t}=mL(),{WebSocket:m3t,ping:p3t}=MMe();be.exports.WebSocket=m3t;be.exports.CloseEvent=d3t;be.exports.ErrorEvent=h3t;be.exports.MessageEvent=f3t;be.exports.ping=p3t;be.exports.WebSocketStream=GMe().WebSocketStream;be.exports.WebSocketError=vZ().WebSocketError;be.exports.request=lS(JI.request);be.exports.stream=lS(JI.stream);be.exports.pipeline=lS(JI.pipeline);be.exports.connect=lS(JI.connect);be.exports.upgrade=lS(JI.upgrade);be.exports.MockClient=qOt;be.exports.MockCallHistory=GOt;be.exports.MockCallHistoryLog=YOt;be.exports.MockPool=WOt;be.exports.MockAgent=zOt;be.exports.SnapshotAgent=JOt;be.exports.mockErrors=VOt;var{EventSource:g3t}=tFe();be.exports.EventSource=g3t;function E3t(){globalThis.fetch=be.exports.fetch,globalThis.Headers=be.exports.Headers,globalThis.Response=be.exports.Response,globalThis.Request=be.exports.Request,globalThis.FormData=be.exports.FormData,globalThis.WebSocket=be.exports.WebSocket,globalThis.CloseEvent=be.exports.CloseEvent,globalThis.ErrorEvent=be.exports.ErrorEvent,globalThis.MessageEvent=be.exports.MessageEvent,globalThis.EventSource=be.exports.EventSource}be.exports.install=E3t});var dS=y(ym=>{"use strict";ym.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ym.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ym.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";ym.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ym.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ym.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ym.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var AFe=y((RFr,cFe)=>{"use strict";var{asciiLowercase:RL,solelyContainsHTTPTokenCodePoints:y3t,soleyContainsHTTPQuotedStringTokenCodePoints:C3t}=dS();cFe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=RL(String(e)),this._map.get(e)}has(e){return e=RL(String(e)),this._map.has(e)}set(e,r){if(e=RL(String(e)),r=String(r),!y3t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!C3t(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=RL(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var dFe=y((DFr,lFe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:I3t,removeTrailingHTTPWhitespace:uFe,isHTTPWhitespaceChar:B3t,solelyContainsHTTPTokenCodePoints:UZ,soleyContainsHTTPQuotedStringTokenCodePoints:b3t,asciiLowercase:OZ,collectAnHTTPQuotedString:Q3t}=dS();lFe.exports=t=>{t=I3t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!UZ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=uFe(n),n.length===0||!UZ(n))return null;let s={type:OZ(r),subtype:OZ(n),parameters:new Map};for(;e<t.length;){for(++e;B3t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=OZ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Q3t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=uFe(o),o==="")continue}i.length>0&&UZ(i)&&b3t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var fFe=y((kFr,hFe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:w3t}=dS();hFe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!w3t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var EFe=y((PFr,gFe)=>{"use strict";var N3t=AFe(),x3t=dFe(),S3t=fFe(),{asciiLowercase:mFe,solelyContainsHTTPTokenCodePoints:pFe}=dS();gFe.exports=class{constructor(e){e=String(e);let r=x3t(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new N3t(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=mFe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!pFe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=mFe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!pFe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return S3t(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var vFe=y((jLr,G3t)=>{G3t.exports={name:"@actions/artifact",version:"6.3.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,F,F,f,s);let H=f.type==="*"?nne:f.type==="?"?one:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+H+"\\("+F}B(),o&&(s+="\\\\");let M=_Ht[s.charAt(0)];for(let F=c.length-1;F>-1;F--){let H=c[F],k=s.slice(0,H.reStart),j=s.slice(H.reStart,H.reEnd-8),$=s.slice(H.reEnd),re=s.slice(H.reEnd-8,H.reEnd)+$,le=k.split(")").length,fe=k.split("(").length-le,Ve=$;for(let ft=0;ft<fe;ft++)Ve=Ve.replace(/\)[+*?]?/,"");$=Ve;let ze=$===""&&r!==sne?"(?:$|\\/)":"";s=k+j+$+ze+re}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===sne)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return OHt(e);let W=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",W),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?nne:r.dot?FHt:LHt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?qHt(a):a===Wi?Wi:a._src).reduce((a,c)=>(a[a.length-1]===Wi&&c===Wi||a.push(c),a),[]),o.forEach((a,c)=>{a!==Wi||o[c-1]===Wi||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Wi))}),o.filter(a=>a!==Wi).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;ine.sep!=="/"&&(e=e.split(ine.sep).join("/")),e=e.split(M_e),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Ba.defaults(e).Minimatch}};Ba.Minimatch=AB});var G_e=y((s8r,q_e)=>{q_e.exports=H_e;var Ane=w("fs"),{EventEmitter:YHt}=w("events"),{Minimatch:cne}=__e(),{resolve:zHt}=w("path");function WHt(t,e){return new Promise((r,n)=>{Ane.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function U_e(t,e){return new Promise((r,n)=>{(e?Ane.stat:Ane.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?U_e(t,!1):null):r(null):r(o)})})}async function*O_e(t,e,r,n,s,i){let o=await WHt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await U_e(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*O_e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*JHt(t,e,r,n){yield*O_e("",t,e,r,n,!0)}function VHt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var P_=class extends YHt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=VHt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new cne(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new cne(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new cne(i,{dot:!0}))}this.iterator=JHt(zHt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this Line truncated
`,x);x=G===-1?Q.length:G}else if(P!==-1&&Q[x]==="/"&&Q[x+1]==="*"){let G=Q.indexOf("*/",x);G!==-1?(x=G+2,P=Q.indexOf("*/",x)):(b+=Q[x],x++)}else b+=Q[x],x++;return b}function ds(Q){let b=Bi(Q.toString()),x=b.match(Lo);if(x||(x=b.match(ql)),!x)throw new Error(`could not parse args in autoInject
Source:
`+b);let[,F]=S;return F.replace(/\s/g,"").split(Q1).map(H=>H.replace(w1,"").trim())}function cI(w,b){var S={};return Object.keys(w).forEach(F=>{var H=w[F],Y,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))Y=[...H],H=Y.pop(),S[F]=Y.concat(Y.length>0?te:H);else if(j)S[F]=H;else{if(Y=aI(H),H.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(te)}function te(Se,yt){var Lt=Y.map(St=>Se[St]);Lt.push(yt),E(H)(...Lt)}}),iI(S,b)}class AI{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):uI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):uI(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function uI(w,b){w.length=1,w.head=w.tail=b}function kp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),H=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function te(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function yt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var yr,xn;function Io(Rh,...mI){if(Rh)return Ye?xn(Rh):yr();if(mI.length<=1)return yr(mI[0]);yr(mI)}var Mp=Ut._createTaskItem(qe,Ye?Io:Nt||Io);if(be?Ut._tasks.unshift(Mp):Ut._tasks.push(Mp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Rh,mI)=>{yr=Rh,xn=mI})}function Co(qe){return function(be,...Ye){H-=1;for(var Nt=0,yr=qe.length;Nt<yr;Nt++){var xn=qe[Nt],Io=Y.indexOf(xn);Io===0?Y.shift():Io>0&&Y.splice(Io,1),xn.callback(be,...Ye),be!=null&&yt("error",be,xn.data)}H<=Ut.concurrency-Ut.buffer&&yt("unsaturated"),Ut.idle()&&yt("drain"),Ut.process()}}function Fp(qe){return qe.length===0&&Ut.idle()?(A(()=>yt("drain")),!0):!1}let xh=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{te(qe,(yr,xn)=>{if(yr)return Nt(yr);Ye(xn)})});Se(qe),j(qe,be)};var pI=!1,Ut={_tasks:new AI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!pI){for(pI=!0;!Ut.paused&&H<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var yr=Ut._tasks.shift();qe.push(yr),Y.push(yr),be.push(yr.data)}H+=1,Ut._tasks.length===0&&yt("empty"),H===Ut.concurrency&&yt("saturated");var xn=ee(Co(qe));F(be,xn)}pI=!1}},length(){return Ut._tasks.length},running(){return H},workersList(){return Y},idle(){return Ut._tasks.length+H===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:xh("saturated")},unsaturated:{writable:!1,value:xh("unsaturated")},empty:{writable:!1,value:xh("empty")},drain:{writable:!1,value:xh("drain")},error:{writable:!1,value:xh("error")}}),Ut}function lI(w,b){return kp(w,1,b)}function vp(w,b,S){return kp(w,b,S)}function Eo(w,b,S,F){F=V(F);var H=E(S);return Ks(w,(Y,J,j)=>{H(b,Y,(te,Se)=>{b=Se,j(te)})},Y=>F(Y,b))}var ba=m(Eo,4);function _p(...w){var b=w.map(E);return function(...S){var F=this,H=S[S.length-1];return typeof H=="function"?S.pop():H=KA(),ba(b,S,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>H(Y,...J)),H[jA]}}function S1(...w){return _p(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var O=m(we,4);function T(w,b,S,F){var H=E(S);return O(w,b,(Y,J)=>{H(Y,(j,...te)=>j?J(j):J(j,te))},(Y,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(Y,j)})}var G=m(T,4);function K(w,b,S){return G(w,1/0,b,S)}var $=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});_r[ns]||(aDe=global[ns]||[],ADe(_r,aDe),_r.close=(function(t){function e(r,n){return t.call(_r,r,function(s){s||cDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,y_,{value:t}),e})(_r.close),_r.closeSync=(function(t){function e(r){t.apply(_r,arguments),cDe()}return Object.defineProperty(e,y_,{value:t}),e})(_r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){tp(_r[ns]),Q("assert").equal(_r[ns].length,0)}));var aDe;global[ns]||ADe(global,_r[ns]);mj.exports=gj(_vt(_r));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_r.__patched&&(mj.exports=gj(_r),_r.__patched=!0);function gj(t){kvt(t),t.gracefulify=gj,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,X){return typeof z=="function"&&(X=z,z=null),ee(v,z,X);function ee(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?aC([ee,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,X,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,X,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,X,ee){return typeof X=="function"&&(ee=X,X=0),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,X){typeof z=="function"&&(X=z,z=null);var ee=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return ee(v,z,X);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?aC([ee,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=vvt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,X,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,mn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function aC(t){tp("ENQUEUE",t[0].name,t[1]),_r[ns].push(t),pj()}var I_;function cDe(){for(var t=Date.now(),e=0;e<_r[ns].length;++e)_r[ns][e].length>2&&(_r[ns][e][3]=t,_r[ns][e][4]=t);pj()}function pj(){if(clearTimeout(I_),I_=void 0,_r[ns].length!==0){var t=_r[ns].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)tp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){tp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(tp("RETRY",e.name,r),e.apply(null,r.concat([s]))):_r[ns].push(t)}I_===void 0&&(I_=setTimeout(pj,0))}}});var B_=C((Rwr,uDe)=>{"use strict";var FA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";FA.writable=t=>FA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";FA.readable=t=>FA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Gke.exports={AggregateError:Zj,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var eK=C((O1r,qke)=>{"use strict";qke.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var ys=C((H1r,Wke)=>{"use strict";var{format:nUt,inspect:H_}=eK(),{AggregateError:sUt}=xr(),iUt=globalThis.AggregateError||sUt,oUt=Symbol("kIsNodeError"),aUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],cUt=/^([A-Z][a-z0-9]*)+$/,AUt="__node_internal_",G_={};function sp(t,e){if(!t)throw new G_.ERR_INTERNAL_ASSERTION(e)}function Yke(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function uUt(t,e,r){if(typeof e=="function")return sp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return sp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:nUt(e,...r)}function is(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(uUt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[oUt]=!0,G_[t]=n}function Vke(t){let e=AUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function lUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new iUt([e,t],e.message);return r.code=e.code,r}return t||e}var tK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new G_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};is("ERR_ASSERTION","%s",Error);is("ERR_INVALID_ARG_TYPE",(t,e,r)=>{sp(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)sp(typeof c=="string","All expected entries have to be of type string"),aUt.includes(c)?s.push(c.toLowerCase()):cUt.test(c)?i.push(c):(sp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=_X(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=_X(" "+s+"="+n[s]+`
`);return kt.from(r)};zC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};zC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,yh(e.mode&wYt,6),100),kt.write(r,yh(e.uid,6),108),kt.write(r,yh(e.gid,6),116),kYt(e.size,r,124),kt.write(r,yh(e.mtime.getTime()/1e3|0,11),136),r[156]=pM+RYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(fOe,r,g1),kt.copy(BYt,r,FX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,yh(e.devmajor||0,6),329),kt.write(r,yh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,yh(pOe(r),6),148),r)};zC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-pM,i=JC(e,0,100,r),o=Ih(e,100,8),a=Ih(e,108,8),c=Ih(e,116,8),A=Ih(e,124,12),u=Ih(e,136,12),l=xYt(s),d=e[157]===0?null:JC(e,157,100,r),h=JC(e,265,32),f=JC(e,297,32),g=Ih(e,329,8),E=Ih(e,337,8),m=pOe(e);if(m===256)return null;if(m!==Ih(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(SYt(e))e[345]&&(i=JC(e,345,155,r)+"/"+i);else if(!NYt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function SYt(t){return kt.equals(fOe,t.subarray(g1,g1+6))}function NYt(t){return kt.equals(bYt,t.subarray(g1,g1+6))&&kt.equals(QYt,t.subarray(FX,FX+2))}function TYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function xYt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function RYt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function gOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function pOe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function yh(t,e){return t=t.toString(8),t.length>e?yYt.slice(0,e)+" ":IYt.slice(0,e-t.length)+t+" "}function DYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function kYt(t,e,r){t.toString(8).length>11?DYt(t,e,r):kt.write(e,yh(t,11),r)}function vYt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Ih(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return vYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=TYt(gOe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function JC(t,e,r,n){return kt.toString(t.subarray(e,gOe(t,0,e,e+r)),n)}function _X(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var yOe=C((hTr,IOe)=>{var{Writable:_Yt,Readable:FYt,getStreamError:mOe}=vX(),MYt=EX(),EOe=GC(),jC=MX(),LYt=EOe.alloc(0),UX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new MYt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return LYt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return EOe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},PX=class extends FYt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(mOe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=COe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},OX=class extends _Yt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function SO(t){process.exitCode=QO.Failure,No(t)}function Yl(){return process.env.RUNNER_DEBUG==="1"}function q(t){bl("debug",{},t)}function No(t,e={}){bl("error",W1(e),t instanceof Error?t.toString():t)}function Xe(t,e={}){bl("warning",W1(e),t instanceof Error?t.toString():t)}function vce(t,e={}){bl("notice",W1(e),t instanceof Error?t.toString():t)}function re(t){process.stdout.write(t+kce.EOL)}function _ce(t){LM("group",t)}function Fce(){LM("endgroup")}function yy(t,e){if(process.env.GITHUB_STATE||"")return OZ("STATE",HZ(t,e));bl("save-state",{name:t},Bl(e))}function Tc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as _je,existsSync as Fje}from"fs";import{EOL as Mje}from"os";var _m=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Fje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(_je(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${Mje}`)}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 RO=pe(Oce(),1),Hce=pe(YN(),1),jje=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Gce(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}`}function qce(t){return new RO.HttpClient().getAgent(t)}function Kje(t){return new RO.HttpClient().getAgentDispatcher(t)}function Yce(t){let e=Kje(t);return(n,s)=>jje(this,void 0,void 0,function*(){return(0,Hce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Vce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function DO(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}function Vl(){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>"}function sT(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)=>sT.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))}function Wce(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Jce(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)}var zce=Function.bind,jce=zce.bind(zce);function Kce(t,e,r){let n=jce(Jce,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]=jce(Wce,null).apply(null,i)})}function Xje(){let t=Symbol("Singular"),e={registry:{}},r=sT.bind(null,e,t);return Kce(r,e,t),r}function Zje(){let t={registry:{}},e=sT.bind(null,t);return Kce(e,t),e}var $ce={Singular:Xje,Collection:Zje};var eKe="0.0.0-development",tKe=`octokit-endpoint.js/${eKe} ${Vl()}`,rKe={method:"GET",baseUrl:"ht Line truncated
`+b);let[,P]=x;return P.replace(/\s/g,"").split(MA).map(G=>G.replace(u0,"").trim())}function Hc(Q,b){var x={};return Object.keys(Q).forEach(P=>{var G=Q[P],z,K=h(G),Z=!K&&G.length===1||K&&G.length===0;if(Array.isArray(G))z=[...G],G=z.pop(),x[P]=z.concat(z.length>0?ne:G);else if(Z)x[P]=G;else{if(z=ds(G),G.length===0&&!K&&z.length===0)throw new Error("autoInject task functions require explicit parameters.");K||z.pop(),x[P]=z.concat(ne)}function ne(Fe,zt){var cr=z.map(Kt=>Fe[Kt]);cr.push(zt),E(G)(...cr)}}),Hl(x,b)}class qc{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,x){x.prev=b,x.next=b.next,b.next?b.next.prev=x:this.tail=x,b.next=x,this.length+=1}insertBefore(b,x){x.prev=b.prev,x.next=b,b.prev?b.prev.next=x:this.head=x,b.prev=x,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Rh(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Rh(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var x=this.head;x;){var{next:P}=x;b(x)&&this.removeLink(x),x=P}return this}}function Rh(Q,b){Q.length=1,Q.head=Q.tail=b}function FA(Q,b,x){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var P=E(Q),G=0,z=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Z(tt,Pe){K[tt].push(Pe)}function ne(tt,Pe){let rt=(...Xt)=>{Fe(tt,rt),Pe(...Xt)};K[tt].push(rt)}function Fe(tt,Pe){if(!tt)return Object.keys(K).forEach(rt=>K[rt]=[]);if(!Pe)return K[tt]=[];K[tt]=K[tt].filter(rt=>rt!==Pe)}function zt(tt,...Pe){K[tt].forEach(rt=>rt(...Pe))}var cr=!1;function Kt(tt,Pe,rt,Xt){if(Xt!=null&&typeof Xt!="function")throw new Error("task callback must be a function");Ar.started=!0;var jr,ms;function Ta(np,...Eb){if(np)return rt?ms(np):jr();if(Eb.length<=1)return jr(Eb[0]);jr(Eb)}var B0=Ar._createTaskItem(tt,rt?Ta:Xt||Ta);if(Pe?Ar._tasks.unshift(B0):Ar._tasks.push(B0),cr||(cr=!0,A(()=>{cr=!1,Ar.process()})),rt||!Xt)return new Promise((np,Eb)=>{jr=np,ms=Eb})}function Sa(tt){return function(Pe,...rt){G-=1;for(var Xt=0,jr=tt.length;Xt<jr;Xt++){var ms=tt[Xt],Ta=z.indexOf(ms);Ta===0?z.shift():Ta>0&&z.splice(Ta,1),ms.callback(Pe,...rt),Pe!=null&&zt("error",Pe,ms.data)}G<=Ar.concurrency-Ar.buffer&&zt("unsaturated"),Ar.idle()&&zt("drain"),Ar.process()}}function I0(tt){return tt.length===0&&Ar.idle()?(A(()=>zt("drain")),!0):!1}let rp=tt=>Pe=>{if(!Pe)return new Promise((rt,Xt)=>{ne(tt,(jr,ms)=>{if(jr)return Xt(jr);rt(ms)})});Fe(tt),Z(tt,Pe)};var gb=!1,Ar={_tasks:new qc,_createTaskItem(tt,Pe){return{data:tt,callback:Pe}},*[Symbol.iterator](){yield*Ar._tasks[Symbol.iterator]()},concurrency:b,payload:x,buffer:b/4,started:!1,paused:!1,push(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!1,!1,Pe)):Kt(tt,!1,!1,Pe)},pushAsync(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!1,!0,Pe)):Kt(tt,!1,!0,Pe)},kill(){Fe(),Ar._tasks.empty()},unshift(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!0,!1,Pe)):Kt(tt,!0,!1,Pe)},unshiftAsync(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!0,!0,Pe)):Kt(tt,!0,!0,Pe)},remove(tt){Ar._tasks.remove(tt)},process(){if(!gb){for(gb=!0;!Ar.paused&&G<Ar.concurrency&&Ar._tasks.length;){var tt=[],Pe=[],rt=Ar._tasks.length;Ar.payload&&(rt=Math.min(rt,Ar.payload));for(var Xt=0;Xt<rt;Xt++){var jr=Ar._tasks.shift();tt.push(jr),z.push(jr),Pe.push(jr.data)}G+=1,Ar._tasks.length===0&&zt("empty"),G===Ar.concurrency&&zt("saturated");var ms=re(Sa(tt));P(Pe,ms)}gb=!1}},length(){return Ar._tasks.length},running(){return G},workersList(){return z},idle(){return Ar._tasks.length+G===0},pause(){Ar.paused=!0},resume(){Ar.paused!==!1&&(Ar.paused=!1,A(Ar.process))}};return Object.defineProperties(Ar,{saturated:{writable:!1,value:rp("saturated")},unsaturated:{writable:!1,value:rp("unsaturated")},empty:{writable:!1,value:rp("empty")},drain:{writable:!1,value:rp("drain")},error:{writable:!1,value:rp("error")}}),Ar}function Gl(Q,b){return FA(Q,1,b)}function Yl(Q,b,x){return FA(Q,b,x)}function Zi(Q,b,x,P){P=W(P);var G=E(x);return Hs(Q,(z,K,Z)=>{G(b,z,(ne,Fe)=>{b=Fe,Z(ne)})},z=>P(z,b))}var bi=g(Zi,4);function zl(...Q){var b=Q.map(E);return function(...x){var P=this,G=x[x.length-1];return typeof G=="function"?x.pop():G=PA(),bi(b,x,(z,K,Z)=>{K.apply(P,z.concat((ne,...Fe)=>{Z(ne,Fe)}))},(z,K)=>G(z,...K)),G[Oc]}}function Xm(...Q){return zl(...Q.reverse())}function ve(Q,b,x,P){return I(fe(b),Q,x,P)}var q=g(ve,4);function T(Q,b,x,P){var G=E(x);return q(Q,b,(z,K)=>{G(z,(Z,...ne)=>Z?K(Z):K(Z,ne))},(z,K)=>{for(var Z=[],ne=0;ne<K.length;ne++)K[ne]&&(Z=Z.concat(...K[ne]));return P(z,Z)})}var Y=g(T,4);function X(Q,b,x){return Y(Q,1/0,b,x)}var ee=g(X,3);function Ae(Q,b,x){retu Line truncated
GFS4: `),console.error(t)});ln[Xs]||($_e=global[Xs]||[],tUe(ln,$_e),ln.close=(function(t){function e(r,n){return t.call(ln,r,function(s){s||eUe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,U_,{value:t}),e})(ln.close),ln.closeSync=(function(t){function e(r){t.apply(ln,arguments),eUe()}return Object.defineProperty(e,U_,{value:t}),e})(ln.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){FE(ln[Xs]),w("assert").equal(ln[Xs].length,0)}));var $_e;global[Xs]||tUe(global,ln[Xs]);hne.exports=lne(n6t(ln));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ln.__patched&&(hne.exports=lne(ln),ln.__patched=!0);function lne(t){t6t(t),t.gracefulify=lne,t.createReadStream=M,t.createWriteStream=W;var e=t.readFile;t.readFile=r;function r(k,j,$){return typeof j=="function"&&($=j,j=null),re(k,j,$);function re(le,fe,Ve,ze){return e(le,fe,function(ft){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?uB([re,[le,fe,Ve],ft,ze||Date.now(),Date.now()]):typeof Ve=="function"&&Ve.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,$,re){return typeof $=="function"&&(re=$,$=null),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return n(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,$,re){return typeof $=="function"&&(re=$,$=null),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return i(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,$,re){return typeof $=="function"&&(re=$,$=0),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return a(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,$){typeof j=="function"&&($=j,j=null);var re=u.test(process.version)?function(Ve,ze,ft,ar){return A(Ve,le(Ve,ze,ft,ar))}:function(Ve,ze,ft,ar){return A(Ve,ze,le(Ve,ze,ft,ar))};return re(k,j,$);function le(fe,Ve,ze,ft){return function(ar,dr){ar&&(ar.code==="EMFILE"||ar.code==="ENFILE")?uB([re,[fe,Ve,ze],ar,ft||Date.now(),Date.now()]):(dr&&dr.sort&&dr.sort(),typeof ze=="function"&&ze.call(this,ar,dr))}}}if(process.version.substr(0,4)==="v0.8"){var d=r6t(t);g=d.ReadStream,I=d.WriteStream}var h=t.ReadStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=C);var f=t.WriteStream;f&&(I.prototype=Object.create(f.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(k){I=k},enumerable:!0,configurable:!0});var m=g;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function g(k,j){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$),k.read())})}function I(k,j){return this instanceof I?(f.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$))})}function M(k,j){return new t.ReadStream(k,j)}function W(k,j){return new t.WriteStream(k,j)}var F=t.open;t.open=H;function H(k,j,$,re){return typeof $=="function"&&(re=$,$=null),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return F(fe,Ve,ze,function(dr,fn){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}return t}function uB(t){FE("ENQUEUE",t[0].name,t[1]),ln[Xs].push(t),dne()}var __;function eUe(){for(var t=Date.now(),e=0;e<ln[Xs].length;++e)ln[Xs][e].length>2&&(ln[Xs][e][3]=t,ln[Xs][e][4]=t);dne()}function dne(){if(clearTimeout(__),__=void 0,ln[Xs].length!==0){var t=ln[Xs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)FE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){FE("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(FE("RETRY",e.name,r),e.apply(null,r.concat([s]))):ln[Xs].push(t)}__===void 0&&(__=setTimeout(dne,0))}}});var O_=y((A8r,rUe)=>{"use strict";var Ql=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Ql.writable=t=>Ql(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Ql.readable=t=>Ql(t)&&t.readable!= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};P3e.exports={AggregateError:jne,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Kne=y((yHr,M3e)=>{"use strict";M3e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Ei=y((CHr,_3e)=>{"use strict";var{format:N9t,inspect:iU}=Kne(),{AggregateError:x9t}=nn(),S9t=globalThis.AggregateError||x9t,T9t=Symbol("kIsNodeError"),R9t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],D9t=/^([A-Z][a-z0-9]*)+$/,k9t="__node_internal_",oU={};function UE(t,e){if(!t)throw new oU.ERR_INTERNAL_ASSERTION(e)}function F3e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function v9t(t,e,r){if(typeof e=="function")return UE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return UE(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:N9t(e,...r)}function $s(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(v9t(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[T9t]=!0,oU[t]=n}function L3e(t){let e=k9t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function P9t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new S9t([e,t],e.message);return r.code=e.code,r}return t||e}var Xne=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new oU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};$s("ERR_ASSERTION","%s",Error);$s("ERR_INVALID_ARG_TYPE",(t,e,r)=>{UE(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)UE(typeof c=="string","All expected entries have to be of type string"),R9t.includes(c)?s.push(c.toLowerCase()):D9t.test(c)?i.push(c):(UE(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;defaulLine truncated
`)),e.linkname&&(r+=Doe(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=Doe(" "+s+"="+n[s]+`
`);return ir.from(r)};XB.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(ir.toString(e.subarray(0,n)),10);if(!s)return r;let i=ir.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};XB.encode=function(e){let r=ir.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ir.byteLength(n)!==n.length)return null;for(;ir.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return ir.byteLength(n)>100||ir.byteLength(s)>155||e.linkname&&ir.byteLength(e.linkname)>100?null:(ir.write(r,n),ir.write(r,Ym(e.mode&Ker,6),100),ir.write(r,Ym(e.uid,6),108),ir.write(r,Ym(e.gid,6),116),ntr(e.size,r,124),ir.write(r,Ym(e.mtime.getTime()/1e3|0,11),136),r[156]=PO+ttr(e.type),e.linkname&&ir.write(r,e.linkname,157),ir.copy(m9e,r,W1),ir.copy(Jer,r,koe),e.uname&&ir.write(r,e.uname,265),e.gname&&ir.write(r,e.gname,297),ir.write(r,Ym(e.devmajor||0,6),329),ir.write(r,Ym(e.devminor||0,6),337),s&&ir.write(r,s,345),ir.write(r,Ym(g9e(r),6),148),r)};XB.decode=function(e,r,n){let s=e[156]===0?0:e[156]-PO,i=KB(e,0,100,r),o=Gm(e,100,8),a=Gm(e,108,8),c=Gm(e,116,8),A=Gm(e,124,12),u=Gm(e,136,12),l=etr(s),d=e[157]===0?null:KB(e,157,100,r),h=KB(e,265,32),f=KB(e,297,32),m=Gm(e,329,8),E=Gm(e,337,8),g=g9e(e);if(g===256)return null;if(g!==Gm(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(Xer(e))e[345]&&(i=KB(e,345,155,r)+"/"+i);else if(!Zer(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:m,devminor:E,pax:null}};function Xer(t){return ir.equals(m9e,t.subarray(W1,W1+6))}function Zer(t){return ir.equals(Ver,t.subarray(W1,W1+6))&&ir.equals(jer,t.subarray(koe,koe+2))}function $er(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function etr(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function ttr(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function p9e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function g9e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Ym(t,e){return t=t.toString(8),t.length>e?Wer.slice(0,e)+" ":zer.slice(0,e-t.length)+t+" "}function rtr(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function ntr(t,e,r){t.toString(8).length>11?rtr(t,e,r):ir.write(e,Ym(t,11),r)}function str(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Gm(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return str(t);{for(;e<t.length&&t[e]===32;)e++;let n=$er(p9e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(ir.toString(t.subarray(e,n)),8)}}function KB(t,e,r,n){return ir.toString(t.subarray(e,p9e(t,0,e,e+r)),n)}function Doe(t){let e=ir.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var B9e=y((j5r,I9e)=>{var{Writable:itr,Readable:otr,getStreamError:E9e}=Roe(),atr=foe(),y9e=zB(),ZB=voe(),ctr=y9e.alloc(0),Atr=4*1024*1024,Moe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new atr,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this.buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return ctr;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return y9e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Foe=class extends otr{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(E9e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=C9e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function ZH(t){process.exitCode=KH.Failure,La(t)}function sf(){return process.env.RUNNER_DEBUG==="1"}function J(t){Fh("debug",{},t)}function La(t,e={}){Fh("error",ET(e),t instanceof Error?t.toString():t)}function at(t,e={}){Fh("warning",ET(e),t instanceof Error?t.toString():t)}function ND(t,e={}){Fh("notice",ET(e),t instanceof Error?t.toString():t)}function ie(t){process.stdout.write(t+spe.EOL)}function ipe(t){u3("group",t)}function ope(){u3("endgroup")}function bQ(t,e){if(process.env.GITHUB_STATE||"")return dae("STATE",hae(t,e));Fh("save-state",{name:t},Mh(e))}function XA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as dst,existsSync as hst}from"fs";import{EOL as fst}from"os";var Cy=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(hst(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(dst(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${fst}`)}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 r6=xe(lpe(),1),dpe=xe(gD(),1),xst=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function hpe(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}`}function fpe(t){return new r6.HttpClient().getAgent(t)}function Sst(t){return new r6.HttpClient().getAgentDispatcher(t)}function mpe(t){let e=Sst(t);return(n,s)=>xst(this,void 0,void 0,function*(){return(0,dpe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function ppe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function n6(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}function of(){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>"}function vD(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)=>vD.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))}function gpe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Epe(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)}var ype=Function.bind,Cpe=ype.bind(ype);function Ipe(t,e,r){let n=Cpe(Epe,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]=Cpe(gpe,null).apply(null,i)})}function Rst(){let t=Symbol("Singular"),e={registry:{}},r=vD.bind(null,e,t);return Ipe(r,e,t),r}function Dst(){let t={registry:{}},e=vD.bind(null,t);return Ipe(e,t),e}var Bpe={Singular:Rst,Collection:Dst};var kst="0.0.0-development",vst=`octokit-endpoint.js/${kst} ${of()}`,Pst={method:"GET",baseUrl:"h Line truncated
`+n.repeat(l));let E=f.val[f.index],g=o(f.val,String(f.index),E);if(u6(g))u.push("null"),f.first=!1,f.index++;else{let C=g!==null&&typeof g=="object",I=l6(g);if(C&&!I){if(h.has(g))throw new TypeError("Converting circular structure to JSON");h.add(g),d.push({parent:f.val,key:String(f.index),val:g,isArray:Array.isArray(g),keys:Array.isArray(g)?null:Object.keys(g),index:0,first:!0}),f.first=!1,f.index++}else u.push(af(g)),f.first=!1,f.index++}}else m=!0;else{for(;f.index<f.keys.length;){let g=f.keys[f.index++];if(i&&!i.has(g))continue;let I=f.val[g],B=o(f.val,g,I);if(u6(B))continue;f.first||u.push(","),n?u.push(`
`+n.repeat(l)+af(g)+": "):u.push(af(g)+":");let M=B!==null&&typeof B=="object",W=l6(B);if(M&&!W){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:g,val:B,isArray:Array.isArray(B),keys:Array.isArray(B)?null:Object.keys(B),index:0,first:!0}),f.first=!1;break}else u.push(af(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(m=!0)}m&&(l--,!f.first&&n&&u.push(`
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},Hpe=(t,e,r)=>{try{return"rawJSON"in JSON?af(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?af(t,(a,c)=>typeof c=="string"&&MD.test(c)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(Fpe,"$1$2$3").replace(Lpe,"$1$2$3"):af(t,e,r)}catch(n){if(n instanceof RangeError){let s=Kst(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(Fpe,"$1$2$3").replace(Lpe,"$1$2$3")}throw n}},PD=new Map,Xst=()=>{let t=JSON.parse.toString();if(PD.has(t))return PD.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return PD.set(t,e),e}catch{return PD.set(t,!1),!1}},Zst=(t,e,r,n)=>typeof e=="string"&&Ope.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&MD.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,$st=(t,e)=>JSON.parse(t,(r,n,s)=>{let i=typeof n=="number",o=n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER,a=i&&o,c=s&&jst.test(s.source);return a&&c?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),qpe=Number.MAX_SAFE_INTEGER.toString(),_pe=qpe.length,eit=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,tit=/^"-?\d+n+"$/,rit=(t,e)=>{let r={"":t},n=[{parent:r,key:"",visited:!1}];for(;n.length>0;){let s=n[n.length-1];if(s.visited){let{parent:i,key:o}=s,a=i[o];typeof a=="string"&&(Ope.test(a)?a=BigInt(a.slice(0,-1)):MD.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,n.pop()}else{s.visited=!0;let i=s.parent[s.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let c=a.length-1;c>=0;c--)n.push({parent:i,key:a[c],visited:!1})}}}return r[""]},Upe=t=>t.replace(eit,(e,r,n,s)=>{let i=e[0]==='"';if(i&&tit.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,c=r&&(r.length<_pe||r.length===_pe&&r<=qpe);return i||a||c?e:'"'+e+'n"'}),Gpe=(t,e)=>{if(!t)return A6(t,e);try{if(Xst())return $st(t,e);let r=Upe(t);return A6(r,(n,s,i)=>Zst(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=Upe(t),s=A6(n);return rit(s,e)}throw r}};var dd=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var nit="10.0.16",sit={headers:{"user-agent":`octokit-request.js/${nit} ${of()}`}};function iit(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var Ype=()=>"";async function zpe(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=iit(t.body)||Array.isArray(t.body)?Hpe(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new dd(d,500,{request:t});throw h.cause=l,h}let a=o.status,c=o.url,A={};for(let[l,d]of o.headers)A[l]=d;let u={url:c,status:a,headers:A,data:""};if("deprecation"in A){let l=A.link&&A.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${A.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new dd(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await d6(o),new dd("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await d6(o),new dd(ait(u.data),a,{response:u,request:t});return u.data=n?await d6(o):o.body,u}async function d6(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Ype);let r=kpe(e);if(oit(r)){let n="";try{return n=await t.text(),Gpe(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet- Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var UKe=class extends Error{constructor(t,e,r){super(LKe(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},PKe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],OKe=["query","method","url"],yAe=/\/api\/v3\/?$/;function HKe(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(OKe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>PKe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return yAe.test(i)&&(s.url=i.replace(yAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new UKe(s,a,o.data)}return o.data.data})}function OO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>HKe(r,s,i),{defaults:OO.bind(null,r),endpoint:r.endpoint})}var uzt=OO(Qy,{headers:{"user-agent":`octokit-graphql.js/${MKe} ${Vl()}`},method:"POST",url:"/graphql"});function BAe(t){return OO(t,{method:"POST",url:"/graphql"})}var HO="(?:[a-zA-Z0-9_-]+)",bAe="\\.",QAe=new RegExp(`^${HO}${bAe}${HO}${bAe}${HO}$`),GKe=QAe.test.bind(QAe);async function qKe(t){let e=GKe(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"}}function YKe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function VKe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=YKe(t),e(s)}var wAe=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(qKe.bind(null,e),{hook:VKe.bind(null,e)})};var GO="7.0.6";var SAe=()=>{},WKe=console.warn.bind(console),JKe=console.error.bind(console);function zKe(t={}){return typeof t.debug!="function"&&(t.debug=SAe),typeof t.info!="function"&&(t.info=SAe),typeof t.warn!="function"&&(t.warn=WKe),typeof t.error!="function"&&(t.error=JKe),t}var NAe=`octokit-core.js/${GO} ${Vl()}`,aT=class{static VERSION=GO;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new $ce.Collection,n={baseUrl:Qy.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} ${NAe}`:NAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Qy.defaults(n),this.graphql=BAe(this.request).defaults(n),this.log=zKe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(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 i=wAe(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 qO="17.0.0";var jKe={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
`)}var uit=class extends Error{constructor(t,e,r){super(Ait(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)}request;headers;response;name="GraphqlResponseError";errors;data},lit=["method","baseUrl","url","headers","request","query","mediaType","operationName"],dit=["query","method","url"],Wpe=/\/api\/v3\/?$/;function hit(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(dit.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>lit.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Wpe.test(i)&&(s.url=i.replace(Wpe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new uit(s,a,o.data)}return o.data.data})}function f6(t,e){let r=t.defaults(e);return Object.assign((s,i)=>hit(r,s,i),{defaults:f6.bind(null,r),endpoint:r.endpoint})}var _ir=f6(NQ,{headers:{"user-agent":`octokit-graphql.js/${cit} ${of()}`},method:"POST",url:"/graphql"});function Jpe(t){return f6(t,{method:"POST",url:"/graphql"})}var m6="(?:[a-zA-Z0-9_-]+)",Vpe="\\.",jpe=new RegExp(`^${m6}${Vpe}${m6}${Vpe}${m6}$`),fit=jpe.test.bind(jpe);async function mit(t){let e=fit(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"}}function pit(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function git(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=pit(t),e(s)}var Kpe=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(mit.bind(null,e),{hook:git.bind(null,e)})};var p6="7.0.8";var Xpe=()=>{},Eit=console.warn.bind(console),yit=console.error.bind(console);function Cit(t={}){return typeof t.debug!="function"&&(t.debug=Xpe),typeof t.info!="function"&&(t.info=Xpe),typeof t.warn!="function"&&(t.warn=Eit),typeof t.error!="function"&&(t.error=yit),t}var Zpe=`octokit-core.js/${p6} ${of()}`,FD=class{static VERSION=p6;static defaults(e){return class extends this{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 plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Bpe.Collection,n={baseUrl:NQ.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} ${Zpe}`:Zpe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=NQ.defaults(n),this.graphql=Jpe(this.request).defaults(n),this.log=Cit(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(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 i=Kpe(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 g6="17.0.0";var Iit={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/{secr Line truncated
`)}
`:`${vAe(t.status,e)}
`:`${sge(t.status,e)}
${jO[t.status]}
`}function PAe(t){return t==="enabled"||t==="read-only"||t==="write-only"}function vAe(t,e){if(!PAe(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",n=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${n}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function s$e(t){return t?r$e[t]:void 0}function i$e(t){return t?n$e[t]:void 0}function o$e(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${ni}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${t$e}) for terms of use and opt-out instructions.`:`**[Basic Caching](${ni}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${ni}#enhanced-caching)** provider.`}function a$e(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,n=e.filter(u=>u.savedKey).length,s=OAe(e)?`Entries: ${r} restored (${AT(e,u=>u.restoredSize)}Mb), ${n} saved (${AT(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?s$e(t.cleanup):void 0,o=i$e(t.projectCache),a=c$e(t.entries),c=`<pre>
${A$e(t.entries)}</pre>`,A=[jO[t.status],i,o,a,c].filter(Boolean).join(`
${b6[t.status]}
`}function uge(t){return t==="enabled"||t==="read-only"||t==="write-only"}function sge(t,e){if(!uge(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":t==="external"?"External":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",n=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${n}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function Rit(t){return t?Sit[t]:void 0}function Dit(t){return t?Tit[t]:void 0}function kit(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Ri}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${xit}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Ri}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Ri}#enhanced-caching)** provider.`}function vit(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,n=e.filter(u=>u.savedKey).length,s=lge(e)?`Entries: ${r} restored (${_D(e,u=>u.restoredSize)}Mb), ${n} saved (${_D(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?Rit(t.cleanup):void 0,o=Dit(t.projectCache),a=Pit(t.entries),c=`<pre>
${Mit(t.entries)}</pre>`,A=[b6[t.status],i,o,a,c].filter(Boolean).join(`
`);return`<details>
<summary>${s}</summary>
${A}
</details>`}function OAe(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function c$e(t){return OAe(t)?`<table>
</details>`}function lge(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function Pit(t){return lge(t)?`<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</th></tr>
<tr><td>Entries Restored</td>
<td>${_Ae(t,e=>e.restoredSize)}</td>
<td>${AT(t,e=>e.restoredSize)}</td>
<td>${FAe(t,e=>e.restoredTime)}</td>
<td>${ige(t,e=>e.restoredSize)}</td>
<td>${_D(t,e=>e.restoredSize)}</td>
<td>${oge(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${_Ae(t,e=>e.savedSize)}</td>
<td>${AT(t,e=>e.savedSize)}</td>
<td>${FAe(t,e=>e.savedTime)}</td>
<td>${ige(t,e=>e.savedSize)}</td>
<td>${_D(t,e=>e.savedSize)}</td>
<td>${oge(t,e=>e.savedTime)}</td>
</tr>
</table>`:""}function A$e(t){return t.map(e=>`Entry: ${e.entryName}
</table>`:""}function Mit(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${MAe(e.restoredSize)}
Time: ${LAe(e.restoredTime)}
Size: ${age(e.restoredSize)}
Time: ${cge(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${MAe(e.savedSize)}
Time: ${LAe(e.savedTime)}
Size: ${age(e.savedSize)}
Time: ${cge(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function _Ae(t,e){return t.filter(r=>e(r)).length}function AT(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function FAe(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function MAe(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function LAe(t){return t===void 0||t===0?"":`${t} ms`}import*as nb from"path";import*as Pm from"fs";function KO(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,q(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,q(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as gT from"path";import*as Lm from"path";import Af from"assert";var Wl=process.platform==="win32";function Eu(t){if(t=mu(t),Wl&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Lm.dirname(t);return Wl&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=mu(e)),e}function uT(t,e){if(Af(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Af(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),wy(e))return e;if(Wl){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Af(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Fa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Af(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Af(wy(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Wl&&t.endsWith("\\")||(t+=Lm.sep),t+e}function wy(t){return Af(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Fa(t),Wl?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Sy(t){return Af(t,"isRooted parameter 'itemPath' must not be empty"),t=Fa(t),Wl?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Fa(t){return t=t||"",Wl?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function mu(t){return t?(t=Fa(t),!t.endsWith(Lm.sep)||t===Lm.sep||Wl&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Ma;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Ma||(Ma={}));var HAe=process.platform==="win32";function XO(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=HAe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=HAe?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Eu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Eu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function GAe(t,e){let r=Ma.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function qAe(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as uue from"os";import*as Um from"path";var lue=pe(Aue(),1);import hf from"assert";import*as lf from"path";import xy from"assert";var F$e=process.platform==="win32",df=class{constructor(e){if(this.segments=[],typeof e=="string")if(xy(e,"Parameter 'itemPath' must not be empty"),e=mu(e),!Sy(e))this.segments=e.split(lf.sep);else{let r=e,n=Eu(r);for(;n!==r;){let s=lf.basename(r);this.segments.unshift(s),r=n,n=Eu(r)}this.segments.unshift(r)}else{xy(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];xy(n,"Parameter 'itemPath' must not contain any empty segments"),n=Fa(e[r]),r===0&&Sy(n)?(n=mu(n),xy(n===Eu(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(xy(!n.includes(lf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(lf.sep)||F$e&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=lf.sep,e+=this.segments[n];return e}};var{Minimatch:M$e}=lue.default,Cu=process.platform==="win32",Ry=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],hf(n.length,"Parameter 'segments' must not empty");let A=t.getLiteral(n[0]);hf(A&&wy(A),"Parameter 'segments' first element must be a root path"),i=new df(n).toString().trim(),e&&(i=`!${i}`)}for(;i.s Line truncated
`)}function ige(t,e){return t.filter(r=>e(r)).length}function _D(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function oge(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function age(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function cge(t){return t===void 0||t===0?"":`${t} ms`}import*as CN from"path";import*as wy from"fs";function Q6(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,J(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,J(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,J(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,J(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,J(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as qD from"path";import*as by from"path";import kp from"assert";var cf=process.platform==="win32";function md(t){if(t=fd(t),cf&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=by.dirname(t);return cf&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=fd(e)),e}function UD(t,e){if(kp(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),kp(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),xQ(e))return e;if(cf){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return kp(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(tA(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return kp(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return kp(xQ(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||cf&&t.endsWith("\\")||(t+=by.sep),t+e}function xQ(t){return kp(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=tA(t),cf?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function SQ(t){return kp(t,"isRooted parameter 'itemPath' must not be empty"),t=tA(t),cf?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function tA(t){return t=t||"",cf?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function fd(t){return t?(t=tA(t),!t.endsWith(by.sep)||t===by.sep||cf&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var rA;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(rA||(rA={}));var dge=process.platform==="win32";function N6(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=dge?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=dge?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=md(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=md(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function hge(t,e){let r=rA.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function fge(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as Pge from"os";import*as Qy from"path";import Fp from"assert";var x6=(t,e,r)=>{let n=t instanceof RegExp?mge(t,r):t,s=e instanceof RegExp?mge(e,r):e,i=n!==null&&s!=null&&_it(n,s,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+n.length,i[1]),post:r.slice(i[1]+s.length)}},mge=(t,e)=>{let r=e.match(t);return r?r[0]:null},_it=(t,e,r)=>{let n,s,i,o,a,c=r.indexOf(t),A=r.indexOf(e,c+1),u=c;if(c>=0&&A>0){if(t===e)return[c,A];for(n=[],i=r.length;u>=0&&!a;){if(u===c)n.push(u),c=r.indexOf(t,u+1);else if(n.length===1){let l=n.pop();l!==void 0&&(a=[l,A])}else s=n.pop(),s!==void 0&&s<i&&(i=s,o=A),A=r.indexOf(e,u+1);u=c<A&&c>=0?c:A}n.length&&o!==void 0&&(a=[i,o])}return a};var pge="\0SLASH"+Math.random()+"\0",gge="\0OPEN"+Math.random()+"\0",R6="\0CLOSE"+Math.random()+"\0",Ege="\0COMMA"+Math.random()+"\0",yge="\0PERIOD"+Math.random()+"\0",Uit=new RegExp(pge,"g"),Oit=new RegExp(gge,"g"),Hit=new RegExp(R6,"g"),qit=new RegExp(Ege,"g"),Git=new RegExp(yge,"g"),Yit=/\\\\/g,zit=/\\{/g,Wit=/\\}/g,Jit=/\\,/g,Vit=/\\\./g,jit=1e5,Kit=4e6;function S6(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function Xit(t){return t.replace(Yit,pge).replace(zit,gge).replace(Wit,R6).replace(Jit,Ege).replace(Vit,yge)}function Zit(t){return t.replace(Uit,"\\").replace(Oit,"{").replace(Hit,"}").replace(qit,",").replace(Git,".")}function Cge(t){if(!t)return[""];let e=[],r=x6("{","}",t);if(!r)retu Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Ry(i));return n.searchPaths.push(...XO(n.patterns)),n})}static stat(e,r,n){return s3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Pm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`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 Pm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Pm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var O$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function due(t,e){return O$e(this,void 0,void 0,function*(){return yield fT.create(t,e)})}var ide=pe(nde(),1);import*as DT from"crypto";import*as qm from"fs";import*as ff from"path";import*as ode from"util";var Ly;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ly||(Ly={}));var Ds;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ds||(Ds={}));var Gi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Gi||(Gi={}));var TT=2,xT=5e3,w3=5e3,S3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,sde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Uy="cache.tar",N3="manifest.txt",tKt=10*Math.pow(1024,3),RT="cache read denied:";var Gm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},$et=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},Xet="1.0";function Py(){return Gm(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=ff.join(n,"actions","temp")}let r=ff.join(e,DT.randomUUID());return yield zN(r),r})}function Rc(t){return qm.statSync(t).size}function T3(t){return Gm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield due(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=$et(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=ff.relative(a,s).replace(new RegExp(`\\${ff.sep}`,"g"),"/");q(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function Oy(t){return Gm(this,void 0,void 0,function*(){return ode.promisify(qm.unlink)(t)})}function ade(t){return Gm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),q(`Checking ${e} ${r.join(" ")}`);try{yield $N(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){q(s.message)}return n=n.trim(),q(n),n})}function Hy(){return Gm(this,void 0,void 0,function*(){let t=yield ade("zstd",["--quiet"]),e=ide.clean(t);return q(`zstd version: ${e}`),t===""?Ds.Gzip:Ds.ZstdWithoutLong})}function Kl(t){return t===Ds.Gzip?Ly.Gzip:Ly.Zstd}function cde(){return Gm(this,void 0,void 0,function*(){return qm.existsSync(S3)?S3:(yield ade("tar")).toLowerCase().includes("gnu tar")?fu("tar"):""})}function x3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ym(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Xet),DT.createHash("sha256").update(n.join("|")).digest("hex")}function Ade(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as I0 from"fs";import{URL as Fct}from"url";var Dc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Zet}from"node:os";import ett from"node:util";import ttt from"node:process";function ude(t,...e){ttt.stderr.write(`${ett.format(t,...e)}${Zet}`)}import Gy from"node:process";function vT(t){return Gy.env[t]}var lde=typeof Gy.versions.deno=="string"&&Gy.versions.deno.length>0,dde=typeof Gy.versions.bun=="string"&&Gy.versions.bun.length>0,_T=!0;var hde=vT("DEBUG"),gde,R3=[],D3=[],FT=[];hde&&k3(hde);var pde=Object.assign(t=>mde(t),{enable:k3,enabled:v3,disable:rtt,log:ude});function k3(t){gde=t,R3=[],D3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?D3.push(r.substring(1)):R3.push(r);for(let r of FT)r.enabled=v3(r.namespace)}function v3(t){if(t.endsWith("*"))return!0;for(let e of D3)if(fde(t,e))return!1;for(let e of R3)if(fde(t,e))return!0;return!1}function fde(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function rtt(){let t=gde||"";return k3(""),t}function mde(t){let e=Object.assign(r,{enabled:v3(t),destroy:ntt,log:pde.log,namespace:t,extend:stt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return FT.push(e),e}function ntt(){let t=FT.indexOf(this);return t>=0?(FT.splice(t,1),!0):!1}function stt(t){let e=mde(`${this.namespace}:${t}`);return e.log=this.log,e}var Vm=pde;var _3=["verbose","info","warning","error"],Ede={verbose:400,info:300,warning:200,error:100};function Cde(t,e){e.log=(...r)=>{t.log(...r)}}function Ide(t){return _3.includes(t)}function MT(t){let e=new Set,r=vT(t.logLevelEnvVarName),n,s=Vm(t.namespace);s.log=(...u)=>{Vm.log(...u)};function i(u){if(u&&!Ide(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${_3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Vm.enable(l.join(","))}r&&(Ide(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${_3.join(", ")}.`));function o(u){return!!(n&&Ede[u.level]<=Ede[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Cde(u,d),o(d)){let h=Vm.disable();Vm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Cde(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var yde=MT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),itt=yde.logger;function qy(t){return yde.createClientLogger(t)}function LT(t){return t.toLowerCase()}function ott(t){return String(t).trim().replace(/[\r\n]/g,"")}function*att(t){for(let e of t.values())yield[e.name,e.value]}var F3=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(LT(e),{name:e,value:ott(r)})}get(e){return this._headersMap.get(LT(e))?.value}has(e){return this._ Line truncated
${ltt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Wm(t){return t instanceof ks?!0:pf(t)&&t.name==="RestError"}function si(t,e){return Buffer.from(t,e)}import P3 from"node:http";import O3 from"node:https";import Qde from"node:zlib";import{Transform as dtt}from"node:stream";var ii=qy("ts-http-runtime");var htt={};function Yy(t){return t&&typeof t.pipe=="function"}function wde(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 Sde(t){return t&&typeof t.byteLength=="number"}var OT=class extends dtt{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}},H3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Dc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new La;ii.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=mtt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new OT(f);g.on("error",E=>{ii.error("Error in upload progress",E)}),Yy(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=ftt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?gtt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new OT(h);f.on("error",g=>{ii.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ptt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Yy(a)&&(A=wde(a));let u=Promise.resolve();Yy(c)&&(u=wde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ii.warning("Error when cleaning up abortListener on httpRequest",l)})}}}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 a={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((c,A)=>{let u=i?P3.request(a,c):O3.request(a,c);u.once("error",l=>{A(new ks(l.message,{code:l.code??ks.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Dc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Yy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Sde(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ii.error("Unrecognized body type",n),A(new ks("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?P3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new P3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return O3.globalAgent;let s=e.tlsSettings??htt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ii.info("No cached TLS Agent exist, creating a new Agent"),i=new O3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function ftt(t){let e=qi();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}function gtt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Qde.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Qde.createInflate();return t.pipe(n),n}return t}function ptt(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 ks(`Error reading response as text: ${s.message}`,{code:ks.PARSE_ERROR}))})})}function mtt(t){return t?Buffer.isBuffer(t)?t.length:Yy(t)?null:Sde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Nde(){return new H3}function HT(){return Nde()}var G3="logPolicy";function GT(t={}){let e=t.logger??ii.info,r=new La({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:G3,asy Line truncated
`;return e}function Urt(t){return t instanceof Uint8Array?t.byteLength:Jy(t)?t.size===-1?void 0:t.size:void 0}function Prt(t){let e=0;for(let r of t){let n=Urt(r);if(n===void 0)return;e+=n}return e}async function Ort(t,e,r){let n=[si(`--${r}`,"utf-8"),...e.flatMap(i=>[si(`\r
`,"utf-8"),si(Lrt(i.headers),"utf-8"),si(`\r
`,"utf-8"),i.body,si(`\r
--${r}`,"utf-8")]),si(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new vQ(i));return n.searchPaths.push(...N6(n.patterns)),n})}static stat(e,r,n){return P6(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield wy.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){J(`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 wy.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield wy.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){J(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as M6 from"crypto";import*as GD from"fs";import*as Mge from"stream";import*as Fge from"util";import*as Lge from"path";var Vot=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},jot=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function _ge(t,e){return Vot(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ie:J,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=M6.createHash("sha256"),f=0;try{for(var m=!0,E=jot(r.globGenerator()),g;g=yield E.next(),i=g.done,!i;m=!0){c=g.value,m=!1;let C=c;if(u(C),!C.startsWith(`${d}${Lge.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(GD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let I=M6.createHash("sha256");yield Fge.promisify(Mge.pipeline)(GD.createReadStream(C),I),h.write(I.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!m&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Uge=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function MQ(t,e){return Uge(this,void 0,void 0,function*(){return yield HD.create(t,e)})}function Oge(t){return Uge(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield MQ(e,{followSymbolicLinks:i});return _ge(o,r,s)})}var v0e=xe(D0e(),1);import*as i2 from"crypto";import*as Ty from"fs";import*as Lp from"path";import*as P0e from"util";var HQ;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(HQ||(HQ={}));var vi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vi||(vi={}));var Ko;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ko||(Ko={}));var r2=2,n2=5e3,n5=5e3,s5=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,k0e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,qQ="cache.tar",i5="manifest.txt",Jar=10*Math.pow(1024,3),s2="cache read denied:";var Sy=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},nut=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},sut="1.0";function _p(){return Sy(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=Lp.join(n,"actions","temp")}let r=Lp.join(e,i2.randomUUID());return yield BD(r),r})}function $A(t){return Ty.statSync(t).size}function o5(t){return Sy(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield M Line truncated
`),{implicitDescendants:!1});try{for(var A=!0,u=nut(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Lp.relative(a,s).replace(new RegExp(`\\${Lp.sep}`,"g"),"/");J(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function GQ(t){return Sy(this,void 0,void 0,function*(){return P0e.promisify(Ty.unlink)(t)})}function M0e(t){return Sy(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),J(`Checking ${e} ${r.join(" ")}`);try{yield wD(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){J(s.message)}return n=n.trim(),J(n),n})}function YQ(){return Sy(this,void 0,void 0,function*(){let t=yield M0e("zstd",["--quiet"]),e=v0e.clean(t);return J(`zstd version: ${e}`),t===""?vi.Gzip:vi.ZstdWithoutLong})}function hf(t){return t===vi.Gzip?HQ.Gzip:HQ.Zstd}function F0e(){return Sy(this,void 0,void 0,function*(){return Ty.existsSync(s5)?s5:(yield M0e("tar")).toLowerCase().includes("gnu tar")?ud("tar"):""})}function a5(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ry(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(sut),i2.createHash("sha256").update(n.join("|")).digest("hex")}function L0e(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as gC from"fs";import{URL as QEt}from"url";var eu=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as iut}from"node:os";import out from"node:util";import aut from"node:process";function _0e(t,...e){aut.stderr.write(`${out.format(t,...e)}${iut}`)}import zQ from"node:process";function a2(t){return zQ.env[t]}var U0e=typeof zQ.versions.deno=="string"&&zQ.versions.deno.length>0,O0e=typeof zQ.versions.bun=="string"&&zQ.versions.bun.length>0,c2=!0;var H0e=a2("DEBUG"),G0e,c5=[],A5=[],A2=[];H0e&&u5(H0e);var Y0e=Object.assign(t=>z0e(t),{enable:u5,enabled:l5,disable:cut,log:_0e});function u5(t){G0e=t,c5=[],A5=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?A5.push(r.substring(1)):c5.push(r);for(let r of A2)r.enabled=l5(r.namespace)}function l5(t){if(t.endsWith("*"))return!0;for(let e of A5)if(q0e(t,e))return!1;for(let e of c5)if(q0e(t,e))return!0;return!1}function q0e(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function cut(){let t=G0e||"";return u5(""),t}function z0e(t){let e=Object.assign(r,{enabled:l5(t),destroy:Aut,log:Y0e.log,namespace:t,extend:uut});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return A2.push(e),e}function Aut(){let t=A2.indexOf(this);return t>=0?(A2.splice(t,1),!0):!1}function uut(t){let e=z0e(`${this.namespace}:${t}`);return e.log=this.log,e}var Dy=Y0e;var d5=["verbose","info","warning","error"],W0e={verbose:400,info:300,warning:200,error:100};function J0e(t,e){e.log=(...r)=>{t.log(...r)}}function V0e(t){return d5.includes(t)}function u2(t){let e=new Set,r=a2(t.logLevelEnvVarName),n,s=Dy(t.namespace);s.log=(...u)=>{Dy.log(...u)};function i(u){if(u&&!V0e(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${d5.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Dy.enable(l.join(","))}r&&(V0e(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${d5.join(", ")}.`));function o(u){return!!(n&&W0e[u.level]<=W0e[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(J0e(u,d),o(d)){let h=Dy.disable();Dy.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return J0e(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var j0e=u2({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),lut=j0e.logger;function WQ(t){return j0e.createClientLogger(t)}function l2(t){return t.toLowerCase()}function dut(t){return String(t).trim().replace(/[\r\n]/g,"")}function*hut(t){for(let e of t.values())yield[e.name,e.value]}var h5=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(l2(e),{name:e,value:dut(r)})}get(e){return this._headersMap.get(l2(e))?.value}has(e){return this._ Line truncated
${gut.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function mf(t){return t instanceof ai?!0:Op(t)&&t.name==="RestError"}function jQ(t,e){return Buffer.from(t).toString(e)}function Pi(t,e){return Buffer.from(t,e)}import g5 from"node:http";import E5 from"node:https";import Z0e from"node:zlib";import{Transform as Eut}from"node:stream";var co=WQ("ts-http-runtime");var yut={};function KQ(t){return t&&typeof t.pipe=="function"}function $0e(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 eye(t){return t&&typeof t.byteLength=="number"}var d2=class extends Eut{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}},y5=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new eu("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new qa;co.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=but(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,m=new d2(f);m.on("error",E=>{co.error("Error in upload progress",E)}),KQ(a)?a.pipe(m):m.end(a),a=m}let A=await this.makeRequest(e,r,a),u=Cut(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Iut(A,u):A;let h=e.onDownloadProgress;if(h){let f=new d2(h);f.on("error",m=>{co.error("Error in download progress",m)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await But(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();KQ(a)&&(A=$0e(a));let u=Promise.resolve();KQ(c)&&(u=$0e(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{co.warning("Error when cleaning up abortListener on httpRequest",l)})}}}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 a={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((c,A)=>{let u=i?g5.request(a,c):E5.request(a,c);u.once("error",l=>{A(new ai(l.message,{code:l.code??ai.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new eu("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&KQ(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):eye(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(co.error("Unrecognized body type",n),A(new ai("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g5.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g5.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return E5.globalAgent;let s=e.tlsSettings??yut,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(co.info("No cached TLS Agent exist, creating a new Agent"),i=new E5.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Cut(t){let e=ao();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}function Iut(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Z0e.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Z0e.createInflate();return t.pipe(n),n}return t}function But(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 ai(`Error reading response as text: ${s.message}`,{code:ai.PARSE_ERROR}))})})}function but(t){return t?Buffer.isBuffer(t)?t.length:KQ(t)?null:eye(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function tye(){return new y5}function XQ(){return tye()}var h2="logPolicy";function ZQ(t={}){let e=t.logger??co.info,r=new qa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi Line truncated
`;return e}function Ylt(t){return t instanceof Uint8Array?t.byteLength:Aw(t)?t.size===-1?void 0:t.size:void 0}function zlt(t){let e=0;for(let r of t){let n=Ylt(r);if(n===void 0)return;e+=n}return e}async function Wlt(t,e,r){let n=[Pi(`--${r}`,"utf-8"),...e.flatMap(i=>[Pi(`\r
`,"utf-8"),Pi(Glt(i.headers),"utf-8"),Pi(`\r
`,"utf-8"),i.body,Pi(`\r
--${r}`,"utf-8")]),Pi(`--\r
\r
`,"utf-8")],s=Prt(n);s&&t.headers.set("Content-Length",s),t.body=await Che(n)}var zy="multipartPolicy",Hrt=70,Grt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function qrt(t){if(t.length>Hrt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Grt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ux(){return{name:zy,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,o]=s;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?qrt(r):r=Mrt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ort(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function lx(){return PT()}var Ihe=MT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ner=Ihe.logger;function _o(t){return Ihe.createClientLogger(t)}var vc=_o("core-rest-pipeline");function o8(t={}){return GT({logger:vc.info,...t})}var a8=cx;function c8(t={}){return Ax(t)}import A8 from"node:os";import Zl from"node:process";function yhe(){return"User-Agent"}async function Bhe(t){if(Zl&&Zl.versions){let e=`${A8.type()} ${A8.release()}; ${A8.arch()}`;Zl.versions.bun?t.set("Bun",`${Zl.versions.bun} (${e})`):Zl.versions.deno?t.set("Deno",`${Zl.versions.deno} (${e})`):Zl.versions.node&&t.set("Node",`${Zl.versions.node} (${e})`)}}var dx="1.24.0";function $rt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function bhe(){return yhe()}async function hx(t){let e=new Map;e.set("core-rest-pipeline",dx),await Bhe(e);let r=$rt(e);return t?`${t} ${r}`:r}var Qhe=bhe(),whe="userAgentPolicy";function u8(t={}){let e=hx(t.userAgentPrefix);return{name:whe,async sendRequest(r,n){return r.headers.has(Qhe)||r.headers.set(Qhe,await e),n(r)}}}var She=Symbol("rawContent");function l8(t){return typeof t[She]=="function"}function Nhe(t){return l8(t)?t[She]():t}var fx=zy;function d8(){let t=ux();return{name:fx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)l8(n.body)&&(n.body=Nhe(n.body));return t.sendRequest(e,r)}}}var h8=ox;function f8(){return ax()}function g8(t={}){return VT(t)}function p8(){return WT()}var jy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function m8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new jy(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var ont="The delay was aborted.";function Xm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return m8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??ont})}function ed(t){if(pf(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 The(t){return pf(t)}function Zm(){return gf()}var Jt=_T;function td(t){return r8(t)}function C8(t,e){return ix(t,e)}var xhe="setClientRequestIdPolicy";function I8(t="x-ms-client-request-id"){return{name:xhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function y8(t){return JT(t)}function B8(t){return zT(t)}var e0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Rhe(t={}){let e=new b8(t.parentContext);return t.span&&(e=e.setValue(e0.span,t.span)),t.namespace&&(e=e.setValue(e0.namespace,t.namespace)),e}var b8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var khe=pe(Dhe(),1),px=khe.state;function ant(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function cnt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:ant(),tracingContext:Rhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Ky(){return px.instrumenterImplementation||(px.instrumenterImplementation=cnt()),px.instrumenterImplementation}function $y(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Ky().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Rst(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",en("InvalidTag",l,vs(t,i))}let A=wst(t,i);if(A===!1)return en("InvalidAttr","Attributes for '"+c+"' have open quote.",vs(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=hfe(u,e);if(d===!0)n=!0;else return en(d.err.code,d.err.msg,vs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return en("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",vs(t,o));if(r.length===0)return en("InvalidTag","Closing tag '"+c+"' has not been opened.",vs(t,o));{let l=r.pop();if(c!==l.tagName){let d=vs(t,l.tagStartPos);return en("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",vs(t,o))}r.length==0&&(s=!0)}}else return en("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",vs(t,i));else{let l=hfe(u,e);if(l!==!0)return en(l.err.code,l.err.msg,vs(t,i-u.length+l.err.line));if(s===!0)return en("InvalidXml","Multiple possible root nodes found.",vs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=dfe(t,i);continue}else if(t[i+1]==="?"){if(i=lfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Tst(t,i);if(l==-1)return en("InvalidChar","char '&' is not expected.",vs(t,i));i=l}else if(s===!0&&!ufe(t[i]))return en("InvalidXml","Extra text at the end",vs(t,i));t[i]==="<"&&i--}}else{if(ufe(t[i]))continue;return en("InvalidChar","char '"+t[i]+"' is not expected.",vs(t,i))}if(n){if(r.length==1)return en("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",vs(t,r[0].tagStartPos));if(r.length>0)return en("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return en("InvalidXml","Start tag expected.",1);return!0}function ufe(t){return t===" "||t===" "||t===`
`||t==="\r"}function lfe(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 en("InvalidXml","XML declaration allowed only at the start of the document.",vs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function dfe(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 bst='"',Qst="'";function wst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===bst||t[e]===Qst)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}}var Sst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function hfe(t,e){let r=wx(t,Sst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return en("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",aB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return en("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",aB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return en("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",aB(r[s]));let i=r[s][2];if(!xst(i))return en("InvalidAttr","Attribute '"+i+"' is an invalid name.",aB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return en("InvalidAttr","Attribute '"+i+"' is repeated.",aB(r[s]))}return!0}function Nst(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 Tst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Nst(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 en(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function xst(t){return H8(t)}function Rst(t){return H8(t)}function vs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function aB(t){return t.startIndex+t[1].length}var ffe={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:"%",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"},gfe={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"},pfe={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",Lcaron:"\u013Line truncated
`);let e=new Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new uB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=o0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=j8(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=K8(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new Ai(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=o0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=o0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=K8(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=j8(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=rit(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=tit(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new Ai(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=j8(s.transformTagName,l,h,s));let V=new Ai(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new Ai(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new Ai(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function cit(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))}function Ait(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)}function uit(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}function lit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function dit(t,e,r=">"){Line truncated
`;function Iit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(r4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Gfe(t,e,r,n,s){return!r.sanitizeName||bf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function t4(t,e){let r="";e.format&&(r=Cit);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Ji(a)):a instanceof Ji&&n.push(a)}let s=Iit(t,e),i=new Mc;return qfe(t,e,r,i,n,s)}function qfe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=e4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=r4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Gfe(u,!1,e,n,i),h=yit(A[":@"],e);n.push(d,h);let f=bit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=e4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],B=Mx(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Fx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Hfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Hfe(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Yfe(A[u],e):I=qfe(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function yit(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]=sd(t[s]),n=!0}return n?r:null}function Yfe(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=r4(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 o=Bit(s[":@"],e),a=Yfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Bit(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)}="${sd(s)}"`}return r}function r4(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}}function Hfe(t,e,r,n,s){let i="";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:Gfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=e4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${sd(A)}"`}return i}function bit(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 e4(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}function n4(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 Qit={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 li(t){if(this.options=Object.assign({},Qit,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 Ji(r)):r instanceof Ji&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=zlt(n);s&&t.headers.set("Content-Length",s),t.body=await Jye(n)}var _y="multipartPolicy",Jlt=70,Vlt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function jlt(t){if(t.length>Jlt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Vlt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function uw(){return{name:_y,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,o]=s;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?jlt(r):r=qlt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Wlt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}var Vye=u2({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),jlr=Vye.logger;function Cs(t){return Vye.createClientLogger(t)}var lw=Cs("core-rest-pipeline");function tCe(){return"User-Agent"}function rCe(){return tCe()}var Udr=rCe();var Pn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function R5(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Pn(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var odt="The delay was aborted.";function ru(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return R5(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??odt})}function gd(t){if(Op(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 k5(t){return Op(t)}function Wa(){return Up()}var ct=c2;function v5(t,e){return jQ(t,e)}function P5(t,e){return Pi(t,e)}var M5=Ly;function Ef(t){return sw(t)}var Uy={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function nCe(t={}){let e=new F5(t.parentContext);return t.span&&(e=e.setValue(Uy.span,t.span)),t.namespace&&(e=e.setValue(Uy.namespace,t.namespace)),e}var F5=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var iCe=xe(sCe(),1),v2=iCe.state;function adt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function cdt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:adt(),tracingContext:nCe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dw(){return v2.instrumenterImplementation||(v2.instrumenterImplementation=cdt()),v2.instrumenterImplementation}function yf(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dw().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(Uy.namespace)||(h=h.setValue(Uy.namespace,e)),f.setAttribute("az.namespace",h.getValue(Uy.namespace));let m=Object.assign({},u,{tracingOptions:{...u?.tracingOptions,tracingContext:h}});return{span:f,updatedOptions:m}}async function i(A,u,l,d){let{span:h,updatedOptions:f}=s(A,u,d);try{let m=await o(f.tracingOptions.tracingContext,()=>l(f,h));return h.setStatus({status:"success"}),m}catch(m){throw h.setStatus({status:"error",error:m}),m}finally{h.end()}}function o(A,u,...l){return dw().withContext(A,u,...l)}function a(A){return dw().parseTraceparentHeader(A)}function c(A){return dw().createRequestHeaders(A)}return{startSpan:s,withSpan:i,withContext:o,parseTraceparentHeader:a,createRequestHeaders:c}}function P2(t){return mf(t)}var Gfr=Cs("core-rest-pipeline retryPolicy");var bdt={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Qdt(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let i=await t();if(i===null)throw new Error("Failed to refresh access token.");return i}}let s=await n();for(;s===null;)await ru(e),s=await n();return s}function L5(t,e){let r=null,n=null,s,i={...bdt,...e},o={get isRefreshing(){return r!==null},get shouldRefresh(){return o.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-i.refreshWindowInMs<Date.now()},get mustRefresh(){return n===n Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Xht(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Mn("InvalidTag",l,Mi(t,i))}let A=Wht(t,i);if(A===!1)return Mn("InvalidAttr","Attributes for '"+c+"' have open quote.",Mi(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=eIe(u,e);if(d===!0)n=!0;else return Mn(d.err.code,d.err.msg,Mi(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Mn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Mi(t,o));if(r.length===0)return Mn("InvalidTag","Closing tag '"+c+"' has not been opened.",Mi(t,o));{let l=r.pop();if(c!==l.tagName){let d=Mi(t,l.tagStartPos);return Mn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Mi(t,o))}r.length==0&&(s=!0)}}else return Mn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Mi(t,i));else{let l=eIe(u,e);if(l!==!0)return Mn(l.err.code,l.err.msg,Mi(t,i-u.length+l.err.line));if(s===!0)return Mn("InvalidXml","Multiple possible root nodes found.",Mi(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=$Ce(t,i);continue}else if(t[i+1]==="?"){if(i=ZCe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=jht(t,i);if(l==-1)return Mn("InvalidChar","char '&' is not expected.",Mi(t,i));i=l}else if(s===!0&&!qy(t[i]))return Mn("InvalidXml","Extra text at the end",Mi(t,i));t[i]==="<"&&i--}}else{if(qy(t[i]))continue;return Mn("InvalidChar","char '"+t[i]+"' is not expected.",Mi(t,i))}if(n){if(r.length==1)return Mn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Mi(t,r[0].tagStartPos));if(r.length>0)return Mn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Mn("InvalidXml","Start tag expected.",1);return!0}function qy(t){return t===" "||t===" "||t===`
`||t==="\r"}function ZCe(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 Mn("InvalidXml","XML declaration allowed only at the start of the document.",Mi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function $Ce(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 Yht='"',zht="'";function Wht(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Yht||t[e]===zht)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}}function Jht(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&qy(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!qy(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&qy(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&qy(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,m=t.indexOf(t[d],f);m!==-1&&(u=t[d],l=t.slice(f,m),n=m+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function eIe(t,e){let r=Jht(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Mn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bw(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Mn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bw(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Mn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bw(r[s]));let i=r[s][2];if(!Kht(i))return Mn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bw(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Mn("InvalidAttr","Attribute '"+i+"' is repeated.",bw(r[s]))}return!0}function Vht(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 jht(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Vht(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 Mn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Kht(t){return mq(t)}function Xht(t){return mq(t)}function Mi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bw(t){return t.startIndex+t[1].length}var pq={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Qw={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},gq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var Gy=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Zht=new Set("!?\\\\/[]$%{}^&*()<>|+");function tIe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Zht.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function ww(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var Vp="external",V2="base",Eq="all";function $ht(t){return!t||t===Vp?new Set([Vp]):t===Eq?new Set([Eq]):t===V2?new Set([V2]):Array.isArray(t)?new Set(t):new Set([Vp])}var lo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),eft=new Set([9,10,13]);function tft(t){if(!t)return{xmlVersion:1,onLevel:lo.allow,nullLevel:lo.remove};let e=t.xmlVersion===1.1?1.1:1,r=lo[t.onNCR]??lo.allow,n=lo[t.nullNCR]??lo.remove,s=Math.max(n,lo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var Yy=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=$ht(this._limit.applyLimitsTo??Vp),this._numericAllowed=e.numericAllowed??!0,this._baseMap=ww(Qw,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le Line truncated
`);let e=new ho("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s=this.options,i=new xw(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=jy(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=Dq(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop()||e,s.captureMetaData&&r&&r.addEndIndex(u+1),n="",a=u}else if(A===63){let u=kq(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new ho(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),s.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=jy(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=jy(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=kq(t,a,s.removeNSPrefix);if(!u){let W=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${W}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,m=u.closeIndex;if({tagName:l,tagExp:h}=Dq(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(g=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,I={},B;B=Lft(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(I=Fft(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let W="";if(g)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let H=this.readStopNodeData(t,d,m+1);if(!H)throw new Error(`Unexpected end of ${d}`);a=H.i,W=H.tagContent}let F=new ho(l);C&&(F[":@"]=C),F.add(s.textNodeName,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(a+1)}else{if(g){({tagName:l,tagExp:h}=Dq(s.transformTagName,l,h,s));let W=new ho(l);C&&(W[":@"]=C),this.addChild(r,W,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(m+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let W=new ho(l);C&&(W[":@"]=C),this.addChild(r,W,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let W=new ho(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(W[":@"]=C),this.addChild(r,W,this.readonlyMatcher,M),r=W}n="",a=m}}}else n+=t[a];return e.child};function Gft(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))}function Yft(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)}function zft(t,e,Line truncated
`;function tmt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(_q(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function CIe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function Lq(t,e){let r="";e.format&&(r=emt);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 Zo(c)):c instanceof Zo&&n.push(c)}let s=tmt(t,e),i=j2("qName",{xmlVersion:s}),o=new ou;return IIe(t,e,r,o,n,i)}function IIe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=Js(t);return c=Fq(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=_q(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:CIe(u,!1,e,n,i),h=rmt(A[":@"],e);n.push(d,h);let f=smt(n,s);if(d===e.textNodeName){let I=A[u];f||(I=e.tagValueProcessor(d,I),I=Fq(I,e)),I=Js(I),a&&(o+=r),o+=I,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let I=A[u][0][e.textNodeName],B=ek(I);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let I=A[u][0][e.textNodeName],B=Rw(I);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let I=yIe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${I}?>`,a=!0,n.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let E=yIe(A[":@"],e,f,n,i),g=r+`<${d}${E}`,C;f?C=BIe(A[u],e):C=IIe(A[u],e,m,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}</${d}>`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function rmt(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]=au(t[s]),n=!0}return n?r:null}function BIe(t,e){if(!Array.isArray(t))return t!=null?Js(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=_q(s);if(i===e.textNodeName)r+=Js(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 o=nmt(s[":@"],e),a=BIe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function nmt(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)}="${au(s)}"`}return r}function _q(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}}function yIe(t,e,r,n,s){let i="";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:CIe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=Fq(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${au(A)}"`}return i}function smt(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 Fq(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}function Uq(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 imt={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 mo(t){if(this.options=Object.assign({},imt,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 Zo(r)):r instanceof Zo&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function wit(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"}function s4(t,e,r,n,s){return!r.sanitizeName||bf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}li.prototype.build=function(t){if(this.options.preserveOrder)return t4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Mc,r=wit(t,this.options);return this.j2x(t,0,e,r).val}};li.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 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:s4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=s4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=s4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};li.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+'="'+sd(e)+'"'};function Sit(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}li.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]=sd(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]=sd(t[n]),r=!0)}return r?e:null};li.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 n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function omt(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"}function Oq(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}mo.prototype.build=function(t){if(this.options.preserveOrder)return Lq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ou,r=omt(t,this.options),n=j2("qName",{xmlVersion:r});return this.j2x(t,0,e,n).val}};mo.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 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:Oq(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=Oq(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,Js(t[c]),a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,Js(t[c]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=Js(t[c]);h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let m=t[c][f];if(!(typeof m>"u"))if(m===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=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,n);r.pop(),d+=E.val,this.options.attributesGroupName&&m.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(m,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,m);E=this.replaceEntitiesValue(E),E=Js(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let g=Js(m);g===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+g+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(m,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=Oq(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,Js(t[c][l[h]]),a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};mo.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,Js(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+au(e)+'"'};function amt(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}mo.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]=au(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]=au(t[n]),r=!0)}return r?e:null};mo.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 n=t[r];if(r===this.options.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Ke.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Ke.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Ke.PREFIX_FOR_STORAGE));r.sort((s,i)=>Jx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Yx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Vx(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends Sf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new gB(e,r,this)}computeHMACSHA256(e){return Uit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Nf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var In=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var od={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Pit=new Nf("The operation was aborted."),pB=class extends Lc{retryOptions;constructor(e,r,n=od){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:od.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):od.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:od.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:od.maxRetryDelayInMs):od.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:od.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:od.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=qx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=id(s.url,bu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(In.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(In.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return In.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 o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return In.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return In.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return In.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(Ke.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(In.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 Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return In.info(`RetryPolicy: Delay for ${s}ms`),Wx(s,n,Pit)}};var mB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new pB(e,r,this.retryOptions)}};var Oit="storageBrowserPolicy";function jfe(){return{name:Oit,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=id(t.url,bu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ke.COOKIE),t.headers.delete(Ke.CONTENT_LENGTH)),e(t)}}}var Hit="StorageCorrectContentLengthPolicy";function Kfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ke.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Hit,async sendRequest(e,r){return t(e),r(e)}}}var Git="storageRetryPolicy",c0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Yit=new Nf("The operation was aborted.");function $fe(t={}){let e=t.retryPolicyType??c0.retryPolicyType,r=t.maxTries??c0.maxTries,n=t.retryDelayInMs??c0.retryDelayInMs,s=t.maxRetryDelayInMs??c0.maxRetryDelayInMs,i=t.secondaryHost??c0.secondaryHost,o=t.tryTimeoutInMs??c0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return In.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of qit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Qt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Qt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Qt.PREFIX_FOR_STORAGE));r.sort((s,i)=>dk(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Ak(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=uk(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var It=class extends xf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new tC(e,r,this)}computeHMACSHA256(e){return xmt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rs=Cs("storage-common");var ta;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ta||(ta={}));var Sf={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ta.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Smt=new Pn("The operation was aborted."),rC=class extends nA{retryOptions;constructor(e,r,n=Sf){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Sf.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Sf.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Sf.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Sf.maxRetryDelayInMs):Sf.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Sf.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Sf.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=ck(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=ak(s.url,Mw.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(rs.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(rs.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return rs.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 o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return rs.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return rs.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return rs.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(Qt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(rs.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 ta.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ta.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return rs.info(`RetryPolicy: Delay for ${s}ms`),lk(s,n,Smt)}};var Tf=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new rC(e,r,this.retryOptions)}};var Tmt="storageBrowserPolicy";function hk(){return{name:Tmt,async sendRequest(t,e){return e(t)}}}var Rmt="StorageCorrectContentLengthPolicy";function fk(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Qt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Rmt,async sendRequest(e,r){return t(e),r(e)}}}var Dmt="storageRetryPolicy",nC={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ta.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},kmt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],vmt=new Pn("The operation was aborted.");function mk(t={}){let e=t.retryPolicyType??nC.retryPolicyType,r=t.maxTries??nC.maxTries,n=t.retryDelayInMs??nC.retryDelayInMs,s=t.maxRetryDelayInMs??nC.maxRetryDelayInMs,i=t.secondaryHost??nC.secondaryHost,o=t.tryTimeoutInMs??nC.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return rs.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of kmt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return rs.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return rs.info("RetryPolicy: Incomplete XML response likely due Line truncated
`)+`
`+n(i)+s(i),a=Vit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Ke.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Ke.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(Ke.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>Jx(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Yx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Vx(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Wit,async sendRequest(i,o){return e(i),o(i)}}}var Jit="storageRequestFailureDetailsParserPolicy";function Xfe(){return{name:Jit,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}}}}import{createHmac as zit}from"node:crypto";var zx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return zit("sha256",this.key).update(e,"utf8").digest("base64")}};var jx="12.31.0",Kx="2026-02-06";var $x="https://storage.azure.com/.default",Qu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ua="",u4="*",jit=1*1024*1024;var Kit=4*jit;var Zfe="AES256",ege="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",tge=["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"],rge=["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"],nge="BlobUsesCustomerSpecifiedEncryption",sge="BlobDoesNotUseCustomerSpecifiedEncryption",ige=["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 EB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function tn(t,e={}){t||(t=new Sr);let r=new EB([],e);return r._credential=t,r}function $it(t){let e=[Xit,oge,Zit,eot,tot,rot,sot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>not(s));return{wrappedPolicies:P8(r),afterRetry:n}}}}function l4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?O8(e):c4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${jx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=eB({...r,loggingOptions:{additionalAllowedHeaderNames:tge,additionalAllowedQueryParameters:rge,logger:Ux.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Lx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:o4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:h8}),s.addPolicy(Kfe()),s.addPolicy($fe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Xfe()),s.addPolicy(jfe());let a=$it(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=d4(t);Vi(c)?s.addPolicy(t0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new qa(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}}function Xat(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ga(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,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 Zat(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ga(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,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}}function ect(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,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}}function tct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,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}}function rct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,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}}function nct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,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}}function Ff(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Mf(t){let e=t.version?t.version:Kx;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 RB=class{_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=Zm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ua||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>_e(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!==Ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ua||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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=_e(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!==Ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ua||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>_e(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!==Ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ua||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 Be.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"}};E0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Pf=class extends Error{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"}};Pf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var UB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Sct=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},PH=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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`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=()=>{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 Cpe(t,e,r){return Sct(this,void 0,void 0,function*(){var n;let s=new Ya(t),i=s.getBlockBlobClient(),o=new PH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),q(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new VR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Xe(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as ype from"buffer";import*as rA from"fs";import*as Bpe from"stream";import*as bpe from"util";var WR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function JR(t){return t?t>=200&&t<300:!1}function Nct(t){return t?t>=500:!0}function Tct(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function xct(t){return WR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Ipe(t,e,r){return WR(this,arguments,void 0,function*(n,s,i,o=TT,a=xT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!Nct(d)))return l;if(d&&(h=Tct(d),A=`Cache service responded with ${d}`),q(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){q(`${n} - Error is not retryable`);break}yield xct(a),u++}throw Error(`${n} failed: ${A}`)})}function PB(t,e){return WR(this,arguments,void 0,function*(r,n,s=TT,i=xT){return yield Ipe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof wc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function C0(t,e){return WR(this,arguments,void 0,function*(r,n,s=TT,i=xT){return yield Ipe(r,n,o=>o.message.statusCode,s,i)})}var Oo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Rct(t,e){return Oo(this,void 0,void 0,function*(){yield bpe.promisify(Bpe.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,q(`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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])q(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function YH(t,e,r){return hi(this,void 0,void 0,function*(){let n=new Fct(t),s=Npe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield wpe(t,e,s):s.concurrentBlobDownloads?yield Qpe(t,e,s):yield jR(t,e):yield jR(t,e)})}function Lpe(t,e,r){return hi(this,void 0,void 0,function*(){let n=qH(),s=Ym(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield PB("reserveCache",()=>hi(this,void 0,void 0,function*(){return n.postJson(HB("caches"),i)}))})}function Fpe(t,e){return`bytes ${t}-${e}/*`}function Pct(t,e,r,n,s){return hi(this,void 0,void 0,function*(){q(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Fpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Fpe(n,s)},o=yield C0(`uploadChunk (start: ${n}, end: ${s})`,()=>hi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!JR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Oct(t,e,r,n){return hi(this,void 0,void 0,function*(){let s=Rc(r),i=HB(`caches/${e.toString()}`),o=I0.openSync(r,"r"),a=OH(n),c=x3("uploadConcurrency",a.uploadConcurrency),A=x3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];q("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>hi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield Pct(t,i,()=>I0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{I0.closeSync(o)}})}function Hct(t,e,r){return hi(this,void 0,void 0,function*(){let n={size:r};return yield PB("commitCache",()=>hi(this,void 0,void 0,function*(){return t.postJson(HB(`caches/${e.toString()}`),n)}))})}function VH(t,e,r,n){return hi(this,void 0,void 0,function*(){if(OH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Cpe(r,e,n)}else{let i=qH();q("Upload cache"),yield Oct(i,t,e,n),q("Commiting cache");let o=Rc(e);re(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Hct(i,t,o);if(!JR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);re("Cache saved successfully")}})}var Rme=pe(M9(),1),nn=pe(ct(),1),Ki=pe(ct(),1),Yf=pe(ct(),1),Vf=pe(ct(),1),Wf=pe(ct(),1);var O9=pe(ct(),1),H9=pe(ct(),1),Nme=pe(ct(),1),Tme=pe(ct(),1),xme=pe(ct(),1);var L9=pe(ct(),1),U9=pe(ct(),1),Qme=pe(ct(),1),wme=pe(ct(),1),Sme=pe(ct(),1),P9=class extends Sme.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,Qme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?U9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,L9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,L9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?U9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},MD=new P9;var G9=class extends xme.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:()=>MD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Tme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Nme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(MD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?H9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,O9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)MD.internalBinaryWrite(e.scope[i],r.tag(2,O9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?H9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield nG(r,"create");yield sG(n,t)})}var M0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Ja=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Jf=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},aG="cache write denied:",PD=class t extends Jf{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},_me=RT,OD=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},HD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Fme(t){if(!t||t.length===0)throw new Ja("Path Validation Error: At least one directory or file path is required")}function cG(t){if(t.length>512)throw new Ja(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ja(`Key Validation Error: ${t} cannot contain commas.`)}function Mme(){return OB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Lme(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=OB();q(`Cache service version: ${A}`),Fme(s);let u=GH();if(!xpe(u)){re(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),q(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield slt(s,i,o,a,c):yield nlt(s,i,o,a,c)})}function nlt(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(u)),u.length>10)throw new Ja("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)cG(h);let l=yield Hy(),d="";try{let h;try{h=yield Mpe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(_me)?new OD(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return re("Lookup only - skipping download"),h.cacheKey;d=nb.join(yield Py(),Kl(l)),q(`Archive Path: ${d}`),yield YH(h.archiveLocation,d,a),Yl()&&(yield rb(d,l));let f=Rc(d);return re(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield iG(d,l),re("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Ja.name)throw h;f instanceof wc&&typeof f.statusCode=="number"&&f.statusCode>=500?No(`Failed to restore: ${h.message}`):Xe(`Failed to restore: ${h.message}`)}finally{try{yield Oy(d)}catch(h){q(`Failed to delete archive: ${h}`)}}})}function slt(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(u)),u.length>10)throw new Ja("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)cG(d);let l="";try{let d=rG(),h=yield Hy(),f={key:i,restoreKeys:o,version:Ym(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(_me)?new OD(y):I}if(!g.ok){q(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?re(`Cache hit for restore-key: ${g.matchedKey}`):re(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return re("Lookup only - skipping download"),g.matchedKey;l=nb.join(yield Py(),Kl(h)),q(`Archive path: ${l}`),q(`Starting download of archive to: ${l}`),yield YH(g.signedDownloadUrl,l,a);let m=Rc(l);return re(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Yl()&&(yield rb(l,h)),yield iG(l,h),re("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===Ja.name)throw d;h instanceof wc&&typeof h.statusCode=="number"&&h.statusCode>=500?No(`Failed to restore: ${d.message}`):Xe(`Failed to restore: ${d.message}`)}finally{try{l&&(yield Oy(l))}catch(d){q(`Failed to delete archive: ${d}`)}}})}function Ume(t,e,r){return M0(this,arguments,void 0,function*(n,s,i,o=!1){let a=OB();q(`Cache service version: ${a}`),Fme(n),cG(s);let c=GH();return Rpe(c)?a==="v2"?yield olt(n,s,i,o):yield ilt(n,s,i,o):(re(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),q(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ilt(t,e,r){return M0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield Hy(),f=-1,g=yield T3(n);if(q("Cache Paths:"),q(`${JSON.stringify(g)}`),g.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 E=yield Py(),m=nb.join(E,Kl(h));q(`Archive Path: ${m}`);try{yield oG(E,g,h),Yl()&&(yield rb(m,h));let I=10*1024*1024*1024 Line truncated
<h3>Job Summary for Gradle</h3>
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
`+n(i)+s(i),a=Pmt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Qt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Qt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(Qt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>dk(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Ak(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=uk(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Mmt,async sendRequest(i,o){return e(i),o(i)}}}var Fmt="storageRequestFailureDetailsParserPolicy";function pk(){return{name:Fmt,async sendRequest(t,e){try{let r=await e(t);return r.status===400&&r.bodyAsText?.includes("<Error><Code>InvalidHeaderValue</Code>")&&r.bodyAsText.includes("<HeaderName>x-ms-version</HeaderName>")&&(r.bodyAsText=r.bodyAsText.replace(/<Message>.*<\/Message>/s,"<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.</Message>")),r}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}}}}import{createHmac as Lmt}from"node:crypto";var iC=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Lmt("sha256",this.key).update(e,"utf8").digest("base64")}};var gk="12.31.0",Ek="2026-02-06";var yk="https://storage.azure.com/.default",Id={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var sA="",Wq="*",_mt=1*1024*1024;var Umt=4*_mt;var MIe="AES256",FIe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",LIe=["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"],_Ie=["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"],UIe="BlobUsesCustomerSpecifiedEncryption",OIe="BlobDoesNotUseCustomerSpecifiedEncryption",HIe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Bd(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 Fw=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Fn(t,e={}){t||(t=new lt);let r=new Fw([],e);return r._credential=t,r}function Omt(t){let e=[Hmt,qIe,qmt,Gmt,Ymt,zmt,Jmt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Wmt(s));return{wrappedPolicies:Cw(r),afterRetry:n}}}}function Jq(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?Iw(e):Pw(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${gk}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Yp({...r,loggingOptions:{additionalAllowedHeaderNames:LIe,additionalAllowedQueryParameters:_Ie,logger:tk.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Xp,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Dw,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:M5}),s.addPolicy(fk()),s.addPolicy(mk(r.retryOptions),{phase:"Retry"}),s.addPolicy(pk()),s.addPolicy(hk());let a=Omt(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=Vq(t);Or(c)?s.addPolicy(F2({credential:c,scopes:r.audience??yk,c Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new AA(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}}function Hgt(t,e){if(t=og(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=Qu.parse(t.permissions.toString()).toString():s=wu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",ig(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?cA(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new AA(t.version,o,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 qgt(t,e){if(t=og(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=Qu.parse(t.permissions.toString()).toString():s=wu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",ig(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?cA(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new AA(t.version,o,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}}function Ggt(t,e){if(t=og(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=Qu.parse(t.permissions.toString()).toString():s=wu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",ig(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?cA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new AA(t.version,o,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}}function Ygt(t,e){if(t=og(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=Qu.parse(t.permissions.toString()).toString():s=wu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",ig(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?cA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new AA(t.version,o,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}}function zgt(t,e){if(t=og(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=Qu.parse(t.permissions.toString()).toString():s=wu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",ig(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?cA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new AA(t.version,o,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}}function Wgt(t,e){if(t=og(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=Qu.parse(t.permissions.toString()).toString():s=wu.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",ig(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?cA(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new AA(t.version,o,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}}function ig(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function og(t){let e=t.version?t.version:Ek;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 Vw=class{_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=Wa()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==sA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sA||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 De.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ge(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!==sA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sA||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 De.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ge(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!==sA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sA||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 De.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ge(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!==sA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sA||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 De.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"}};mC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ag=class extends Error{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"}};Ag.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var tN=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var mEt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Iz=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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ie(`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=()=>{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 tbe(t,e,r){return mEt(this,void 0,void 0,function*(){var n;let s=new Td(t),i=s.getBlockBlobClient(),o=new Iz((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),J(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new hv(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw at(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as nbe from"buffer";import*as Nu from"fs";import*as sbe from"stream";import*as ibe from"util";var fv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function mv(t){return t?t>=200&&t<300:!1}function pEt(t){return t?t>=500:!0}function gEt(t){return t?[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout].includes(t):!1}function EEt(t){return fv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function rbe(t,e,r){return fv(this,arguments,void 0,function*(n,s,i,o=r2,a=n2,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!pEt(d)))return l;if(d&&(h=gEt(d),A=`Cache service responded with ${d}`),J(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){J(`${n} - Error is not retryable`);break}yield EEt(a),u++}throw Error(`${n} failed: ${A}`)})}function rN(t,e){return fv(this,arguments,void 0,function*(r,n,s=r2,i=n2){return yield rbe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof VA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function pC(t,e){return fv(this,arguments,void 0,function*(r,n,s=r2,i=n2){return yield rbe(r,n,o=>o.message.statusCode,s,i)})}var Za=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function yEt(t,e){return Za(this,void 0,void 0,function*(){yield ibe.promisify(sbe.pipeline)(t.message,e)})}var pv=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,J(`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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ie(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])J(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function Nz(t,e,r){return yo(this,void 0,void 0,function*(){let n=new QEt(t),s=Abe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield abe(t,e,s):s.concurrentBlobDownloads?yield obe(t,e,s):yield gv(t,e):yield gv(t,e)})}function ybe(t,e,r){return yo(this,void 0,void 0,function*(){let n=wz(),s=Ry(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield rN("reserveCache",()=>yo(this,void 0,void 0,function*(){return n.postJson(sN("caches"),i)}))})}function gbe(t,e){return`bytes ${t}-${e}/*`}function SEt(t,e,r,n,s){return yo(this,void 0,void 0,function*(){J(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${gbe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":gbe(n,s)},o=yield pC(`uploadChunk (start: ${n}, end: ${s})`,()=>yo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!mv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function TEt(t,e,r,n){return yo(this,void 0,void 0,function*(){let s=$A(r),i=sN(`caches/${e.toString()}`),o=gC.openSync(r,"r"),a=Bz(n),c=a5("uploadConcurrency",a.uploadConcurrency),A=a5("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];J("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>yo(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield SEt(t,i,()=>gC.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),h,f)}})))}finally{gC.closeSync(o)}})}function REt(t,e,r){return yo(this,void 0,void 0,function*(){let n={size:r};return yield rN("commitCache",()=>yo(this,void 0,void 0,function*(){return t.postJson(sN(`caches/${e.toString()}`),n)}))})}function xz(t,e,r,n){return yo(this,void 0,void 0,function*(){if(Bz(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield tbe(r,e,n)}else{let i=wz();J("Upload cache"),yield TEt(i,t,e,n),J("Commiting cache");let o=$A(e);ie(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield REt(i,t,o);if(!mv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ie("Cache saved successfully")}})}var dQe=xe(EW(),1),_n=xe(St(),1),sa=xe(St(),1),fg=xe(St(),1),mg=xe(St(),1),pg=xe(St(),1);var BW=xe(St(),1),bW=xe(St(),1),AQe=xe(St(),1),uQe=xe(St(),1),lQe=xe(St(),1);var yW=xe(St(),1),CW=xe(St(),1),oQe=xe(St(),1),aQe=xe(St(),1),cQe=xe(St(),1),IW=class extends cQe.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,aQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oQe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?CW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,yW.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,yW.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?CW.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},sP=new IW;var QW=class extends lQe.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:()=>sP}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,uQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,AQe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(sP.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?bW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,BW.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)sP.internalBinaryWrite(e.scope[i],r.tag(2,BW.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?bW.UnknownFieldHandler.onWrite Line truncated
`));let{commands:n}=yield mQe(r,"create");yield gQe(n,t)})}var vC=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},dA=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},gg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},qW="cache write denied:",aP=class t extends gg{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},yQe=s2,cP=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},AP=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function CQe(t){if(!t||t.length===0)throw new dA("Path Validation Error: At least one directory or file path is required")}function GW(t){if(t.length>512)throw new dA(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new dA(`Key Validation Error: ${t} cannot contain commas.`)}function IQe(){return nN()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function BQe(t,e,r,n){return vC(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=nN();J(`Cache service version: ${A}`),CQe(s);let u=Qz();if(!lbe(u)){ie(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),J(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield Jyt(s,i,o,a,c):yield Wyt(s,i,o,a,c)})}function Wyt(t,e,r,n){return vC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(J("Resolved Keys:"),J(JSON.stringify(u)),u.length>10)throw new dA("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)GW(h);let l=yield YQ(),d="";try{let h;try{h=yield Ebe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(m){let E=(A=m?.message)!==null&&A!==void 0?A:"";throw E.includes(yQe)?new cP(E):m}if(!h?.archiveLocation)return;if(a?.lookupOnly)return ie("Lookup only - skipping download"),h.cacheKey;d=CN.join(yield _p(),hf(l)),J(`Archive Path: ${d}`),yield Nz(h.archiveLocation,d,a),sf()&&(yield yN(d,l));let f=$A(d);return ie(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield OW(d,l),ie("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===dA.name)throw h;f instanceof VA&&typeof f.statusCode=="number"&&f.statusCode>=500?La(`Failed to restore: ${h.message}`):at(`Failed to restore: ${h.message}`)}finally{try{yield GQ(d)}catch(h){J(`Failed to delete archive: ${h}`)}}})}function Jyt(t,e,r,n){return vC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(J("Resolved Keys:"),J(JSON.stringify(u)),u.length>10)throw new dA("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)GW(d);let l="";try{let d=_W(),h=yield YQ(),f={key:i,restoreKeys:o,version:Ry(s,h,c)},m;try{m=yield d.GetCacheEntryDownloadURL(f)}catch(C){let I=(A=C?.message)!==null&&A!==void 0?A:"";throw I.includes(yQe)?new cP(I):C}if(!m.ok){J(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==m.matchedKey?ie(`Cache hit for restore-key: ${m.matchedKey}`):ie(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return ie("Lookup only - skipping download"),m.matchedKey;l=CN.join(yield _p(),hf(h)),J(`Archive path: ${l}`),J(`Starting download of archive to: ${l}`),yield Nz(m.signedDownloadUrl,l,a);let g=$A(l);return ie(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),sf()&&(yield yN(l,h)),yield OW(l,h),ie("Cache restored successfully"),m.matchedKey}catch(d){let h=d;if(h.name===dA.name)throw d;h instanceof VA&&typeof h.statusCode=="number"&&h.statusCode>=500?La(`Failed to restore: ${d.message}`):at(`Failed to restore: ${d.message}`)}finally{try{l&&(yield GQ(l))}catch(d){J(`Failed to delete archive: ${d}`)}}})}function bQe(t,e,r){return vC(this,arguments,void 0,function*(n,s,i,o=!1){let a=nN();J(`Cache service version: ${a}`),CQe(n),GW(s);let c=Qz();return dbe(c)?a==="v2"?yield jyt(n,s,i,o):yield Vyt(n,s,i,o):(ie(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),J(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Vyt(t,e,r){return vC(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield YQ(),f=-1,m=yield o5(n);if(J("Cache Paths:"),J(`${JSON.stringify(m)}`),m.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 E=yield _p(),g=CN.join(E,hf(h));J(`Archive Path: ${g}`);try{yield HW(E,m,h),sf()&&(yield yN(g,h));let C=10*10 Line truncated
${r.join(`
`)}
`:""}function sCt(t){return`<details>
<summary>${JW.eol} ${vQe(t)}</summary>
<p>${PQe(t)}</p>
<p>If you cannot upgrade, see the <a href="${DQe}">Gradle Security Subscription</a> for options.</p>
</details>`}async function OQe(t,e,r,n){ipe("Generating Job Summary");let s=HQe(),i=cCt();if(i){Ad.addRaw(s),Ad.addRaw(i),await Ad.write();return}let o=aCt(t),a=Age(e,r),c=dCt(t);ie(o),ie("============================"),ie(a),n.shouldGenerateJobSummary(c)&&(Ad.addRaw(s),Ad.addRaw(o),Ad.addRaw(a),await Ad.write()),ope(),n.canAddPRComment()&&await gCt(),n.shouldAddPRComment(c)&&await iCt(o)}async function iCt(t){let e=hd;if(e.payload.pull_request==null){ie("No pull_request trigger detected: not adding PR comment");return}let r=e.payload.pull_request.number;ie(`Adding Job Summary as comment to PR #${r}.`);let n=`${qQe(e)}
${HQe()}<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,s=ab(),i=Oi(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Xe(hlt(o));else throw o}}function hlt(t){let e=`Failed to generate PR comment.
${t}`,s=wN(),i=jo(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")at(oCt(o));else throw o}}function oCt(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function flt(t){return`${plt()}
${Elt(t)}`}function glt(){let t=Gme();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function plt(){let t=Hme();return t.length===0?"":`
`:e}function aCt(t){return`${ACt()}
${lCt(t)}
${_Qe(t.map(e=>e.gradleVersion))}`}function HQe(){let t=IN();return`<h3>Gradle Builds${t?` <sub><em>captured by ${t}</em></sub>`:""}</h3>
`}function cCt(){let t=xQe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function ACt(){let t=NQe();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${qD()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${IN()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${mlt(e)}</li>`).join("")}
${t.map(e=>`<li>${uCt(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function mlt(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Elt(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function uCt(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function lCt(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -308,16 +319,15 @@ This job uses deprecated functionality from the <code>${qD()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>Ilt(e)).join("")}
</table>
`}function Clt(t){return t.some(e=>e.buildFailed)}function Ilt(t){return`
</tr>${t.map(e=>hCt(e)).join("")}
</table>`}function dCt(t){return t.some(e=>e.buildFailed)}function hCt(t){return`
<tr>
<td>${Wme(t.rootProjectName,30)}</td>
<td>${Wme(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${ylt(t)}</td>
<td>${Blt(t)}</td>
</tr>`}function ylt(t){return t.buildFailed?":x:":":white_check_mark:"}function Blt(t){return t.buildScanFailed?lG({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?lG({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):lG({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function lG({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function Wme(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function blt(){let t=pu;if(t.payload.pull_request==null){re("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;re(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=zme(t),n=Oi(ab()),{owner:s,repo:i}=t.repo,o=`
<td>${UQe(t.rootProjectName,30)}</td>
<td>${UQe(t.requestedTasks,60)}</td>
<td align='center'>${fCt(t.gradleVersion)}</td>
<td align='center'>${mCt(t)}</td>
<td>${pCt(t)}</td>
</tr>`}function fCt(t){let e=FQe(t);return e?`${t} ${e}`:t}function mCt(t){return t.buildFailed?":x:":":white_check_mark:"}function pCt(t){return t.buildScanFailed?jW({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?jW({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):jW({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function jW({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function UQe(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function gCt(){let t=hd;if(t.payload.pull_request==null){ie("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;ie(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=qQe(t),n=jo(wN()),{owner:s,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
@@ -327,66 +337,74 @@ This job uses deprecated functionality from the <code>${qD()}</code> action. Fol
}
}
}
`,a;try{let{repository:u}=await n.graphql(o,{owner:s,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return Xe(`Failed to fetch comments: ${u}`)}let c=`
`,a;try{let{repository:u}=await n.graphql(o,{owner:s,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return at(`Failed to fetch comments: ${u}`)}let c=`
mutation($id: ID!) {
minimizeComment(input: {subjectId: $id, classifier: OUTDATED}) {
clientMutationId
}
}
`,A=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(c,{id:u.id}).then(()=>re(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>Xe(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(A)}function zme(t){return`<!-- gradle-job-summary: ${U0.constructJobCorrelator(t.workflow,t.job,uG())} -->`}var jme=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Yo from"fs";import*as _u from"path";function Kme(){return Xme().map(e=>{let r=Yo.readFileSync(e,"utf8"),n=JSON.parse(r);return Slt(e,n),n})}function $me(){Xme().forEach(Tlt)}function Xme(){let t=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Yo.existsSync(t)?Yo.readdirSync(t).map(e=>_u.resolve(t,e)).filter(e=>_u.extname(e)===".json"&&!Nlt(e)):[]}function Slt(t,e){let r=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Yo.existsSync(r))return;let n=_u.resolve(r,_u.basename(t));if(Yo.existsSync(n)){let s=Yo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function Nlt(t){let e=`${t}.processed`;return Yo.existsSync(e)}function Tlt(t){let e=`${t}.processed`;Yo.writeFileSync(e,"")}import*as v0e from"fs";import*as _0e from"path";import{pathToFileURL as Wdt}from"url";import*as H0 from"fs";function dG(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,q(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,q(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as KD from"path";import*as P0 from"path";import jf from"assert";var pd=process.platform==="win32";function Mu(t){if(t=Fu(t),pd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=P0.dirname(t);return pd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Fu(e)),e}function JD(t,e){if(jf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),jf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Ab(e))return e;if(pd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return jf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(za(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return jf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return jf(Ab(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||pd&&t.endsWith("\\")||(t+=P0.sep),t+e}function Ab(t){return jf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=za(t),pd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function ub(t){return jf(t,"isRooted parameter 'itemPath' must not be empty"),t=za(t),pd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function za(t){return t=t||"",pd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Fu(t){return t?(t=za(t),!t.endsWith(P0.sep)||t===P0.sep||pd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var ja;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(ja||(ja={}));var Zme=process.platform==="win32";function fG(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=Zme?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=Zme?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Mu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Mu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function e0e(t,e){let r=ja.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function t0e(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as y0e from"os";import*as Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new gb(i));return n.searchPaths.push(...fG(n.patterns)),n})}static stat(e,r,n){return BG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield H0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`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 H0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield H0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as bG from"crypto";import*as $D from"fs";import*as B0e from"stream";import*as b0e from"util";import*as Q0e from"path";var Hdt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Gdt=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function w0e(t,e){return Hdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?re:q,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=bG.createHash("sha256"),f=0;try{for(var g=!0,E=Gdt(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${Q0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if($D.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=bG.createHash("sha256");yield b0e.promisify(B0e.pipeline)($D.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var S0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function QG(t,e){return S0e(this,void 0,void 0,function*(){return yield jD.create(t,e)})}function N0e(t){return S0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield QG(e,{followSymbolicLinks:i});return w0e(o,r,s)})}import*as wG from"path";var qdt="Gradle User Home",x0e="BASIC_CACHE_PRIMARY_KEY",R0e="BASIC_CACHE_RESTORED_KEY",Ydt="setup-java",D0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],XD=class{async restore(e,r){let n=k0e(e),s=await Vdt();yy(x0e,s);try{let i=await Lme(n,s);i?(yy(R0e,i),re(`Basic caching restored from cache key: ${i}`)):re("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Xe(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=Tc(x0e),i=Tc(R0e);if(n.readOnly)return{status:"read-only",entries:[mb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return re(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[mb({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=k0e(e);try{return await Ume(o,s)===-1?(Xe(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[mb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(re(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[mb({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return Xe(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[mb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(ELine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${D0e}], make sure you have checked out the target repository`);return`${Ydt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Jdt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",zdt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",NG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function F0e(t){return t.isCacheDisabled()?(SG("Cache is disabled: will not restore state from previous builds."),new NG):t.getCacheProvider()==="basic"?(SG(zdt),new XD):(SG(Jdt),jdt())}function M0e(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function jdt(){let t=Kdt();return await import(Wdt(t).href)}function Kdt(){let t=import.meta.dirname,e=_0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(v0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function SG(t){console.info(t)}import*as H0e from"util";var nht=pe(O0e(),1);import*as TG from"fs";var wmr=H0e.promisify(TG.readdir);var iht={_useHtmlParser2:!1};function G0(t,e){if(!t)return e??iht;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var XG={};Qa(XG,{contains:()=>h2,extract:()=>Zht,html:()=>jht,merge:()=>uEe,parseHTML:()=>$ht,root:()=>Xht,text:()=>ig,xml:()=>Kht});var bd={};Qa(bd,{DocumentPosition:()=>zo,append:()=>Dht,appendChild:()=>Rht,compareDocumentPosition:()=>oEe,existsOne:()=>sEe,filter:()=>J0,find:()=>A2,findAll:()=>Fht,findOne:()=>u2,findOneChild:()=>_ht,getAttributeValue:()=>Sht,getChildren:()=>W0,getElementById:()=>Pht,getElements:()=>Uht,getElementsByClassName:()=>Oht,getElementsByTagName:()=>sg,getElementsByTagType:()=>Hht,getFeed:()=>$G,getInnerHTML:()=>wht,getName:()=>Tht,getOuterHTML:()=>rEe,getParent:()=>nEe,getSiblings:()=>jG,getText:()=>o2,hasAttrib:()=>Nht,hasChildren:()=>rr,innerText:()=>Bb,isCDATA:()=>q0,isComment:()=>ng,isDocument:()=>Jo,isTag:()=>Qe,isText:()=>mi,nextElementSibling:()=>a2,prepend:()=>vht,prependChild:()=>kht,prevElementSibling:()=>c2,removeElement:()=>Ou,removeSubsets:()=>Ght,replaceElement:()=>xht,testElement:()=>Lht,textContent:()=>Pu,uniqueSort:()=>yd});var Wo={};Qa(Wo,{CDATA:()=>LG,Comment:()=>vG,Directive:()=>kG,Doctype:()=>UG,ElementType:()=>bt,Root:()=>RG,Script:()=>_G,Style:()=>FG,Tag:()=>MG,Text:()=>DG,isTag:()=>xG});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function xG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var RG=bt.Root,DG=bt.Text,kG=bt.Directive,vG=bt.Comment,_G=bt.Script,FG=bt.Style,MG=bt.Tag,LG=bt.CDATA,UG=bt.Doctype;var ZD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Y0(this,e)}},Eb=class extends ZD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},cA=class extends Eb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},eg=class extends Eb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},tg=class extends Eb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},Cb=class extends ZD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},Ib=class extends Cb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Xi=class extends Cb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},rg=class extends Cb{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}} Line truncated
`:o2(t.children):q0(t)?o2(t.children):mi(t)?t.data:""}function Pu(t){return Array.isArray(t)?t.map(Pu).join(""):rr(t)&&!ng(t)?Pu(t.children):mi(t)?t.data:""}function Bb(t){return Array.isArray(t)?t.map(Bb).join(""):rr(t)&&(t.type===bt.Tag||q0(t))?Bb(t.children):mi(t)?t.data:""}function W0(t){return rr(t)?t.children:[]}function nEe(t){return t.parent||null}function jG(t){let e=nEe(t);if(e!=null)return W0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function Sht(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Nht(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Tht(t){return t.name}function a2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function c2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ou(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function xht(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Rht(t,e){if(Ou(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Dht(t,e){Ou(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function kht(t,e){if(Ou(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function vht(t,e){Ou(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function J0(t,e,r=!0,n=1/0){return A2(t,Array.isArray(e)?e:[e],r,n)}function A2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function _ht(t,e){return e.find(t)}function u2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=u2(t,i.children,!0);if(o)return o}}return null}function sEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&sEe(t,r.children))}function Fht(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var l2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>mi(e)&&t(e.data):e=>mi(e)&&e.data===t}};function KG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Mht(t,e){return r=>t(r)||e(r)}function iEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(l2,r)?l2[r](n):KG(r,n)});return e.length===0?null:e.reduce(Mht)}function Lht(t,e){let r=iEe(t);return r?r(e):!0}function Uht(t,e,r,n=1/0){let s=iEe(t);return s?J0(s,e,r,n):[]}function Pht(t,e,r=!0){return Array.isArray(e)||(e=[e]),u2(KG("id",t),e,r)}function sg(t,e,r=!0,n=1/0){return J0(l2.tag_name(t),e,r,n)}function Oht(t,e,r=!0,n=1/0){return J0(KG("class",t),e,r,n)}function Hht(t,e,r=!0,n=1/0){return J0(l2.tag_type(t),e,r,n)}function Ght(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var zo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(zo||(zo={}));function oEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return zo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?zo.FOLLOWING|zo.CONTAINED_BY:zo.FOLLOWING:a===t?zo.PRECEDING|zo.CONTAINS:zo.PRECEDING}function yd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=oEe(e,r);return n&zo.PRECEDING?-1:n&zo.FOLLOWING?1:0}),t}function $G(t){let e=d2(Jht,t);return e?e.name==="feed"?qht(e):Yht(e):null}function qht(t){var e;let r=t.children,n={type:"atom",items:sg("entry",r).map(o=>{var a;let{children:c}=o,A={media:aEe(c)};Ei(A,"id","id",c),Ei(A,"title","title",c);let u=(a=d2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Bd("summary",c)||Bd("conten Line truncated
`,A=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(c,{id:u.id}).then(()=>ie(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>at(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(A)}function qQe(t){return`<!-- gradle-job-summary: ${MC.constructJobCorrelator(t.workflow,t.job,zW())} -->`}var GQe=class t{constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static{this.whitespace=/\s/}static parse(e){let r=e.trim();if(!r)return null;let n=new Array,s=r.split(this.keyDelimiter);for(let[i,o]of s.entries()){let a=o.indexOf(this.hostDelimiter);if(a===-1)return this.warnBadlyFormed(i,s.length,`no '${this.hostDelimiter}' separator`);let c=o.substring(0,a),A=o.substring(a+1);if(!c)return this.warnBadlyFormed(i,s.length,"empty server name");if(!A)return this.warnBadlyFormed(i,s.length,"empty key");if(this.whitespace.test(c))return this.warnBadlyFormed(i,s.length,"whitespace in the server name");if(this.whitespace.test(A))return this.warnBadlyFormed(i,s.length,"whitespace in the key");n.push({hostname:c,key:A})}return new t(n)}static warnBadlyFormed(e,r,n){let s=r>1?`entry ${e+1} of ${r}`:"the value";return at(`Ignoring badly formed Develocity access key: ${n} in ${s}. The expected format is 'server${this.hostDelimiter}key[${this.keyDelimiter}server${this.hostDelimiter}key]*'.`),null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}};import*as rc from"fs";import*as Dd from"path";function YQe(){return WQe().map(e=>{let r=rc.readFileSync(e,"utf8"),n=JSON.parse(r);return CCt(e,n),n})}function zQe(){WQe().forEach(BCt)}function WQe(){let t=Dd.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return rc.existsSync(t)?rc.readdirSync(t).map(e=>Dd.resolve(t,e)).filter(e=>Dd.extname(e)===".json"&&!ICt(e)):[]}function CCt(t,e){let r=Dd.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!rc.existsSync(r))return;let n=Dd.resolve(r,Dd.basename(t));if(rc.existsSync(n)){let s=rc.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function ICt(t){let e=`${t}.processed`;return rc.existsSync(e)}function BCt(t){let e=`${t}.processed`;rc.writeFileSync(e,"")}import*as XQe from"fs";import*as ZQe from"path";import{pathToFileURL as NCt}from"url";import*as KW from"path";var bCt="Gradle User Home",JQe="BASIC_CACHE_PRIMARY_KEY",VQe="BASIC_CACHE_RESTORED_KEY",QCt="setup-java",jQe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],mP=class{async restore(e,r){let n=KQe(e),s=await wCt();bQ(JQe,s);try{let i=await BQe(n,s);i?(bQ(VQe,i),ie(`Basic caching restored from cache key: ${i}`)):ie("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){at(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=XA(JQe),i=XA(VQe);if(n.readOnly)return{status:"read-only",entries:[xN({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return ie(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[xN({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=KQe(e);try{return await bQe(o,s)===-1?(at(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[xN({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(ie(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[xN({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return at(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[xN({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function xN(t){return{entryName:bCt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}function KQe(t){return[KW.join(t,"caches"),KW.join(t,"wrapper")]}async function wCt(){let t=await Oge(jQe.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${jQe}], make sure you have checked out the target repository`);return`${QCt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var xCt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",SCt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",TCt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",gP=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function $Qe(t){return t.getCacheProvider()==="external"?(pP(TCt),new gP("external")):t.isCacheDisabled()?(pP("Cache is disabled: will not restore state from previous builds."),new gP("disabled")):t.getCacheProvider()==="basic"?(pP(SCt),new mP):(pP(xCt),RCt())}function ewe(t){if(!(t.isCacheDisabled()||t.getCacheProvider()==="external"))return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function RCt(){let t=DCt();return await import(NCt(t).href)}function DCt(){let t=import.meta.dirname,e=ZQe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(XQe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function pP(t){console.info(t)}import*as iwe from"util";var _Ct=xe(swe(),1);import*as XW from"fs";var wRr=iwe.promisify(XW.readdir);var OCt={_useHtmlParser2:!1};function FC(t,e){if(!t)return e??OCt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var I7={};Ra(I7,{contains:()=>kP,extract:()=>PIt,html:()=>RIt,merge:()=>Swe,parseHTML:()=>kIt,root:()=>vIt,text:()=>wg,xml:()=>DIt});var qf={};Ra(qf,{DocumentPosition:()=>ic,append:()=>dIt,appendChild:()=>lIt,compareDocumentPosition:()=>Qwe,existsOne:()=>Bwe,filter:()=>HC,find:()=>SP,findAll:()=>pIt,findOne:()=>TP,findOneChild:()=>mIt,getAttributeValue:()=>aIt,getChildren:()=>OC,getElementById:()=>CIt,getElements:()=>yIt,getElementsByClassName:()=>IIt,getElementsByTagName:()=>Qg,getElementsByTagType:()=>BIt,getFeed:()=>C7,getInnerHTML:()=>oIt,getName:()=>AIt,getOuterHTML:()=>Cwe,getParent:()=>Iwe,getSiblings:()=>E7,getText:()=>wP,hasAttrib:()=>cIt,hasChildren:()=>Tr,innerText:()=>kN,isCDATA:()=>LC,isComment:()=>bg,isDocument:()=>sc,isTag:()=>Me,isText:()=>bo,nextElementSibling:()=>NP,prepend:()=>fIt,prependChild:()=>hIt,prevElementSibling:()=>xP,removeElement:()=>Pd,removeSubsets:()=>bIt,replaceElement:()=>uIt,testElement:()=>EIt,textContent:()=>vd,uniqueSort:()=>Of});var nc={};Ra(nc,{CDATA:()=>o7,Comment:()=>r7,Directive:()=>t7,Doctype:()=>a7,ElementType:()=>Wt,Root:()=>$W,Script:()=>n7,Style:()=>s7,Tag:()=>i7,Text:()=>e7,isTag:()=>ZW});var Wt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Wt||(Wt={}));function ZW(t){return t.type===Wt.Tag||t.type===Wt.Script||t.type===Wt.Style}var $W=Wt.Root,e7=Wt.Text,t7=Wt.Directive,r7=Wt.Comment,n7=Wt.Script,s7=Wt.Style,i7=Wt.Tag,o7=Wt.CDATA,a7=Wt.Doctype;var EP=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return _C(this,e)}},SN=class extends EP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},vu=class extends SN{constructor(){super(...arguments),this.type=Wt.Text}get nodeType(){return 3}},Cg=class extends SN{constructor(){super(...arguments),this.type=Wt.Comment}get nodeType(){return 8}},Ig=class extends SN{constructor(e,r){super(r),this.name=e,this.type=Wt.Directive}get nodeType(){return 1}},TN=class extends EP{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},RN=class extends TN{constructor(){super(...arguments),this.type=Wt.CDATA}get nodeType(){return 4}},ia=class extends TN{constructor(){super(...arguments),this.type=Wt.Root}get nodeType(){return 9}},Bg=class extends TN{constructor(e,r,n=[],s=e==="script"?Wt.Script:e==="style"?Wt.Style:Wt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){ret Line truncated
`:wP(t.children):LC(t)?wP(t.children):bo(t)?t.data:""}function vd(t){return Array.isArray(t)?t.map(vd).join(""):Tr(t)&&!bg(t)?vd(t.children):bo(t)?t.data:""}function kN(t){return Array.isArray(t)?t.map(kN).join(""):Tr(t)&&(t.type===Wt.Tag||LC(t))?kN(t.children):bo(t)?t.data:""}function OC(t){return Tr(t)?t.children:[]}function Iwe(t){return t.parent||null}function E7(t){let e=Iwe(t);if(e!=null)return OC(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function aIt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function cIt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function AIt(t){return t.name}function NP(t){let{next:e}=t;for(;e!==null&&!Me(e);)({next:e}=e);return e}function xP(t){let{prev:e}=t;for(;e!==null&&!Me(e);)({prev:e}=e);return e}function Pd(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function uIt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function lIt(t,e){if(Pd(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function dIt(t,e){Pd(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function hIt(t,e){if(Pd(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function fIt(t,e){Pd(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function HC(t,e,r=!0,n=1/0){return SP(t,Array.isArray(e)?e:[e],r,n)}function SP(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&Tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function mIt(t,e){return e.find(t)}function TP(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Me(i)&&t(i))return i;if(r&&Tr(i)&&i.children.length>0){let o=TP(t,i.children,!0);if(o)return o}}return null}function Bwe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Me(r)&&t(r)||Tr(r)&&Bwe(t,r.children))}function pIt(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Me(i)&&t(i)&&r.push(i),Tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var RP={tag_name(t){return typeof t=="function"?e=>Me(e)&&t(e.name):t==="*"?Me:e=>Me(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>bo(e)&&t(e.data):e=>bo(e)&&e.data===t}};function y7(t,e){return typeof e=="function"?r=>Me(r)&&e(r.attribs[t]):r=>Me(r)&&r.attribs[t]===e}function gIt(t,e){return r=>t(r)||e(r)}function bwe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(RP,r)?RP[r](n):y7(r,n)});return e.length===0?null:e.reduce(gIt)}function EIt(t,e){let r=bwe(t);return r?r(e):!0}function yIt(t,e,r,n=1/0){let s=bwe(t);return s?HC(s,e,r,n):[]}function CIt(t,e,r=!0){return Array.isArray(e)||(e=[e]),TP(y7("id",t),e,r)}function Qg(t,e,r=!0,n=1/0){return HC(RP.tag_name(t),e,r,n)}function IIt(t,e,r=!0,n=1/0){return HC(y7("class",t),e,r,n)}function BIt(t,e,r=!0,n=1/0){return HC(RP.tag_type(t),e,r,n)}function bIt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var ic;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(ic||(ic={}));function Qwe(t,e){let r=[],n=[];if(t===e)return 0;let s=Tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=Tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return ic.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?ic.FOLLOWING|ic.CONTAINED_BY:ic.FOLLOWING:a===t?ic.PRECEDING|ic.CONTAINS:ic.PRECEDING}function Of(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=Qwe(e,r);return n&ic.PRECEDING?-1:n&ic.FOLLOWING?1:0}),t}function C7(t){let e=DP(SIt,t);return e?e.name==="feed"?QIt(e):wIt(e):null}function QIt(t){var e;let r=t.children,n={type:"atom",items:Qg("entry",r).map(o=>{var a;let{children:c}=o,A={media:wwe(c)};Qo(A,"id","id",c),Qo(A,"title","title",c);let u=(a=DP("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Hf("summary",c)||Hf("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var $o=pe(Qd(),1);var fq={};function gq(t,e){return t===$o.default.falseFunc?$o.default.falseFunc:r=>e.isTag(r)&&t(r)}function pq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function hq(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var dq=(t,e,r,n,s)=>{let i=s(e,hq(r),n);return i===$o.default.trueFunc?t:i===$o.default.falseFunc?$o.default.falseFunc:o=>i(o)&&t(o)},w2={is:dq,matches:dq,where:dq,not(t,e,r,n,s){let i=s(e,hq(r),n);return i===$o.default.falseFunc?t:i===$o.default.trueFunc?$o.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=hq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(xb))?[fq]:void 0,c=s(e,o,a);if(c===$o.default.falseFunc)return $o.default.falseFunc;let A=gq(c,i);if(a&&c!==$o.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...pq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function jEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in w2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return w2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Q2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,zEe.parse)(A);return w2.is(t,u,r,n,s)}if(typeof c=="function")return lq(c,o,a,1),u=>c(u,a)&&t(u);if(o in rE)return rE[o](t,a,r,n);if(o in Db){let u=Db[o];return lq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Xo=pe(eE(),1);function mq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function KEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Xo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Xo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Xo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),YEe[e.action](t,e,r)}case Xo.SelectorType.Pseudo:return jEe(t,e,r,n,s);case Xo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case Xo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=mq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=mq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=mq(A,i));return!1};case Xo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Xo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Xo.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Xo.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Xo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function $Ee(t,e,r){let n=S2(t,e,r);return gq(n,e.adapter)}function S2(t,e,r){let n=typeof t=="string"?(0,$a.parse)(t):t;return N2(n,e,r)}function XEe(t){return t.type===$a.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(XEe)))}var Uft={type:$a.SelectorType.Descendant},Pft={type:"_flexibleDescendant"},Oft={type:$a.SelectorType.Pseudo,name:"scope",data:null};function Hft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===fq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(fCe,`\r
`)}}).toArray()}var vq={};Qa(vq,{extract:()=>rpt});function tpt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function rpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=tpt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Nd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Nd.prototype.cheerio="[cheerio object]";Nd.prototype.splice=Array.prototype.splice;Nd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Nd.prototype,oq,xq,Rq,Dq,kq,vq);function gCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=G0(s),a=t(n,o,i,null);class c extends Nd{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&jo(u))return u;let f=G0(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=jo(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&bb(u)?t(u,f,!1,null).children:npt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?bb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):jo(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,XG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function npt(t){return!!t.name||t.type===Wo.Root||t.type===Wo.Text||t.type===Wo.Comment}var spt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",N;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(N||(N={}));var Us={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function v2(t){return t>=55296&&t<=57343}function pCe(t){return t>=56320&&t<=57343}function mCe(t,e){return(t-55296)*1024+9216+e}function _2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function F2(t){return t>=64976&&t<=65007||spt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
`," Line feed \\n"]]),fRe=new Map([...tj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function gRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of fRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var cc=xe(Gf(),1);var L7={};function _7(t,e){return t===cc.default.falseFunc?cc.default.falseFunc:r=>e.isTag(r)&&t(r)}function U7(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function F7(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var M7=(t,e,r,n,s)=>{let i=s(e,F7(r),n);return i===cc.default.trueFunc?t:i===cc.default.falseFunc?cc.default.falseFunc:o=>i(o)&&t(o)},YP={is:M7,matches:M7,where:M7,not(t,e,r,n,s){let i=s(e,F7(r),n);return i===cc.default.falseFunc?t:i===cc.default.trueFunc?cc.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=F7(r);o.relativeSelector=!0;let a=e.some(u=>u.some(UN))?[L7]:void 0,c=s(e,o,a);if(c===cc.default.falseFunc)return cc.default.falseFunc;let A=_7(c,i);if(a&&c!==cc.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...U7(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function hNe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in YP))throw new Error(`Unknown pseudo-class :${o}(${a})`);return YP[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:GP[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,dNe.parse)(A);return YP.is(t,u,r,n,s)}if(typeof c=="function")return P7(c,o,a,1),u=>c(u,a)&&t(u);if(o in KC)return KC[o](t,a,r,n);if(o in HN){let u=HN[o];return P7(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Ac=xe(VC(),1);function O7(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function fNe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Ac.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ac.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ac.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),cNe[e.action](t,e,r)}case Ac.SelectorType.Pseudo:return hNe(t,e,r,n,s);case Ac.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case Ac.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=O7(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=O7(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=O7(A,i));return!1};case Ac.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Ac.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Ac.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Ac.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Ac.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function mNe(t,e,r){let n=zP(t,e,r);return _7(n,e.adapter)}function zP(t,e,r){let n=typeof t=="string"?(0,fA.parse)(t):t;return WP(n,e,r)}function pNe(t){return t.type===fA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(pNe)))}var yBt={type:fA.SelectorType.Descendant},CBt={type:"_flexibleDescendant"},IBt={type:fA.SelectorType.Pseudo,name:"scope",data:null};function BBt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===L7||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(kNe,`\r
`)}}).toArray()}var rJ={};Ra(rJ,{extract:()=>Lbt});function Fbt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Lbt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Fbt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Wf=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Wf.prototype.cheerio="[cheerio object]";Wf.prototype.splice=Array.prototype.splice;Wf.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Wf.prototype,T7,Z7,$7,eJ,tJ,rJ);function vNe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=FC(s),a=t(n,o,i,null);class c extends Wf{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&oc(u))return u;let f=FC(h,o),m=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=oc(m)?m:new c(m,null,f);if(E._root=E,!u)return new c(void 0,E,f);let g=typeof u=="string"&&vN(u)?t(u,f,!1,null).children:_bt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(g,E,f);if(g)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let I=u,B=l?typeof l=="string"?vN(l)?new c([t(l,f,!1,null)],E,f):(I=`${l} ${I}`,E):oc(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(I):C}return Object.assign(A,I7,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function _bt(t){return!!t.name||t.type===nc.Root||t.type===nc.Text||t.type===nc.Comment}var Ubt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Fr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ui={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ZP(t){return t>=55296&&t<=57343}function PNe(t){return t>=56320&&t<=57343}function MNe(t,e){return(t-55296)*1024+9216+e}function $P(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function eM(t){return t>=64976&&t<=65007||Ubt.has(t)}var V;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
`," Line feed \\n"]]),DFe=new Map([...w$,["\\"," Backslash \\"],["/"," Forward slash /"]]);function kFe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of DFe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(fRe.values()).toString()}
Invalid characters include: ${Array.from(DFe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);re("Artifact name is valid!")}function rj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of tj)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);ie("Artifact name is valid!")}function N$(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of w$)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(tj.values()).toString()}
Invalid characters include: ${Array.from(w$.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var CRe=pe(ERe(),1);function kA(){return`@actions/artifact-${CRe.version}`}var sC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},cl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Al=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},nh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},ul=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};ul.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Zg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};Zg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ep=class extends Error{};ep.prototype.name="InvalidTokenError";function Zkt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function evt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Zkt(e)}catch{return atob(e)}}function IRe(t,e){if(typeof t!="string")throw new ep("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new ep(`Invalid token specified: missing part #${r+1}`);let s;try{s=evt(n)}catch(i){throw new ep(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ep(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var h_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function vA(){let t=l_(),e=IRe(t);if(!e.scp)throw h_;let r=e.scp.split(" ");if(r.length===0)throw h_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw h_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return q(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),q(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw h_}function yRe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Sc(r),Sc(encodeURIComponent(r)))}catch(e){q(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function BRe(t){if(typeof t!="object"||t===null){q("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&yRe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&yRe(t.signed_url)}var f_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},nj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=l_();this.baseUrl=nRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new $n(e,[new hu(i)])}request(e,r,n,s){return f_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;q(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>f_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return f_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),q(`[Response] - ${a.message.statusCode}`),q(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(BRe(A),q(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(Zg.isUsageErrorMessage(A.msg))throw new Zg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&q(`Raw Body: ${s}`),a instanceof Zg)throw a;if(ul.isNetworkErrorCode(a?.code))throw new ul(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);re(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return f_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function _A(t){let e=new nj(kA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new d_(e)}import*as iC from"fs";import{normalize as bRe,resolve as QRe}from"path";function wRe(t){if(!iC.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Xe("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);re(`Redirecting to blob download url: ${M3e(u)}`);try{re(`Starting download of artifact to: ${r}`);let l=yield L3e(u,r,e?.skipDecompress);re("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,q(`Computed digest: ${l.sha256Digest}`),q(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function O3e(){return ZC(this,arguments,void 0,function*(t=sRe()){return(yield LVt(t))?q(`Artifact destination folder already exists: ${t}`):(q(`Artifact destination folder does not exist, creating: ${t}`),yield D3e.mkdir(t,{recursive:!0})),t})}var PVt=5,OVt=[400,401,403,404,422];function eI(t,e=PVt,r=OVt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return q(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var H3e="6.0.0";function xp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}xp.VERSION=H3e;var Y3e=pe(G3e(),1);var yM=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var HVt="0.0.0-development";async function q3e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function GVt(t,e,r,n){let s=new Y3e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(qVt.bind(null,t,e,r),n)}async function qVt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new yM(s.data.errors[0].message,500,{request:n,response:s});return q3e(t,e,i,n)}return s}function Rp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",q3e.bind(null,r,t)),t.hook.wrap("request",GVt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Rp.VERSION=HVt;var V3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function BM(t,e,r,n,s){return V3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(cf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},u=yield Oi(s,c,Rp,xp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new cl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new Al(`Artifact not found for name: ${t}
`)}var FFe=xe(MFe(),1);function il(){return`@actions/artifact-${FFe.version}`}var ZI=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},th=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},rh=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Cm=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},nh=class extends Error{constructor(e){let r=`Unable to make request: ${e}
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"}};nh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var BE=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};BE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var bE=class extends Error{};bE.prototype.name="InvalidTokenError";function z3t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function W3t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return z3t(e)}catch{return atob(e)}}function LFe(t,e){if(typeof t!="string")throw new bE("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new bE(`Invalid token specified: missing part #${r+1}`);let s;try{s=W3t(n)}catch(i){throw new bE(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new bE(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var vL=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function ol(){let t=DL(),e=LFe(t);if(!e.scp)throw vL;let r=e.scp.split(" ");if(r.length===0)throw vL;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw vL;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return J(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),J(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw vL}function _Fe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(jA(r),jA(encodeURIComponent(r)))}catch(e){J(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function UFe(t){if(typeof t!="object"||t===null){J("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&_Fe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&_Fe(t.signed_url)}var PL=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},x$=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=8e3,this.retryMultiplier=1.5,this.retryTimeoutMilliseconds=12e4;let i=DL();this.baseUrl=CFe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Ys(e,[new cd(i)])}request(e,r,n,s){return PL(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;J(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>PL(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return PL(this,void 0,void 0,function*(){let r=0,n="",s="",i=0;for(;r<this.maxAttempts;){let o=!1,a;try{let A=yield e(),u=A.message.statusCode;u===Br.TooManyRequests&&(a=this.getRetryAfterSeconds(A)),s=yield A.readBody(),J(`[Response] - ${A.message.statusCode}`),J(`Headers: ${JSON.stringify(A.message.headers,null,2)}`);let l=JSON.parse(s);if(UFe(l),J(`Body: ${JSON.stringify(l,null,2)}`),this.isSuccessStatusCode(u))return{response:A,body:l};if(o=this.isRetryableHttpStatusCode(u),n=`Failed request: (${u}) ${A.message.statusMessage}`,l.msg){if(BE.isUsageErrorMessage(l.msg))throw new BE;n=`${n}: ${l.msg}`}}catch(A){if(A instanceof SyntaxError&&J(`Raw Body: ${s}`),A instanceof BE)throw A;if(nh.isNetworkErrorCode(A?.code))throw new nh(A?.code);o=!0,n=A.message}if(!o)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let c=a!==void 0?a*1e3:this.getExponentialRetryTimeMilliseconds(r);if(i+c>this.retryTimeoutMilliseconds)throw new Error(`Retry wait of ${c} ms would exceed the maximum total retry wait of ${this.retryTimeoutMilliseconds} ms: ${n}`);ie(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${c} ms...`),yield this.sleep(c),i+=c,r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Br.BadGateway,Br.GatewayTimeout,Br.InternalServerError,Br.ServiceUnavailable,Br.TooManyRequests].includes(e):!1}getRetryAfterSeconds(e){var r;let n=e.message.headers["retry-after"],s=(r=Array.isArray(n)?n[0]:n)===null||r===void 0?void 0:r.trim();if(s===void 0||!/^\d+$/.test(s))return;let i=parseInt(s,10);return!isNaN(i)&&i>0?i:void 0}sleep(e){return PL(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExp Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ia(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}}function K8t(t,e){if(t=hh(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=Dc.parse(t.permissions.toString()).toString():s=kc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ut(t.startsOn,!1):"",t.expiresOn?Ut(t.expiresOn,!1):"",dh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ca(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ia(t.version,o,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 X8t(t,e){if(t=hh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=cB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Dc.parse(t.permissions.toString()).toString():i=kc.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ut(t.startsOn,!1):"",t.expiresOn?Ut(t.expiresOn,!1):"",dh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ca(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(o);return{sasQueryParameters:new Ia(t.version,a,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function Z8t(t,e){if(t=hh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=cB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Dc.parse(t.permissions.toString()).toString():i=kc.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ut(t.startsOn,!1):"",t.expiresOn?Ut(t.expiresOn,!1):"",dh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ca(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(o);return{sasQueryParameters:new Ia(t.version,a,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,void 0,void 0,void 0,s),stringToSign:o}}function $8t(t,e){if(t=hh(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=Dc.parse(t.permissions.toString()).toString():s=kc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ut(t.startsOn,!1):"",t.expiresOn?Ut(t.expiresOn,!1):"",dh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ca(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ia(t.version,o,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}}function eHt(t,e){if(t=hh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=cB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Dc.parse(t.permissions.toString()).toString():i=kc.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ut(t.startsOn,!1):"",t.expiresOn?Ut(t.expiresOn,!1):"",dh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ca(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Ia(t.version,a,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,void 0,void 0,void 0,void 0,s),stringToSign:o}}function tHt(t,e){if(t=hh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=cB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Dc.parse(t.permissions.toString()).toString():i=kc.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ut(t.startsOn,!1):"",t.expiresOn?Ut(t.expiresOn,!1):"",dh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ca(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(o);return{sasQueryParameters:new Ia(t.version,a,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,void 0,void 0,void 0,s),stringToSign:o}}function rHt(t,e){if(t=hh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=cB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Dc.parse(t.permissions.toString()).toString():i=kc.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ut(t.startsOn,!1):"",t.expiresOn?Ut(t.expiresOn,!1):"",dh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Ca(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(o);return{sasQueryParameters:new Ia(t.version,a,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,void 0,void 0,s),stringToSign:o}}function nHt(t,e){if(t=hh(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,s;t.blobName&&(t.isDirectory===!0?(r="d",s=cB(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Dc.parse(t.permissions.toString()).toString():i=kc.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ut(t.startsOn,!1):"",t.expiresOn?Ut(t.expiresOn,!1):"",dh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Ca(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,sHt(t.requestHeaders),iHt(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Ia(t.version,a,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,n_e(t.requestHeaders),n_e(t.requestQueryParameters),s),stringToSign:o}}function sHt(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function iHt(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function n_e(t){if(t===void 0)return;let e="",r=0;return Object.keys(t).forEach(function(n){r!==0&&(e=e+","),e=e+n,++r}),e}function dh(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function hh(t){let e=t.version?t.version:LL;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}function cB(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var xS=class{_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=Wa()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==QA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==QA||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 ke.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ye(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!==QA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==QA||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 ke.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ye(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!==QA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==QA||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 ke.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ye(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!==QA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==QA||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 ke.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&at("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);ie(`Redirecting to blob download url: ${LYe(u)}`);try{ie(`Starting download of artifact to: ${r}`);let l=yield _Ye(u,r,e?.skipDecompress);ie("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,J(`Computed digest: ${l.sha256Digest}`),J(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function HYe(){return rb(this,arguments,void 0,function*(t=IFe()){return(yield Arr(t))?J(`Artifact destination folder already exists: ${t}`):(J(`Artifact destination folder does not exist, creating: ${t}`),yield kYe.mkdir(t,{recursive:!0})),t})}var lrr=5,drr=[400,401,403,404,422];function nb(t,e=lrr,r=drr){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return J(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var qYe="6.0.0";function a0(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}a0.VERSION=qYe;var zYe=xe(GYe(),1);var hrr="0.0.0-development";function frr(t){return t.request!==void 0}async function YYe(t,e,r,n){if(!frr(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function mrr(t,e,r,n){let s=new zYe.default;return s.on("failed",function(i,o){let a=~~i.request.request?.retries,c=~~i.request.request?.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(prr.bind(null,t,e,r),n)}async function prr(t,e,r,n){let s=await r(n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new dd(s.data.errors[0].message,500,{request:n,response:s});return YYe(t,e,i,n)}return s}function c0(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:(s,i,o)=>(s.request.request=Object.assign({},s.request.request,{retries:i,retryAfter:o}),s)}};return r.enabled&&(t.hook.error("request",YYe.bind(null,r,n)),t.hook.wrap("request",mrr.bind(null,r,n))),n}c0.VERSION=hrr;var WYe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function UO(t,e,r,n,s){return WYe(this,void 0,void 0,function*(){var i;let[o,a]=nb(Dp),c={log:void 0,userAgent:il(),previews:void 0,retry:o,request:a},u=yield jo(s,c,c0,a0).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new th(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new rh(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],q(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function W3e(t){return V3e(this,void 0,void 0,function*(){var e;let r=_A(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=vA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:gn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Al(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],J(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function JYe(t){return WYe(this,void 0,void 0,function*(){var e;let r=al(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=ol(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Kn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new rh(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],q(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?lo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var J3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function z3e(t,e,r,n,s){return J3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(cf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},A=Oi(s,c,Rp,xp),u=yield BM(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new cl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function j3e(t){return J3e(this,void 0,void 0,function*(){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:gn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Al(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],q(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return re(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var K3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},bM=aRe(),QM=100,YVt=Math.ceil(bM/QM);function $3e(t,e,r,n){return K3e(this,arguments,void 0,function*(s,i,o,a,c=!1){re(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=eI(cf),d={log:void 0,userAgent:kA(),previews:void 0,retry:u,request:l},h=Oi(a,d,Rp,xp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:QM,page:f}),E=Math.ceil(g.total_count/QM),m=g.total_count;m>bM&&(Xe(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${bM}. Results will be incomplete as only the first ${bM} artifacts will be returned`),E=YVt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){q(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:QM,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=Z3e(A)),re(`Found ${A.length} artifact(s)`),{artifacts:A}})}function X3e(){return K3e(this,arguments,void 0,function*(t=!1){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?lo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=Z3e(o)),re(`Found ${o.length} artifact(s)`),{artifacts:o}})}function Z3e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var B1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},VVt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},tI=class{uploadArtifact(e,r,n,s){return B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;return KOe(e,r,n,s)}catch(i){throw Xe(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],J(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ea.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var VYe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function jYe(t,e,r,n,s){return VYe(this,void 0,void 0,function*(){var i;let[o,a]=nb(Dp),c={log:void 0,userAgent:il(),previews:void 0,retry:o,request:a},A=jo(s,c,c0,a0),u=yield UO(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new th(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function KYe(t){return VYe(this,void 0,void 0,function*(){let e=al(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=ol(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Kn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new rh(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],J(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return ie(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var XYe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},OO=QFe(),HO=100,grr=Math.ceil(OO/HO);function ZYe(t,e,r,n){return XYe(this,arguments,void 0,function*(s,i,o,a,c=!1){ie(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=nb(Dp),d={log:void 0,userAgent:il(),previews:void 0,retry:u,request:l},h=jo(a,d,c0,a0),f=1,{data:m}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:HO,page:f}),E=Math.ceil(m.total_count/HO),g=m.total_count;g>OO&&(at(`Workflow run ${s} has ${g} artifacts, exceeding the limit of ${OO}. Results will be incomplete as only the first ${OO} artifacts will be returned`),E=grr);for(let C of m.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=E;f++){J(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:HO,page:f});for(let I of C.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest})}return c&&(A=eze(A)),ie(`Found ${A.length} artifact(s)`),{artifacts:A}})}function $Ye(){return XYe(this,arguments,void 0,function*(t=!1){let e=al(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=ol(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ea.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=eze(o)),ie(`Found ${o.length} artifact(s)`),{artifacts:o}})}function eze(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var $1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Err=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},sb=class{uploadArtifact(e,r,n,s){return $1(this,void 0,void 0,function*(){try{if(jI())throw new Cm;return X9e(e,r,n,s)}catch(i){throw at(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=VVt(r,["findBy"]);return U3e(e,n,s,i,o)}return P3e(e,r)}catch(n){throw Xe(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return $1(this,void 0,void 0,function*(){try{if(jI())throw new Cm;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=Err(r,["findBy"]);return UYe(e,n,s,i,o)}return OYe(e,r)}catch(n){throw at(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return $3e(r,n,s,i,e?.latest)}return X3e(e?.latest)}catch(r){throw Xe(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return $1(this,void 0,void 0,function*(){try{if(jI())throw new Cm;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return ZYe(r,n,s,i,e?.latest)}return $Ye(e?.latest)}catch(r){throw at(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return BM(e,n,s,i,o)}return W3e(e)}catch(n){throw Xe(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return $1(this,void 0,void 0,function*(){try{if(jI())throw new Cm;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return UO(e,n,s,i,o)}return JYe(e)}catch(n){throw at(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return z3e(e,i,n,s,o)}return j3e(e)}catch(n){throw Xe(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return $1(this,void 0,void 0,function*(){try{if(jI())throw new Cm;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return jYe(e,i,n,s,o)}return KYe(e)}catch(n){throw at(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var hRr=new tI;import*as wM from"path";import tZ from"fs";var WVt="dependency-graph_";async function t8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await e8e(t,!1);return;case"generate-submit-and-upload":await e8e(t,!0);return;case"generate-and-upload":await JVt(t)}}catch(r){e7t(t,e,r)}}async function e8e(t,e){if(n8e()){re("Dependency graph not supported in the ACT environment.");return}let r=await r8e();try{await zVt(r)}catch(n){try{await eZ(r,t)}catch(s){re(String(s))}throw n}e&&await eZ(r,t)}async function JVt(t){if(n8e()){re("Dependency graph not supported in the ACT environment.");return}await eZ(await r8e(),t)}async function r8e(){let r=(await(await QG(`${$Vt()}/**/*.json`)).glob()).filter(n=>!XVt(n));return r.forEach(ZVt),re(`Found dependency graph files: ${r.join(", ")}`),r}async function eZ(t,e){if(t.length===0){re("No dependency graph files found to upload.");return}let r=cb(),n=new tI;for(let s of t){let i=rZ(s);re(`Uploading dependency graph file: ${i}`);let o=`${WVt}${wM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function zVt(t){if(t.length===0){re("No dependency graph files found to submit.");return}for(let e of t)try{await KVt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=jVt(e,r)),r}}function jVt(t,e){let n=`Dependency submission failed for ${rZ(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var VGr=new sb;import*as qO from"path";import Zoe from"fs";var yrr="dependency-graph_";async function rze(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await tze(t,!1);return;case"generate-submit-and-upload":await tze(t,!0);return;case"generate-and-upload":await Crr(t)}}catch(r){xrr(t,e,r)}}async function tze(t,e){if(sze()){ie("Dependency graph not supported in the ACT environment.");return}let r=await nze();try{await Irr(r)}catch(n){try{await Xoe(r,t)}catch(s){ie(String(s))}throw n}e&&await Xoe(r,t)}async function Crr(t){if(sze()){ie("Dependency graph not supported in the ACT environment.");return}await Xoe(await nze(),t)}async function nze(){let r=(await(await MQ(`${Qrr()}/**/*.json`)).glob()).filter(n=>!wrr(n));return r.forEach(Nrr),ie(`Found dependency graph files: ${r.join(", ")}`),r}async function Xoe(t,e){if(t.length===0){ie("No dependency graph files found to upload.");return}let r=NN(),n=new sb;for(let s of t){let i=$oe(s);ie(`Uploading dependency graph file: ${i}`);let o=`${yrr}${qO.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function Irr(t){if(t.length===0){ie("No dependency graph files found to submit.");return}for(let e of t)try{await brr(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Brr(e,r)),r}}function Brr(t,e){let n=`Dependency submission failed for ${$oe(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function KVt(t){let e=t7t(),r=tZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=pu.repo.owner,n.repo=pu.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=rZ(t);vce(`Submitted ${i}: ${s.data.message}`)}function $Vt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function XVt(t){let e=`${t}.processed`;return tZ.existsSync(e)}function ZVt(t){let e=`${t}.processed`;tZ.writeFileSync(e,"")}function e7t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new eC(r);Xe(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function t7t(){return Oi(ab())}function rZ(t){let e=cb();return wM.relative(e,t)}function n8e(){return process.env.ACT!==void 0}function n7t(t=process.platform){return t==="win32"?50:0}async function s8e(t=process.platform){let e=n7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>Cz(t));async function s7t(){try{Yme(),qme(),await rRe(new YD,new ib,new VD)&&await t8e(new U0)}catch(t){Cz(t)}await s8e()}s7t();export{s7t as run};
`:n}async function brr(t){let e=Srr(),r=Zoe.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=hd.repo.owner,n.repo=hd.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=$oe(t);ND(`Submitted ${i}: ${s.data.message}`)}function Qrr(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function wrr(t){let e=`${t}.processed`;return Zoe.existsSync(e)}function Nrr(t){let e=`${t}.processed`;Zoe.writeFileSync(e,"")}function xrr(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new VI(r);at(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Srr(){return jo(wN())}function $oe(t){let e=NN();return qO.relative(e,t)}function sze(){return process.env.ACT!==void 0}function Rrr(t=process.platform){return t==="win32"?50:0}async function ize(t=process.platform){let e=Rrr(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>GZ(t));async function Drr(){try{TQe(),SQe(),await yFe(new lP,new bN,new dP)&&await rze(new MC)}catch(t){GZ(t)}await ize()}Drr();export{Drr as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -397,13 +415,6 @@ undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
@@ -473,12 +484,21 @@ archiver/index.js:
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
@octokit/request-error/dist-src/index.js:
content-type/dist/index.js:
(*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
@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 *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
@octokit/graphql/dist-bundle/index.js:
(* v8 ignore if -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+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.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": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,SAALine 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.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": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAUH,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,IAAUH,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,IAAmBH,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,IAAUH,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,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine 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
}
+92 -87
View File
@@ -1,104 +1,104 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var mne=Object.create;var UB=Object.defineProperty;var pne=Object.getOwnPropertyDescriptor;var Ene=Object.getOwnPropertyNames;var Cne=Object.getPrototypeOf,Ine=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},an=(t,e)=>{for(var r in e)UB(t,r,{get:e[r],enumerable:!0})},Bne=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ene(e))!Ine.call(t,n)&&n!==r&&UB(t,n,{get:()=>e[n],enumerable:!(s=pne(e,n))||s.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?mne(Cne(t)):{},Bne(e||!t||!t.__esModule?UB(r,"default",{value:t,enumerable:!0}):r,t));var _F=m(Ac=>{"use strict";var Rqe=Q("net"),Sne=Q("tls"),HB=Q("http"),PF=Q("https"),Tne=Q("events"),kqe=Q("assert"),Dne=Q("util");Ac.httpOverHttp=xne;Ac.httpsOverHttp=Rne;Ac.httpOverHttps=kne;Ac.httpsOverHttps=Fne;function xne(t){var e=new Ci(t);return e.request=HB.request,e}function Rne(t){var e=new Ci(t);return e.request=HB.request,e.createSocket=vF,e.defaultPort=443,e}function kne(t){var e=new Ci(t);return e.request=PF.request,e}function Fne(t){var e=new Ci(t);return e.request=PF.request,e.createSocket=vF,e.defaultPort=443,e}function Ci(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=OF(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}Dne.inherits(Ci,Tne.EventEmitter);Ci.prototype.addRequest=function(e,r,s,n){var i=this,o=GB({request:e},i.options,OF(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Ci.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=GB({},s.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")),Ao("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,g,h){process.nextTick(function(){c(l,g,h)})}function c(l,g,h){if(o.removeAllListeners(),g.removeAllListeners(),l.statusCode!==200){Ao("tunneling socket could not be established, statusCode=%d",l.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){Ao("got illegal response body from proxy"),g.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return Ao("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(l){o.removeAllListeners(),Ao(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var g=new Error("tunneling socket could not be established, cause="+l.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};Ci.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(n){s.request.onSocket(n)})}};function vF(t,e){var r=this;Ci.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=GB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=Sne.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function OF(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function GB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var Ao;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ao=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)}:Ao=function(){};Ac.debug=Ao});var YB=m((Mqe,HF)=>{HF.exports=_F()});var $e=m((Uqe,GF)=>{GF.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 Se=m((Lqe,gM)=>{"use strict";var YF=Symbol.for("undici.error.UND_ERR"),et=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[YF]===!0}[YF]=!0},qF=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),qB=class extends et{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[qF]===!0}[qF]=!0},VF=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),VB=class extends et{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[VF]===!0}[VF]=!0},JF=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),JB=class extends et{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[JF]===!0}[JF]=!0},WF=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),WB=class extends et{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[WF]===!0}[WF]=!0},zF=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),zB=class extends et{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Koe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(Foe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Xoe(){return"allowed"}function joe(){return"success"}function Zoe(){return"success"}function $oe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function eae(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&&OQ(t.origin)&&!OQ(cd(t))&&(e=null);break;case"same-origin":Kf(t,cd(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ec(t,e){return t}function tae(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ec(t.domainLookupStartTime,r),domainLookupEndTime:Ec(t.domainLookupEndTime,r),connectionStartTime:Ec(t.connectionStartTime,r),connectionEndTime:Ec(t.connectionEndTime,r),secureConnectionStartTime:Ec(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function rae(t){return Ec(voe.now(),t)}function sae(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 SU(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function nae(t){return{referrerPolicy:t.referrerPolicy}}function iae(t){let e=t.referrerPolicy;wa(e);let r=null;if(t.referrer==="client"){let a=BU();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=vQ(r),n=vQ(r,!0);s.toString().length>4096&&(s=n);let i=Kf(t,s),o=Ad(s)&&!Ad(t.url);switch(e){case"origin":return n??vQ(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=cd(t);return Kf(s,a)?s:Ad(s)&&!Ad(a)?"no-referrer":n}default:return o?"no-referrer":n}}function vQ(t,e){return wa(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 Ad(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 oae(t,e){if(zf===void 0)return!0;let r=TU(e);if(r==="no metadata"||r.length===0)return!0;let s=Aae(r),n=cae(r,s);for(let i of n){let o=i.algo,a=i.hash,A=zf.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),uae(A,a))return!0}return!1}var aae=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function TU(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=aae.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();yU.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function Aae(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 cae(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 uae(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 lae(t){}function Kf(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function dae(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function gae(t){return t.controller.state==="aborted"}function hae(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function fae(t){return Hoe[t.toLowerCase()]??t}function mae(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return wa(typeof e=="string"),e}var pae=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function DU(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Wae(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function zae(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 Kae(t,e){jf(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"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.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(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Zf(t,Vae,i)||i.position===t.length-4&&Zf(t,Jae,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Xae(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let g;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";g=t.subarray(i.position,f-4),i.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",Wae(u)||(u=""),h=new Yae([g],c,{type:u})):h=vae(Buffer.from(g)),jf(HU(A)),jf(typeof h=="string"&&HU(h)||_ae(h)),n.push(Hae(A,h,c))}}function Xae(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=Ic(a=>a!==10&&a!==13&&a!==58,t,e);if(o=JQ(o,!0,!0,a=>a===9||a===32),!Oae.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Ic(a=>a===32||a===9,t,e),Pae(o)){case"content-disposition":{if(r=s=null,!Zf(t,qae,e)||(e.position+=17,r=qU(t,e),r===null))return"failure";if(Zf(t,YU,e)){let a=e.position+YU.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=qU(t,e),s===null))return"failure"}break}case"content-type":{let a=Ic(A=>A!==10&&A!==13,t,e);a=JQ(a,!1,!0,A=>A===9||A===32),n=GU(a);break}case"content-transfer-encoding":{let a=Ic(A=>A!==10&&A!==13,t,e);a=JQ(a,!1,!0,A=>A===9||A===32),i=GU(a);break}default:Ic(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function qU(t,e){jf(t[e.position-1]===34);let r=Ic(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 Ic(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function JQ(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Zf(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}VU.exports={multipartFormDataParser:Kae,validateBoundary:zae}});var yc=m((aVe,rL)=>{"use strict";var dd=Ee(),{ReadableStreamFrom:jae,isBlobLike:WU,isReadableStreamLike:Zae,readableStreamClose:$ae,createDeferredPromise:eAe,fullyReadBody:tAe,extractMimeType:rAe,utf8DecodeBytes:XU}=Wr(),{FormData:zU}=ld(),{kState:Qc}=co(),{webidl:sAe}=Vt(),{Blob:nAe}=Q("node:buffer"),WQ=Q("node:assert"),{isErrored:jU,isDisturbed:iAe}=Q("node:stream"),{isArrayBuffer:oAe}=Q("node:util/types"),{serializeAMimeType:aAe}=br(),{multipartFormDataParser:AAe}=JU(),zQ;try{let t=Q("node:crypto");zQ=e=>t.randomInt(0,e)}catch{zQ=t=>Math.floor(Math.random(t))}var $f=new TextEncoder;function cAe(){}var ZU=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,$U;ZU&&($U=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!iAe(e)&&!jU(e)&&e.cancel("Response object has been garbage collected").catch(cAe)}));function eL(t,e=!1){let r=null;t instanceof ReadableStream?r=t:WU(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?$f.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>$ae(A))},start(){},type:"bytes"}),WQ(Zae(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(oAe(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(dd.isFormDataLike(t)){let A=`----formdata-undici-0${`${zQ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=y=>y.replace(/\r?\n|\r/g,`\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[y,E]of t)if(typeof E=="string"){let b=$f.encode(c+`; name="${u(l(y))}"\r
var Woe=Object.create;var PQ=Object.defineProperty;var zoe=Object.getOwnPropertyDescriptor;var Koe=Object.getOwnPropertyNames;var Xoe=Object.getPrototypeOf,joe=Object.prototype.hasOwnProperty;var w=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var p=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Sn=(t,e)=>{for(var r in e)PQ(t,r,{get:e[r],enumerable:!0})},Zoe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Koe(e))!joe.call(t,n)&&n!==r&&PQ(t,n,{get:()=>e[n],enumerable:!(s=zoe(e,n))||s.enumerable});return t};var me=(t,e,r)=>(r=t!=null?Woe(Xoe(t)):{},Zoe(e||!t||!t.__esModule?PQ(r,"default",{value:t,enumerable:!0}):r,t));var fU=p(Oc=>{"use strict";var HWe=w("net"),nae=w("tls"),YQ=w("http"),dU=w("https"),iae=w("events"),_We=w("assert"),oae=w("util");Oc.httpOverHttp=aae;Oc.httpsOverHttp=Aae;Oc.httpOverHttps=cae;Oc.httpsOverHttps=uae;function aae(t){var e=new Yi(t);return e.request=YQ.request,e}function Aae(t){var e=new Yi(t);return e.request=YQ.request,e.createSocket=gU,e.defaultPort=443,e}function cae(t){var e=new Yi(t);return e.request=dU.request,e}function uae(t){var e=new Yi(t);return e.request=dU.request,e.createSocket=gU,e.defaultPort=443,e}function Yi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||YQ.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=hU(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}oae.inherits(Yi,iae.EventEmitter);Yi.prototype.addRequest=function(e,r,s,n){var i=this,o=qQ({request:e},i.options,hU(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Yi.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=qQ({},s.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")),Mo("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,g,h){process.nextTick(function(){c(l,g,h)})}function c(l,g,h){if(o.removeAllListeners(),g.removeAllListeners(),l.statusCode!==200){Mo("tunneling socket could not be established, statusCode=%d",l.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){Mo("got illegal response body from proxy"),g.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return Mo("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(l){o.removeAllListeners(),Mo(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var g=new Error("tunneling socket could not be established, cause="+l.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};Yi.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(n){s.request.onSocket(n)})}};function gU(t,e){var r=this;Yi.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=qQ({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=nae.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function hU(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function qQ(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var Mo;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Mo=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)}:Mo=function(){};Oc.debug=Mo});var JQ=p((YWe,mU)=>{mU.exports=fU()});var At=p((qWe,pU)=>{pU.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 Le=p((JWe,GU)=>{"use strict";var EU=Symbol.for("undici.error.UND_ERR"),ct=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[EU]===!0}[EU]=!0},CU=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),VQ=class extends ct{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[CU]===!0}[CU]=!0},IU=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),WQ=class extends ct{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[IU]===!0}[IU]=!0},BU=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),zQ=class extends ct{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[BU]===!0}[BU]=!0},QU=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),KQ=class extends ct{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[QU]===!0}[QU]=!0},yU=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),XQ=class extends ct{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Nce(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(uce.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Sce(){return"allowed"}function Dce(){return"success"}function Tce(){return"success"}function xce(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Rce(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&&_y(t.origin)&&!_y(Vd(t))&&(e=null);break;case"same-origin":Om(t,Vd(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Kc(t,e){return t}function kce(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Kc(t.domainLookupStartTime,r),domainLookupEndTime:Kc(t.domainLookupEndTime,r),connectionStartTime:Kc(t.connectionStartTime,r),connectionEndTime:Kc(t.connectionEndTime,r),secureConnectionStartTime:Kc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Fce(t){return Kc(fce.now(),t)}function Mce(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 rP(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Uce(t){return{referrerPolicy:t.referrerPolicy}}function Lce(t){let e=t.referrerPolicy;$a(e);let r=null;if(t.referrer==="client"){let a=XL();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=Hy(r),n=Hy(r,!0);s.toString().length>4096&&(s=n);let i=Om(t,s),o=Jd(s)&&!Jd(t.url);switch(e){case"origin":return n??Hy(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=Vd(t);return Om(s,a)?s:Jd(s)&&!Jd(a)?"no-referrer":n}default:return o?"no-referrer":n}}function Hy(t,e){return $a(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 Jd(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 Pce(t,e){if(vm===void 0)return!0;let r=sP(e);if(r==="no metadata"||r.length===0)return!0;let s=Oce(r),n=Hce(r,s);for(let i of n){let o=i.algo,a=i.hash,A=vm.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),_ce(A,a))return!0}return!1}var vce=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function sP(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=vce.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();ZL.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function Oce(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 Hce(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 _ce(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 Gce(t){}function Om(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Yce(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function qce(t){return t.controller.state==="aborted"}function Jce(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Vce(t){return Ece[t.toLowerCase()]??t}function Wce(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return $a(typeof e=="string"),e}var zce=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function nP(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function bue(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function wue(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 Nue(t,e){_m(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"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.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(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Gm(t,Que,i)||i.position===t.length-4&&Gm(t,yue,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Sue(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let g;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";g=t.subarray(i.position,f-4),i.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",bue(u)||(u=""),h=new Iue([g],c,{type:u})):h=fue(Buffer.from(g)),_m(mP(A)),_m(typeof h=="string"&&mP(h)||pue(h)),n.push(Eue(A,h,c))}}function Sue(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=jc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=zy(o,!0,!0,a=>a===9||a===32),!mue.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,jc(a=>a===32||a===9,t,e),hue(o)){case"content-disposition":{if(r=s=null,!Gm(t,Bue,e)||(e.position+=17,r=CP(t,e),r===null))return"failure";if(Gm(t,EP,e)){let a=e.position+EP.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=CP(t,e),s===null))return"failure"}break}case"content-type":{let a=jc(A=>A!==10&&A!==13,t,e);a=zy(a,!1,!0,A=>A===9||A===32),n=pP(a);break}case"content-transfer-encoding":{let a=jc(A=>A!==10&&A!==13,t,e);a=zy(a,!1,!0,A=>A===9||A===32),i=pP(a);break}default:jc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function CP(t,e){_m(t[e.position-1]===34);let r=jc(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 jc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function zy(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Gm(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}IP.exports={multipartFormDataParser:Nue,validateBoundary:wue}});var eu=p((mze,RP)=>{"use strict";var Kd=we(),{ReadableStreamFrom:Due,isBlobLike:QP,isReadableStreamLike:Tue,readableStreamClose:xue,createDeferredPromise:Rue,fullyReadBody:kue,extractMimeType:Fue,utf8DecodeBytes:wP}=ls(),{FormData:yP}=zd(),{kState:$c}=Uo(),{webidl:Mue}=tr(),{Blob:Uue}=w("node:buffer"),Ky=w("node:assert"),{isErrored:NP,isDisturbed:Lue}=w("node:stream"),{isArrayBuffer:Pue}=w("node:util/types"),{serializeAMimeType:vue}=Hr(),{multipartFormDataParser:Oue}=BP(),Xy;try{let t=w("node:crypto");Xy=e=>t.randomInt(0,e)}catch{Xy=t=>Math.floor(Math.random(t))}var Ym=new TextEncoder;function Hue(){}var SP=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,DP;SP&&(DP=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Lue(e)&&!NP(e)&&e.cancel("Response object has been garbage collected").catch(Hue)}));function TP(t,e=!1){let r=null;t instanceof ReadableStream?r=t:QP(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?Ym.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>xue(A))},start(){},type:"bytes"}),Ky(Tue(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Pue(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Kd.isFormDataLike(t)){let A=`----formdata-undici-0${`${Xy(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=B=>B.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=B=>B.replace(/\r?\n|\r/g,`\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[B,E]of t)if(typeof E=="string"){let b=Ym.encode(c+`; name="${u(l(B))}"\r
\r
${l(E)}\r
`);g.push(b),i+=b.byteLength}else{let b=$f.encode(`${c}; name="${u(l(y))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
`);g.push(b),i+=b.byteLength}else{let b=Ym.encode(`${c}; name="${u(l(B))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);g.push(b,E,h),typeof E.size=="number"?i+=b.byteLength+E.size+h.byteLength:f=!0}let p=$f.encode(`--${A}--\r
`);g.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let y of g)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${A}`}else if(WU(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(dd.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:jae(t)}if((typeof n=="string"||dd.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!jU(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function uAe(t,e=!1){return t instanceof ReadableStream&&(WQ(!dd.isDisturbed(t),"The body has already been consumed."),WQ(!t.locked,"The stream is locked.")),eL(t,e)}function lAe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function dAe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function gAe(t){return{blob(){return Bc(this,r=>{let s=KU(this);return s===null?s="":s&&(s=aAe(s)),new nAe([r],{type:s})},t)},arrayBuffer(){return Bc(this,r=>new Uint8Array(r).buffer,t)},text(){return Bc(this,XU,t)},json(){return Bc(this,fAe,t)},formData(){return Bc(this,r=>{let s=KU(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=AAe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new zU;return i[Qc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new zU;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Bc(this,r=>new Uint8Array(r),t)}}}function hAe(t){Object.assign(t.prototype,gAe(t))}async function Bc(t,e,r){if(sAe.brandCheck(t,r),tL(t))throw new TypeError("Body is unusable: Body has already been read");dAe(t[Qc]);let s=eAe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Qc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await tAe(t[Qc].body,i,n),s.promise)}function tL(t){let e=t[Qc].body;return e!=null&&(e.stream.locked||dd.isDisturbed(e.stream))}function fAe(t){return JSON.parse(XU(t))}function KU(t){let e=t[Qc].headersList,r=rAe(e);return r==="failure"?null:r}rL.exports={extractBody:eL,safelyExtractBody:uAe,cloneBody:lAe,mixinBody:hAe,streamRegistry:$U,hasFinalizationRegistry:ZU,bodyUnusable:tL}});var EL=m((AVe,pL)=>{"use strict";var j=Q("node:assert"),ee=Ee(),{channels:sL}=uc(),KQ=xQ(),{RequestContentLengthMismatchError:Na,ResponseContentLengthMismatchError:nL,RequestAbortedError:dL,InvalidArgumentError:mAe,HeadersTimeoutError:pAe,HeadersOverflowError:EAe,SocketError:bc,InformationalError:wc,BodyTimeoutError:CAe,HTTPParserError:IAe,ResponseExceededMaxSizeError:BAe}=Se(),{kUrl:gL,kReset:wr,kClient:sm,kParser:We,kBlocking:fd,kRunning:yt,kPending:hL,kSize:iL,kWriting:uo,kQueue:An,kNoRef:gd,kKeepAliveDefaultTimeout:QAe,kHostHeader:yAe,kPendingIdx:bAe,kRunningIdx:bs,kError:cr,kPipelining:nm,kSocket:Ta,kKeepAliveTimeoutValue:om,kMaxHeadersSize:XQ,kKeepAliveMaxTimeout:wAe,kKeepAliveTimeoutThreshold:NAe,kHeadersTimeout:SAe,kBodyTimeout:TAe,kStrictContentLength:$Q,kMaxRequests:oL,kCounter:DAe,kMaxResponseSize:xAe,kOnError:aL,kResume:wi,kHTTPContext:fL}=$e(),zr=$M(),AL=Buffer.alloc(0),em=Buffer[Symbol.species],tm=ee.addListener,RAe=ee.removeAllListeners,Da=Symbol("kIdleSocketValidation"),Sa=Symbol("kIdleSocketValidationTimeout"),sy=Symbol("kSocketUsed"),jQ;async function kAe(){let t=process.env.JEST_WORKER_ID?FQ():void 0,e;try{e=await WebAssembly.compile(rU())}catch{e=await WebAssembly.compile(t||FQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onStatus(new em(Un.buffer,i,n))||0},wasm_on_message_begin:r=>(j(ot.ptr===r),ot.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onHeaderField(new em(Un.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onHeaderValue(new em(Un.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(j(ot.ptr===r),ot.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onBody(new em(Un.buffer,i,n))||0},wasm_on_message_complete:r=>(j(ot.ptr===r),ot.onMessageComplete()||0)}})}var ZQ=null,ey=kAe();ey.catch();var ot=null,Un=null,rm=0,Ln=null,FAe=0,hd=1,Nc=2|hd,im=4|hd,ty=8|FAe,ry=class{constructor(e,r,{exports:s}){j(Number.isFinite(e[XQ])&&e[XQ]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(zr.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeo Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[yAe],i?p+=`connection: upgrade\r
`);g.push(b,E,h),typeof E.size=="number"?i+=b.byteLength+E.size+h.byteLength:f=!0}let m=Ym.encode(`--${A}--\r
`);g.push(m),i+=m.byteLength,f&&(i=null),n=t,s=async function*(){for(let B of g)B.stream?yield*B.stream():yield B},o=`multipart/form-data; boundary=${A}`}else if(QP(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Kd.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Due(t)}if((typeof n=="string"||Kd.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!NP(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function _ue(t,e=!1){return t instanceof ReadableStream&&(Ky(!Kd.isDisturbed(t),"The body has already been consumed."),Ky(!t.locked,"The stream is locked.")),TP(t,e)}function Gue(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function Yue(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function que(t){return{blob(){return Zc(this,r=>{let s=bP(this);return s===null?s="":s&&(s=vue(s)),new Uue([r],{type:s})},t)},arrayBuffer(){return Zc(this,r=>new Uint8Array(r).buffer,t)},text(){return Zc(this,wP,t)},json(){return Zc(this,Vue,t)},formData(){return Zc(this,r=>{let s=bP(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Oue(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new yP;return i[$c]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new yP;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Zc(this,r=>new Uint8Array(r),t)}}}function Jue(t){Object.assign(t.prototype,que(t))}async function Zc(t,e,r){if(Mue.brandCheck(t,r),xP(t))throw new TypeError("Body is unusable: Body has already been read");Yue(t[$c]);let s=Rue(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[$c].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await kue(t[$c].body,i,n),s.promise)}function xP(t){let e=t[$c].body;return e!=null&&(e.stream.locked||Kd.isDisturbed(e.stream))}function Vue(t){return JSON.parse(wP(t))}function bP(t){let e=t[$c].headersList,r=Fue(e);return r==="failure"?null:r}RP.exports={extractBody:TP,safelyExtractBody:_ue,cloneBody:Gue,mixinBody:Jue,streamRegistry:DP,hasFinalizationRegistry:SP,bodyUnusable:xP}});var WP=p((pze,VP)=>{"use strict";var ee=w("node:assert"),se=we(),{channels:kP}=_c(),jy=ky(),{RequestContentLengthMismatchError:eA,ResponseContentLengthMismatchError:FP,RequestAbortedError:_P,InvalidArgumentError:Wue,HeadersTimeoutError:zue,HeadersOverflowError:Kue,SocketError:tu,InformationalError:ru,BodyTimeoutError:Xue,HTTPParserError:jue,ResponseExceededMaxSizeError:Zue}=Le(),{kUrl:GP,kReset:_r,kClient:Wm,kParser:rt,kBlocking:Zd,kRunning:Rt,kPending:YP,kSize:MP,kWriting:Lo,kQueue:Dn,kNoRef:Xd,kKeepAliveDefaultTimeout:$ue,kHostHeader:ele,kPendingIdx:tle,kRunningIdx:qs,kError:yr,kPipelining:zm,kSocket:tA,kKeepAliveTimeoutValue:Xm,kMaxHeadersSize:Zy,kKeepAliveMaxTimeout:rle,kKeepAliveTimeoutThreshold:sle,kHeadersTimeout:nle,kBodyTimeout:ile,kStrictContentLength:tb,kMaxRequests:UP,kCounter:ole,kMaxResponseSize:ale,kOnError:LP,kResume:Ki,kHTTPContext:qP}=At(),ds=DL(),PP=Buffer.alloc(0),qm=Buffer[Symbol.species],Jm=se.addListener,Ale=se.removeAllListeners,rA=Symbol("kIdleSocketValidation"),su=Symbol("kIdleSocketValidationTimeout"),ib=Symbol("kSocketUsed"),$y;async function cle(){let t=process.env.JEST_WORKER_ID?Uy():void 0,e;try{e=await WebAssembly.compile(RL())}catch{e=await WebAssembly.compile(t||Uy())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ee(ft.ptr===r);let i=s-ti+ei.byteOffset;return ft.onStatus(new qm(ei.buffer,i,n))||0},wasm_on_message_begin:r=>(ee(ft.ptr===r),ft.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ee(ft.ptr===r);let i=s-ti+ei.byteOffset;return ft.onHeaderField(new qm(ei.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ee(ft.ptr===r);let i=s-ti+ei.byteOffset;return ft.onHeaderValue(new qm(ei.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ee(ft.ptr===r),ft.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ee(ft.ptr===r);let i=s-ti+ei.byteOffset;return ft.onBody(new qm(ei.buffer,i,n))||0},wasm_on_message_complete:r=>(ee(ft.ptr===r),ft.onMessageComplete()||0)}})}var eb=null,rb=cle();rb.catch();var ft=null,ei=null,Vm=0,ti=null,ule=0,jd=1,nu=2|jd,Km=4|jd,sb=8|ule,nb=class{constructor(e,r,{exports:s}){ee(Number.isFinite(e[Zy])&&e[Zy]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(ds.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,t Line truncated
`;if(typeof n=="string"?m+=`host: ${n}\r
`:m+=t[ele],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[nm]&&!h[wr]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let y=0;y<c.length;y+=2){let E=c[y+0],b=c[y+1];if(Array.isArray(b))for(let N=0;N<b.length;N++)p+=`${E}: ${b[N]}\r
`;else p+=`${E}: ${b}\r
`}return sL.sendHeaders.hasSubscribers&&sL.sendHeaders.publish({request:e,headers:p,socket:h}),!A||g===0?uL(f,null,t,e,h,u,p,l):ee.isBuffer(A)?uL(f,A,t,e,h,u,p,l):ee.isBlobLike(A)?typeof A.stream=="function"?lL(f,A.stream(),t,e,h,u,p,l):_Ae(f,A,t,e,h,u,p,l):ee.isStream(A)?OAe(f,A,t,e,h,u,p,l):ee.isIterable(A)?lL(f,A,t,e,h,u,p,l):j(!1),!0}function OAe(t,e,r,s,n,i,o,a){j(i!==0||r[yt]===0,"stream body cannot be pipelined");let A=!1,c=new am({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){ee.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new dL;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,j(n.destroyed||n[uo]&&r[yt]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ee.destroy(e,f):ee.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function uL(t,e,r,s,n,i,o,a){try{e?ee.isBuffer(e)&&(j(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`:t[zm]&&!h[_r]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(c))for(let B=0;B<c.length;B+=2){let E=c[B+0],b=c[B+1];if(Array.isArray(b))for(let S=0;S<b.length;S++)m+=`${E}: ${b[S]}\r
`;else m+=`${E}: ${b}\r
`}return kP.sendHeaders.hasSubscribers&&kP.sendHeaders.publish({request:e,headers:m,socket:h}),!A||g===0?OP(f,null,t,e,h,u,m,l):se.isBuffer(A)?OP(f,A,t,e,h,u,m,l):se.isBlobLike(A)?typeof A.stream=="function"?HP(f,A.stream(),t,e,h,u,m,l):ple(f,A,t,e,h,u,m,l):se.isStream(A)?mle(f,A,t,e,h,u,m,l):se.isIterable(A)?HP(f,A,t,e,h,u,m,l):ee(!1),!0}function mle(t,e,r,s,n,i,o,a){ee(i!==0||r[Rt]===0,"stream body cannot be pipelined");let A=!1,c=new jm({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(m){se.destroy(this,m)}},l=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new _P;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ee(n.destroyed||n[Lo]&&r[Rt]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(m){f=m}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?se.destroy(e,f):se.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function OP(t,e,r,s,n,i,o,a){try{e?se.isBuffer(e)&&(ee(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[wr]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[_r]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(j(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[wi]()}catch(A){t(A)}}async function _Ae(t,e,r,s,n,i,o,a){j(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Na;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(ee(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Ki]()}catch(A){t(A)}}async function ple(t,e,r,s,n,i,o,a){ee(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new eA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[wr]=!0),r[wi]()}catch(A){t(A)}}async function lL(t,e,r,s,n,i,o,a){j(i!==0||r[yt]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{j(A===null),n[cr]?h(n[cr]):A=g});n.on("close",c).on("drain",c);let l=new am({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[cr])throw n[cr];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var am=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[uo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[cr])throw r[cr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[$Q])throw new Na;process.emitWarning(new Na)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[wr]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[_r]=!0),r[Ki]()}catch(A){t(A)}}async function HP(t,e,r,s,n,i,o,a){ee(i!==0||r[Rt]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{ee(A===null),n[yr]?h(n[yr]):A=g});n.on("close",c).on("drain",c);let l=new jm({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[yr])throw n[yr];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var jm=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Lo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[yr])throw r[yr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[tb])throw new eA;process.emitWarning(new eA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[_r]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[We].timeout&&r[We].timeoutType===Nc&&r[We].timeout.refresh&&r[We].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[uo]=!1,e[cr])throw e[cr];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[rt].timeout&&r[rt].timeoutType===nu&&r[rt].timeout.refresh&&r[rt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Lo]=!1,e[yr])throw e[yr];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[$Q])throw new Na;process.emitWarning(new Na)}e[We].timeout&&e[We].timeoutType===Nc&&e[We].timeout.refresh&&e[We].timeout.refresh(),s[wi]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[uo]=!1,e&&(j(s[yt]<=1,"pipeline should only contain this request"),n(e))}};pL.exports=MAe});var NL=m((cVe,wL)=>{"use strict";var ws=Q("node:assert"),{pipeline:HAe}=Q("node:stream"),Ie=Ee(),{RequestContentLengthMismatchError:ny,RequestAbortedError:CL,SocketError:md,InformationalError:iy}=Se(),{kUrl:Am,kReset:um,kClient:Sc,kRunning:lm,kPending:GAe,kQueue:lo,kPendingIdx:oy,kRunningIdx:cn,kError:ln,kSocket:Mt,kStrictContentLength:YAe,kOnError:ay,kMaxConcurrentStreams:bL,kHTTP2Session:un,kResume:go,kSize:qAe,kHTTPContext:VAe}=$e(),Ni=Symbol("open streams"),IL,BL=!1,cm;try{cm=Q("node:http2")}catch{cm={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:JAe,HTTP2_HEADER_METHOD:WAe,HTTP2_HEADER_PATH:zAe,HTTP2_HEADER_SCHEME:KAe,HTTP2_HEADER_CONTENT_LENGTH:XAe,HTTP2_HEADER_EXPECT:jAe,HTTP2_HEADER_STATUS:ZAe}}=cm;function $Ae(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function ece(t,e){t[Mt]=e,BL||(BL=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=cm.connect(t[Am],{createConnection:()=>e,peerMaxConcurrentStreams:t[bL]});r[Ni]=0,r[Sc]=t,r[Mt]=e,Ie.addListener(r,"error",rce),Ie.addListener(r,"frameError",sce),Ie.addListener(r,"end",nce),Ie.addListener(r,"goaway",ice),Ie.addListener(r,"close",function(){let{[Sc]:n}=this,{[Mt]:i}=n,o=this[Mt][ln]||this[ln]||new md("closed",Ie.getSocketInfo(i));if(n[un]=null,n.destroyed){ws(n[GAe]===0);let a=n[lo].splice(n[cn]);for(let A=0;A<a.length;A++){let c=a[A];Ie.errorRequest(n,c,o)}}}),r.unref(),t[un]=r,e[un]=r,Ie.addListener(e,"error",function(n){ws(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ln]=n,this[Sc][ay](n)}),Ie.addListener(e,"end",function(){Ie.destroy(this,new md("other side closed",Ie.getSocketInfo(this)))}),Ie.addListener(e,"close",function(){let n=this[ln]||new md("closed",Ie.getSocketInfo(this));t[Mt]=null,this[un]!=null&&this[un].destroy(n),t[oy]=t[cn],ws(t[lm]===0),t.emit("disconnect",t[Am],[t],n),t[go]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return ace(t,...n)},resume(){tce(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function tce(t){let e=t[Mt];e?.destroyed===!1&&(t[qAe]===0&&t[bL]===0?(e.unref(),t[un].unref()):(e.ref(),t[un].ref()))}function rce(t){ws(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Mt][ln]=t,this[Sc][ay](t)}function sce(t,e,r){if(r===0){let s=new iy(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Mt][ln]=s,this[Sc][ay](s)}}function nce(){let t=new md("other side closed",Ie.getSocketInfo(this[Mt]));this.destroy(t),Ie.destroy(this[Mt],t)}function ice(t){let e=this[ln]||new md(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ie.getSocketInfo(this)),r=this[Sc];if(r[Mt]=null,r[VAe]=null,this[un]!=null&&(this[un].destroy(e),this[un]=null),Ie.destroy(this[Mt],e),r[cn]<r[lo].length){let s=r[lo][r[cn]];r[lo][r[cn]++]=null,Ie.errorRequest(r,s,e),r[oy]=r[cn]}ws(r[lm]===0),r.emit("disconnect",r[Am],[r],e),r[go]()}function oce(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function ace(t,e){let r=t[un],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ie.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let x=0;x<c.length;x+=2){let k=c[x+0],P=c[x+1];if(Array.isArray(P))for(let F=0;F<P.length;F++)l[k]?l[k]+=`,${P[F]}`:l[k]=P[F];else l[k]=P}let g,{hostname:h,port:f}=t[Am];l[JAe]=i||`${h}${f?`:${f}`:""}`,l[WAe]=s;let p=x=>{e.aborted||e.completed||(x=x||new CL,Ie.errorRequest(t,e,x),g!=null&&Ie.destroy(g,x),Ie.destroy(u,x),t[lo][t[cn]++]=null,t[go]())};try{e.onConnect(p)}catch(x){Ie.errorRequest(t,e,x)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[Ni],t[lo][t[cn]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[Ni],t[lo][t[cn]++]=null}),g.once("close",()=>{r[Ni]-=1,r[Ni]===0&&r.unref()}),!0;l[zAe]=n,l[KAe]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=Ie.bodyLength(u);if(Ie.isFormDataLike(u)){IL??=yc().extractBody;let[x,k]=IL(u);l["content-type"]=k,u=x.stream,E=x.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),oce(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[YAe])return Ie.errorRequest(t,e,new ny),!1;process.emitWarning(new ny)}E!=null&&(ws(u,"no body must not have content length"),l[XAe]=`${E}`),r.ref();let b=s==="GET"||s==="HEAD"||u===null;return a?(l[jAe]="100-continue",g=r.request(l,{endStream:b,signal:A}),g.once("continue",N)):(g=r. Line truncated
`,this[Fce]=A??3e5,this[kce]=n??3e5,this[Mce]=b??!0,this[Uce]=x,this[ly]=P,this[fo]=null,this[_ce]=v>-1?v:-1,this[Gce]=De??100,this[ht]=null,this[dn]=[],this[Ti]=0,this[gn]=0,this[Id]=he=>gy(this,he),this[Hce]=he=>vL(this,he)}get pipelining(){return this[fm]}set pipelining(e){this[fm]=e,this[Id](!0)}get[yd](){return this[dn].length-this[gn]}get[Qd](){return this[gn]-this[Ti]}get[Bd](){return this[dn].length-this[Ti]}get[wce](){return!!this[ht]&&!this[Dc]&&!this[ht].destroyed}get[uy](){return!!(this[ht]?.busy(null)||this[Bd]>=(PL(this)||1)||this[yd]>0)}[bce](e){OL(this),this.once("connect",e)}[Oce](e,r){let s=e.origin||this[vn].origin,n=new Ece(s,e,r);return this[dn].push(n),this[Ra]||(xa.bodyLength(n.body)==null&&xa.isIterable(n.body)?(this[Ra]=1,queueMicrotask(()=>gy(this))):this[Id](!0)),this[Ra]&&this[mo]!==2&&this[uy]&&(this[mo]=2),this[mo]<2}async[Pce](){return new Promise(e=>{this[Bd]?this[fo]=e:e(null)})}async[vce](e){return new Promise(r=>{let s=this[dn].splice(this[gn]);for(let i=0;i<s.length;i++){let o=s[i];xa.errorRequest(this,o,e)}let n=()=>{this[fo]&&(this[fo](),this[fo]=null),r(null)};this[ht]?(this[ht].destroy(e,n),this[ht]=null):queueMicrotask(n),this[Id]()})}},Vce=hm();function vL(t,e){if(t[Qd]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Si(t[gn]===t[Ti]);let r=t[dn].splice(t[Ti]);for(let s=0;s<r.length;s++){let n=r[s];xa.errorRequest(t,n,e)}Si(t[Bd]===0)}}async function OL(t){Si(!t[Dc]),Si(!t[ht]);let{host:e,hostname:r,protocol:s,port:n}=t[vn];if(r[0]==="["){let i=r.indexOf("]");Si(i!==-1);let o=r.substring(1,i);Si(LL.isIP(o)),r=o}t[Dc]=!0,Tc.beforeConnect.hasSubscribers&&Tc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[ho],localAddress:t[Cd]},connector:t[Ed]});try{let i=await new Promise((o,a)=>{t[Ed]({host:e,hostname:r,protocol:s,port:n,servername:t[ho],localAddress:t[Cd]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){xa.destroy(i.on("error",ML),new Bce);return}Si(i);try{t[ht]=i.alpnProtocol==="h2"?await qce(t,i):await Yce(t,i)}catch(o){throw i.destroy().on("error",ML),o}t[Dc]=!1,i[Lce]=0,i[ly]=t[ly],i[yce]=t,i[Sce]=null,Tc.connected.hasSubscribers&&Tc.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[ho],localAddress:t[Cd]},connector:t[Ed],socket:i}),t.emit("connect",t[vn],[t])}catch(i){if(t.destroyed)return;if(t[Dc]=!1,Tc.connectError.hasSubscribers&&Tc.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[ho],localAddress:t[Cd]},connector:t[Ed],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Si(t[Qd]===0);t[yd]>0&&t[dn][t[gn]].servername===t[ho];){let o=t[dn][t[gn]++];xa.errorRequest(t,o,i)}else vL(t,i);t.emit("connectionError",t[vn],[t],i)}t[Id]()}function UL(t){t[mo]=0,t.emit("drain",t[vn],[t])}function gy(t,e){t[Ra]!==2&&(t[Ra]=2,Jce(t,e),t[Ra]=0,t[Ti]>256&&(t[dn].splice(0,t[Ti]),t[gn]-=t[Ti],t[Ti]=0))}function Jce(t,e){for(;;){if(t.destroyed){Si(t[yd]===0);return}if(t[fo]&&!t[Bd]){t[fo](),t[fo]=null;return}if(t[ht]&&t[ht].resume(),t[uy])t[mo]=2;else if(t[mo]===2){e?(t[mo]=1,queueMicrotask(()=>UL(t))):UL(t);continue}if(t[yd]===0||t[Qd]>=(PL(t)||1))return;let r=t[dn][t[gn]];if(t[vn].protocol==="https:"&&t[ho]!==r.servername){if(t[Qd]>0)return;t[ho]=r.servername,t[ht]?.destroy(new Ice("servername changed"),()=>{t[ht]=null,gy(t)})}if(t[Dc])return;if(!t[ht]){OL(t);return}if(t[ht].destroyed||t[ht].busy(r))return;!r.aborted&&t[ht].write(r)?t[gn]++:t[dn].splice(t[gn],1)}}_L.exports=dy});var hy=m((hVe,HL)=>{"use strict";var mm=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)}};HL.exports=class{constructor(){this.head=this.tail=new mm}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new mm),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var YL=m((fVe,GL)=>{var{kFree:Wce,kConnected:zce,kPending:Kce,kQueued:Xce,kRunning:jce,kSize:Zce}=$e(),ka=Symbol("pool"),fy=class{constructor(e){this[ka]=e}get connected(){return this[ka][zce]}get free(){return this[ka][Wce]}get pending(){return this[ka][Kce]}get queued(){return this[ka][Xce]}get running(){return this[ka][jce]}get size(){return this[ka][Zce]}};GL.exports=fy});var By=m((mVe,$L)=>{"use strict";var $ce=hc(),eue=hy(),{kConnected:my,kSize:qL,kRunning:VL,kPending:JL,kQueued:bd,kBusy:tue,kFree:rue,kUrl:sue,kClose:nue,kDestroy:iue,kDispatch:oue}=$e(),aue=YL(),Nr=Symbol("clients"),ur=Symbol("needDrain"),wd=Symbol("queue"),py=Symbol("closed resolve"),Ey=Symbol("onDrain"),WL=Symbol("onConnect"),zL=Symbol("onDisconnect"),KL=Symbol("onConnectionError"),Cy=Symbol(" Line truncated
`,"latin1"),r!==null&&n!==r){if(s[tb])throw new eA;process.emitWarning(new eA)}e[rt].timeout&&e[rt].timeoutType===nu&&e[rt].timeout.refresh&&e[rt].timeout.refresh(),s[Ki]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Lo]=!1,e&&(ee(s[Rt]<=1,"pipeline should only contain this request"),n(e))}};VP.exports=lle});var tv=p((Eze,ev)=>{"use strict";var Js=w("node:assert"),{pipeline:Ele}=w("node:stream"),De=we(),{RequestContentLengthMismatchError:ob,RequestAbortedError:zP,SocketError:$d,InformationalError:ab}=Le(),{kUrl:Zm,kReset:ep,kClient:iu,kRunning:tp,kPending:Cle,kQueue:Po,kPendingIdx:Ab,kRunningIdx:Tn,kError:Rn,kSocket:qt,kStrictContentLength:Ile,kOnError:cb,kMaxConcurrentStreams:$P,kHTTP2Session:xn,kResume:vo,kSize:Ble,kHTTPContext:Qle}=At(),Xi=Symbol("open streams"),KP,XP=!1,$m;try{$m=w("node:http2")}catch{$m={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:yle,HTTP2_HEADER_METHOD:ble,HTTP2_HEADER_PATH:wle,HTTP2_HEADER_SCHEME:Nle,HTTP2_HEADER_CONTENT_LENGTH:Sle,HTTP2_HEADER_EXPECT:Dle,HTTP2_HEADER_STATUS:Tle}}=$m;function xle(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function Rle(t,e){t[qt]=e,XP||(XP=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=$m.connect(t[Zm],{createConnection:()=>e,peerMaxConcurrentStreams:t[$P]});r[Xi]=0,r[iu]=t,r[qt]=e,De.addListener(r,"error",Fle),De.addListener(r,"frameError",Mle),De.addListener(r,"end",Ule),De.addListener(r,"goaway",Lle),De.addListener(r,"close",function(){let{[iu]:n}=this,{[qt]:i}=n,o=this[qt][Rn]||this[Rn]||new $d("closed",De.getSocketInfo(i));if(n[xn]=null,n.destroyed){Js(n[Cle]===0);let a=n[Po].splice(n[Tn]);for(let A=0;A<a.length;A++){let c=a[A];De.errorRequest(n,c,o)}}}),r.unref(),t[xn]=r,e[xn]=r,De.addListener(e,"error",function(n){Js(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn]=n,this[iu][cb](n)}),De.addListener(e,"end",function(){De.destroy(this,new $d("other side closed",De.getSocketInfo(this)))}),De.addListener(e,"close",function(){let n=this[Rn]||new $d("closed",De.getSocketInfo(this));t[qt]=null,this[xn]!=null&&this[xn].destroy(n),t[Ab]=t[Tn],Js(t[tp]===0),t.emit("disconnect",t[Zm],[t],n),t[vo]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return vle(t,...n)},resume(){kle(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function kle(t){let e=t[qt];e?.destroyed===!1&&(t[Ble]===0&&t[$P]===0?(e.unref(),t[xn].unref()):(e.ref(),t[xn].ref()))}function Fle(t){Js(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qt][Rn]=t,this[iu][cb](t)}function Mle(t,e,r){if(r===0){let s=new ab(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[qt][Rn]=s,this[iu][cb](s)}}function Ule(){let t=new $d("other side closed",De.getSocketInfo(this[qt]));this.destroy(t),De.destroy(this[qt],t)}function Lle(t){let e=this[Rn]||new $d(`HTTP/2: "GOAWAY" frame received with code ${t}`,De.getSocketInfo(this)),r=this[iu];if(r[qt]=null,r[Qle]=null,this[xn]!=null&&(this[xn].destroy(e),this[xn]=null),De.destroy(this[qt],e),r[Tn]<r[Po].length){let s=r[Po][r[Tn]];r[Po][r[Tn]++]=null,De.errorRequest(r,s,e),r[Ab]=r[Tn]}Js(r[tp]===0),r.emit("disconnect",r[Zm],[r],e),r[vo]()}function Ple(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function vle(t,e){let r=t[xn],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return De.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<c.length;R+=2){let F=c[R+0],O=c[R+1];if(Array.isArray(O))for(let V=0;V<O.length;V++)l[F]?l[F]+=`,${O[V]}`:l[F]=O[V];else l[F]=O}let g,{hostname:h,port:f}=t[Zm];l[yle]=i||`${h}${f?`:${f}`:""}`,l[ble]=s;let m=R=>{e.aborted||e.completed||(R=R||new zP,De.errorRequest(t,e,R),g!=null&&De.destroy(g,R),De.destroy(u,R),t[Po][t[Tn]++]=null,t[vo]())};try{e.onConnect(m)}catch(R){De.errorRequest(t,e,R)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[Xi],t[Po][t[Tn]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[Xi],t[Po][t[Tn]++]=null}),g.once("close",()=>{r[Xi]-=1,r[Xi]===0&&r.unref()}),!0;l[wle]=n,l[Nle]="https";let B=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=De.bodyLength(u);if(De.isFormDataLike(u)){KP??=eu().extractBody;let[R,F]=KP(u);l["content-type"]=F,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!B)&&(E=null),Ple(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[Ile])return De.errorRequest(t,e,new ob),!1;process.emitWarning(new ob)}E!=null&&(Js(u,"no body must not have content length"),l[Sle]=`${E}`),r.ref();let b=s==="GET"||s==="HEAD"||u===null;return a?(l[Dle]="100-continue",g=r.request(l,{endStream:b,signal:A}),g.once("continue",S)):(g=r Line truncated
`,this[ude]=A??3e5,this[cde]=n??3e5,this[lde]=b??!0,this[dde]=R,this[gb]=O,this[Ho]=null,this[pde]=G>-1?G:-1,this[Cde]=Ie??100,this[bt]=null,this[kn]=[],this[Zi]=0,this[Fn]=0,this[sg]=Be=>fb(this,Be),this[Ede]=Be=>gv(this,Be)}get pipelining(){return this[ip]}set pipelining(e){this[ip]=e,this[sg](!0)}get[og](){return this[kn].length-this[Fn]}get[ig](){return this[Fn]-this[Zi]}get[ng](){return this[kn].length-this[Zi]}get[rde](){return!!this[bt]&&!this[au]&&!this[bt].destroyed}get[db](){return!!(this[bt]?.busy(null)||this[ng]>=(dv(this)||1)||this[og]>0)}[tde](e){hv(this),this.once("connect",e)}[mde](e,r){let s=e.origin||this[si].origin,n=new Kle(s,e,r);return this[kn].push(n),this[nA]||(sA.bodyLength(n.body)==null&&sA.isIterable(n.body)?(this[nA]=1,queueMicrotask(()=>fb(this))):this[sg](!0)),this[nA]&&this[_o]!==2&&this[db]&&(this[_o]=2),this[_o]<2}async[hde](){return new Promise(e=>{this[ng]?this[Ho]=e:e(null)})}async[fde](e){return new Promise(r=>{let s=this[kn].splice(this[Fn]);for(let i=0;i<s.length;i++){let o=s[i];sA.errorRequest(this,o,e)}let n=()=>{this[Ho]&&(this[Ho](),this[Ho]=null),r(null)};this[bt]?(this[bt].destroy(e,n),this[bt]=null):queueMicrotask(n),this[sg]()})}},Qde=np();function gv(t,e){if(t[ig]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ji(t[Fn]===t[Zi]);let r=t[kn].splice(t[Zi]);for(let s=0;s<r.length;s++){let n=r[s];sA.errorRequest(t,n,e)}ji(t[ng]===0)}}async function hv(t){ji(!t[au]),ji(!t[bt]);let{host:e,hostname:r,protocol:s,port:n}=t[si];if(r[0]==="["){let i=r.indexOf("]");ji(i!==-1);let o=r.substring(1,i);ji(lv.isIP(o)),r=o}t[au]=!0,ou.beforeConnect.hasSubscribers&&ou.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[bt]?.version,servername:t[Oo],localAddress:t[rg]},connector:t[tg]});try{let i=await new Promise((o,a)=>{t[tg]({host:e,hostname:r,protocol:s,port:n,servername:t[Oo],localAddress:t[rg]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){sA.destroy(i.on("error",cv),new Zle);return}ji(i);try{t[bt]=i.alpnProtocol==="h2"?await Bde(t,i):await Ide(t,i)}catch(o){throw i.destroy().on("error",cv),o}t[au]=!1,i[gde]=0,i[gb]=t[gb],i[ede]=t,i[nde]=null,ou.connected.hasSubscribers&&ou.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[bt]?.version,servername:t[Oo],localAddress:t[rg]},connector:t[tg],socket:i}),t.emit("connect",t[si],[t])}catch(i){if(t.destroyed)return;if(t[au]=!1,ou.connectError.hasSubscribers&&ou.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[bt]?.version,servername:t[Oo],localAddress:t[rg]},connector:t[tg],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ji(t[ig]===0);t[og]>0&&t[kn][t[Fn]].servername===t[Oo];){let o=t[kn][t[Fn]++];sA.errorRequest(t,o,i)}else gv(t,i);t.emit("connectionError",t[si],[t],i)}t[sg]()}function uv(t){t[_o]=0,t.emit("drain",t[si],[t])}function fb(t,e){t[nA]!==2&&(t[nA]=2,yde(t,e),t[nA]=0,t[Zi]>256&&(t[kn].splice(0,t[Zi]),t[Fn]-=t[Zi],t[Zi]=0))}function yde(t,e){for(;;){if(t.destroyed){ji(t[og]===0);return}if(t[Ho]&&!t[ng]){t[Ho](),t[Ho]=null;return}if(t[bt]&&t[bt].resume(),t[db])t[_o]=2;else if(t[_o]===2){e?(t[_o]=1,queueMicrotask(()=>uv(t))):uv(t);continue}if(t[og]===0||t[ig]>=(dv(t)||1))return;let r=t[kn][t[Fn]];if(t[si].protocol==="https:"&&t[Oo]!==r.servername){if(t[ig]>0)return;t[Oo]=r.servername,t[bt]?.destroy(new jle("servername changed"),()=>{t[bt]=null,fb(t)})}if(t[au])return;if(!t[bt]){hv(t);return}if(t[bt].destroyed||t[bt].busy(r))return;!r.aborted&&t[bt].write(r)?t[Fn]++:t[kn].splice(t[Fn],1)}}fv.exports=hb});var mb=p((yze,mv)=>{"use strict";var op=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)}};mv.exports=class{constructor(){this.head=this.tail=new op}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new op),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Ev=p((bze,pv)=>{var{kFree:bde,kConnected:wde,kPending:Nde,kQueued:Sde,kRunning:Dde,kSize:Tde}=At(),iA=Symbol("pool"),pb=class{constructor(e){this[iA]=e}get connected(){return this[iA][wde]}get free(){return this[iA][bde]}get pending(){return this[iA][Nde]}get queued(){return this[iA][Sde]}get running(){return this[iA][Dde]}get size(){return this[iA][Tde]}};pv.exports=pb});var yb=p((wze,Dv)=>{"use strict";var xde=Jc(),Rde=mb(),{kConnected:Eb,kSize:Cv,kRunning:Iv,kPending:Bv,kQueued:ag,kBusy:kde,kFree:Fde,kUrl:Mde,kClose:Ude,kDestroy:Lde,kDispatch:Pde}=At(),vde=Ev(),Gr=Symbol("clients"),br=Symbol("needDrain"),Ag=Symbol("queue"),Cb=Symbol("closed resolve"),Ib=Symbol("onDrain"),Qv=Symbol("onConnect"),yv=Symbol("onDisconnect"),bv=Symbol("onConnectionError"),Bb=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};o3.exports=Bb});var Mm=m((qVe,l3)=>{"use strict";var A3=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Fde}=Se(),Mde=kc();u3()===void 0&&c3(new Mde);function c3(t){if(!t||typeof t.dispatch!="function")throw new Fde("Argument agent must implement Agent");Object.defineProperty(globalThis,A3,{value:t,writable:!0,enumerable:!1,configurable:!1})}function u3(){return globalThis[A3]}l3.exports={setGlobalDispatcher:c3,getGlobalDispatcher:u3}});var Um=m((JVe,d3)=>{"use strict";d3.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 h3=m((WVe,g3)=>{"use strict";var Ude=gm();g3.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new Ude(r,o,n,i);return r(a,A)}}});var m3=m((zVe,f3)=>{"use strict";var Lde=bm();f3.exports=t=>e=>function(s,n){return e(s,new Lde({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var E3=m((KVe,p3)=>{"use strict";var Pde=Ee(),{InvalidArgumentError:vde,RequestAbortedError:Ode}=Se(),_de=Um(),Qb=class extends _de{#e=1024*1024;#t=null;#r=!1;#n=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new vde("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.#n=!0,this.#s=e}onHeaders(e,r,s,n){let o=Pde.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Ode(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#n?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#n?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#n){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Hde({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new Qb({maxSize:i},n);return e(s,o)}}p3.exports=Hde});var B3=m((XVe,I3)=>{"use strict";var{isIP:Gde}=Q("node:net"),{lookup:Yde}=Q("node:dns"),qde=Um(),{InvalidArgumentError:Yc,InformationalError:Vde}=Se(),C3=Math.pow(2,31)-1,yb=class{#e=0;#t=0;#r=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.#n,this.pick=e.pick??this.#i}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(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(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Vde("No DNS entries found"));return}this.setRecords(e,a);let A=this.#r.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.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}`)}}#n(e,r,s){Yde(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===C3?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===C3?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new bb(this,e,r)}},bb=class extends qde{#e=null;#t=null;#r=null;#n=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#n=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#n.onError(r);le Line truncated
${i}`;break;case"retry":$4(i)&&(r[n]=i);break;case"id":eO(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&$4(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&eO(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}}};tO.exports={EventSourceStream:g1}});var uO=m((S7e,cO)=>{"use strict";var{pipeline:$me}=Q("node:stream"),{fetching:epe}=Pd(),{makeRequest:tpe}=Jc(),{webidl:Fi}=Vt(),{EventSourceStream:rpe}=rO(),{parseMIMEType:spe}=br(),{createFastMessageEvent:npe}=Zc(),{isNetworkError:sO}=Ud(),{delay:ipe}=l1(),{kEnumerableProperty:Wa}=Ee(),{environmentSettingsObject:nO}=Wr(),iO=!1,oO=3e3,jd=0,aO=1,Zd=2,ope="anonymous",ape="use-credentials",su=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#n=jd;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Fi.util.markAsUncloneable(this);let s="EventSource constructor";Fi.argumentLengthCheck(arguments,1,s),iO||(iO=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Fi.converters.USVString(e,s,"url"),r=Fi.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:oO};let n=nO,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=ope;r.withCredentials&&(o=ape,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=nO.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=tpe(a),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===Zd)return;this.#n=jd;let e={request:this.#i,dispatcher:this.#a},r=s=>{sO(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(sO(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?spe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=aO,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new rpe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(npe(A.type,A.options))}});$me(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=epe(e)}async#c(){this.#n!==Zd&&(this.#n=jd,this.dispatchEvent(new Event("error")),await ipe(this.#o.reconnectionTime),this.#n===jd&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Fi.brandCheck(this,t),this.#n!==Zd&&(this.#n=Zd,this.#s.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}},AO={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:jd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:aO,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Zd,writable:!1}};Object.defineProperties(su,AO);Object.defineProperties(su.prototype,AO);Object.defineProperties(su.prototype,{close:Wa,onerror:Wa,onmessage:Wa,onopen:Wa,readyState:Wa,url:Wa,withCredentials:Wa});Fi.converters.EventSourceInitDict=Fi.dictionaryConverter([{key:"withCredentials",converter:Fi.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Fi.converters.any}]);cO.exports={EventSource:su,defaultReconnectionTime:oO}});var yp=m((T7e,ie)=>{"use strict";var Ape=xc(),lO=rd(),cpe=Rc(),upe=AP(),lpe=kc(),dpe=My(),gpe=kP(),hpe=OP(),dO=Se(),Qp=Ee(),{InvalidArgumentError:Bp}=dO,nu=wv(),fpe=nd(),mpe=fb(),ppe=a3(),Epe=Eb(),Cpe=rb(),Ipe=bm(),{getGlobalDispatcher:gO,setGlobalDispatcher:Bpe}=Mm(),Qpe=Um(),ype=gm(),bpe=hm();Object.assign(lO.prototype,nu);ie.exports.Dispatcher=lO;ie.exports.Client=Ape;ie.exports.Pool=cpe;ie.exports.BalancedPool=upe;ie.exports.Agent=lpe;ie.exports.ProxyAgent=dpe;ie.exports.EnvHttpProxyAgent=gpe;ie.exports.RetryAgent=hpe;ie.exports.RetryHandle Line truncated
`.trim())}};U8.exports=yw});var bp=p(($ze,H8)=>{"use strict";var P8=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:ufe}=Le(),lfe=uu();O8()===void 0&&v8(new lfe);function v8(t){if(!t||typeof t.dispatch!="function")throw new ufe("Argument agent must implement Agent");Object.defineProperty(globalThis,P8,{value:t,writable:!0,enumerable:!1,configurable:!1})}function O8(){return globalThis[P8]}H8.exports={setGlobalDispatcher:v8,getGlobalDispatcher:O8}});var wp=p((tKe,_8)=>{"use strict";_8.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 Y8=p((rKe,G8)=>{"use strict";var dfe=sp();G8.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new dfe(r,o,n,i);return r(a,A)}}});var J8=p((sKe,q8)=>{"use strict";var gfe=hp();q8.exports=t=>e=>function(s,n){return e(s,new gfe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var W8=p((nKe,V8)=>{"use strict";var hfe=we(),{InvalidArgumentError:ffe,RequestAbortedError:mfe}=Le(),pfe=wp(),bw=class extends pfe{#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new ffe("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.#n=e}onHeaders(e,r,s,n){let o=hfe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new mfe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Efe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new bw({maxSize:i},n);return e(s,o)}}V8.exports=Efe});var X8=p((iKe,K8)=>{"use strict";var{isIP:Cfe}=w("node:net"),{lookup:Ife}=w("node:dns"),Bfe=wp(),{InvalidArgumentError:Cu,InformationalError:Qfe}=Le(),z8=Math.pow(2,31)-1,ww=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 n=this.#s.get(e.hostname);if(n==null&&this.full){s(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(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Qfe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#s.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.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){Ife(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===z8?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===z8?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#s.set(e.hostname,n)}getHandler(e,r){return new Nw(this,e,r)}},Nw=class extends Bfe{#e=null;#t=null;#s=null;#r=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#r=s,this.#t={...i},this.#e=e,this.#s=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#r.onError(r);le Line truncated
${o}`;return}if(lE(e,n,U0e)){L0e(e,i)&&(r.retry=e.toString("utf8",i));return}if(lE(e,n,M0e)){P0e(e,i)&&(r.id=e.toString("utf8",i));return}if(lE(e,n,F0e)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&D0e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&T0e(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,o=s===this.chunkIndex?this.pos:n.length,a=n.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),s=this.peekBufferedByte(2);return r===void 0?(e===Fu[0]||(this.checkBOM=!1),!0):s===void 0?e===Fu[0]&&r===Fu[1]?!0:(this.checkBOM=!1,!1):(e===Fu[0]&&r===Fu[1]&&s===Fu[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};D6.exports={EventSourceStream:f1}});var P6=p((LKe,L6)=>{"use strict";var{pipeline:v0e}=w("node:stream"),{fetching:O0e}=Bg(),{makeRequest:H0e}=Qu(),{webidl:ro}=tr(),{EventSourceStream:_0e}=T6(),{parseMIMEType:G0e}=Hr(),{createFastMessageEvent:Y0e}=Du(),{isNetworkError:x6}=Cg(),{delay:q0e}=g1(),{kEnumerableProperty:BA}=we(),{environmentSettingsObject:R6}=ls(),k6=!1,F6=3e3,Ug=0,M6=1,Lg=2,J0e="anonymous",V0e="use-credentials",Mu=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Ug;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),ro.util.markAsUncloneable(this);let s="EventSource constructor";ro.argumentLengthCheck(arguments,1,s),k6||(k6=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ro.converters.USVString(e,s,"url"),r=ro.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:F6};let n=R6,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=J0e;r.withCredentials&&(o=V0e,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=R6.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=H0e(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===Lg)return;this.#r=Ug;let e={request:this.#i,dispatcher:this.#a},r=s=>{x6(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(x6(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?G0e(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=M6,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new _0e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Y0e(A.type,A.options))}});v0e(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=O0e(e)}async#c(){this.#r!==Lg&&(this.#r=Ug,this.dispatchEvent(new Event("error") 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 b5=m(y5=>{"use strict";var EN=Gi().Buffer;y5._dbcs=Yi;var Jt=-1,Q5=-2,Os=-10,mr=-1e3,Nu=new Array(256),Rg=-1;for(U0=0;U0<256;U0++)Nu[U0]=Jt;var U0;function Yi(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]=Nu.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 n=this.decodeTables.length;this.decodeTables.push(Nu.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Nu.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[mr-o[s]],A=48;A<=57;A++){if(a[A]===Jt)a[A]=mr-n;else if(a[A]>mr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[mr-a[A]],u=129;u<=254;u++){if(c[u]===Jt)c[u]=mr-i;else{if(c[u]===mr-i)continue;if(c[u]>mr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[mr-c[u]],g=48;g<=57;g++)l[g]===Jt&&(l[g]=Q5)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipVals.lengLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function ewe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(O1e.has(n)){r=n;break}}return r}function twe(t,e){let r=ewe(e);r!==""&&(t.referrerPolicy=r)}function rwe(){return"allowed"}function swe(){return"success"}function nwe(){return"success"}function iwe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function owe(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&&PS(t.origin)&&!PS(gA(t))&&(e=null);break;case"same-origin":Hg(t,gA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ru(t,e){return t}function awe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ru(t.domainLookupStartTime,r),domainLookupEndTime:Ru(t.domainLookupEndTime,r),connectionStartTime:Ru(t.connectionStartTime,r),connectionEndTime:Ru(t.connectionEndTime,r),secureConnectionStartTime:Ru(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Awe(t){return Ru(Y1e.now(),t)}function cwe(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 $9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function uwe(t){return{referrerPolicy:t.referrerPolicy}}function lwe(t){let e=t.referrerPolicy;Gg(e);let r=null;if(t.referrer==="client"){let i=z9();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Vo.is.URL(t.referrer)&&(r=t.referrer);let s=LS(r),n=LS(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??LS(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=gA(t);return dA(s)&&!dA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=gA(t);return Hg(s,i)?s:dA(s)&&!dA(i)?"no-referrer":n}case"same-origin":return Hg(t,s)?s:"no-referrer";case"origin-when-cross-origin":return Hg(t,s)?s:n;case"no-referrer-when-downgrade":{let i=gA(t);return dA(s)&&!dA(i)?"no-referrer":s}}}function LS(t,e=!1){return Gg(Vo.is.URL(t)),t=new URL(t),sG(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var dwe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),gwe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function eG(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),gwe(t)):dwe(t)}function hwe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||eG(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function dA(t){return Vo.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:hwe(t.origin):!1}function fwe(t){}function Hg(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function mwe(t){return t.controller.state==="aborted"}function pwe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Ewe(t){return V1e[t.toLowerCase()]??t}var Cwe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function tG(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o,this.#t=a,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#r,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#r=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,Cwe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function Iwe(t,e,r,s=0,n=1){let i=tG(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vo.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vo.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Gs(a=>JS(a)&&a!==59,t,e);i=qS.decode(o)}return{name:s,value:i,extended:n}}function qwe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Lr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Gs(a=>a!==10&&a!==13&&a!==58,t,e);if(o=VS(o,!0,!0,a=>a===9||a===32),!Lwe.test(o.toString()))throw Lr("header name does not match the field-name token production");if(t[e.position]!==58)throw Lr("expected :");switch(e.position++,Gs(a=>a===32||a===9,t,e),Uwe(o)){case"content-disposition":{r=s=null;let a=!1;if(Gs(c=>JS(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Lr("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=Ywe(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(s=c.value,a=!0):a||(s=c.value))}if(r===null)throw Lr("name attribute is required in content-disposition header");break}case"content-type":{let a=Gs(A=>A!==10&&A!==13,t,e);a=VS(a,!1,!0,A=>A===9||A===32),n=cG(a);break}case"content-transfer-encoding":{let a=Gs(A=>A!==10&&A!==13,t,e);a=VS(a,!1,!0,A=>A===9||A===32),i=cG(a);break}default:Gs(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Lr("expected CRLF");e.position+=2}}function Gs(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function VS(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Vwe(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}function Lr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Jwe(t){return t<=31||t===127}function Wwe(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function JS(t){return t<=127&&t!==32&&t!==9&&!Jwe(t)&&!Wwe(t)}uG.exports={multipartFormDataParser:Gwe,validateBoundary:Hwe}});var Yg=m((Lje,dG)=>{"use strict";function zwe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}dG.exports={createDeferredPromise:zwe}});var Mu=m((Pje,pG)=>{"use strict";var KS=ue(),{ReadableStreamFrom:Kwe,readableStreamClose:Xwe,fullyReadBody:jwe,extractMimeType:Zwe}=As(),{FormData:gG,setFormDataState:$we}=oE(),{webidl:yn}=Wt(),WS=Q("node:assert"),{isErrored:zS,isDisturbed:eNe}=Q("node:stream"),{isUint8Array:tNe}=Q("node:util/types"),{serializeAMimeType:rNe}=Hs(),{multipartFormDataParser:sNe}=lG(),{createDeferredPromise:nNe}=Yg(),{parseJSONFromBytes:iNe}=Ji(),{utf8DecodeBytes:oNe}=eE(),{runtimeFeatures:aNe}=Wi(),ANe=aNe.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),aE=new TextEncoder;function cNe(){}var uNe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!eNe(e)&&!zS(e)&&e.cancel("Response object has been garbage collected").catch(cNe)});function fG(t,e=!1){let r=null,s=null;yn.is.ReadableStream(t)?r=t:yn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),WS(yn.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(yn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(yn.is.BufferSource(t))i=yn.util.getCopyOfBytesHeldByBufferSource(t);else if(yn.is.FormData(t)){let c=`----formdata-undici-0${`${ANe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
\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 j5=p(X5=>{"use strict";var IS=lo().Buffer;X5._dbcs=go;var rr=-1,K5=-2,on=-10,Tr=-1e3,sl=new Array(256),fh=-1;for(N0=0;N0<256;N0++)sl[N0]=rr;var N0;function go(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]=sl.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 n=this.decodeTables.length;this.decodeTables.push(sl.slice(0));var i=this.decodeTables.length;this.decodeTables.push(sl.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[Tr-o[s]],A=48;A<=57;A++){if(a[A]===rr)a[A]=Tr-n;else if(a[A]>Tr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Tr-a[A]],u=129;u<=254;u++){if(c[u]===rr)c[u]=Tr-i;else{if(c[u]===Tr-i)continue;if(c[u]>Tr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Tr-c[u]],g=48;g<=57;g++)l[g]===rr&&(l[g]=K5)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipVals.lengLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function OSe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(bSe.has(n)){r=n;break}}return r}function HSe(t,e){let r=OSe(e);r!==""&&(t.referrerPolicy=r)}function _Se(){return"allowed"}function GSe(){return"success"}function YSe(){return"success"}function qSe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function JSe(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&&OD(t.origin)&&!OD(_A(t))&&(e=null);break;case"same-origin":wh(t,_A(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Al(t,e){return t}function VSe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Al(t.domainLookupStartTime,r),domainLookupEndTime:Al(t.domainLookupEndTime,r),connectionStartTime:Al(t.connectionStartTime,r),connectionEndTime:Al(t.connectionEndTime,r),secureConnectionStartTime:Al(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function WSe(t){return Al(DSe.now(),t)}function zSe(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 NY(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function KSe(t){return{referrerPolicy:t.referrerPolicy}}function XSe(t){let e=t.referrerPolicy;Nh(e);let r=null;if(t.referrer==="client"){let i=BY();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else ma.is.URL(t.referrer)&&(r=t.referrer);let s=vD(r),n=vD(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??vD(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=_A(t);return HA(s)&&!HA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=_A(t);return wh(s,i)?s:HA(s)&&!HA(i)?"no-referrer":n}case"same-origin":return wh(t,s)?s:"no-referrer";case"origin-when-cross-origin":return wh(t,s)?s:n;case"no-referrer-when-downgrade":{let i=_A(t);return HA(s)&&!HA(i)?"no-referrer":s}}}function vD(t,e=!1){return Nh(ma.is.URL(t)),t=new URL(t),xY(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var jSe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),ZSe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function SY(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),ZSe(t)):jSe(t)}function $Se(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||SY(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function HA(t){return ma.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:$Se(t.origin):!1}function eDe(t){}function wh(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function tDe(t){return t.controller.state==="aborted"}function rDe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function sDe(t){return xSe[t.toLowerCase()]??t}var nDe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function DY(t,e,r=0,s=1){class n{#e;#t;#s;constructor(o,a){this.#e=o,this.#t=a,this.#s=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#s,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#s=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,nDe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function iDe(t,e,r,s=0,n=1){let i=DY(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return ma.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return ma.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=cn(a=>zD(a)&&a!==59,t,e);i=VD.decode(o)}return{name:s,value:i,extended:n}}function TDe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw $r("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=cn(a=>a!==10&&a!==13&&a!==58,t,e);if(o=WD(o,!0,!0,a=>a===9||a===32),!BDe.test(o.toString()))throw $r("header name does not match the field-name token production");if(t[e.position]!==58)throw $r("expected :");switch(e.position++,cn(a=>a===32||a===9,t,e),IDe(o)){case"content-disposition":{r=s=null;let a=!1;if(cn(c=>zD(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw $r("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=DDe(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(s=c.value,a=!0):a||(s=c.value))}if(r===null)throw $r("name attribute is required in content-disposition header");break}case"content-type":{let a=cn(A=>A!==10&&A!==13,t,e);a=WD(a,!1,!0,A=>A===9||A===32),n=LY(a);break}case"content-transfer-encoding":{let a=cn(A=>A!==10&&A!==13,t,e);a=WD(a,!1,!0,A=>A===9||A===32),i=LY(a);break}default:cn(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw $r("expected CRLF");e.position+=2}}function cn(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function WD(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function xDe(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}function $r(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function RDe(t){return t<=31||t===127}function kDe(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function zD(t){return t<=127&&t!==32&&t!==9&&!RDe(t)&&!kDe(t)}PY.exports={multipartFormDataParser:SDe,validateBoundary:NDe}});var Sh=p((Wtt,OY)=>{"use strict";function FDe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}OY.exports={createDeferredPromise:FDe}});var ll=p((ztt,qY)=>{"use strict";var jD=fe(),{ReadableStreamFrom:MDe,readableStreamClose:UDe,fullyReadBody:LDe,extractMimeType:PDe}=ws(),{FormData:HY,setFormDataState:vDe}=j0(),{webidl:Yn}=sr(),KD=w("node:assert"),{isErrored:XD,isDisturbed:ODe}=w("node:stream"),{isUint8Array:HDe}=w("node:util/types"),{serializeAMimeType:_De}=An(),{multipartFormDataParser:GDe}=vY(),{createDeferredPromise:YDe}=Sh(),{parseJSONFromBytes:qDe}=mo(),{utf8DecodeBytes:JDe}=J0(),{runtimeFeatures:VDe}=po(),WDe=VDe.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Z0=new TextEncoder;function zDe(){}var KDe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!ODe(e)&&!XD(e)&&e.cancel("Response object has been garbage collected").catch(zDe)});function GY(t,e=!1){let r=null,s=null;Yn.is.ReadableStream(t)?r=t:Yn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),KD(Yn.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Yn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Yn.is.BufferSource(t))i=Yn.util.getCopyOfBytesHeldByBufferSource(t);else if(Yn.is.FormData(t)){let c=`----formdata-undici-0${`${WDe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,b]of t)if(typeof b=="string"){let N=aE.encode(u+`; name="${l(g(E))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let m=!1;for(let[E,b]of t)if(typeof b=="string"){let S=Z0.encode(u+`; name="${l(g(E))}"\r
\r
${g(b)}\r
`);h.push(N),o+=N.byteLength}else{let N=aE.encode(`${u}; name="${l(g(E))}"`+(b.name?`; filename="${l(b.name)}"`:"")+`\r
`);h.push(S),o+=S.byteLength}else{let S=Z0.encode(`${u}; name="${l(g(E))}"`+(b.name?`; filename="${l(b.name)}"`:"")+`\r
Content-Type: ${b.type||"application/octet-stream"}\r
\r
`);h.push(N,b,f),typeof b.size=="number"?o+=N.byteLength+b.size+f.byteLength:p=!0}let y=aE.encode(`--${c}--\r
`);h.push(y),o+=y.byteLength,p&&(o=null),i=t,n=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(yn.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(KS.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=yn.is.ReadableStream(t)?t:Kwe(t)}return(typeof i=="string"||tNe(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(zS(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!zS(r)&&s.enqueue(typeof c=="string"?aE.encode(c):new Uint8Array(c));queueMicrotask(()=>Xwe(s))})(),[{stream:r,source:i,length:o},a]}function lNe(t,e=!1){return yn.is.ReadableStream(t)&&(WS(!KS.isDisturbed(t),"The body has already been consumed."),WS(!t.locked,"The stream is locked.")),fG(t,e)}function dNe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function gNe(t,e){return{blob(){return Fu(this,s=>{let n=hG(e(this));return n===null?n="":n&&(n=rNe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Fu(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Fu(this,oNe,t,e)},json(){return Fu(this,iNe,t,e)},formData(){return Fu(this,s=>{let n=hG(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=sNe(s,n),o=new gG;return $we(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new gG;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return Fu(this,s=>new Uint8Array(s),t,e)}}}function hNe(t,e){Object.assign(t.prototype,gNe(t,e))}function Fu(t,e,r,s){try{yn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),mG(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=nNe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(jwe(t.body,o,i),n.promise)}function mG(t){let e=t.body;return e!=null&&(e.stream.locked||KS.isDisturbed(e.stream))}function hG(t){let e=t.headersList,r=Zwe(e);return r==="failure"?null:r}pG.exports={extractBody:fG,safelyExtractBody:lNe,cloneBody:dNe,mixinBody:hNe,streamRegistry:uNe,bodyUnusable:mG}});var kG=m((vje,RG)=>{"use strict";var re=Q("node:assert"),K=ue(),{channels:EG}=Yo(),XS=xN(),{RequestContentLengthMismatchError:hA,ResponseContentLengthMismatchError:CG,RequestAbortedError:SG,InvalidArgumentError:fNe,HeadersTimeoutError:mNe,HeadersOverflowError:pNe,SocketError:fA,InformationalError:Uu,BodyTimeoutError:ENe,HTTPParserError:CNe,ResponseExceededMaxSizeError:INe}=Ae(),{kUrl:TG,kReset:Pr,kClient:dE,kParser:Xe,kBlocking:Jg,kRunning:St,kPending:sT,kSize:IG,kWriting:Jo,kQueue:bn,kNoRef:qg,kKeepAliveDefaultTimeout:BNe,kHostHeader:QNe,kPendingIdx:yNe,kRunningIdx:Ys,kError:pr,kPipelining:uE,kSocket:pA,kKeepAliveTimeoutValue:gE,kMaxHeadersSize:bNe,kKeepAliveMaxTimeout:wNe,kKeepAliveTimeoutThreshold:NNe,kHeadersTimeout:SNe,kBodyTimeout:TNe,kStrictContentLength:$S,kMaxRequests:BG,kCounter:DNe,kMaxResponseSize:xNe,kOnError:QG,kResume:Ki,kHTTPContext:DG,kClosed:eT}=Ue(),cs=p9(),yG=Buffer.alloc(0),AE=Buffer[Symbol.species],RNe=K.removeAllListeners,EA=Symbol("kIdleSocketValidation"),mA=Symbol("kIdleSocketValidationTimeout"),nT=Symbol("kSocketUsed"),jS;function kNe(){let t=process.env.JEST_WORKER_ID?yS():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(I9())}catch{}return e||(e=new WebAssembly.Module(t||yS())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onStatus(new AE(Kn.buffer,o,i))},wasm_on_message_begin:s=>(re(ct.ptr===s),ct.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onHeaderField(new AE(Kn.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onHeaderValue(new AE(Kn.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(re(ct.ptr===s),ct.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onBody(new AE(Kn.buffer,o,i))},wasm_on_message_complete:s=>(re(ct.ptr===s),ct.onMessageComplete())}})}var ZS=null,ct=null,Kn=null,cE=0,Xn=null,FNe=0,Vg=1,Lu=2|Vg,lE=4|Vg,tT=8|FNe,rT=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(cs.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[bNe],this.shouldKeepAlive=!1,this.paused=!1,this.r Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[QNe],i?p+=`connection: upgrade\r
`);h.push(S,b,f),typeof b.size=="number"?o+=S.byteLength+b.size+f.byteLength:m=!0}let B=Z0.encode(`--${c}--\r
`);h.push(B),o+=B.byteLength,m&&(o=null),i=t,n=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(Yn.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(jD.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Yn.is.ReadableStream(t)?t:MDe(t)}return(typeof i=="string"||HDe(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(XD(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!XD(r)&&s.enqueue(typeof c=="string"?Z0.encode(c):new Uint8Array(c));queueMicrotask(()=>UDe(s))})(),[{stream:r,source:i,length:o},a]}function XDe(t,e=!1){return Yn.is.ReadableStream(t)&&(KD(!jD.isDisturbed(t),"The body has already been consumed."),KD(!t.locked,"The stream is locked.")),GY(t,e)}function jDe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function ZDe(t,e){return{blob(){return ul(this,s=>{let n=_Y(e(this));return n===null?n="":n&&(n=_De(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return ul(this,s=>new Uint8Array(s).buffer,t,e)},text(){return ul(this,JDe,t,e)},json(){return ul(this,qDe,t,e)},formData(){return ul(this,s=>{let n=_Y(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=GDe(s,n),o=new HY;return vDe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new HY;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return ul(this,s=>new Uint8Array(s),t,e)}}}function $De(t,e){Object.assign(t.prototype,ZDe(t,e))}function ul(t,e,r,s){try{Yn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),YY(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=YDe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(LDe(t.body,o,i),n.promise)}function YY(t){let e=t.body;return e!=null&&(e.stream.locked||jD.isDisturbed(e.stream))}function _Y(t){let e=t.headersList,r=PDe(e);return r==="failure"?null:r}qY.exports={extractBody:GY,safelyExtractBody:XDe,cloneBody:jDe,mixinBody:$De,streamRegistry:KDe,bodyUnusable:YY}});var iq=p((Ktt,nq)=>{"use strict";var ie=w("node:assert"),Z=fe(),{channels:JY}=ha(),ZD=kS(),{RequestContentLengthMismatchError:GA,ResponseContentLengthMismatchError:VY,RequestAbortedError:eq,InvalidArgumentError:eTe,HeadersTimeoutError:tTe,HeadersOverflowError:rTe,SocketError:YA,InformationalError:dl,BodyTimeoutError:sTe,HTTPParserError:nTe,ResponseExceededMaxSizeError:iTe}=ce(),{kUrl:tq,kReset:es,kClient:sC,kParser:it,kBlocking:xh,kRunning:Ut,kPending:iT,kSize:WY,kWriting:pa,kQueue:qn,kNoRef:Dh,kKeepAliveDefaultTimeout:oTe,kHostHeader:aTe,kPendingIdx:ATe,kRunningIdx:un,kError:xr,kPipelining:tC,kSocket:qA,kKeepAliveTimeoutValue:nC,kMaxHeadersSize:cTe,kKeepAliveMaxTimeout:uTe,kKeepAliveTimeoutThreshold:lTe,kHeadersTimeout:dTe,kBodyTimeout:gTe,kStrictContentLength:tT,kMaxRequests:zY,kCounter:hTe,kMaxResponseSize:fTe,kOnError:KY,kResume:Co,kHTTPContext:rq,kClosed:rT}=Ye(),Ns=qG(),XY=Buffer.alloc(0),$0=Buffer[Symbol.species],mTe=Z.removeAllListeners,JA=Symbol("kIdleSocketValidation"),gl=Symbol("kIdleSocketValidationTimeout"),oT=Symbol("kSocketUsed"),$D;function pTe(){let t=process.env.JEST_WORKER_ID?wD():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(WG())}catch{}return e||(e=new WebAssembly.Module(t||wD())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{ie(Et.ptr===s);let o=n-fi+hi.byteOffset;return Et.onStatus(new $0(hi.buffer,o,i))},wasm_on_message_begin:s=>(ie(Et.ptr===s),Et.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{ie(Et.ptr===s);let o=n-fi+hi.byteOffset;return Et.onHeaderField(new $0(hi.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{ie(Et.ptr===s);let o=n-fi+hi.byteOffset;return Et.onHeaderValue(new $0(hi.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(ie(Et.ptr===s),Et.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{ie(Et.ptr===s);let o=n-fi+hi.byteOffset;return Et.onBody(new $0(hi.buffer,o,i))},wasm_on_message_complete:s=>(ie(Et.ptr===s),Et.onMessageComplete())}})}var eT=null,Et=null,hi=null,eC=0,fi=null,ETe=0,Th=1,hl=2|Th,rC=4|Th,sT=8|ETe,nT=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Ns.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[cTe],this.shouldKeepAlive=!1,this.paused=!1,this.r Line truncated
`;if(typeof n=="string"?m+=`host: ${n}\r
`:m+=t[aTe],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[uE]&&!h[Pr]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let y=0;y<c.length;y+=2){let E=c[y+0],b=c[y+1];if(Array.isArray(b))for(let N=0;N<b.length;N++)p+=`${E}: ${b[N]}\r
`;else p+=`${E}: ${b}\r
`}return EG.sendHeaders.hasSubscribers&&EG.sendHeaders.publish({request:e,headers:p,socket:h}),!A||g===0?wG(f,null,t,e,h,u,p,l):K.isBuffer(A)?wG(f,A,t,e,h,u,p,l):K.isBlobLike(A)?typeof A.stream=="function"?NG(f,A.stream(),t,e,h,u,p,l):VNe(f,A,t,e,h,u,p,l):K.isStream(A)?qNe(f,A,t,e,h,u,p,l):K.isIterable(A)?NG(f,A,t,e,h,u,p,l):re(!1),!0}function qNe(t,e,r,s,n,i,o,a){re(i!==0||r[St]===0,"stream body cannot be pipelined");let A=!1,c=new hE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){K.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new SG;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,re(n.destroyed||n[Jo]&&r[St]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?K.destroy(e,f):K.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function wG(t,e,r,s,n,i,o,a){try{e?K.isBuffer(e)&&(re(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`:t[tC]&&!h[es]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(c))for(let B=0;B<c.length;B+=2){let E=c[B+0],b=c[B+1];if(Array.isArray(b))for(let S=0;S<b.length;S++)m+=`${E}: ${b[S]}\r
`;else m+=`${E}: ${b}\r
`}return JY.sendHeaders.hasSubscribers&&JY.sendHeaders.publish({request:e,headers:m,socket:h}),!A||g===0?ZY(f,null,t,e,h,u,m,l):Z.isBuffer(A)?ZY(f,A,t,e,h,u,m,l):Z.isBlobLike(A)?typeof A.stream=="function"?$Y(f,A.stream(),t,e,h,u,m,l):xTe(f,A,t,e,h,u,m,l):Z.isStream(A)?TTe(f,A,t,e,h,u,m,l):Z.isIterable(A)?$Y(f,A,t,e,h,u,m,l):ie(!1),!0}function TTe(t,e,r,s,n,i,o,a){ie(i!==0||r[Ut]===0,"stream body cannot be pipelined");let A=!1,c=new iC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(m){Z.destroy(this,m)}},l=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new eq;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ie(n.destroyed||n[pa]&&r[Ut]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(m){f=m}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Z.destroy(e,f):Z.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function ZY(t,e,r,s,n,i,o,a){try{e?Z.isBuffer(e)&&(ie(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Pr]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[es]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(re(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Ki]()}catch(A){t(A)}}async function VNe(t,e,r,s,n,i,o,a){re(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new hA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(ie(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Co]()}catch(A){t(A)}}async function xTe(t,e,r,s,n,i,o,a){ie(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new GA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Pr]=!0),r[Ki]()}catch(A){t(A)}}async function NG(t,e,r,s,n,i,o,a){re(i!==0||r[St]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{re(A===null),n[pr]?h(n[pr]):A=g});n.on("close",c).on("drain",c);let l=new hE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[pr])throw n[pr];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var hE=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Jo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[pr])throw r[pr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[$S])throw new hA;process.emitWarning(new hA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Pr]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[es]=!0),r[Co]()}catch(A){t(A)}}async function $Y(t,e,r,s,n,i,o,a){ie(i!==0||r[Ut]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{ie(A===null),n[xr]?h(n[xr]):A=g});n.on("close",c).on("drain",c);let l=new iC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[xr])throw n[xr];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var iC=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[pa]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[xr])throw r[xr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[tT])throw new GA;process.emitWarning(new GA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[es]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Xe].timeout&&r[Xe].timeoutType===Lu&&r[Xe].timeout.refresh&&r[Xe].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Jo]=!1,e[pr])throw e[pr];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[it].timeout&&r[it].timeoutType===hl&&r[it].timeout.refresh&&r[it].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[pa]=!1,e[xr])throw e[xr];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[$S])throw new hA;process.emitWarning(new hA)}e[Xe].timeout&&e[Xe].timeoutType===Lu&&e[Xe].timeout.refresh&&e[Xe].timeout.refresh(),s[Ki]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Jo]=!1,e&&(re(s[St]<=1,"pipeline should only contain this request"),n(e))}};RG.exports=MNe});var HG=m((Oje,_G)=>{"use strict";var Vs=Q("node:assert"),{pipeline:JNe}=Q("node:stream"),fe=ue(),{RequestContentLengthMismatchError:AT,RequestAbortedError:WNe,SocketError:Xg,InformationalError:Wo,InvalidArgumentError:zNe}=Ae(),{kUrl:Kg,kReset:EE,kClient:us,kRunning:jg,kPending:KNe,kQueue:zo,kPendingIdx:uT,kRunningIdx:wn,kError:ls,kSocket:it,kStrictContentLength:XNe,kOnError:Pu,kMaxConcurrentStreams:mE,kPingInterval:FG,kHTTP2Session:Xi,kHTTP2InitialWindowSize:jNe,kHTTP2ConnectionWindowSize:ZNe,kResume:jn,kSize:$Ne,kHTTPContext:lT,kClosed:cT,kBodyTimeout:eSe,kEnableConnectProtocol:Wg,kRemoteSettings:zg,kHTTP2Stream:fE,kHTTP2SessionState:dT}=Ue(),{channels:MG}=Yo(),qs=Symbol("open streams"),UG,pE;try{pE=Q("node:http2")}catch{pE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tSe,HTTP2_HEADER_METHOD:LG,HTTP2_HEADER_PATH:PG,HTTP2_HEADER_SCHEME:iT,HTTP2_HEADER_CONTENT_LENGTH:rSe,HTTP2_HEADER_EXPECT:sSe,HTTP2_HEADER_STATUS:oT,HTTP2_HEADER_PROTOCOL:nSe,NGHTTP2_REFUSED_STREAM:iSe,NGHTTP2_CANCEL:oSe}}=pE;function aT(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function aSe(t,e){t[it]=e;let r=t[jNe],s=t[ZNe],n=pE.connect(t[Kg],{createConnection:()=>e,peerMaxConcurrentStreams:t[mE],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[it]=e,n[qs]=0,n[us]=t,n[it]=e,n[dT]={ping:{interval:t[FG]===0?null:setInterval(lSe,t[FG],n).unref()}},n[Wg]=!1,n[zg]=!1,s&&fe.addListener(n,"connect",cSe.bind(n,s)),fe.addListener(n,"error",dSe),fe.addListener(n,"frameError",gSe),fe.addListener(n,"end",hSe),fe.addListener(n,"goaway",fSe),fe.addListener(n,"close",mSe),fe.addListener(n,"remoteSettings",uSe),n.unref(),t[Xi]=n,e[Xi]=n,fe.addListener(e,"error",ESe),fe.addListener(e,"end",CSe),fe.addListener(e,"close",pSe),e[cT]=!1,e.on("close",ISe),{version:"h2",defaultPipelining:1/0,write(i){return QSe(t,i)},resume(){ASe(t)},destroy(i,o){e[cT]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[jg]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[zg]===!1||fe.bodyLength(i.body)!==0&&(fe.isStream(i.body)||fe.isAsyncIterable(i.body)||fe.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[zg]===!1;return!1}}}function ASe(t){let e=t[it];e?.destroyed===!1&&(t[$Ne]===0||t[mE]===0?(e.unref(),t[Xi].unref()):(e.ref(),t[Xi].ref()))}function cSe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function uSe(t){if(this[us][mE]=t.maxConcurrentStreams??this[us][mE],this[zg]===!0&&this[Wg]===!0&&t.enableConnectProtocol===!1){let e=new Wo("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[it][ls]=e,this[us][Pu](e);return}this[Wg]=t.enableConnectProtocol??this[Wg],this[zg]=!0,this[us][jn]()}function lSe(t){let e=t[dT];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[us],o=this[us];if(s!=null){let a=new Wo(`HTTP/2: "PING" errored - type ${s.message}`);o[ls]=a,i[Pu](a)}else i.emit("ping",n)}}function dSe(t){Vs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[it][ls]=t,this[us][Pu](t)}function gSe(t,e,r){if(r===0){let s=new Wo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[it][ls]=s,this[us][Pu](s)}}function hSe(){let t=new Xg("other side closed",fe.getSocketInfo(this[it]));this.destroy(t),fe.destroy(this[it],t)}function fSe(t){let e=this[ls]||new Xg(`HTTP/2: "GOAWAY" frame received with code ${t}`,fe.getSocketInfo(this[it])),r=this[us];if(r[it]=null,r[lT]=null,this.close(),this[Xi]=null,fe.destroy(this[it],e),r[wn]<r[zo].length){let s=r[zo][r[wn]];r[zo][r[wn]++]=null,fe.errorRequest(r,s,e),r[uT]=r[wn]}Vs(r[jg]===0),r.emit("disconnect",r[Kg],[r],e),r.emit("connectionError",r[Kg],[r],e),r[jn]()}function mSe(){let{[us]:t,[dT]:e}=this,{[it]:r}=t,s=this[it][ls]||this[ls]||new Xg("closed",fe.getSocketInfo(r));if(t[it]=null,t[lT]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Vs(t[KNe]===0);let n=t[zo].splice(t[wn]);for(let i=0;i<n.length;i++){let o=n[i];fe.errorRequest(t,o,s)}}}function pSe(){let t=this[ls]||new Xg("closed",fe.getSocketInfo(this)),e=this[Xi][us];e[it]=null,e[lT]=null,this[Xi]!==null&&this[Xi].destroy(t),e[uT]=e[wn],Vs(e[jg]===0),e.emit("disconnect",e[Kg],[e],t),e[jn]()}function ESe(t){Vs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ls]=t,this[us][Pu](t)}function CSe(){fe.destroy(this,new Xg("other side closed",fe.getSocketInfo(this)))}function ISe() Line truncated
`;MG.sendHeaders.publish({request:e,headers:F,socket:s[it]})}let x=n==="GET"||n==="HEAD"||g===null;A?(h[sSe]="100-continue",f=s.request(h,{endStream:x,signal:c}),f[fE]=!0,f.once("continue",P)):(f=s.request(h,{endStream:x,signal:c}),f[fE]=!0,P()),++s[qs],f.setTimeout(r);let k=!1;return f.once("response",F=>{let{[oT]:v,..._}=F;if(e.onResponseStarted(),k=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(v),aT(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",me=>{e.aborted||e.completed||e.onData(me)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),k?(!e.aborted&&!e.completed&&e.onComplete({}),t[zo][t[wn]++]=null,t[jn]()):(E(new Wo("HTTP/2: stream half-closed (remote)")),t[zo][t[wn]++]=null,t[uT]=t[wn],t[jn]())}),f.once("close",()=>{f.removeAllListeners("data"),s[qs]-=1,s[qs]===0&&s.unref()}),f.once("error",function(F){f.removeAllListeners("data"),E(F)}),f.once("frameError",(F,v)=>{f.removeAllListeners("data"),E(new Wo(`HTTP/2: "frameError" received - type ${F}, code ${v}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let F=new Wo(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[qs]-=1,s[qs]===0&&s.unref(),E(F)}),f.once("trailers",F=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(F))}),!0;function P(){!g||N===0?vG(E,f,null,t,e,t[it],N,b):fe.isBuffer(g)?vG(E,f,g,t,e,t[it],N,b):fe.isBlobLike(g)?typeof g.stream=="function"?OG(E,f,g.stream(),t,e,t[it],N,b):bSe(E,f,g,t,e,t[it],N,b):fe.isStream(g)?ySe(E,t[it],b,f,g,t,e,N):fe.isIterable(g)?OG(E,f,g,t,e,t[it],N,b):Vs(!1)}}function vG(t,e,r,s,n,i,o,a){try{r!=null&&fe.isBuffer(r)&&(Vs(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[EE]=!0),n.onRequestSent(),s[jn]()}catch(A){t(A)}}function ySe(t,e,r,s,n,i,o,a){Vs(a!==0||i[jg]===0,"stream body cannot be pipelined");let A=JNe(n,s,u=>{u?(fe.destroy(A,u),t(u)):(fe.removeAllListeners(A),o.onRequestSent(),r||(e[EE]=!0),i[jn]())});fe.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function bSe(t,e,r,s,n,i,o,a){Vs(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new AT;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[EE]=!0),s[jn]()}catch(A){t(A)}}async function OG(t,e,r,s,n,i,o,a){Vs(o!==0||s[jg]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,g)=>{Vs(A===null),i[ls]?g(i[ls]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ls])throw i[ls];let g=e.write(l);n.onBodySent(l),g||await u()}e.end(),n.onRequestSent(),a||(i[EE]=!0),s[jn]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}_G.exports=aSe});var Zo=m((_je,KG)=>{"use strict";var ji=Q("node:assert"),VG=Q("node:net"),Zg=Q("node:http"),CA=ue(),{ClientStats:wSe}=iS(),{channels:vu}=Yo(),NSe=i9(),SSe=cA(),{InvalidArgumentError:je,InformationalError:TSe,ClientDestroyedError:DSe}=Ae(),xSe=uA(),{kUrl:Zn,kServerName:jo,kClient:RSe,kBusy:hT,kConnect:kSe,kResuming:IA,kRunning:rh,kPending:sh,kSize:$g,kQueue:Nn,kConnected:FSe,kConnecting:Ou,kNeedDrain:Xo,kKeepAliveDefaultTimeout:GG,kHostHeader:MSe,kPendingIdx:Sn,kRunningIdx:$i,kError:USe,kPipelining:CE,kKeepAliveTimeoutValue:LSe,kMaxHeadersSize:PSe,kKeepAliveMaxTimeout:vSe,kKeepAliveTimeoutThreshold:OSe,kHeadersTimeout:_Se,kBodyTimeout:HSe,kStrictContentLength:GSe,kConnector:eh,kMaxRequests:fT,kCounter:YSe,kClose:qSe,kDestroy:VSe,kDispatch:JSe,kLocalAddress:th,kMaxResponseSize:WSe,kOnError:zSe,kHTTPContext:mt,kMaxConcurrentStreams:KSe,kHTTP2InitialWindowSize:XSe,kHTTP2ConnectionWindowSize:jSe,kResume:Zi,kPingInterval:ZSe}=Ue(),$Se=kG(),eTe=HG(),Ko=Symbol("kClosedResolve"),tTe=Zg&&Zg.maxHeaderSize&&Number.isInteger(Zg.maxHeaderSize)&&Zg.maxHeaderSize>0?()=>Zg.maxHeaderSize:()=>{throw new je("http module not available or http.maxHeaderSize invalid")},YG=()=>{};function JG(t){return t[CE]??t[mt]?.defaultPipelining??1}var mT=class extends SSe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:y,strictContentLength:E,maxCachedSessions:b,connect:N,maxRequestsPerClient:x,localAddress:k,maxResponseSize:P,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:v,maxConcurrentStreams:_,allowH2:me,useH2c:De,initialWindowSize:oe,connectionWindowSize:pe,pingInterval:he,webSocket:Bt}={}){if(c!==void 0)throw new je("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new je("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new je("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new je("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new je("uns Line truncated
`,this[HSe]=a??3e5,this[_Se]=s??3e5,this[GSe]=E??!0,this[fT]=x,this[Ko]=null,this[WSe]=P>-1?P:-1,this[mt]=null,this[KSe]=_??100,this[XSe]=oe??262144,this[jSe]=pe??524288,this[ZSe]=he??6e4,this[Nn]=[],this[$i]=0,this[Sn]=0,this[Zi]=Qt=>pT(this,Qt),this[zSe]=Qt=>WG(this,Qt)}get pipelining(){return this[CE]}set pipelining(e){this[CE]=e,this[Zi](!0)}get stats(){return new wSe(this)}get[sh](){return this[Nn].length-this[Sn]}get[rh](){return this[Sn]-this[$i]}get[$g](){return this[Nn].length-this[$i]}get[FSe](){return!!this[mt]&&!this[Ou]&&!this[mt].destroyed}get[hT](){return!!(this[mt]?.busy(null)||this[$g]>=(JG(this)||1)||this[sh]>0)}[kSe](e){zG(this),this.once("connect",e)}[JSe](e,r){let s=new NSe(this[Zn].origin,e,r);return this[Nn].push(s),this[IA]||(CA.bodyLength(s.body)==null&&CA.isIterable(s.body)?(this[IA]=1,queueMicrotask(()=>pT(this))):this[Zi](!0)),this[IA]&&this[Xo]!==2&&this[hT]&&(this[Xo]=2),this[Xo]<2}[qSe](){return new Promise(e=>{this[$g]?this[Ko]=e:e(null)})}[VSe](e){return new Promise(r=>{let s=this[Nn].splice(this[Sn]);for(let i=0;i<s.length;i++){let o=s[i];CA.errorRequest(this,o,e)}let n=()=>{this[Ko]&&(this[Ko](),this[Ko]=null),r(null)};this[mt]?(this[mt].destroy(e,n),this[mt]=null):queueMicrotask(n),this[Zi]()})}};function WG(t,e){if(t[rh]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ji(t[Sn]===t[$i]);let r=t[Nn].splice(t[$i]);for(let s=0;s<r.length;s++){let n=r[s];CA.errorRequest(t,n,e)}ji(t[$g]===0)}}function zG(t){ji(!t[Ou]),ji(!t[mt]);let{host:e,hostname:r,protocol:s,port:n}=t[Zn];if(r[0]==="["){let i=r.indexOf("]");ji(i!==-1);let o=r.substring(1,i);ji(VG.isIPv6(o)),r=o}t[Ou]=!0,vu.beforeConnect.hasSubscribers&&vu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[jo],localAddress:t[th]},connector:t[eh]});try{t[eh]({host:e,hostname:r,protocol:s,port:n,servername:t[jo],localAddress:t[th]},(i,o)=>{if(i){gT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Zi]();return}if(t.destroyed){CA.destroy(o.on("error",YG),new DSe),t[Zi]();return}ji(o);try{t[mt]=o.alpnProtocol==="h2"?eTe(t,o):$Se(t,o)}catch(a){o.destroy().on("error",YG),gT(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Zi]();return}t[Ou]=!1,o[YSe]=0,o[fT]=t[fT],o[RSe]=t,o[USe]=null,vu.connected.hasSubscribers&&vu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[jo],localAddress:t[th]},connector:t[eh],socket:o}),t.emit("connect",t[Zn],[t]),t[Zi]()})}catch(i){gT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Zi]()}}function gT(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Ou]=!1,vu.connectError.hasSubscribers&&vu.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[mt]?.version,servername:t[jo],localAddress:t[th]},connector:t[eh],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ji(t[rh]===0);t[sh]>0&&t[Nn][t[Sn]].servername===t[jo];){let o=t[Nn][t[Sn]++];CA.errorRequest(t,o,e)}else WG(t,e);t.emit("connectionError",t[Zn],[t],e)}}function qG(t){t[Xo]=0,t.emit("drain",t[Zn],[t])}function pT(t,e){t[IA]!==2&&(t[IA]=2,rTe(t,e),t[IA]=0,t[$i]>256&&(t[Nn].splice(0,t[$i]),t[Sn]-=t[$i],t[$i]=0))}function rTe(t,e){for(;;){if(t.destroyed){ji(t[sh]===0);return}if(t[Ko]&&!t[$g]){t[Ko](),t[Ko]=null;return}if(t[mt]&&t[mt].resume(),t[hT])t[Xo]=2;else if(t[Xo]===2){e?(t[Xo]=1,queueMicrotask(()=>qG(t))):qG(t);continue}if(t[sh]===0||t[rh]>=(JG(t)||1))return;let r=t[Nn][t[Sn]];if(r===null)return;if(t[Zn].protocol==="https:"&&t[jo]!==r.servername){if(t[rh]>0)return;t[jo]=r.servername,t[mt]?.destroy(new TSe("servername changed"),()=>{t[mt]=null,pT(t)})}if(t[Ou])return;if(!t[mt]){zG(t);return}if(t[mt].destroyed||t[mt].busy(r))return;!r.aborted&&t[mt].write(r)?t[Sn]++:t[Nn].splice(t[Sn],1)}}KG.exports=mT});var ET=m((Gje,XG)=>{"use strict";var IE=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};XG.exports=class{constructor(){this.head=this.tail=new IE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new IE),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var BE=m((Yje,iY)=>{"use strict";var{PoolStats:sTe}=iS(),nTe=cA(),iTe=ET(),{kConnected:CT,kSize:jG,kRunning:ZG,kPending:$G,kQueued:nh,kBusy:oTe,kFree:aTe,kUrl:ATe,kClose:cTe,kDestroy:uTe,kDispatch:lTe}=Ue(),Ht=Symbol("clients"),Er=Symbol("needDrain"),ih=Symbol("queue"),IT=Symbol("closed resolve"),BT=Symbol("onDrain"),eY=Symbol("onConnect"),tY=Symbol("onDisconnect"),rY=Symbol("onConnectionError"),QT=Symbol("get dispatcher"),sY=Symbol("add client"),nY=Symbol("remove client"),yT=class extends nTe{[ih]=new iTe;[nh]=0;[Ht]=[];[Er]=!1;[BT](e,r,s){le Line truncated
`,"latin1"),r!==null&&n!==r){if(s[tT])throw new GA;process.emitWarning(new GA)}e[it].timeout&&e[it].timeoutType===hl&&e[it].timeout.refresh&&e[it].timeout.refresh(),s[Co]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[pa]=!1,e&&(ie(s[Ut]<=1,"pipeline should only contain this request"),n(e))}};nq.exports=CTe});var hq=p((Xtt,gq)=>{"use strict";var dn=w("node:assert"),{pipeline:RTe}=w("node:stream"),Qe=fe(),{RequestContentLengthMismatchError:uT,RequestAbortedError:kTe,SocketError:Lh,InformationalError:Ea,InvalidArgumentError:FTe,HeadersTimeoutError:MTe,BodyTimeoutError:UTe}=ce(),{kUrl:Uh,kReset:AC,kClient:Ss,kRunning:Ph,kPending:LTe,kQueue:kh,kPendingIdx:VA,kRunningIdx:mi,kError:Ds,kSocket:ht,kStrictContentLength:PTe,kOnError:fl,kMaxConcurrentStreams:lT,kPingInterval:oq,kHTTP2Session:Io,kHTTP2InitialWindowSize:vTe,kHTTP2ConnectionWindowSize:OTe,kResume:pi,kSize:HTe,kHTTPContext:gT,kClosed:dT,kBodyTimeout:_Te,kHeadersTimeout:GTe,kEnableConnectProtocol:Fh,kRemoteSettings:Mh,kHTTP2Stream:oC,kHTTP2SessionState:hT}=Ye(),{channels:aq}=ha(),ln=Symbol("open streams"),Aq,aC;try{aC=w("node:http2")}catch{aC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:YTe,HTTP2_HEADER_METHOD:cq,HTTP2_HEADER_PATH:uq,HTTP2_HEADER_SCHEME:aT,HTTP2_HEADER_CONTENT_LENGTH:qTe,HTTP2_HEADER_EXPECT:JTe,HTTP2_HEADER_STATUS:AT,HTTP2_HEADER_PROTOCOL:VTe,NGHTTP2_REFUSED_STREAM:WTe,NGHTTP2_CANCEL:zTe}}=aC;function cT(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function KTe(t,e){t[ht]=e;let r=t[vTe],s=t[OTe],n=aC.connect(t[Uh],{createConnection:()=>e,peerMaxConcurrentStreams:t[lT],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[ht]=e,n[ln]=0,n[Ss]=t,n[ht]=e,n[hT]={ping:{interval:t[oq]===0?null:setInterval($Te,t[oq],n).unref()}},n[Fh]=!1,n[Mh]=!1,s&&Qe.addListener(n,"connect",jTe.bind(n,s)),Qe.addListener(n,"error",e2e),Qe.addListener(n,"frameError",t2e),Qe.addListener(n,"end",r2e),Qe.addListener(n,"goaway",s2e),Qe.addListener(n,"close",n2e),Qe.addListener(n,"remoteSettings",ZTe),n.unref(),t[Io]=n,e[Io]=n,Qe.addListener(e,"error",o2e),Qe.addListener(e,"end",a2e),Qe.addListener(e,"close",i2e),e[dT]=!1,e.on("close",A2e),{version:"h2",defaultPipelining:1/0,write(i){return u2e(t,i)},resume(){XTe(t)},destroy(i,o){e[dT]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Ph]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Mh]===!1||Qe.bodyLength(i.body)!==0&&(Qe.isStream(i.body)||Qe.isAsyncIterable(i.body)||Qe.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Mh]===!1;return!1}}}function XTe(t){let e=t[ht];e?.destroyed===!1&&(t[HTe]===0?(e.unref(),t[Io].unref()):(e.ref(),t[Io].ref()))}function jTe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function ZTe(t){if(this[Ss][lT]=t.maxConcurrentStreams??this[Ss][lT],this[Mh]===!0&&this[Fh]===!0&&t.enableConnectProtocol===!1){let e=new Ea("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[ht][Ds]=e,this[Ss][fl](e);return}this[Fh]=t.enableConnectProtocol??this[Fh],this[Mh]=!0,this[Ss][pi]()}function $Te(t){let e=t[hT];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[Ss],o=this[Ss];if(s!=null){let a=new Ea(`HTTP/2: "PING" errored - type ${s.message}`);o[Ds]=a,i[fl](a)}else i.emit("ping",n)}}function e2e(t){dn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ht][Ds]=t,this[Ss][fl](t)}function t2e(t,e,r){if(r===0){let s=new Ea(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[ht][Ds]=s,this[Ss][fl](s)}}function r2e(){let t=new Lh("other side closed",Qe.getSocketInfo(this[ht]));this.destroy(t),Qe.destroy(this[ht],t)}function Rh(t,e,r=!1){let s=t[kh],n=t[mi];if(n<t[VA]&&s[n]===e){s[n]=null,t[mi]=n+1;return}let i=s.indexOf(e,n);i===-1||i>=t[VA]||(s.splice(i,1),t[VA]--,r&&t[VA]<t[mi]&&(t[VA]=t[mi]))}function s2e(t){let e=this[Ds]||new Lh(`HTTP/2: "GOAWAY" frame received with code ${t}`,Qe.getSocketInfo(this[ht])),r=this[Ss];if(r[ht]=null,r[gT]=null,this.close(),this[Io]=null,Qe.destroy(this[ht],e),r[mi]<r[kh].length){let s=r[kh][r[mi]];r[kh][r[mi]++]=null,s!=null&&Qe.errorRequest(r,s,e),r[VA]=r[mi]}dn(r[Ph]===0),r.emit("disconnect",r[Uh],[r],e),r.emit("connectionError",r[Uh],[r],e),r[pi]()}function n2e(){let{[Ss]:t,[hT]:e}=this,{[ht]:r}=t,s=this[ht][Ds]||this[Ds]||new Lh("closed",Qe.getSocketInfo(r));if(t[ht]=null,t[gT]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){dn(t[LTe]===0);let n=t[kh].splice(t[mi]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&Qe.errorRequest(t,o,s)}}}function i2e(){let t=this[Ds]||new Lh("closed",Qe.getSocketInfo(this)),e=this[Io][Ss];e[ht]=null,e[gT]=null,this[Io]!==null&&this[Io].destro Line truncated
`;aq.sendHeaders.publish({request:e,headers:G,socket:n[ht]})}let F=i==="GET"||i==="HEAD"||h===null;c?(f[JTe]="100-continue",m=n.request(f,{endStream:F,signal:u}),m[oC]=!0,m.once("continue",V)):(m=n.request(f,{endStream:F,signal:u}),m[oC]=!0,V()),++n[ln],m.setTimeout(r);let O=!1;return m.once("response",G=>{let{[AT]:H,...ge}=G;if(e.onResponseStarted(),O=!0,m.setTimeout(s),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(H),cT(ge),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",Ie=>{e.aborted||e.completed||e.onData(Ie)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),O?(!e.aborted&&!e.completed&&e.onComplete({}),Rh(t,e),t[pi]()):(b(new Ea("HTTP/2: stream half-closed (remote)")),Rh(t,e,!0),t[pi]())}),m.once("close",()=>{m.removeAllListeners("data"),n[ln]-=1,n[ln]===0&&n.unref(),!e.aborted&&!e.completed&&b(new Ea("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(G){m.removeAllListeners("data"),b(G)}),m.once("frameError",(G,H)=>{m.removeAllListeners("data"),b(new Ea(`HTTP/2: "frameError" received - type ${G}, code ${H}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let G=O?new UTe(`HTTP/2: "body timeout after ${s}"`):new MTe(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),n[ln]-=1,n[ln]===0&&n.unref(),b(G)}),m.once("trailers",G=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(G))}),!0;function V(){!h||R===0?lq(b,m,null,t,e,t[ht],R,S):Qe.isBuffer(h)?lq(b,m,h,t,e,t[ht],R,S):Qe.isBlobLike(h)?typeof h.stream=="function"?dq(b,m,h.stream(),t,e,t[ht],R,S):d2e(b,m,h,t,e,t[ht],R,S):Qe.isStream(h)?l2e(b,t[ht],S,m,h,t,e,R):Qe.isIterable(h)?dq(b,m,h,t,e,t[ht],R,S):dn(!1)}}function lq(t,e,r,s,n,i,o,a){try{r!=null&&Qe.isBuffer(r)&&(dn(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[AC]=!0),n.onRequestSent(),s[pi]()}catch(A){t(A)}}function l2e(t,e,r,s,n,i,o,a){dn(a!==0||i[Ph]===0,"stream body cannot be pipelined");let A=RTe(n,s,u=>{u?(Qe.destroy(A,u),t(u)):(Qe.removeAllListeners(A),o.onRequestSent(),r||(e[AC]=!0),i[pi]())});Qe.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function d2e(t,e,r,s,n,i,o,a){dn(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new uT;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[AC]=!0),s[pi]()}catch(A){t(A)}}async function dq(t,e,r,s,n,i,o,a){dn(o!==0||s[Ph]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,g)=>{dn(A===null),i[Ds]?g(i[Ds]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[Ds])throw i[Ds];let g=e.write(l);n.onBodySent(l),g||await u()}e.end(),n.onRequestSent(),a||(i[AC]=!0),s[pi]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}gq.exports=KTe});var Qa=p((jtt,Qq)=>{"use strict";var Bo=w("node:assert"),Eq=w("node:net"),vh=w("node:http"),WA=fe(),{ClientStats:g2e}=aD(),{channels:ml}=ha(),h2e=kG(),f2e=PA(),{InvalidArgumentError:ot,InformationalError:m2e,ClientDestroyedError:p2e}=ce(),E2e=vA(),{kUrl:Ei,kServerName:Ba,kClient:C2e,kBusy:mT,kConnect:I2e,kResuming:zA,kRunning:Gh,kPending:Yh,kSize:Oh,kQueue:Jn,kConnected:B2e,kConnecting:pl,kNeedDrain:Ia,kKeepAliveDefaultTimeout:fq,kHostHeader:Q2e,kPendingIdx:Vn,kRunningIdx:yo,kError:y2e,kPipelining:cC,kKeepAliveTimeoutValue:b2e,kMaxHeadersSize:w2e,kKeepAliveMaxTimeout:N2e,kKeepAliveTimeoutThreshold:S2e,kHeadersTimeout:D2e,kBodyTimeout:T2e,kStrictContentLength:x2e,kConnector:Hh,kMaxRequests:pT,kCounter:R2e,kClose:k2e,kDestroy:F2e,kDispatch:M2e,kLocalAddress:_h,kMaxResponseSize:U2e,kOnError:L2e,kHTTPContext:Nt,kMaxConcurrentStreams:P2e,kHTTP2InitialWindowSize:v2e,kHTTP2ConnectionWindowSize:O2e,kResume:Qo,kPingInterval:H2e}=Ye(),_2e=iq(),G2e=hq(),Ca=Symbol("kClosedResolve"),Y2e=vh&&vh.maxHeaderSize&&Number.isInteger(vh.maxHeaderSize)&&vh.maxHeaderSize>0?()=>vh.maxHeaderSize:()=>{throw new ot("http module not available or http.maxHeaderSize invalid")},mq=()=>{};function Cq(t){return t[cC]??t[Nt]?.defaultPipelining??1}var ET=class extends f2e{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:m,tls:B,strictContentLength:E,maxCachedSessions:b,connect:S,maxRequestsPerClient:R,localAddress:F,maxResponseSize:O,autoSelectFamily:V,autoSelectFamilyAttemptTimeout:G,maxConcurrentStreams:H,allowH2:ge,useH2c:Ie,initialWindowSize:le,connectionWindowSize:he,pingInterval:Be,webSocket:Pt}={}){if(c!==void 0)throw new ot("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new ot("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new ot("unsupported requestTimeout, use headersTimeout & bodyTimeo Line truncated
`,this[T2e]=a??3e5,this[D2e]=s??3e5,this[x2e]=E??!0,this[pT]=R,this[Ca]=null,this[U2e]=O>-1?O:-1,this[Nt]=null,this[P2e]=H??100,this[v2e]=le??262144,this[O2e]=he??524288,this[H2e]=Be??6e4,this[Jn]=[],this[yo]=0,this[Vn]=0,this[Qo]=vt=>CT(this,vt),this[L2e]=vt=>Iq(this,vt)}get pipelining(){return this[cC]}set pipelining(e){this[cC]=e,this[Qo](!0)}get stats(){return new g2e(this)}get[Yh](){return this[Jn].length-this[Vn]}get[Gh](){return this[Vn]-this[yo]}get[Oh](){return this[Jn].length-this[yo]}get[B2e](){return!!this[Nt]&&!this[pl]&&!this[Nt].destroyed}get[mT](){return!!(this[Nt]?.busy(null)||this[Oh]>=(Cq(this)||1)||this[Yh]>0)}[I2e](e){Bq(this),this.once("connect",e)}[M2e](e,r){let s=new h2e(this[Ei].origin,e,r);return this[Jn].push(s),this[zA]||(WA.bodyLength(s.body)==null&&WA.isIterable(s.body)?(this[zA]=1,queueMicrotask(()=>CT(this))):this[Qo](!0)),this[zA]&&this[Ia]!==2&&this[mT]&&(this[Ia]=2),this[Ia]<2}[k2e](){return new Promise(e=>{this[Oh]?this[Ca]=e:e(null)})}[F2e](e){return new Promise(r=>{let s=this[Jn].splice(this[Vn]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&WA.errorRequest(this,o,e)}let n=()=>{this[Ca]&&(this[Ca](),this[Ca]=null),r(null)};this[Nt]?(this[Nt].destroy(e,n),this[Nt]=null):queueMicrotask(n),this[Qo]()})}};function Iq(t,e){if(t[Gh]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Bo(t[Vn]===t[yo]);let r=t[Jn].splice(t[yo]);for(let s=0;s<r.length;s++){let n=r[s];n!=null&&WA.errorRequest(t,n,e)}Bo(t[Oh]===0)}}function Bq(t){Bo(!t[pl]),Bo(!t[Nt]);let{host:e,hostname:r,protocol:s,port:n}=t[Ei];if(r[0]==="["){let i=r.indexOf("]");Bo(i!==-1);let o=r.substring(1,i);Bo(Eq.isIPv6(o)),r=o}t[pl]=!0,ml.beforeConnect.hasSubscribers&&ml.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Nt]?.version,servername:t[Ba],localAddress:t[_h]},connector:t[Hh]});try{t[Hh]({host:e,hostname:r,protocol:s,port:n,servername:t[Ba],localAddress:t[_h]},(i,o)=>{if(i){fT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Qo]();return}if(t.destroyed){WA.destroy(o.on("error",mq),new p2e),t[Qo]();return}Bo(o);try{t[Nt]=o.alpnProtocol==="h2"?G2e(t,o):_2e(t,o)}catch(a){o.destroy().on("error",mq),fT(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Qo]();return}t[pl]=!1,o[R2e]=0,o[pT]=t[pT],o[C2e]=t,o[y2e]=null,ml.connected.hasSubscribers&&ml.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Nt]?.version,servername:t[Ba],localAddress:t[_h]},connector:t[Hh],socket:o}),t.emit("connect",t[Ei],[t]),t[Qo]()})}catch(i){fT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Qo]()}}function fT(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[pl]=!1,ml.connectError.hasSubscribers&&ml.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[Nt]?.version,servername:t[Ba],localAddress:t[_h]},connector:t[Hh],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Bo(t[Gh]===0);t[Yh]>0&&t[Jn][t[Vn]].servername===t[Ba];){let o=t[Jn][t[Vn]++];WA.errorRequest(t,o,e)}else Iq(t,e);t.emit("connectionError",t[Ei],[t],e)}}function pq(t){t[Ia]=0,t.emit("drain",t[Ei],[t])}function CT(t,e){t[zA]!==2&&(t[zA]=2,q2e(t,e),t[zA]=0,t[yo]>256&&(t[Jn].splice(0,t[yo]),t[Vn]-=t[yo],t[yo]=0))}function q2e(t,e){for(;;){if(t.destroyed){Bo(t[Yh]===0);return}if(t[Ca]&&!t[Oh]){t[Ca](),t[Ca]=null;return}if(t[Nt]&&t[Nt].resume(),t[mT])t[Ia]=2;else if(t[Ia]===2){e?(t[Ia]=1,queueMicrotask(()=>pq(t))):pq(t);continue}if(t[Yh]===0||t[Gh]>=(Cq(t)||1))return;let r=t[Jn][t[Vn]];if(r===null)return;if(t[Ei].protocol==="https:"&&t[Ba]!==r.servername){if(t[Gh]>0)return;t[Ba]=r.servername,t[Nt]?.destroy(new m2e("servername changed"),()=>{t[Nt]=null,CT(t)})}if(t[pl])return;if(!t[Nt]){Bq(t);return}if(t[Nt].destroyed||t[Nt].busy(r))return;!r.aborted&&t[Nt].write(r)?t[Vn]++:t[Jn].splice(t[Vn],1)}}Qq.exports=ET});var IT=p(($tt,yq)=>{"use strict";var uC=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};yq.exports=class{constructor(){this.head=this.tail=new uC}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new uC),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var lC=p((ert,kq)=>{"use strict";var{PoolStats:J2e}=aD(),V2e=PA(),W2e=IT(),{kConnected:BT,kSize:bq,kRunning:wq,kPending:Nq,kQueued:qh,kBusy:z2e,kFree:K2e,kUrl:X2e,kClose:j2e,kDestroy:Z2e,kDispatch:$2e}=Ye(),jt=Symbol("clients"),Rr=Symbol("needDrain"),Jh=Symbol("queue"),QT=Symbol("closed resolve"),yT=Symbol("onDrain"),Sq=Symbol("onConnect"),Dq=Symbol("onDisconnect"),Tq=Symbol("onConnectionError"),bT=Symbol("get dispatcher"),xq=Symbol("add client"),Rq=Symbol("remove client"),wT=class extends V2e{[Jh]=new W2e;[qh]=0;[jt]=[];[Rr] Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};xV.exports=H2});var Y2=m((IZe,MV)=>{"use strict";var{InvalidArgumentError:axe}=Ae(),{runtimeFeatures:Axe}=Wi();function cxe(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var RV=Axe.has("crypto")?Q("node:crypto"):null,uxe=RV?.hash?t=>RV.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function FV(t){return Array.isArray(t)&&(t.length&1)===0}function lxe(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function dxe(t){let e={};if(!t)return e;if(FV(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var kV=["record","playback","update"];function gxe(t){if(!kV.includes(t))throw new axe(`Invalid snapshot mode: ${t}. Must be one of: ${kV.join(", ")}`)}MV.exports={createHeaderFilters:cxe,hashId:uxe,isUndiciHeaders:FV,normalizeHeaders:dxe,isUrlExcludedFactory:lxe,validateSnapshotMode:gxe}});var YV=m((BZe,GV)=>{"use strict";var{writeFile:hxe,readFile:fxe,mkdir:mxe}=Q("node:fs/promises"),{dirname:pxe,resolve:UV}=Q("node:path"),{setTimeout:Exe,clearTimeout:LV}=Q("node:timers"),{InvalidArgumentError:PV,UndiciError:Cxe}=Ae(),{hashId:Ixe,isUrlExcludedFactory:Bxe,normalizeHeaders:vV,createHeaderFilters:OV}=Y2();function ph(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||vV(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:_V(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function _V(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function HV(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function Eh(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Ixe(r)}var q2=class{#e;#t;#r=new Map;#n;#i=1/0;#s=!1;#a;constructor(e={}){this.#n=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=OV(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Bxe(e.excludeUrls),this.#s&&this.#n&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=ph(e,this.#a,this.matchOptions),n=Eh(s),i=vV(r.headers),o={statusCode:r.statusCode,headers:HV(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#i&&!this.#r.has(n)){let A=this.#r.keys().next().value;this.#r.delete(A)}let a=this.#r.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#r.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#n&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=ph(e,this.#a,this.matchOptions),s=Eh(r),n=this.#r.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#n;if(!r)throw new PV("Snapshot path is required");try{let s=await fxe(UV(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#r.clear();for(let{hash:i,snapshot:o}of n)this.#r.set(i,o)}else this.#r=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#r.clear();else throw new Cxe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#n;if(!r)throw new PV("Snapshot path is required");let s=UV(r);await mxe(pxe(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await hxe(s,JSON.stringify(n,null,2),{flush:!0}) Line truncated
${e.format(r)}`.trim())}};s7.exports=Y2});var J2=p((Rrt,a7)=>{"use strict";var{InvalidArgumentError:Kke}=ce(),{runtimeFeatures:Xke}=po();function jke(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var n7=Xke.has("crypto")?w("node:crypto"):null,Zke=n7?.hash?t=>n7.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function o7(t){return Array.isArray(t)&&(t.length&1)===0}function $ke(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function eFe(t){let e={};if(!t)return e;if(o7(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var i7=["record","playback","update"];function tFe(t){if(!i7.includes(t))throw new Kke(`Invalid snapshot mode: ${t}. Must be one of: ${i7.join(", ")}`)}a7.exports={createHeaderFilters:jke,hashId:Zke,isUndiciHeaders:o7,normalizeHeaders:eFe,isUrlExcludedFactory:$ke,validateSnapshotMode:tFe}});var m7=p((krt,f7)=>{"use strict";var{writeFile:rFe,readFile:sFe,mkdir:nFe}=w("node:fs/promises"),{dirname:iFe,resolve:A7}=w("node:path"),{setTimeout:oFe,clearTimeout:c7}=w("node:timers"),{InvalidArgumentError:u7,UndiciError:aFe}=ce(),{hashId:AFe,isUrlExcludedFactory:cFe,normalizeHeaders:l7,createHeaderFilters:d7}=J2();function nf(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||l7(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:g7(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function g7(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function h7(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function of(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return AFe(r)}var V2=class{#e;#t;#s=new Map;#r;#i=1/0;#n=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=d7(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=cFe(e.excludeUrls),this.#n&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=nf(e,this.#a,this.matchOptions),n=of(s),i=l7(r.headers),o={statusCode:r.statusCode,headers:h7(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#s.size>=this.#i&&!this.#s.has(n)){let A=this.#s.keys().next().value;this.#s.delete(A)}let a=this.#s.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#s.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=nf(e,this.#a,this.matchOptions),s=of(r),n=this.#s.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new u7("Snapshot path is required");try{let s=await sFe(A7(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#s.clear();for(let{hash:i,snapshot:o}of n)this.#s.set(i,o)}else this.#s=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#s.clear();else throw new aFe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new u7("Snapshot path is required");let s=A7(r);await nFe(iFe(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await rFe(s,JSON.stringify(n,null,2),{flush:!0}) Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${gs} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${xs} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -117,9 +117,9 @@ ${e.format(r)}`.trim())}};xV.exports=H2});var Y2=m((IZe,MV)=>{"use strict";var{I
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${gs}_getValuesQuery ON cacheInterceptorV${gs}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${gs}_deleteByUrlQuery ON cacheInterceptorV${gs}(deleteAt);
`),this.#n=this.#r.prepare(`
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${xs}_getValuesQuery ON cacheInterceptorV${xs}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${xs}_deleteByUrlQuery ON cacheInterceptorV${xs}(deleteAt);
`),this.#r=this.#s.prepare(`
SELECT
id,
body,
@@ -132,14 +132,14 @@ ${e.format(r)}`.trim())}};xV.exports=H2});var Y2=m((IZe,MV)=>{"use strict";var{I
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${gs}
FROM cacheInterceptorV${xs}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#i=this.#r.prepare(`
UPDATE cacheInterceptorV${gs} SET
`),this.#i=this.#s.prepare(`
UPDATE cacheInterceptorV${xs} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -151,8 +151,8 @@ ${e.format(r)}`.trim())}};xV.exports=H2});var Y2=m((IZe,MV)=>{"use strict";var{I
staleAt = ?
WHERE
id = ?
`),this.#s=this.#r.prepare(`
INSERT INTO cacheInterceptorV${gs} (
`),this.#n=this.#s.prepare(`
INSERT INTO cacheInterceptorV${xs} (
url,
method,
body,
@@ -166,55 +166,57 @@ ${e.format(r)}`.trim())}};xV.exports=H2});var Y2=m((IZe,MV)=>{"use strict";var{I
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${gs} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${gs}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${gs} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${gs}
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${xs} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${xs}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${xs} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${xs}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${gs}
FROM cacheInterceptorV${xs}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){ED(e);let r=this.#d(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){ED(e);let s=this.#l(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#d(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){ED(e),bke(r);let s=0,n=[],i=this;return new yke({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#l(e){return`${e.origin}/${e.path}`}#d(e,r=!1){let s=this.#l(e),{headers:n,method:i}=e,o=this.#n.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!wke(n[l],u[l])){c=!1;break}}if(c)return A}}};function wke(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var PA=m((YZe,lJ)=>{"use strict";var{kConstruct:Nke}=Ue(),{kEnumerableProperty:sl}=ue(),{iteratorMixin:Ske,isValidHeaderName:wh,isValidHeaderValue:oJ}=As(),{webidl:be}=Wt(),ID=Q("node:assert"),ZE=Q("node:util");function iJ(t){return t===10||t===13||t===9||t===32}function aJ(t){let e=0,r=t.length;for(;r>e&&iJ(t.charCodeAt(r-1));)--r;for(;r>e&&iJ(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function AJ(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw be.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});BD(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)BD(t,r[s],e[r[s]])}else throw be.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function BD(t,e,r){if(r=aJ(r),wh(e)){if(!oJ(r))throw be.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw be.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(uJ(t)==="immutable")throw new TypeError("immutable");return eC(t).append(e,r,!1)}function Tke(t){let e=eC(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function cJ(t,e){return t[0]<e[0]?-1:1}var $E=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.val Line truncated
${i}`;break;case"retry":mz(i)&&(r[n]=i);break;case"id":pz(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&mz(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&pz(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}}};Ez.exports={EventSourceStream:ax}});var Sz=m((h$e,Nz)=>{"use strict";var{pipeline:qLe}=Q("node:stream"),{fetching:VLe}=xh(),{makeRequest:JLe}=il(),{webidl:Ir}=Wt(),{EventSourceStream:WLe}=Cz(),{parseMIMEType:zLe}=Hs(),{createFastMessageEvent:KLe}=wC(),{isNetworkError:Iz}=Sh(),{kEnumerableProperty:VA}=ue(),{environmentSettingsObject:Bz}=As(),Qz=!1,yz=3e3,Ph=0,bz=1,vh=2,XLe="anonymous",jLe="use-credentials",fl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#n=Ph;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Ir.util.markAsUncloneable(this);let s="EventSource constructor";Ir.argumentLengthCheck(arguments,1,s),Qz||(Qz=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ir.converters.USVString(e),r=Ir.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=Bz,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=XLe;r.withCredentials===!0&&(o=jLe,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Bz.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=JLe(a),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===vh)return;this.#n=Ph;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!Iz(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Iz(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?zLe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=bz,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new WLe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(KLe(A.type,A.options))}});qLe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=VLe(e)}#c(){this.#n!==vh&&(this.#n=Ph,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#n===Ph&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){Ir.brandCheck(this,t),this.#n!==vh&&(this.#n=vh,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Ir.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Ir.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Ir.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},wz={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ph,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:bz,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:vh,writable:!1}};Object.defineProperties(fl,wz);Object.defineProperties(fl.prototype,wz);Object.defineProperties(fl.prototype,{close:VA,onerror:VA,onmessage:VA,onopen:VA,readyState:VA,url:VA,withCredentials:VA});Ir.converters.EventSourceInitDict=Ir.dictionaryConverter([{key:"withCredentials",converter:Ir.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ir.converters.any},{key:"node",converter:Ir.dictionaryConverter([{key:"reconnectionTime",converter:Ir.converters["unsigned long"],defaultValue:()=>yz},{key:"dispatcher",converter:Ir.converters.any}]),defaultValue:()=>({})}]);Nz.exports={EventSource:fl,defaultReconnectionTime:yz}});var Fz=m((f$e,H)=>{"use strict";var ZLe=Zo(),Dz=Lg(),$Le=BA(),ePe=gY(),tPe=pY(),rPe=bA(),sPe=VT(),nPe=HT(),iPe=rq(),oPe=cq(),aPe=dq(),xz=Ae(),vC=ue(),{InvalidArgumentError:PC}=xz,ml=Wq(),APe=uA(),cPe=x2(),{MockCallHistory:uPe,MockCallHistoryLog:lPe}=F2(),dPe=G2( Line truncated
`)}close(){this.#s.close()}get(e){Bx(e);let r=this.#d(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){Bx(e);let s=this.#l(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#d(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){Bx(e),gUe(r);let s=0,n=[],i=this;return new dUe({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#l(e){return`${e.origin}/${e.path}`}#d(e,r=!1){let s=this.#l(e),{headers:n,method:i}=e,o=this.#r.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!hUe(n[l],u[l])){c=!1;break}}if(c)return A}}};function hUe(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var hc=p((est,HW)=>{"use strict";var{kConstruct:fUe}=Ye(),{kEnumerableProperty:Fl}=fe(),{iteratorMixin:mUe,isValidHeaderName:lf,isValidHeaderValue:UW}=ws(),{webidl:Fe}=sr(),yx=w("node:assert"),YC=w("node:util");function MW(t){return t===10||t===13||t===9||t===32}function LW(t){let e=0,r=t.length;for(;r>e&&MW(t.charCodeAt(r-1));)--r;for(;r>e&&MW(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function PW(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Fe.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});bx(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)bx(t,r[s],e[r[s]])}else throw Fe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function bx(t,e,r){if(r=LW(r),lf(e)){if(!UW(r))throw Fe.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Fe.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(OW(t)==="immutable")throw new TypeError("immutable");return JC(t).append(e,r,!1)}function pUe(t){let e=JC(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function vW(t,e){return t[0]<e[0]?-1:1}var qC=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.val Line truncated
${o}`;return}if(DI(e,n,v3e)){O3e(e,i)&&(r.retry=e.toString("utf8",i));return}if(DI(e,n,P3e)){H3e(e,i)&&(r.id=e.toString("utf8",i));return}if(DI(e,n,L3e)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&R3e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&k3e(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,o=s===this.chunkIndex?this.pos:n.length,a=n.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),s=this.peekBufferedByte(2);return r===void 0?(e===Jl[0]||(this.checkBOM=!1),!0):s===void 0?e===Jl[0]&&r===Jl[1]?!0:(this.checkBOM=!1,!1):(e===Jl[0]&&r===Jl[1]&&s===Jl[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};JK.exports={EventSourceStream:uR}});var eX=p((wst,$K)=>{"use strict";var{pipeline:_3e}=w("node:stream"),{fetching:G3e}=mf(),{makeRequest:Y3e}=Ul(),{webidl:Fr}=sr(),{EventSourceStream:q3e}=VK(),{parseMIMEType:J3e}=An(),{createFastMessageEvent:V3e}=mI(),{isNetworkError:WK}=gf(),{kEnumerableProperty:Qc}=fe(),{environmentSettingsObject:zK}=ws(),KK=!1,XK=3e3,yf=0,jK=1,bf=2,W3e="anonymous",z3e="use-credentials",Vl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=yf;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Fr.util.markAsUncloneable(this);let s="EventSource constructor";Fr.argumentLengthCheck(arguments,1,s),KK||(KK=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Fr.converters.USVString(e),r=Fr.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=zK,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=W3e;r.withCredentials===!0&&(o=z3e,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=zK.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=Y3e(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===bf)return;this.#r=yf;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!WK(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(WK(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?J3e(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=jK,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new q3e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(V3e(A.type,A.options))}});_3e(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=G3e(e)}#c(){this.#r!==bf&&(this.#r=yf,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:n.stack}H.exports.fetch=function(e,r=void 0){return BPe(e,r).catch(s=>{throw Tz?kz(s,Tz):s&&typeof s=="object"&&Error.captureStackTrace(s,H.exports.fetch),s})};H.exports.Headers=PA().Headers;H.exports.Response=Sh().Response;H.exports.Request=il().Request;H.exports.FormData=oE().FormData;var{setGlobalOrigin:QPe,getGlobalOrigin:yPe}=NS();H.exports.setGlobalOrigin=QPe;H.exports.getGlobalOrigin=yPe;var{CacheStorage:bPe}=hW(),{kConstruct:wPe}=Ue();H.exports.caches=new bPe(wPe);var{deleteCookie:NPe,getCookies:SPe,getSetCookies:TPe,setCookie:DPe,parseCookie:xPe}=NW();H.exports.deleteCookie=NPe;H.exports.getCookies=SPe;H.exports.getSetCookies=TPe;H.exports.setCookie=DPe;H.exports.parseCookie=xPe;var{parseMIMEType:RPe,serializeAMimeType:kPe}=Hs();H.exports.parseMIMEType=RPe;H.exports.serializeAMimeType=kPe;var{CloseEvent:FPe,ErrorEvent:MPe,MessageEvent:UPe}=wC(),{WebSocket:LPe,ping:PPe}=iz();H.exports.WebSocket=LPe;H.exports.CloseEvent=FPe;H.exports.ErrorEvent=MPe;H.exports.MessageEvent=UPe;H.exports.ping=PPe;H.exports.WebSocketStream=gz().WebSocketStream;H.exports.WebSocketError=rx().WebSocketError;H.exports.request=Oh(ml.request);H.exports.stream=Oh(ml.stream);H.exports.pipeline=Oh(ml.pipeline);H.exports.connect=Oh(ml.connect);H.exports.upgrade=Oh(ml.upgrade);H.exports.MockClient=cPe;H.exports.MockCallHistory=uPe;H.exports.MockCallHistoryLog=lPe;H.exports.MockPool=gPe;H.exports.MockAgent=dPe;H.exports.SnapshotAgent=hPe;H.exports.mockErrors=fPe;var{EventSource:vPe}=Sz();H.exports.EventSource=vPe;function OPe(){globalThis.fetch=H.exports.fetch,globalThis.Headers=H.exports.Headers,globalThis.Response=H.exports.Response,globalThis.Request=H.exports.Request,globalThis.FormData=H.exports.FormData,globalThis.WebSocket=H.exports.WebSocket,globalThis.CloseEvent=H.exports.CloseEvent,globalThis.ErrorEvent=H.exports.ErrorEvent,globalThis.MessageEvent=H.exports.MessageEvent,globalThis.EventSource=H.exports.EventSource}H.exports.install=OPe});var _h=m(da=>{"use strict";da.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");da.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");da.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";da.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);da.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);da.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());da.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Uz=m((E$e,Mz)=>{"use strict";var{asciiLowercase:OC,solelyContainsHTTPTokenCodePoints:_Pe,soleyContainsHTTPQuotedStringTokenCodePoints:HPe}=_h();Mz.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=OC(String(e)),this._map.get(e)}has(e){return e=OC(String(e)),this._map.has(e)}set(e,r){if(e=OC(String(e)),r=String(r),!_Pe(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!HPe(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=OC(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var vz=m((C$e,Pz)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:GPe,removeTrailingHTTPWhitespace:Lz,isHTTPWhitespaceChar:YPe,solelyContainsHTTPTokenCodePoints:Ax,soleyContainsHTTPQuotedStringTokenCodePoints:qPe,asciiLowercase:cx,collectAnHTTPQuotedString:VPe}=_h();Pz.exports=t=>{t=GPe(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Ax(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Lz(s),s.length===0||!Ax(s))return null;let n={type:cx(r),subtype:cx(s),parameters:new Map};for(;e<t.length;){for(++e;YPe(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=cx(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=VPe(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Lz(o),o==="")continue}i.length>0&&Ax(i)&&qPe(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var _z=m((I$e,Oz)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:JPe}=_h();Oz.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!JPe(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var qz=m((Q$e,Yz)=>{"use strict";var WPe=Uz(),zPe=vz(),KPe=_z(),{asciiLowercase:Hz,solelyContainsHTTPTokenCodePoints:Gz}=_h();Yz.exports=class{constructor(e){e=String(e);let r=zPe(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new WPe(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Hz(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Gz(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Hz(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Gz(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return KPe(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var eK=m(YC=>{"use strict";Object.defineProperty(YC,"__esModule",{value:!0});YC.getProxyUrl=lve;YC.checkBypass=$z;function lve(t){let e=t.protocol==="https:";if($z(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 GC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new GC(`http://${r}`)}else return}function $z(t){if(!t.hostname)return!1;let e=t.hostname;if(dve(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 n=[t.hostnameLine truncated
%s`,k,k,b,s);var P=b.type==="*"?Ox:b.type==="?"?vx:"\\"+b.type;n=!0,s=s.slice(0,b.reStart)+P+"\\("+k}f(),i&&(s+="\\\\");var F=!1;switch(s.charAt(0)){case"[":case".":case"(":F=!0}for(var v=a.length-1;v>-1;v--){var _=a[v],me=s.slice(0,_.reStart),De=s.slice(_.reStart,_.reEnd-8),oe=s.slice(_.reEnd-8,_.reEnd),pe=s.slice(_.reEnd);oe+=pe;var he=me.split("(").length-1,Bt=pe;for(p=0;p<he;p++)Bt=Bt.replace(/\)[+*?]?/,"");pe=Bt;var Qt="";pe===""&&e!==ZC&&(Qt="$");var mi=me+De+pe+Qt+oe;s=mi}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=g+s),e===ZC)return[s,n];if(!n)return s8e(t);var pi=r.nocase?"i":"";try{var FB=new RegExp("^"+s+"$",pi)}catch{return new RegExp("$.")}return FB._glob=t,FB._src=s,FB}ps.makeRe=function(t,e){return new Dt(t,e||{}).makeRe()};Dt.prototype.makeRe=r8e;function r8e(){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?Ox:e.dot?z3e:K3e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===zA?r:typeof o=="string"?n8e(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}ps.match=function(t,e,r){r=r||{};var s=new Dt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Dt.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;Jh.sep!=="/"&&(e=e.split(Jh.sep).join("/")),e=e.split(uX),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};Dt.prototype.matchOne=function(t,e,r){return e.indexOf(zA)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Dt.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===zA){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===zA){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var g=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))g=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;g=u.length+1}}if(!c.length){var f=!!g;for(i=s;i<t.length-g;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var y=[[[],0]],E=y[0],b=0,N=[0],x=0;x<c.length;x++){var k=c[x];k===zA?(N.push(b),E=[[],0],y.push(E)):(E[0].push(k),b++)}for(var P=y.length-1,F=t.length-g,v=0;v<y.length;v++)y[v][1]=F-(N[P--]+y[v][0].length);return!!this._matchGlobStarBodySections(t,y,s,0,r,0,!!g)};Dt.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var g=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(g&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};Dt.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===zA)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function s8e(t){return t.replace(/\\(.)/g,"$1")}function n8e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Il=m((ytt,fX)=>{"use strict";var c8e="2.0.0",u8e=Number.MAX_SAFE_INTEGER||9007199254740991,l8e=16,d8e=250,g8e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fX.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:l8e,MAX_SAFE_BUILD_LENGTH:d8e,MAX_SAFE_INTEGER:u8e,RELEASE_TYPES:g8e,SEMVER_SPEC_VERSION:c8e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Wh=m((btt,mX)=>{"use strict";var h8e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};mX.exports=h8e});var Bl=m((Ai,pX)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:_x,MAX_SAFE_BUILD_LENGTH:f8e,MAX_LENGTH:m8e}=Il(),p8e=Wh();Ai=pX.exports={};var E8e=Ai.re=[],C8e=Ai.safeRe=[],G=Ai.src=[],I8e=Ai.safeSrc=[],Y=Ai.t={},B8e=0,Hx="[a-zA-Z0-9-]",Q8e=[["\\s",1],["\\d",m8e],[Hx,f8e]],y8e=t=>{for(let[e,r]of Q8e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
${i}`:n.stack}Y.exports.fetch=function(e,r=void 0){return E8e(e,r).catch(s=>{throw tX?iX(s,tX):s&&typeof s=="object"&&Error.captureStackTrace(s,Y.exports.fetch),s})};Y.exports.Headers=hc().Headers;Y.exports.Response=gf().Response;Y.exports.Request=Ul().Request;Y.exports.FormData=j0().FormData;var{setGlobalOrigin:C8e,getGlobalOrigin:I8e}=DD();Y.exports.setGlobalOrigin=C8e;Y.exports.getGlobalOrigin=I8e;var{CacheStorage:B8e}=Yz(),{kConstruct:Q8e}=Ye();Y.exports.caches=new B8e(Q8e);var{deleteCookie:y8e,getCookies:b8e,getSetCookies:w8e,setCookie:N8e,parseCookie:S8e}=tK();Y.exports.deleteCookie=y8e;Y.exports.getCookies=b8e;Y.exports.getSetCookies=w8e;Y.exports.setCookie=N8e;Y.exports.parseCookie=S8e;var{parseMIMEType:D8e,serializeAMimeType:T8e}=An();Y.exports.parseMIMEType=D8e;Y.exports.serializeAMimeType=T8e;var{CloseEvent:x8e,ErrorEvent:R8e,MessageEvent:k8e}=mI(),{WebSocket:F8e,ping:M8e}=MK();Y.exports.WebSocket=F8e;Y.exports.CloseEvent=x8e;Y.exports.ErrorEvent=R8e;Y.exports.MessageEvent=k8e;Y.exports.ping=M8e;Y.exports.WebSocketStream=GK().WebSocketStream;Y.exports.WebSocketError=iR().WebSocketError;Y.exports.request=wf(Wl.request);Y.exports.stream=wf(Wl.stream);Y.exports.pipeline=wf(Wl.pipeline);Y.exports.connect=wf(Wl.connect);Y.exports.upgrade=wf(Wl.upgrade);Y.exports.MockClient=o8e;Y.exports.MockCallHistory=a8e;Y.exports.MockCallHistoryLog=A8e;Y.exports.MockPool=u8e;Y.exports.MockAgent=c8e;Y.exports.SnapshotAgent=l8e;Y.exports.mockErrors=d8e;var{EventSource:U8e}=eX();Y.exports.EventSource=U8e;function L8e(){globalThis.fetch=Y.exports.fetch,globalThis.Headers=Y.exports.Headers,globalThis.Response=Y.exports.Response,globalThis.Request=Y.exports.Request,globalThis.FormData=Y.exports.FormData,globalThis.WebSocket=Y.exports.WebSocket,globalThis.CloseEvent=Y.exports.CloseEvent,globalThis.ErrorEvent=Y.exports.ErrorEvent,globalThis.MessageEvent=Y.exports.MessageEvent,globalThis.EventSource=Y.exports.EventSource}Y.exports.install=L8e});var Nf=p(Ua=>{"use strict";Ua.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Ua.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Ua.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Ua.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Ua.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Ua.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Ua.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var AX=p((Tst,aX)=>{"use strict";var{asciiLowercase:RI,solelyContainsHTTPTokenCodePoints:P8e,soleyContainsHTTPQuotedStringTokenCodePoints:v8e}=Nf();aX.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=RI(String(e)),this._map.get(e)}has(e){return e=RI(String(e)),this._map.has(e)}set(e,r){if(e=RI(String(e)),r=String(r),!P8e(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!v8e(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=RI(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var lX=p((xst,uX)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:O8e,removeTrailingHTTPWhitespace:cX,isHTTPWhitespaceChar:H8e,solelyContainsHTTPTokenCodePoints:lR,soleyContainsHTTPQuotedStringTokenCodePoints:_8e,asciiLowercase:dR,collectAnHTTPQuotedString:G8e}=Nf();uX.exports=t=>{t=O8e(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!lR(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=cX(s),s.length===0||!lR(s))return null;let n={type:dR(r),subtype:dR(s),parameters:new Map};for(;e<t.length;){for(++e;H8e(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=dR(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=G8e(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=cX(o),o==="")continue}i.length>0&&lR(i)&&_8e(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var gX=p((Rst,dX)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Y8e}=Nf();dX.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!Y8e(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var pX=p((Fst,mX)=>{"use strict";var q8e=AX(),J8e=lX(),V8e=gX(),{asciiLowercase:hX,solelyContainsHTTPTokenCodePoints:fX}=Nf();mX.exports=class{constructor(e){e=String(e);let r=J8e(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new q8e(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=hX(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!fX(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=hX(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!fX(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return V8e(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var SX=p(UI=>{"use strict";Object.defineProperty(UI,"__esModule",{value:!0});UI.getProxyUrl=A4e;UI.checkBypass=NX;function A4e(t){let e=t.protocol==="https:";if(NX(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 MI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new MI(`http://${r}`)}else return}function NX(t){if(!t.hostname)return!1;let e=t.hostname;if(c4e(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 n=[t.hostnameLine truncated
`).join(`
`+i),t.push(n+"m+"+BI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=X6e()+e+" "+t[0]}function X6e(){return Yt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function j6e(...t){return process.stderr.write(II.formatWithOptions(Yt.inspectOpts,...t)+`
`)}function Z6e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function $6e(){return process.env.DEBUG}function e_e(t){t.inspectOpts={};let e=Object.keys(Yt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Yt.inspectOpts[e[r]]}BI.exports=CR()(Yt);var{formatters:RZ}=BI.exports;RZ.o=function(t){return this.inspectOpts.colors=this.useColors,II.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};RZ.O=function(t){return this.inspectOpts.colors=this.useColors,II.inspect(t,this.inspectOpts)}});var QI=m((int,QR)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?QR.exports=wZ():QR.exports=kZ()});var UZ=m(qr=>{"use strict";var t_e=qr&&qr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),r_e=qr&&qr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FZ=qr&&qr.__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)&&t_e(e,t,r);return r_e(e,t),e};Object.defineProperty(qr,"__esModule",{value:!0});qr.req=qr.json=qr.toBuffer=void 0;var s_e=FZ(Q("http")),n_e=FZ(Q("https"));async function MZ(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}qr.toBuffer=MZ;async function i_e(t){let r=(await MZ(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}qr.json=i_e;function o_e(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?n_e:s_e).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}qr.req=o_e});var bR=m(Es=>{"use strict";var PZ=Es&&Es.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),a_e=Es&&Es.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vZ=Es&&Es.__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)&&PZ(e,t,r);return a_e(e,t),e},A_e=Es&&Es.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&PZ(e,t,r)};Object.defineProperty(Es,"__esModule",{value:!0});Es.Agent=void 0;var c_e=vZ(Q("net")),LZ=vZ(Q("http")),u_e=Q("https");A_e(UZ(),Es);var ci=Symbol("AgentBaseInternalState"),yR=class extends LZ.Agent{constructor(e){super(e),this[ci]={}}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 c_e.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],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?u_e.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof LZ.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[ci].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[ci].currentSocket;if(this[ci].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ci].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ci]&&(this[ci].defaultPort=e)}get protocol(){return this[ci].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ci]&&(this[ci].protocol=e)}};Es.Agent=yR});var OZ=m(Sl=>{"use strict";var l_e=Sl&&Sl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.parseProxyResponse=void 0;var d_e=l_e(QI()),yI=(0,d_e.default)("https-proxy-agent:parse-proxy-response");function g_e(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),yI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),yI("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),g=l.indexOf(`\r
`+i),t.push(n+"m+"+gB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=b9e()+e+" "+t[0]}function b9e(){return $t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function w9e(...t){return process.stderr.write(dB.formatWithOptions($t.inspectOpts,...t)+`
`)}function N9e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function S9e(){return process.env.DEBUG}function D9e(t){t.inspectOpts={};let e=Object.keys($t.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=$t.inspectOpts[e[r]]}gB.exports=bk()($t);var{formatters:ree}=gB.exports;ree.o=function(t){return this.inspectOpts.colors=this.useColors,dB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};ree.O=function(t){return this.inspectOpts.colors=this.useColors,dB.inspect(t,this.inspectOpts)}});var hB=p((RAt,Sk)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Sk.exports=X$():Sk.exports=see()});var oee=p(As=>{"use strict";var T9e=As&&As.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),x9e=As&&As.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nee=As&&As.__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)&&T9e(e,t,r);return x9e(e,t),e};Object.defineProperty(As,"__esModule",{value:!0});As.req=As.json=As.toBuffer=void 0;var R9e=nee(w("http")),k9e=nee(w("https"));async function iee(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}As.toBuffer=iee;async function F9e(t){let r=(await iee(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}As.json=F9e;function M9e(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?k9e:R9e).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}As.req=M9e});var Tk=p(Ms=>{"use strict";var Aee=Ms&&Ms.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),U9e=Ms&&Ms.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cee=Ms&&Ms.__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)&&Aee(e,t,r);return U9e(e,t),e},L9e=Ms&&Ms.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Aee(e,t,r)};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.Agent=void 0;var P9e=cee(w("net")),aee=cee(w("http")),v9e=w("https");L9e(oee(),Ms);var xi=Symbol("AgentBaseInternalState"),Dk=class extends aee.Agent{constructor(e){super(e),this[xi]={}}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 P9e.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],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?v9e.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof aee.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[xi].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[xi].currentSocket;if(this[xi].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[xi].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[xi]&&(this[xi].defaultPort=e)}get protocol(){return this[xi].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[xi]&&(this[xi].protocol=e)}};Ms.Agent=Dk});var uee=p(id=>{"use strict";var O9e=id&&id.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(id,"__esModule",{value:!0});id.parseProxyResponse=void 0;var H9e=O9e(hB()),fB=(0,H9e.default)("https-proxy-agent:parse-proxy-response");function _9e(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),fB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),fB("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),g=l.indexOf(`\r
\r
`);if(g===-1){yI("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,g).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),y=+p[1],E=p.slice(2).join(" "),b={};for(let N of h){if(!N)continue;let x=N.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${N}"`));let k=N.slice(0,x).toLowerCase(),P=N.slice(x+1).trimStart(),F=b[k];typeof F=="string"?b[k]=[F,P]:Array.isArray(F)?F.push(P):b[k]=P}yI("got proxy server response: %o %o",f,b),o(),e({connect:{statusCode:y,statusText:E,headers:b},buffered:l})}t.on("error",A),t.on("end",a),i()})}Sl.parseProxyResponse=g_e});var VZ=m(en=>{"use strict";var h_e=en&&en.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),f_e=en&&en.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YZ=en&&en.__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)&&h_e(e,t,r);return f_e(e,t),e},qZ=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(en,"__esModule",{value:!0});en.HttpsProxyAgent=void 0;var bI=YZ(Q("net")),_Z=YZ(Q("tls")),m_e=qZ(Q("assert")),p_e=qZ(QI()),E_e=bR(),C_e=Q("url"),I_e=OZ(),sf=(0,p_e.default)("https-proxy-agent"),HZ=t=>t.servername===void 0&&t.host&&!bI.isIP(t.host)?{...t,servername:t.host}:t,wI=class extends E_e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new C_e.URL(e):e,this.proxyHeaders=r?.headers??{},sf("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?GZ(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(sf("Creating `tls.Socket`: %o",this.connectOpts),n=_Z.connect(HZ(this.connectOpts))):(sf("Creating `net.Socket`: %o",this.connectOpts),n=bI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=bI.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(g===-1){fB("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,g).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=f.split(" "),B=+m[1],E=m.slice(2).join(" "),b={};for(let S of h){if(!S)continue;let R=S.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${S}"`));let F=S.slice(0,R).toLowerCase(),O=S.slice(R+1).trimStart(),V=b[F];typeof V=="string"?b[F]=[V,O]:Array.isArray(V)?V.push(O):b[F]=O}fB("got proxy server response: %o %o",f,b),o(),e({connect:{statusCode:B,statusText:E,headers:b},buffered:l})}t.on("error",A),t.on("end",a),i()})}id.parseProxyResponse=_9e});var mee=p(Qn=>{"use strict";var G9e=Qn&&Qn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Y9e=Qn&&Qn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hee=Qn&&Qn.__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)&&G9e(e,t,r);return Y9e(e,t),e},fee=Qn&&Qn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.HttpsProxyAgent=void 0;var mB=hee(w("net")),lee=hee(w("tls")),q9e=fee(w("assert")),J9e=fee(hB()),V9e=Tk(),W9e=w("url"),z9e=uee(),Yf=(0,J9e.default)("https-proxy-agent"),dee=t=>t.servername===void 0&&t.host&&!mB.isIP(t.host)?{...t,servername:t.host}:t,pB=class extends V9e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new W9e.URL(e):e,this.proxyHeaders=r?.headers??{},Yf("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?gee(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(Yf("Creating `tls.Socket`: %o",this.connectOpts),n=lee.connect(dee(this.connectOpts))):(Yf("Creating `net.Socket`: %o",this.connectOpts),n=mB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=mB.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let g=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(g).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let g of Object.keys(i))a+=`${g}: ${i[g]}\r
`;let A=(0,I_e.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",B_e),r.secureEndpoint?(sf("Upgrading socket connection to TLS"),_Z.connect({...GZ(HZ(r),"host","path","port"),socket:n})):n;n.destroy();let l=new bI.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{sf("Replaying proxy buffer for failed request"),(0,m_e.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};wI.protocols=["http","https"];en.HttpsProxyAgent=wI;function B_e(t){t.resume()}function GZ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var zZ=m(tn=>{"use strict";var Q_e=tn&&tn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),y_e=tn&&tn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WZ=tn&&tn.__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)&&Q_e(e,t,r);return y_e(e,t),e},b_e=tn&&tn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tn,"__esModule",{value:!0});tn.HttpProxyAgent=void 0;var w_e=WZ(Q("net")),N_e=WZ(Q("tls")),S_e=b_e(QI()),T_e=Q("events"),D_e=bR(),JZ=Q("url"),Tl=(0,S_e.default)("http-proxy-agent"),NI=class extends D_e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new JZ.URL(e):e,this.proxyHeaders=r?.headers??{},Tl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?x_e(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new JZ.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Tl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Tl("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let A=(0,z9e.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",K9e),r.secureEndpoint?(Yf("Upgrading socket connection to TLS"),lee.connect({...gee(dee(r),"host","path","port"),socket:n})):n;n.destroy();let l=new mB.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{Yf("Replaying proxy buffer for failed request"),(0,q9e.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};pB.protocols=["http","https"];Qn.HttpsProxyAgent=pB;function K9e(t){t.resume()}function gee(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Cee=p(yn=>{"use strict";var X9e=yn&&yn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),j9e=yn&&yn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Eee=yn&&yn.__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)&&X9e(e,t,r);return j9e(e,t),e},Z9e=yn&&yn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yn,"__esModule",{value:!0});yn.HttpProxyAgent=void 0;var $9e=Eee(w("net")),eGe=Eee(w("tls")),tGe=Z9e(hB()),rGe=w("events"),sGe=Tk(),pee=w("url"),od=(0,tGe.default)("http-proxy-agent"),EB=class extends sGe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new pee.URL(e):e,this.proxyHeaders=r?.headers??{},od("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?nGe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new pee.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;od("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(od("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Tl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Tl("Creating `tls.Socket`: %o",this.connectOpts),i=N_e.connect(this.connectOpts)):(Tl("Creating `net.Socket`: %o",this.connectOpts),i=w_e.connect(this.connectOpts)),await(0,T_e.once)(i,"connect"),i}};NI.protocols=["http","https"];tn.HttpProxyAgent=NI;function x_e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var f$=m(TI=>{"use strict";Object.defineProperty(TI,"__esModule",{value:!0});TI.state=void 0;TI.state={instrumenterImplementation:void 0}});var S$=m(kI=>{"use strict";Object.defineProperty(kI,"__esModule",{value:!0});kI.state=void 0;kI.state={operationRequestMap:new WeakMap}});var ise=m((rQt,rGe)=>{rGe.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var ase=m((sQt,ose)=>{var sGe=ise();ose.exports={version:sGe.version}});var JI=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.isJsonObject=vl.typeofJsonValue=void 0;function lGe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}vl.typeofJsonValue=lGe;function dGe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}vl.isJsonObject=dGe});var zI=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.base64encode=Ol.base64decode=void 0;var ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),WI=[];for(let t=0;t<ao.length;t++)WI[ao[t].charCodeAt(0)]=t;WI[45]=ao.indexOf("+");WI[95]=ao.indexOf("/");function gGe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=WI[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}Ol.base64decode=gGe;function hGe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=ao[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=ao[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=ao[n|s>>6],e+=ao[s&63],r=0;break}return r&&(e+=ao[n],e+="=",r==1&&(e+="=")),e}Ol.base64encode=hGe});var Ase=m(KI=>{"use strict";Object.defineProperty(KI,"__esModule",{value:!0});KI.utf8read=void 0;var wk=t=>String.fromCharCode.apply(String,t);function fGe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(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,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(wk(s)),n=0);return r.length?(n&&r.push(wk(s.slice(0,n))),r.join("")):wk(s.slice(0,n))}KI.utf8read=fGe});var df=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.WireType=li.mergeBinaryOptions=li.UnknownFieldHandler=void 0;var mGe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(mGe=li.UnknownFieldHandler||(li.UnknownFieldHandler={}));function pGe(t,e){return Object.assign(Object.assign({},t),e)}li.mergeBinaryOptions=pGe;var EGe;(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"})(EGe=li.WireType||(li.WireType={}))});var jI=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.varint32read=Vr.varint32write=Vr.int64toString=Vr.int64fromString=Vr.varint64write=Vr.varint64read=void 0;function CGe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&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 n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Vr.varint64read=CGe;function IGe(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Vr.varint64write=IGe;var XI=65536*65536;function BGe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=XI&&(n=n+(s/XI|0),s=s%XI)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Vr.int64fromString=BGe;function QGe(t,e){if(e>>>0<=2097151)return""+(XI*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let g=u?String(u):"";return l?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}Vr.int64toString=QGe;function yGe(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)}}Vr.varint32write=yGe;function bGe(){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}Vr.varint32read=bGe});var Ia=m(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.PbLong=Ca.PbULong=Ca.detectBi=void 0;var gf=jI(),Ye;function cse(){let t=new DataView(new ArrayBuffer(8));Ye=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}Ca.detectBi=cse;cse();function use(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var lse=/^-?[0-9]+$/,$I=4294967296,ZI=2147483648,eB=c Line truncated
`)}};bB.RpcError=Zk});var eF=m(NB=>{"use strict";Object.defineProperty(NB,"__esModule",{value:!0});NB.mergeRpcOptions=void 0;var Hse=Ct();function JYe(t,e){if(!e)return t;let r={};wB(t,r),wB(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Hse.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Hse.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},wB(t.meta,r.meta),wB(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}NB.mergeRpcOptions=JYe;function wB(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var rF=m(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.Deferred=sc.DeferredState=void 0;var hi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hi=sc.DeferredState||(sc.DeferredState={}));var tF=class{constructor(e=!0){this._state=hi.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!==hi.PENDING)throw new Error(`cannot resolve ${hi[this.state].toLowerCase()}`);this._resolve(e),this._state=hi.RESOLVED}reject(e){if(this.state!==hi.PENDING)throw new Error(`cannot reject ${hi[this.state].toLowerCase()}`);this._reject(e),this._state=hi.REJECTED}resolvePending(e){this._state===hi.PENDING&&this.resolve(e)}rejectPending(e){this._state===hi.PENDING&&this.reject(e)}};sc.Deferred=tF});var nF=m(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.RpcOutputStreamController=void 0;var Gse=rF(),nc=Ct(),sF=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){nc.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){nc.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){nc.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(){nc.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;nc.assert(e,"bad state"),nc.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 Gse.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;nc.assert(s.state==Gse.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};SB.RpcOutputStreamController=sF});var oF=m(Jl=>{"use strict";var WYe=Jl&&Jl.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Jl,"__esModule",{value:!0});Jl.UnaryCall=void 0;var iF=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,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 WYe(this,void 0,void 0,function*(){let[e,r,s,n]=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:n}})}};Jl.UnaryCall=iF});var AF=m(Wl=>{"use strict";var zYe=Wl&&Wl.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Wl,"__esModule",{value:!0});Wl.ServerStreamingCall=void 0;var aF=class{constructor(e Line truncated
`:Up(t.children):ou(t)?Up(t.children):Rr(t)?t.data:""}function Pi(t){return Array.isArray(t)?t.map(Pi).join(""):_e(t)&&!ja(t)?Pi(t.children):Rr(t)?t.data:""}function ag(t){return Array.isArray(t)?t.map(ag).join(""):_e(t)&&(t.type===Qe.Tag||ou(t))?ag(t.children):Rr(t)?t.data:""}function cu(t){return _e(t)?t.children:[]}function zO(t){return t.parent||null}function H1(t){let e=zO(t);if(e!=null)return cu(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function _0e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function H0e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function G0e(t){return t.name}function Lp(t){let{next:e}=t;for(;e!==null&&!q(e);)({next:e}=e);return e}function Pp(t){let{prev:e}=t;for(;e!==null&&!q(e);)({prev:e}=e);return e}function vi(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Y0e(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function q0e(t,e){if(vi(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function V0e(t,e){vi(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function J0e(t,e){if(vi(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function W0e(t,e){vi(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function uu(t,e,r=!0,s=1/0){return vp(t,Array.isArray(e)?e:[e],r,s)}function vp(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&_e(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function z0e(t,e){return e.find(t)}function Op(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(q(i)&&t(i))return i;if(r&&_e(i)&&i.children.length>0){let o=Op(t,i.children,!0);if(o)return o}}return null}function KO(t,e){return(Array.isArray(e)?e:[e]).some(r=>q(r)&&t(r)||_e(r)&&KO(t,r.children))}function K0e(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];q(i)&&t(i)&&r.push(i),_e(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var _p={tag_name(t){return typeof t=="function"?e=>q(e)&&t(e.name):t==="*"?q:e=>q(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Rr(e)&&t(e.data):e=>Rr(e)&&e.data===t}};function G1(t,e){return typeof e=="function"?r=>q(r)&&e(r.attribs[t]):r=>q(r)&&r.attribs[t]===e}function X0e(t,e){return r=>t(r)||e(r)}function XO(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(_p,r)?_p[r](s):G1(r,s)});return e.length===0?null:e.reduce(X0e)}function j0e(t,e){let r=XO(t);return r?r(e):!0}function Z0e(t,e,r,s=1/0){let n=XO(t);return n?uu(n,e,r,s):[]}function $0e(t,e,r=!0){return Array.isArray(e)||(e=[e]),Op(G1("id",t),e,r)}function Za(t,e,r=!0,s=1/0){return uu(_p.tag_name(t),e,r,s)}function eEe(t,e,r=!0,s=1/0){return uu(G1("class",t),e,r,s)}function tEe(t,e,r=!0,s=1/0){return uu(_p.tag_type(t),e,r,s)}function rEe(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var Rs;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Rs||(Rs={}));function jO(t,e){let r=[],s=[];if(t===e)return 0;let n=_e(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=_e(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return Rs.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Rs.FOLLOWING|Rs.CONTAINED_BY:Rs.FOLLOWING:a===t?Rs.PRECEDING|Rs.CONTAINS:Rs.PRECEDING}function Ro(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=jO(e,r);return s&Rs.PRECEDING?-1:s&Rs.FOLLOWING?1:0}),t}function Y1(t){let e=Hp(aEe,t);return e?e.name==="feed"?sEe(e):nEe(e):null}function sEe(t){var e;let r=t.children,s={type:"atom",items:Za("entry",r).map(o=>{var a;let{children:A}=o,c={media:ZO(A)};kr(c,"id","id",A),kr(c,"title","title",A);let u=(a=Hp("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ko("summary",A)||ko("content",A);l&&(c.descript Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),od("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(od("Creating `tls.Socket`: %o",this.connectOpts),i=eGe.connect(this.connectOpts)):(od("Creating `net.Socket`: %o",this.connectOpts),i=$9e.connect(this.connectOpts)),await(0,rGe.once)(i,"connect"),i}};EB.protocols=["http","https"];yn.HttpProxyAgent=EB;function nGe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var _ee=p(BB=>{"use strict";Object.defineProperty(BB,"__esModule",{value:!0});BB.state=void 0;BB.state={instrumenterImplementation:void 0}});var nte=p(wB=>{"use strict";Object.defineProperty(wB,"__esModule",{value:!0});wB.state=void 0;wB.state={operationRequestMap:new WeakMap}});var Hne=p((GDt,LJe)=>{LJe.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"~1.23.0","@azure/storage-blob":"~12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Gne=p((YDt,_ne)=>{var PJe=Hne();_ne.exports={version:PJe.version}});var vB=p(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.isJsonObject=hd.typeofJsonValue=void 0;function JJe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}hd.typeofJsonValue=JJe;function VJe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}hd.isJsonObject=VJe});var HB=p(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.base64encode=fd.base64decode=void 0;var ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),OB=[];for(let t=0;t<ko.length;t++)OB[ko[t].charCodeAt(0)]=t;OB[45]=ko.indexOf("+");OB[95]=ko.indexOf("/");function WJe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=OB[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}fd.base64decode=WJe;function zJe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=ko[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=ko[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=ko[n|s>>6],e+=ko[s&63],r=0;break}return r&&(e+=ko[n],e+="=",r==1&&(e+="=")),e}fd.base64encode=zJe});var Yne=p(_B=>{"use strict";Object.defineProperty(_B,"__esModule",{value:!0});_B.utf8read=void 0;var YF=t=>String.fromCharCode.apply(String,t);function KJe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(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,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(YF(s)),n=0);return r.length?(n&&r.push(YF(s.slice(0,n))),r.join("")):YF(s.slice(0,n))}_B.utf8read=KJe});var $f=p(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.WireType=Ri.mergeBinaryOptions=Ri.UnknownFieldHandler=void 0;var XJe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(XJe=Ri.UnknownFieldHandler||(Ri.UnknownFieldHandler={}));function jJe(t,e){return Object.assign(Object.assign({},t),e)}Ri.mergeBinaryOptions=jJe;var ZJe;(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"})(ZJe=Ri.WireType||(Ri.WireType={}))});var YB=p(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.varint32read=cs.varint32write=cs.int64toString=cs.int64fromString=cs.varint64write=cs.varint64read=void 0;function $Je(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&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 n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}cs.varint64read=$Je;function eVe(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}cs.varint64write=eVe;var GB=65536*65536;function tVe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=GB&&(n=n+(s/GB|0),s=s%GB)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}cs.int64fromString=tVe;function rVe(t,e){if(e>>>0<=2097151)return""+(GB*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let g=u?String(u):"";return l?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}cs.int64toString=rVe;function sVe(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)}}cs.varint32write=sVe;function nVe(){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}cs.varint32read=nVe});var Ja=p(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.PbLong=qa.PbULong=qa.detectBi=void 0;var em=YB(),je;function qne(){let t=new DataView(new ArrayBuffer(8));je=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}qa.detectBi=qne;qne();function Jne(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Vne=/^-?[0-9]+$/,JB=4294967296,qB=2147483648,VB=c Line truncated
`)}};mQ.RpcError=mM});var EM=p(EQ=>{"use strict";Object.defineProperty(EQ,"__esModule",{value:!0});EQ.mergeRpcOptions=void 0;var Qie=Tt();function N7e(t,e){if(!e)return t;let r={};pQ(t,r),pQ(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Qie.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Qie.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},pQ(t.meta,r.meta),pQ(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}EQ.mergeRpcOptions=N7e;function pQ(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var IM=p(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.Deferred=kc.DeferredState=void 0;var Mi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Mi=kc.DeferredState||(kc.DeferredState={}));var CM=class{constructor(e=!0){this._state=Mi.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!==Mi.PENDING)throw new Error(`cannot resolve ${Mi[this.state].toLowerCase()}`);this._resolve(e),this._state=Mi.RESOLVED}reject(e){if(this.state!==Mi.PENDING)throw new Error(`cannot reject ${Mi[this.state].toLowerCase()}`);this._reject(e),this._state=Mi.REJECTED}resolvePending(e){this._state===Mi.PENDING&&this.resolve(e)}rejectPending(e){this._state===Mi.PENDING&&this.reject(e)}};kc.Deferred=CM});var QM=p(CQ=>{"use strict";Object.defineProperty(CQ,"__esModule",{value:!0});CQ.RpcOutputStreamController=void 0;var yie=IM(),Fc=Tt(),BM=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){Fc.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){Fc.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){Fc.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(){Fc.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;Fc.assert(e,"bad state"),Fc.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 yie.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Fc.assert(s.state==yie.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};CQ.RpcOutputStreamController=BM});var bM=p(Qd=>{"use strict";var S7e=Qd&&Qd.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Qd,"__esModule",{value:!0});Qd.UnaryCall=void 0;var yM=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,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 S7e(this,void 0,void 0,function*(){let[e,r,s,n]=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:n}})}};Qd.UnaryCall=yM});var NM=p(yd=>{"use strict";var D7e=yd&&yd.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(yd,"__esModule",{value:!0});yd.ServerStreamingCall=void 0;var wM=class{constructor(e Line truncated
`:NE(t.children):Pu(t)?NE(t.children):zr(t)?t.data:""}function oo(t){return Array.isArray(t)?t.map(oo).join(""):ze(t)&&!wA(t)?oo(t.children):zr(t)?t.data:""}function Jg(t){return Array.isArray(t)?t.map(Jg).join(""):ze(t)&&(t.type===Re.Tag||Pu(t))?Jg(t.children):zr(t)?t.data:""}function Hu(t){return ze(t)?t.children:[]}function BH(t){return t.parent||null}function Y1(t){let e=BH(t);if(e!=null)return Hu(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function wIe(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function NIe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function SIe(t){return t.name}function SE(t){let{next:e}=t;for(;e!==null&&!W(e);)({next:e}=e);return e}function DE(t){let{prev:e}=t;for(;e!==null&&!W(e);)({prev:e}=e);return e}function ao(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function DIe(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function TIe(t,e){if(ao(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function xIe(t,e){ao(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function RIe(t,e){if(ao(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function kIe(t,e){ao(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function _u(t,e,r=!0,s=1/0){return TE(t,Array.isArray(e)?e:[e],r,s)}function TE(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&ze(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function FIe(t,e){return e.find(t)}function xE(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(W(i)&&t(i))return i;if(r&&ze(i)&&i.children.length>0){let o=xE(t,i.children,!0);if(o)return o}}return null}function QH(t,e){return(Array.isArray(e)?e:[e]).some(r=>W(r)&&t(r)||ze(r)&&QH(t,r.children))}function MIe(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];W(i)&&t(i)&&r.push(i),ze(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var RE={tag_name(t){return typeof t=="function"?e=>W(e)&&t(e.name):t==="*"?W:e=>W(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>zr(e)&&t(e.data):e=>zr(e)&&e.data===t}};function q1(t,e){return typeof e=="function"?r=>W(r)&&e(r.attribs[t]):r=>W(r)&&r.attribs[t]===e}function UIe(t,e){return r=>t(r)||e(r)}function yH(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(RE,r)?RE[r](s):q1(r,s)});return e.length===0?null:e.reduce(UIe)}function LIe(t,e){let r=yH(t);return r?r(e):!0}function PIe(t,e,r,s=1/0){let n=yH(t);return n?_u(n,e,r,s):[]}function vIe(t,e,r=!0){return Array.isArray(e)||(e=[e]),xE(q1("id",t),e,r)}function NA(t,e,r=!0,s=1/0){return _u(RE.tag_name(t),e,r,s)}function OIe(t,e,r=!0,s=1/0){return _u(q1("class",t),e,r,s)}function HIe(t,e,r=!0,s=1/0){return _u(RE.tag_type(t),e,r,s)}function _Ie(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var js;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(js||(js={}));function bH(t,e){let r=[],s=[];if(t===e)return 0;let n=ze(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=ze(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return js.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?js.FOLLOWING|js.CONTAINED_BY:js.FOLLOWING:a===t?js.PRECEDING|js.CONTAINS:js.PRECEDING}function ra(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=bH(e,r);return s&js.PRECEDING?-1:s&js.FOLLOWING?1:0}),t}function J1(t){let e=kE(VIe,t);return e?e.name==="feed"?GIe(e):YIe(e):null}function GIe(t){var e;let r=t.children,s={type:"atom",items:NA("entry",r).map(o=>{var a;let{children:A}=o,c={media:wH(A)};Kr(c,"id","id",A),Kr(c,"title","title",A);let u=(a=kE("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=sa("summary",A)||sa("content",A);l&&(c.descript Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ms=ce(Mo(),1);var ow={};function aw(t,e){return t===Ms.default.falseFunc?Ms.default.falseFunc:r=>e.isTag(r)&&t(r)}function Aw(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function iw(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var nw=(t,e,r,s,n)=>{let i=n(e,iw(r),s);return i===Ms.default.trueFunc?t:i===Ms.default.falseFunc?Ms.default.falseFunc:o=>i(o)&&t(o)},e0={is:nw,matches:nw,where:nw,not(t,e,r,s,n){let i=n(e,iw(r),s);return i===Ms.default.falseFunc?t:i===Ms.default.trueFunc?Ms.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=iw(r);o.relativeSelector=!0;let a=e.some(u=>u.some(hg))?[ow]:void 0,A=n(e,o,a);if(A===Ms.default.falseFunc)return Ms.default.falseFunc;let c=aw(A,i);if(a&&A!==Ms.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let g=i.getChildren(l),h=u?[...g,...Aw(l,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function _6(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in e0))throw new Error(`Unknown pseudo-class :${o}(${a})`);return e0[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:$p[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,O6.parse)(c);return e0.is(t,u,r,s,n)}if(typeof A=="function")return sw(A,o,a,1),u=>A(u,a)&&t(u);if(o in Cu)return Cu[o](t,a,r,s);if(o in mg){let u=mg[o];return sw(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Us=ce(pu(),1);function cw(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function H6(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Us.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Us.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Us.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),U6[e.action](t,e,r)}case Us.SelectorType.Pseudo:return _6(t,e,r,s,n);case Us.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Us.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=cw(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=cw(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=cw(c,i));return!1};case Us.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Us.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Us.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Us.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let g=c[l];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case Us.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function G6(t,e,r){let s=t0(t,e,r);return aw(s,e.adapter)}function t0(t,e,r){let s=typeof t=="string"?(0,Cn.parse)(t):t;return r0(s,e,r)}function Y6(t){return t.type===Cn.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Y6)))}var ZEe={type:Cn.SelectorType.Descendant},$Ee={type:"_flexibleDescendant"},eCe={type:Cn.SelectorType.Pseudo,name:"scope",data:null};function tCe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===ow||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(i_,`\r
`)}}).toArray()}var ww={};an(ww,{extract:()=>mIe});function fIe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function mIe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=fIe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Po=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Po.prototype.cheerio="[cheerio object]";Po.prototype.splice=Array.prototype.splice;Po.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Po.prototype,Z1,Bw,Qw,yw,bw,ww);function o_(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=iu(n),a=t(s,o,i,null);class A extends Po{_make(l,g){let h=c(l,g);return h.prevObject=this,h}_parse(l,g,h,f){return t(l,g,h,f)}_render(l){return e(l,this.options)}}function c(u,l,g=a,h){if(u&&ks(u))return u;let f=iu(h,o),p=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],y=ks(p)?p:new A(p,null,f);if(y._root=y,!u)return new A(void 0,y,f);let E=typeof u=="string"&&Ag(u)?t(u,f,!1,null).children:pIe(u)?[u]:Array.isArray(u)?u:void 0,b=new A(E,y,f);if(E)return b;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let N=u,x=l?typeof l=="string"?Ag(l)?new A([t(l,f,!1,null)],y,f):(N=`${l} ${N}`,y):ks(l)?l:new A(Array.isArray(l)?l:[l],y,f):y;return x?x.find(N):b}return Object.assign(c,q1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function pIe(t){return!!t.name||t.type===Ds.Root||t.type===Ds.Text||t.type===Ds.Comment}var EIe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ve="\uFFFD",C;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));var fr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function A0(t){return t>=55296&&t<=57343}function a_(t){return t>=56320&&t<=57343}function A_(t,e){return(t-55296)*1024+9216+e}function c0(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function u0(t){return t>=64976&&t<=65007||EIe.has(t)}var D;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword" Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var en=me(ia(),1);var AN={};function cN(t,e){return t===en.default.falseFunc?en.default.falseFunc:r=>e.isTag(r)&&t(r)}function uN(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function aN(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var oN=(t,e,r,s,n)=>{let i=n(e,aN(r),s);return i===en.default.trueFunc?t:i===en.default.falseFunc?en.default.falseFunc:o=>i(o)&&t(o)},JE={is:oN,matches:oN,where:oN,not(t,e,r,s,n){let i=n(e,aN(r),s);return i===en.default.falseFunc?t:i===en.default.trueFunc?en.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=aN(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Zg))?[AN]:void 0,A=n(e,o,a);if(A===en.default.falseFunc)return en.default.falseFunc;let c=cN(A,i);if(a&&A!==en.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let g=i.getChildren(l),h=u?[...g,...uN(l,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function g_(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in JE))throw new Error(`Unknown pseudo-class :${o}(${a})`);return JE[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:qE[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,d_.parse)(c);return JE.is(t,u,r,s,n)}if(typeof A=="function")return iN(A,o,a,1),u=>A(u,a)&&t(u);if(o in Xu)return Xu[o](t,a,r,s);if(o in eh){let u=eh[o];return iN(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var tn=me(zu(),1);function lN(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function h_(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case tn.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case tn.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case tn.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),A_[e.action](t,e,r)}case tn.SelectorType.Pseudo:return g_(t,e,r,s,n);case tn.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case tn.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=lN(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=lN(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=lN(c,i));return!1};case tn.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case tn.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case tn.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case tn.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let g=c[l];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case tn.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function f_(t,e,r){let s=VE(t,e,r);return cN(s,e.adapter)}function VE(t,e,r){let s=typeof t=="string"?(0,On.parse)(t):t;return WE(s,e,r)}function m_(t){return t.type===On.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(m_)))}var PBe={type:On.SelectorType.Descendant},vBe={type:"_flexibleDescendant"},OBe={type:On.SelectorType.Pseudo,name:"scope",data:null};function HBe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===AN||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(k_,`\r
`)}}).toArray()}var SN={};Sn(SN,{extract:()=>tye});function eye(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function tye(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=eye(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Aa=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Aa.prototype.cheerio="[cheerio object]";Aa.prototype.splice=Array.prototype.splice;Aa.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Aa.prototype,eN,yN,bN,wN,NN,SN);function F_(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Lu(n),a=t(s,o,i,null);class A extends Aa{_make(l,g){let h=c(l,g);return h.prevObject=this,h}_parse(l,g,h,f){return t(l,g,h,f)}_render(l){return e(l,this.options)}}function c(u,l,g=a,h){if(u&&Zs(u))return u;let f=Lu(h,o),m=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],B=Zs(m)?m:new A(m,null,f);if(B._root=B,!u)return new A(void 0,B,f);let E=typeof u=="string"&&Vg(u)?t(u,f,!1,null).children:rye(u)?[u]:Array.isArray(u)?u:void 0,b=new A(E,B,f);if(E)return b;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let S=u,R=l?typeof l=="string"?Vg(l)?new A([t(l,f,!1,null)],B,f):(S=`${l} ${S}`,B):Zs(l)?l:new A(Array.isArray(l)?l:[l],B,f):B;return R?R.find(S):b}return Object.assign(c,V1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function rye(t){return!!t.name||t.type===Ks.Root||t.type===Ks.Text||t.type===Ks.Comment}var sye=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),et="\uFFFD",I;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));var Dr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function $E(t){return t>=55296&&t<=57343}function M_(t){return t>=56320&&t<=57343}function U_(t,e){return(t-55296)*1024+9216+e}function e0(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function t0(t){return t>=64976&&t<=65007||sye.has(t)}var k;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword" Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},HC=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as Ave,existsSync as cve}from"fs";import{EOL as uve}from"os";var pl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(cve(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Ave(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${uve}`)}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=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"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 mx=ce(rK(),1),sK=ce(yp(),1),yve=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function nK(t){return new mx.HttpClient().getAgent(t)}function bve(t){return new mx.HttpClient().getAgentDispatcher(t)}function iK(t){let e=bve(t);return(s,n)=>yve(this,void 0,void 0,function*(){return(0,sK.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function oK(){return process.env.GITHUB_API_URL||"https://api.github.com"}function ga(){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>"}function zC(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>zC.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function aK(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function AK(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var cK=Function.bind,uK=cK.bind(cK);function lK(t,e,r){let s=uK(AK,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=uK(aK,null).apply(null,i)})}function Nve(){let t=Symbol("Singular"),e={registry:{}},r=zC.bind(null,e,t);return lK(r,e,t),r}function Sve(){let t={registry:{}},e=zC.bind(null,t);return lK(e,t),e}var dK={Singular:Nve,Collection:Sve};var Tve="0.0.0-development",Dve=`octokit-endpoint.js/${Tve} ${ga()}`,xve={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Dve},mediaType:{format:""}};function Rve(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function kve(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}function fK(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(s=>{kve(e[s])?s in t?r[s]=fK(t[s],e[s]):Object.assign(r,{[s]:e[s]}):Object.assign(r,{[s]:e[s]})}),r}function gK(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function Ex(t,e,r){if(typeof e=="string"){let[n,i]=e.split(" ");r=Object.assign(i?{method:n,url:i}:{url:n},r)}else r=Object.assign({},e);r.headers=Rve(r.headers),gK(r),gK(r.headers);let s=fK(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(s.mediaType.preLine truncated
`)}`}},FI=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as i4e,existsSync as o4e}from"fs";import{EOL as a4e}from"os";var zl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(o4e(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(i4e(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${a4e}`)}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=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"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 CR=me(TX(),1),xX=me(hE(),1),I4e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function RX(t){return new CR.HttpClient().getAgent(t)}function B4e(t){return new CR.HttpClient().getAgentDispatcher(t)}function kX(t){let e=B4e(t);return(s,n)=>I4e(this,void 0,void 0,function*(){return(0,xX.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function FX(){return process.env.GITHUB_API_URL||"https://api.github.com"}function La(){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>"}function HI(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>HI.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function MX(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function UX(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var LX=Function.bind,PX=LX.bind(LX);function vX(t,e,r){let s=PX(UX,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=PX(MX,null).apply(null,i)})}function y4e(){let t=Symbol("Singular"),e={registry:{}},r=HI.bind(null,e,t);return vX(r,e,t),r}function b4e(){let t={registry:{}},e=HI.bind(null,t);return vX(e,t),e}var OX={Singular:y4e,Collection:b4e};var w4e="0.0.0-development",N4e=`octokit-endpoint.js/${w4e} ${La()}`,S4e={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":N4e},mediaType:{format:""}};function D4e(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function T4e(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}function GX(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(s=>{T4e(e[s])?s in t?r[s]=GX(t[s],e[s]):Object.assign(r,{[s]:e[s]}):Object.assign(r,{[s]:e[s]})}),r}function HX(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function BR(t,e,r){if(typeof e=="string"){let[n,i]=e.split(" ");r=Object.assign(i?{method:n,url:i}:{url:n},r)}else r=Object.assign({},e);r.headers=D4e(r.headers),HX(r),HX(r.headers);let s=GX(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(s.mediaType.preLine truncated
`+s.repeat(l));let B=f.val[f.index],E=o(f.val,String(f.index),B);if(NR(E))u.push("null"),f.first=!1,f.index++;else{let b=E!==null&&typeof E=="object",S=SR(E);if(b&&!S){if(h.has(E))throw new TypeError("Converting circular structure to JSON");h.add(E),g.push({parent:f.val,key:String(f.index),val:E,isArray:Array.isArray(E),keys:Array.isArray(E)?null:Object.keys(E),index:0,first:!0}),f.first=!1,f.index++}else u.push(Pa(E)),f.first=!1,f.index++}}else m=!0;else{for(;f.index<f.keys.length;){let E=f.keys[f.index++];if(i&&!i.has(E))continue;let S=f.val[E],R=o(f.val,E,S);if(NR(R))continue;f.first||u.push(","),s?u.push(`
`+s.repeat(l)+Pa(E)+": "):u.push(Pa(E)+":");let F=R!==null&&typeof R=="object",O=SR(R);if(F&&!O){if(h.has(R))throw new TypeError("Converting circular structure to JSON");h.add(R),g.push({parent:f.val,key:E,val:R,isArray:Array.isArray(R),keys:Array.isArray(R)?null:Object.keys(R),index:0,first:!0}),f.first=!1;break}else u.push(Pa(R)),f.first=!1}f.index>=f.keys.length&&g[g.length-1]===f&&(m=!0)}m&&(l--,!f.first&&s&&u.push(`
`+s.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),g.pop())}return u.join("")},nj=(t,e,r)=>{try{return"rawJSON"in JSON?Pa(t,(a,A)=>typeof A=="bigint"?JSON.rawJSON(A.toString()):typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r):t?Pa(t,(a,A)=>typeof A=="string"&&GI.test(A)||typeof A=="bigint"?A.toString()+"n":typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r).replace($X,"$1$2$3").replace(ej,"$1$2$3"):Pa(t,e,r)}catch(s){if(s instanceof RangeError){let n=Y4e(t,e,r);return n===void 0?void 0:"rawJSON"in JSON?n:n.replace($X,"$1$2$3").replace(ej,"$1$2$3")}throw s}},_I=new Map,q4e=()=>{let t=JSON.parse.toString();if(_I.has(t))return _I.get(t);try{let e=JSON.parse("1",(r,s,n)=>!!n?.source&&n.source==="1");return _I.set(t,e),e}catch{return _I.set(t,!1),!1}},J4e=(t,e,r,s)=>typeof e=="string"&&sj.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&GI.test(e)?e.slice(0,-1):typeof s=="function"?s(t,e,r):e,V4e=(t,e)=>JSON.parse(t,(r,s,n)=>{let i=typeof s=="number",o=s>Number.MAX_SAFE_INTEGER||s<Number.MIN_SAFE_INTEGER,a=i&&o,A=n&&G4e.test(n.source);return a&&A?BigInt(n.source):typeof e=="function"?e(r,s,n):s}),ij=Number.MAX_SAFE_INTEGER.toString(),tj=ij.length,W4e=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,z4e=/^"-?\d+n+"$/,K4e=(t,e)=>{let r={"":t},s=[{parent:r,key:"",visited:!1}];for(;s.length>0;){let n=s[s.length-1];if(n.visited){let{parent:i,key:o}=n,a=i[o];typeof a=="string"&&(sj.test(a)?a=BigInt(a.slice(0,-1)):GI.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,s.pop()}else{n.visited=!0;let i=n.parent[n.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let A=a.length-1;A>=0;A--)s.push({parent:i,key:a[A],visited:!1})}}}return r[""]},rj=t=>t.replace(W4e,(e,r,s,n)=>{let i=e[0]==='"';if(i&&z4e.test(e))return e.substring(0,e.length-1)+'n"';let a=s||n,A=r&&(r.length<tj||r.length===tj&&r<=ij);return i||a||A?e:'"'+e+'n"'}),oj=(t,e)=>{if(!t)return wR(t,e);try{if(q4e())return V4e(t,e);let r=rj(t);return wR(r,(s,n,i)=>J4e(s,n,i,e))}catch(r){if(r instanceof RangeError){let s=rj(t),n=wR(s);return K4e(n,e)}throw r}};var yc=class extends Error{name;status;request;response;constructor(e,r,s){super(e,{cause:s.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in s&&(this.response=s.response);let n=Object.assign({},s.request);s.request.headers.authorization&&(n.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=n}};var X4e="10.0.16",j4e={headers:{"user-agent":`octokit-request.js/${X4e} ${La()}`}};function Z4e(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var aj=()=>"";async function Aj(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,s=t.request?.parseSuccessResponseBody!==!1,n=Z4e(t.body)||Array.isArray(t.body)?nj(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,g])=>[l,String(g)])),o;try{o=await e(t.url,{method:t.method,body:n,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let g="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;g=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?g=l.cause.message:typeof l.cause=="string"&&(g=l.cause))}let h=new yc(g,500,{request:t});throw h.cause=l,h}let a=o.status,A=o.url,c={};for(let[l,g]of o.headers)c[l]=g;let u={url:A,status:a,headers:c,data:""};if("deprecation"in c){let l=c.link&&c.link.match(/<([^<>]+)>; rel="deprecation"/),g=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${c.sunset}${g?`. See ${g}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new yc(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await DR(o),new yc("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await DR(o),new yc(eOe(u.data),a,{response:u,request:t});return u.data=s?await DR(o):o.body,u}async function DR(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(aj);let r=KX(e);if($4e(r)){let s="";try{return s=await t.text(),oj(s)}catch{return s}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet-stream"?t.text().catch( Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var d3e=class extends Error{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},g3e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],h3e=["query","method","url"],LK=/\/api\/v3\/?$/;function f3e(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(h3e.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,n=Object.keys(s).reduce((o,a)=>g3e.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return LK.test(i)&&(n.url=i.replace(LK,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new d3e(n,a,o.data)}return o.data.data})}function wx(t,e){let r=t.defaults(e);return Object.assign((n,i)=>f3e(r,n,i),{defaults:wx.bind(null,r),endpoint:r.endpoint})}var aet=wx(Yh,{headers:{"user-agent":`octokit-graphql.js/${u3e} ${ga()}`},method:"POST",url:"/graphql"});function PK(t){return wx(t,{method:"POST",url:"/graphql"})}var Nx="(?:[a-zA-Z0-9_-]+)",vK="\\.",OK=new RegExp(`^${Nx}${vK}${Nx}${vK}${Nx}$`),m3e=OK.test.bind(OK);async function p3e(t){let e=m3e(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 E3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function C3e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=E3e(t),e(n)}var _K=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(p3e.bind(null,e),{hook:C3e.bind(null,e)})};var Sx="7.0.6";var HK=()=>{},I3e=console.warn.bind(console),B3e=console.error.bind(console);function Q3e(t={}){return typeof t.debug!="function"&&(t.debug=HK),typeof t.info!="function"&&(t.info=HK),typeof t.warn!="function"&&(t.warn=I3e),typeof t.error!="function"&&(t.error=B3e),t}var GK=`octokit-core.js/${Sx} ${ga()}`,jC=class{static VERSION=Sx;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new dK.Collection,s={baseUrl:Yh.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} ${GK}`:GK,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Yh.defaults(s),this.graphql=PK(this.request).defaults(s),this.log=Q3e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(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 i=_K(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var Tx="17.0.0";var y3e={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}"],createOrgVariable:["POST /orgs/{or 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"}};qI.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var VI=class extends Error{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"}};VI.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var nGe=ce(ase(),1);var tne=ce(zse(),1),It=ce(Ct(),1),Qs=ce(Ct(),1),ic=ce(Ct(),1),oc=ce(Ct(),1),ac=ce(Ct(),1);var EF=ce(Ct(),1),CF=ce(Ct(),1),Zse=ce(Ct(),1),$se=ce(Ct(),1),ene=ce(Ct(),1);var fF=ce(Ct(),1),mF=ce(Ct(),1),Kse=ce(Ct(),1),Xse=ce(Ct(),1),jse=ce(Ct(),1),pF=class extends jse.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,Xse.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Kse.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?mF.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,fF.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,fF.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?mF.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},xB=new pF;var IF=class extends ene.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:()=>xB}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,$se.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Zse.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(xB.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?CF.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,EF.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)xB.internalBinaryWrite(e.scope[i],r.tag(2,EF.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?CF.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},fi=new IF;var BF=class extends ac.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>fi},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,oc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ic.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.metadata=fi.internalBinaryRead(e,e.uint32(),s,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Qs.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&fi.internalBinaryWrite(e.metadata,r.tag(1,It.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,It.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,It.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Qs.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},rne=new BF,QF=class extends ac.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,oc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ic.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Qs.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,It.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;Qqe.push(s),Ui(s)}function cne(t=!0){if(Ane.length>0){Do(`This job uses deprecated functionality from the '${RB()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of Ane)er(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var lne="GRADLE_ACTION_ID";var une=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return gne("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return dr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return dr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return kB("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return kB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return kB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return kB("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new xF}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",s=this.getTermsOfUseAgree()==="yes";return e||r&&s}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Do("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},xF=class{getUrl(){return DF("gradle-plugin-repository-url")}getUsername(){return DF("gradle-plugin-repository-username")}getPassword(){return DF("gradle-plugin-repository-password")}};function RB(){return process.env[lne]}function dne(t){yO(lne,t)}function DF(t){let e=dr(t);if(e.length>0)return e}function gne(t,e=!1){let r=dr(t);switch(r.toLowerCase().trim()){case"":return e;case"false":return!1;case"true":return!0}throw TypeError(`The value '${r} is not valid for '${t}. Valid values are: [true, false]`)}function kB(t){if(dr(t)!=="")return gne(t)}var RF=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function hne(t){if(t instanceof AggregateError){Ui("Multiple errors returned");for(let e of t.errors)wp(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&er(e.stack)}else t instanceof RF?(Ui(String(t)),t.stack&&er(t.stack)):(Ui(String(t)),t instanceof Error&&t.stack&&er(t.stack))}async function bqe(){try{RB()==="gradle/wrapper-validation-action"&&TF("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),dne("gradle/actions/wrapper-validation");let t=await jz(fne.resolve("."),dr("allow-snapshots")==="true",dr("allow-checksums").split(","));if(t.isValid()){er(t.toDisplayString());let e=+dr("min-wrapper-count");if(t.valid.length<e){let r=t.valid.length===0?"Wrapper validation failed: no Gradle Wrapper jars found. Did you forget to checkout the repository?":`Wrapper validation failed: expected at least ${e} Gradle Wrapper jars, but found ${t.valid.length}.`;Ui(r)}}else Ui(`At least one Gradle Wrapper Jar failed validation!
`)}var sOe=class extends Error{constructor(t,e,r){super(rOe(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)}request;headers;response;name="GraphqlResponseError";errors;data},nOe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],iOe=["query","method","url"],cj=/\/api\/v3\/?$/;function oOe(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(iOe.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,n=Object.keys(s).reduce((o,a)=>nOe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return cj.test(i)&&(n.url=i.replace(cj,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new sOe(n,a,o.data)}return o.data.data})}function xR(t,e){let r=t.defaults(e);return Object.assign((n,i)=>oOe(r,n,i),{defaults:xR.bind(null,r),endpoint:r.endpoint})}var Cnt=xR(Tf,{headers:{"user-agent":`octokit-graphql.js/${tOe} ${La()}`},method:"POST",url:"/graphql"});function uj(t){return xR(t,{method:"POST",url:"/graphql"})}var RR="(?:[a-zA-Z0-9_-]+)",lj="\\.",dj=new RegExp(`^${RR}${lj}${RR}${lj}${RR}$`),aOe=dj.test.bind(dj);async function AOe(t){let e=aOe(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 cOe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function uOe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=cOe(t),e(n)}var gj=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(AOe.bind(null,e),{hook:uOe.bind(null,e)})};var kR="7.0.8";var hj=()=>{},lOe=console.warn.bind(console),dOe=console.error.bind(console);function gOe(t={}){return typeof t.debug!="function"&&(t.debug=hj),typeof t.info!="function"&&(t.info=hj),typeof t.warn!="function"&&(t.warn=lOe),typeof t.error!="function"&&(t.error=dOe),t}var fj=`octokit-core.js/${kR} ${La()}`,YI=class{static VERSION=kR;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new OX.Collection,s={baseUrl:Tf.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} ${fj}`:fj,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Tf.defaults(s),this.graphql=uj(this.request).defaults(s),this.log=gOe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(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 i=gj(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var FR="17.0.0";var hOe={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}"],createOrg 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"}};LB.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var PB=class extends Error{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"}};PB.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var vJe=me(Gne(),1);var Lie=me(Tie(),1),xt=me(Tt(),1),Os=me(Tt(),1),Mc=me(Tt(),1),Uc=me(Tt(),1),Lc=me(Tt(),1);var LM=me(Tt(),1),PM=me(Tt(),1),Fie=me(Tt(),1),Mie=me(Tt(),1),Uie=me(Tt(),1);var FM=me(Tt(),1),MM=me(Tt(),1),xie=me(Tt(),1),Rie=me(Tt(),1),kie=me(Tt(),1),UM=class extends kie.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,Rie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,xie.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?MM.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,FM.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,FM.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?MM.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},QQ=new UM;var vM=class extends Uie.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:()=>QQ}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Mie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Fie.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(QQ.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?PM.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,LM.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)QQ.internalBinaryWrite(e.scope[i],r.tag(2,LM.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?PM.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Ui=new vM;var OM=class extends Lc.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>Ui},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,Uc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Mc.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.metadata=Ui.internalBinaryRead(e,e.uint32(),s,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Os.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&Ui.internalBinaryWrite(e.metadata,r.tag(1,xt.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,xt.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,xt.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Os.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Pie=new OM,HM=class extends Lc.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,Uc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Mc.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Os.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,xt.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;sWe.push(s),no(s)}function qie(t=!0){if(Yie.length>0){ea(`This job uses deprecated functionality from the '${yQ()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of Yie)ur(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var Vie="GRADLE_ACTION_ID";var Jie=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return zie("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Nr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Nr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Nr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Nr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return bQ("develocity-injection-enabled")}getDevelocityUrl(){return Nr("develocity-url")}getDevelocityAllowUntrustedServer(){return bQ("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return bQ("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return bQ("develocity-enforce-url")}getDevelocityPluginVersion(){return Nr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Nr("develocity-ccud-plugin-version")}getPluginRepository(){return new zM}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",s=this.getTermsOfUseAgree()==="yes";return e||r&&s}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(ea("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},zM=class{getUrl(){return WM("gradle-plugin-repository-url")}getUsername(){return WM("gradle-plugin-repository-username")}getPassword(){return WM("gradle-plugin-repository-password")}};function yQ(){return process.env[Vie]}function Wie(t){X6(Vie,t)}function WM(t){let e=Nr(t);if(e.length>0)return e}function zie(t,e=!1){let r=Nr(t);switch(r.toLowerCase().trim()){case"":return e;case"false":return!1;case"true":return!0}throw TypeError(`The value '${r} is not valid for '${t}. Valid values are: [true, false]`)}function bQ(t){if(Nr(t)!=="")return zie(t)}var KM=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function Kie(t){if(t instanceof AggregateError){no("Multiple errors returned");for(let e of t.errors)mE(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&ur(e.stack)}else t instanceof KM?(no(String(t)),t.stack&&ur(t.stack)):(no(String(t)),t instanceof Error&&t.stack&&ur(t.stack))}async function iWe(){try{yQ()==="gradle/wrapper-validation-action"&&VM("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),Wie("gradle/actions/wrapper-validation");let t=await bX(Xie.resolve("."),Nr("allow-snapshots")==="true",Nr("allow-checksums").split(","));if(t.isValid()){ur(t.toDisplayString());let e=+Nr("min-wrapper-count");if(t.valid.length<e){let r=t.valid.length===0?"Wrapper validation failed: no Gradle Wrapper jars found. Did you forget to checkout the repository?":`Wrapper validation failed: expected at least ${e} Gradle Wrapper jars, but found ${t.valid.length}.`;no(r)}}else no(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${t.toDisplayString()}`),t.invalid.length>0&&bO("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);cne(!1)}catch(t){hne(t)}}bqe();export{bqe as run};
${t.toDisplayString()}`),t.invalid.length>0&&j6("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);qie(!1)}catch(t){Kie(t)}}iWe();export{iWe as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -238,5 +240,8 @@ content-type/dist/index.js:
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
@octokit/graphql/dist-bundle/index.js:
(* v8 ignore if -- @preserve *)
*/
//# sourceMappingURL=index.js.map
+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.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": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,SAALine 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.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": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,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,SAALine 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
}
+51 -2
View File
@@ -133,6 +133,7 @@ You choose which provider to use via the `cache-provider` input:
- **`enhanced`** (default): Uses the full-featured commercial `gradle-actions-caching` library. Provides advanced features like fine-grained cache entries, intelligent cache cleanup, and deduplication. See [Enhanced Caching](#enhanced-caching) for details.
- **`basic`**: A fully open-source (MIT) caching implementation built on the standard GitHub Actions cache (`@actions/cache`). Uses the same caching strategy as `actions/setup-java` with `cache: gradle`. See [Basic Caching](#basic-caching) for details.
- **`external`**: Disables Gradle User Home caching by this action, for use when another mechanism already saves and restores Gradle User Home. See [Using an external cache provider](#using-an-external-cache-provider) for details.
```yaml
# Use the open-source basic cache provider
@@ -185,7 +186,17 @@ Specifically:
- Avoid using `actions/cache` configured to cache the Gradle User Home, [as described in this example](https://github.com/actions/cache/blob/main/examples.md#java---gradle).
- Avoid using `actions/setup-java` with the `cache: gradle` option, [as described here](https://github.com/actions/setup-java#caching-gradle-dependencies).
Using either of these mechanisms may interfere with the caching provided by this action. If you choose to use a different mechanism to save and restore the Gradle User Home, you should disable the caching provided by this action, as described above.
Using either of these mechanisms may interfere with the caching provided by this action. If you choose to use a different mechanism to save and restore the Gradle User Home, you should disable the caching provided by this action, as described above, or [use `cache-provider: external`](#using-an-external-cache-provider) if that mechanism is a dedicated Gradle User Home cache.
#### Using an external cache provider
If Gradle User Home is already saved and restored by another mechanism — for example the [Develocity Artifact Cache](https://github.com/gradle/actions-caching) — set `cache-provider: external` rather than `cache-disabled: true`.
Both settings stop `setup-gradle` from restoring or saving Gradle User Home, but `cache-provider: external` reflects the actual reason: caching is still happening, just not through this action. It also updates the Job Summary to say that caching was handled externally, rather than implying that caching was turned off.
```yaml
cache-provider: external
```
## Enhanced Caching
@@ -507,6 +518,30 @@ so that a Job Summary is never generated, or so that a Job Summary is only gener
add-job-summary: 'on-failure' # Valid values are 'always' (default), 'never', and 'on-failure'
```
### Gradle version support status
The Job Summary reports the support status of each Gradle version used in the workflow, and the action adds a
Job annotation for any version that is no longer current. The latest Gradle release is determined from release data
bundled with the action, so no network access is required.
A version is reported when it is:
- **End-of-life** — two or more major versions behind the latest release. Each such version is marked with :warning:
in the build results table, a single expandable section below the table explains that the affected release lines
receive no further fixes (security fixes included), and a warning annotation is added to the Job for each version.
If you cannot upgrade, the [Gradle Security Subscription](https://gradle.org/security-subscription/) offers
continued support for older versions.
- **Out of date** — one major version behind the latest release, or more than two minor versions behind on the current
major. The version is marked with :information_source: in the build results table and a notice annotation is added to
the Job. Note that a version one major behind is still in "maintenance only" support and receives critical bug fixes
and security fixes; an older minor of the current major has simply been superseded. See
[Gradle release lifecycle](https://docs.gradle.org/current/userguide/feature_lifecycle.html#eol_support) for details.
Patch releases are not reported: only the major and minor version are considered. Release candidates, milestones and
snapshots are never reported, so testing against a pre-release build will not produce annotations.
Note that these annotations are always emitted, independent of the `add-job-summary` setting. Setting
`add-job-summary: 'never'` suppresses the Job Summary itself, but the warning and notice annotations remain.
### Excluding specific Gradle builds from Job Summary
The Job Summary works by installing an init-script in Gradle User Home which will record details of any Gradle execution during the workflow.
@@ -921,7 +956,7 @@ Here's a minimal example:
run: ./gradlew build
```
This configuration will automatically apply `v4.5.0` of the [Develocity Gradle plugin](https://docs.gradle.com/develocity/gradle-plugin/), and publish build scans to https://develocity.your-server.com.
This configuration will automatically apply `v4.6.1` of the [Develocity Gradle plugin](https://docs.gradle.com/develocity/gradle-plugin/), and publish build scans to https://develocity.your-server.com.
This example assumes that the `develocity.your-server.com` server allows anonymous publishing of build scans.
In the likely scenario that your Develocity server requires authentication, you will also need to pass a valid [Develocity access key](https://docs.gradle.com/develocity/gradle-plugin/#via_environment_variable) taken from a secret:
@@ -1005,5 +1040,19 @@ Each of the plugins is signed by Gradle, and you can simply add the following sn
<trusting group="com.gradle"/>
<trusting group="org.gradle"/>
</trusted-key>
<trusted-key id="E2879931BCA1A42E55F2D64DD9B2DFBD9F3298BA">
<trusting group="org.gradle"/>
</trusted-key>
</trusted-keys>
```
Two keys are listed because Gradle has rotated its signing key, and the plugins applied by these actions
are not all signed with the same one:
- `E2879931BCA1A42E55F2D64DD9B2DFBD9F3298BA` is the current signing subkey. The
`github-dependency-graph-gradle-plugin` used for Dependency Graph generation is signed with it from
version `1.5.0` onward.
- `7B79ADD11F8A779FE90FD3D0893A028475557671` is the older key, which has since been revoked. It is still
required: the Develocity Gradle plugin (`com.gradle`) is signed with it, as are `org.gradle` plugin
versions released before the rotation.
Keep both entries unless you pin plugin versions and have confirmed which key each one uses.
+1 -1
View File
@@ -111,7 +111,7 @@ we highly recommend that you reach out to us at [security@gradle.com](mailto:sec
#### Unverifiable Wrapper Jars
Wrapper Jars generated by Gradle versions `3.3` to `4.0` are not verifiable because those files were dynamically generated by Gradle in a non-reproducible way. It's not possible to verify the `gradle-wrapper.jar` for those versions are legitimate using a hash comparison. If you have a validation failure, you should try to determine if the `gradle-wrapper.jar` was generated by one of these versions before running the build.
- If the Gradle version in `gradle-wrapper.properties` is outside of this range, you can regenerate the `gradle-wrapper.jar` by running `./gradlew wrapper`. This will generate a new, verifiable wrapper jar.
- If the Gradle version in `gradle-wrapper.properties` is outside of this range, you can regenerate the `gradle-wrapper.jar` by running `./gradlew :wrapper`. This will generate a new, verifiable wrapper jar.
- If you need to run your build with a version of Gradle between 3.3 and 4.0, you can use a newer version of Gradle to generate the `gradle-wrapper.jar`.
#### Wrapper Jar stored with Git LFS
+1
View File
@@ -14,6 +14,7 @@ inputs:
Specifies the caching implementation to use.
'enhanced' (default) uses the full-featured commercial caching service (gradle-actions-caching).
'basic' uses a simple open-source caching implementation based on GitHub Actions cache.
'external' disables Gradle User Home caching by this action, for use when Gradle User Home is already saved and restored by another mechanism (e.g. Develocity Artifact Cache).
required: false
default: 'enhanced'
+1 -1
View File
@@ -2,7 +2,7 @@ const { fromPropertiesFile, inGradleUserHome } = require('@gradle-tech/develocit
module.exports = {
server: {
url: 'https://ge.solutions-team.gradle.com/',
url: 'https://solutions.develocity.cloud/',
accessKey: fromPropertiesFile(inGradleUserHome())
},
}
+2354 -1400
View File
File diff suppressed because it is too large. Load diff
+11 -13
View File
@@ -35,8 +35,8 @@
"node": ">=24.0.0"
},
"dependencies": {
"@actions/artifact": "6.2.1",
"@actions/cache": "6.2.0",
"@actions/artifact": "6.3.1",
"@actions/cache": "6.3.0",
"@actions/core": "3.0.1",
"@actions/exec": "3.0.0",
"@actions/github": "9.1.1",
@@ -45,28 +45,26 @@
"@actions/tool-cache": "4.0.0",
"@octokit/webhooks-types": "7.6.1",
"cheerio": "1.2.0",
"semver": "7.8.5",
"string-argv": "0.3.2",
"string-argv": "0.4.0",
"unhomoglyph": "1.0.6",
"which": "7.0.0"
},
"devDependencies": {
"@jest/globals": "30.4.1",
"@types/jest": "30.0.0",
"@types/node": "24.13.3",
"@types/semver": "7.7.1",
"@types/node": "24.19.2",
"@types/unzipper": "0.10.11",
"@types/which": "3.0.4",
"@typescript-eslint/eslint-plugin": "8.65.0",
"@typescript-eslint/eslint-plugin": "8.72.0",
"dedent": "1.7.2",
"esbuild": "0.28.1",
"eslint": "10.8.0",
"globals": "17.8.0",
"esbuild": "0.28.2",
"eslint": "10.13.0",
"globals": "17.13.0",
"jest": "30.4.2",
"nock": "14.0.17",
"nock": "15.0.4",
"npm-run-all": "4.1.5",
"prettier": "3.9.6",
"ts-jest": "29.4.12",
"prettier": "3.9.10",
"ts-jest": "29.4.15",
"typescript": "6.0.3"
}
}
+14 -5
View File
@@ -5,14 +5,18 @@ import {pathToFileURL} from 'url'
import {CacheConfig, CacheProvider} from './configuration'
import {BasicCacheService} from './cache-service-basic'
import {BuildResult} from './build-results'
import {CacheOptions, CacheReport, CacheService} from './cache-service'
import {CacheOptions, CacheReport, CacheService, CacheStatus} from './cache-service'
import {ProviderNote} from './caching-report'
const ENHANCED_CACHE_MESSAGE = `Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.`
const BASIC_CACHE_MESSAGE = `Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.`
const EXTERNAL_CACHE_MESSAGE = `External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.`
class NoOpCacheService implements CacheService {
constructor(private readonly status: CacheStatus) {}
async restore(_gradleUserHome: string, _cacheOptions: CacheOptions): Promise<void> {
return
}
@@ -22,14 +26,19 @@ class NoOpCacheService implements CacheService {
_buildResults: BuildResult[],
_cacheOptions: CacheOptions
): Promise<CacheReport> {
return {status: 'disabled', entries: []}
return {status: this.status, entries: []}
}
}
export async function getCacheService(cacheConfig: CacheConfig): Promise<CacheService> {
if (cacheConfig.getCacheProvider() === CacheProvider.External) {
logCacheMessage(EXTERNAL_CACHE_MESSAGE)
return new NoOpCacheService('external')
}
if (cacheConfig.isCacheDisabled()) {
logCacheMessage('Cache is disabled: will not restore state from previous builds.')
return new NoOpCacheService()
return new NoOpCacheService('disabled')
}
if (cacheConfig.getCacheProvider() === CacheProvider.Basic) {
@@ -43,10 +52,10 @@ export async function getCacheService(cacheConfig: CacheConfig): Promise<CacheSe
/**
* Identifies the caching provider for the Job Summary. Returns `undefined` when
* caching is disabled, since no provider is engaged in that case.
* caching is disabled or managed externally, since no provider is engaged in that case.
*/
export function getProviderNote(cacheConfig: CacheConfig): ProviderNote | undefined {
if (cacheConfig.isCacheDisabled()) {
if (cacheConfig.isCacheDisabled() || cacheConfig.getCacheProvider() === CacheProvider.External) {
return undefined
}
return cacheConfig.getCacheProvider() === CacheProvider.Basic ? {kind: 'basic'} : {kind: 'enhanced'}
+12 -2
View File
@@ -15,10 +15,20 @@ export interface CacheOptions {
}
export type CacheStatus =
'enabled' | 'read-only' | 'write-only' | 'disabled' | 'disabled-existing-home' | 'not-available'
| 'enabled' // Gradle User Home was restored from and saved to the cache
| 'read-only' // restored from the cache, but not saved
| 'write-only' // saved to the cache, but not restored
| 'disabled' // caching was turned off via the cache-disabled parameter
| 'disabled-existing-home' // a pre-existing Gradle User Home was found, so caching was skipped
| 'not-available' // the GitHub Actions cache service could not be reached
| 'external' // Gradle User Home is cached by an external provider, not by this action
export type CacheCleanupStatus =
'enabled' | 'disabled-param' | 'disabled-failure' | 'disabled-config-cache-hit' | 'disabled-readonly'
| 'enabled' // stale files were purged from Gradle User Home before saving
| 'disabled-param' // disabled via action parameter
| 'disabled-failure' // skipped due to a build failure
| 'disabled-config-cache-hit' // skipped due to configuration-cache reuse
| 'disabled-readonly' // always disabled when the cache is read-only
export type ProjectCacheStatus =
| 'not-enabled' // the hidden opt-in env var was not set (rendered as nothing)
+9 -2
View File
@@ -17,7 +17,8 @@ const STATUS_COPY: Record<CacheStatus, string> = {
'write-only': `[Cache was write-only](${DOCS}#using-the-cache-write-only) — Gradle User Home was not restored from the cache.`,
disabled: `[Caching was disabled](${DOCS}#disabling-caching) — Gradle User Home was not restored from or saved to the cache.`,
'disabled-existing-home': `⚠️ [Caching was skipped](${DOCS}#overwriting-an-existing-gradle-user-home) — a pre-existing Gradle User Home was found, so the cache was not restored or saved.`,
'not-available': `Caching is not available — the GitHub Actions cache service could not be reached, so Gradle User Home was not restored or saved.`
'not-available': `Caching is not available — the GitHub Actions cache service could not be reached, so Gradle User Home was not restored or saved.`,
external: `[Gradle User Home is cached externally](${DOCS}#using-an-external-cache-provider) — this action did not restore or save the Gradle User Home.`
}
const CLEANUP_COPY: Record<CacheCleanupStatus, string> = {
@@ -63,7 +64,13 @@ function isActive(status: CacheStatus): boolean {
function renderHeading(status: CacheStatus, providerNote?: ProviderNote): string {
if (!isActive(status)) {
const label =
status === 'disabled-existing-home' ? 'Skipped' : status === 'not-available' ? 'Unavailable' : 'Disabled'
status === 'disabled-existing-home'
? 'Skipped'
: status === 'not-available'
? 'Unavailable'
: status === 'external'
? 'External'
: 'Disabled'
return `<h4>Gradle State Caching - ${label}</h4>`
}
+7 -2
View File
@@ -175,14 +175,19 @@ export class CacheConfig {
case 'enhanced':
case '':
return CacheProvider.Enhanced
case 'external':
return CacheProvider.External
}
throw TypeError(`The value '${val}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)
throw TypeError(
`The value '${val}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`
)
}
}
export enum CacheProvider {
Basic = 'basic',
Enhanced = 'enhanced'
Enhanced = 'enhanced',
External = 'external'
}
export enum CacheCleanupOption {
+1 -1
View File
@@ -33,7 +33,7 @@ export function setup(config: DevelocityConfig): void {
// except if they are defined in the configuration
if (config.getBuildScanPublishEnabled()) {
maybeExportVariable('DEVELOCITY_INJECTION_ENABLED', 'true')
maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.5.0')
maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.6.1')
maybeExportVariable('DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION', '2.1')
maybeExportVariable('DEVELOCITY_INJECTION_TERMS_OF_USE_URL', config.getTermsOfUseUrl())
maybeExportVariable('DEVELOCITY_INJECTION_TERMS_OF_USE_AGREE', config.getTermsOfUseAgree())
+52 -11
View File
@@ -147,7 +147,6 @@ type HostnameAccessKey = {
}
export class DevelocityAccessCredentials {
static readonly accessKeyRegexp = /^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/
readonly keys: HostnameAccessKey[]
private constructor(allKeys: HostnameAccessKey[]) {
@@ -160,17 +159,63 @@ export class DevelocityAccessCredentials {
private static readonly keyDelimiter = ';'
private static readonly hostDelimiter = '='
private static readonly whitespace = /\s/
/**
* Parse a `host=key[;host=key]*` access key value.
*
* Only the structure needed to split the value is validated: entries are separated by `;`, and
* each entry is a hostname followed by `=` and a key, where the hostname contains no `=`, `;` or
* whitespace, and the key is non-empty and contains no `;` or whitespace. Nothing else is
* assumed about the key: it may be an OIDC token containing `.`, `-`, `_` and `=` padding, so
* each entry is split on its _first_ `=` only.
*
* Returns `null` if the value doesn't match, emitting a warning that describes what is wrong.
*/
static parse(rawKey: string): DevelocityAccessCredentials | null {
if (!this.isValid(rawKey)) {
const trimmedKey = rawKey.trim()
if (!trimmedKey) {
return null
}
return new DevelocityAccessCredentials(
rawKey.split(this.keyDelimiter).map(hostKey => {
const pair = hostKey.split(this.hostDelimiter)
return {hostname: pair[0], key: pair[1]}
})
const keys = new Array<HostnameAccessKey>()
const entries = trimmedKey.split(this.keyDelimiter)
for (const [index, entry] of entries.entries()) {
const separatorIndex = entry.indexOf(this.hostDelimiter)
if (separatorIndex === -1) {
return this.warnBadlyFormed(index, entries.length, `no '${this.hostDelimiter}' separator`)
}
const hostname = entry.substring(0, separatorIndex)
const key = entry.substring(separatorIndex + 1)
if (!hostname) {
return this.warnBadlyFormed(index, entries.length, 'empty server name')
}
if (!key) {
return this.warnBadlyFormed(index, entries.length, 'empty key')
}
if (this.whitespace.test(hostname)) {
return this.warnBadlyFormed(index, entries.length, 'whitespace in the server name')
}
if (this.whitespace.test(key)) {
return this.warnBadlyFormed(index, entries.length, 'whitespace in the key')
}
keys.push({hostname, key})
}
return new DevelocityAccessCredentials(keys)
}
/**
* Warn that an access key value is badly formed and cannot be parsed. Reports only the position
* of the offending entry and the reason: the value is a secret, and is not yet registered for
* masking at this point, so no part of it is ever included in the message.
*/
private static warnBadlyFormed(index: number, entryCount: number, reason: string): null {
const location = entryCount > 1 ? `entry ${index + 1} of ${entryCount}` : 'the value'
core.warning(
`Ignoring badly formed Develocity access key: ${reason} in ${location}. ` +
`The expected format is 'server${this.hostDelimiter}key` +
`[${this.keyDelimiter}server${this.hostDelimiter}key]*'.`
)
return null
}
isEmpty(): boolean {
@@ -182,10 +227,6 @@ export class DevelocityAccessCredentials {
.map(k => `${k.hostname}${DevelocityAccessCredentials.hostDelimiter}${k.key}`)
.join(DevelocityAccessCredentials.keyDelimiter)
}
private static isValid(allKeys: string): boolean {
return this.accessKeyRegexp.test(allKeys)
}
}
/**
-62
View File
@@ -2,7 +2,6 @@ import * as core from '@actions/core'
import * as exec from '@actions/exec'
import which from 'which'
import * as semver from 'semver'
import * as provisioner from './provision'
import * as gradlew from './gradlew'
@@ -34,48 +33,6 @@ async function executeGradleBuild(executable: string | undefined, root: string,
}
}
export function versionIsAtLeast(actualVersion: string, requiredVersion: string): boolean {
if (actualVersion === requiredVersion) {
return true
}
const actual = new GradleVersion(actualVersion)
const required = new GradleVersion(requiredVersion)
const actualSemver = semver.coerce(actual.versionPart)!
const comparisonSemver = semver.coerce(required.versionPart)!
if (semver.gt(actualSemver, comparisonSemver)) {
return true // Actual version is greater than comparison. So it's at least as new.
}
if (semver.lt(actualSemver, comparisonSemver)) {
return false // Actual version is less than comparison. So it's not as new.
}
// Actual and required version numbers are equal, so compare the other parts
if (actual.snapshotPart || required.snapshotPart) {
if (actual.snapshotPart && !required.snapshotPart && !required.stagePart) {
return false // Actual has a snapshot, but required is a plain version. Required is newer.
}
if (required.snapshotPart && !actual.snapshotPart && !actual.stagePart) {
return true // Required has a snapshot, but actual is a plain version. Actual is newer.
}
return false // Cannot compare case where both versions have a snapshot or stage
}
if (actual.stagePart) {
if (required.stagePart) {
return actual.stagePart >= required.stagePart // Compare stages for newer
}
return false // Actual has a stage, but required does not. So required is always newer.
}
return true // Actual has no stage part or snapshot part, so it cannot be older than required.
}
export async function findGradleExecutableOnPath(): Promise<string | null> {
return await which('gradle', {nothrow: true})
}
@@ -90,22 +47,3 @@ export function parseGradleVersionFromOutput(output: string): string | undefined
const versionString = output.match(regex)?.[1]
return versionString
}
class GradleVersion {
static PATTERN = /((\d+)(\.\d+)+)(-([a-z]+)-(\w+))?(-(SNAPSHOT|\d{14}([-+]\d{4})?))?/
versionPart: string
stagePart: string
snapshotPart: string
constructor(readonly version: string) {
const matcher = GradleVersion.PATTERN.exec(version)
if (!matcher) {
throw new Error(`'${version}' is not a valid Gradle version string (examples: '1.0', '1.0-rc-1')`)
}
this.versionPart = matcher[1]
this.stagePart = matcher[4]
this.snapshotPart = matcher[7]
}
}
+152
View File
@@ -0,0 +1,152 @@
import * as core from '@actions/core'
import {GradleVersion} from './gradle-version'
import wrapperChecksums from './wrapper-validation/wrapper-checksums.json'
/** Minor lines behind the latest that stay unreported on the current major. */
const MINOR_GRACE = 2
const SECURITY_SUBSCRIPTION = 'https://gradle.org/security-subscription/?utm_source=github-action'
const FEATURE_LIFECYCLE_DOC = 'https://docs.gradle.org/current/userguide/feature_lifecycle.html#eol_support'
enum SupportStatus {
Current = 'current',
Behind = 'behind',
Eol = 'eol'
}
/** The sign shown beside a version in the build-results table; Current has nothing to say. */
const SIGN: Record<SupportStatus, string> = {
[SupportStatus.Current]: '',
[SupportStatus.Behind]: ':information_source:',
[SupportStatus.Eol]: ':warning:'
}
const UPGRADE_LEGEND =
`<p>${SIGN[SupportStatus.Behind]} Gradle version is out of date — consider upgrading. ` +
`See <a href="${FEATURE_LIFECYCLE_DOC}">Gradle release lifecycle</a></p>`
/**
* Wording shared by the end-of-life annotation, which names a single version, and the end-of-life
* section of the Job Summary, which covers every flagged version at once.
*/
const eolHeadline = (versions: GradleVersion[]): string =>
versions.length === 1
? `Gradle ${versions[0].version} is end-of-life`
: `Gradle ${andList(versions.map(version => version.version))} are end-of-life`
const eolDetail = (versions: GradleVersion[]): string =>
`Gradle ${andList([...new Set(versions.map(version => `${version.major}.x`))])} releases receive ` +
`no further fixes, security fixes included. Update to the latest Gradle version.`
/** Joins for prose: 'a', 'a and b', 'a, b and c'. */
function andList(items: string[]): string {
return items.length <= 1 ? (items[0] ?? '') : `${items.slice(0, -1).join(', ')} and ${items.at(-1)}`
}
class ReleaseIndex {
private readonly latest: GradleVersion
constructor(releasedVersions: string[]) {
const finalReleases = releasedVersions
.map(version => new GradleVersion(version))
.filter(version => version.isFinalRelease())
if (finalReleases.length === 0) {
throw new Error('The Gradle release data contains no final release')
}
this.latest = finalReleases.reduce((max, version) => (max.compareTo(version) >= 0 ? max : version))
}
private classifyVersion(version: GradleVersion): SupportStatus {
if (!version.isFinalRelease()) {
return SupportStatus.Current
}
const majorsBehind = this.latest.major - version.major
if (majorsBehind >= 2) {
return SupportStatus.Eol
}
if (majorsBehind === 1) {
return SupportStatus.Behind
}
if (version.major > this.latest.major) {
return SupportStatus.Current // newer than the bundled data knows about
}
// Same major as the latest release: only the minor distance matters, so a newer patch is never reported.
return this.latest.minor - version.minor > MINOR_GRACE ? SupportStatus.Behind : SupportStatus.Current
}
/** Support status of a single version; an unparseable string is treated as current. */
classify(gradleVersion: string): SupportStatus {
const version = GradleVersion.parseUntrusted(gradleVersion)
return version ? this.classifyVersion(version) : SupportStatus.Current
}
/** The flagged versions grouped by status (Current omitted). */
classified(gradleVersions: string[]): Map<SupportStatus, GradleVersion[]> {
const byStatus = new Map<SupportStatus, GradleVersion[]>()
const parsed = [...new Set(gradleVersions)]
.map(version => GradleVersion.parseUntrusted(version))
.filter((version): version is GradleVersion => version !== undefined)
.sort(GradleVersion.compare)
for (const version of parsed) {
const status = this.classifyVersion(version)
if (status !== SupportStatus.Current) {
byStatus.set(status, [...(byStatus.get(status) ?? []), version])
}
}
return byStatus
}
}
const RELEASES = new ReleaseIndex(wrapperChecksums.map(entry => entry.version))
/** The status sign shown beside a version in the build-results table, or '' when there is nothing to say. */
export function supportStatusSign(gradleVersion: string): string {
return SIGN[RELEASES.classify(gradleVersion)]
}
/** Job annotations: a warning for each end-of-life version, a notice for each version merely out of date. */
export function reportSupportStatus(gradleVersions: string[]): void {
const byStatus = RELEASES.classified(gradleVersions)
for (const version of byStatus.get(SupportStatus.Eol) ?? []) {
core.warning(
`${eolHeadline([version])}. ${eolDetail([version])} If you cannot upgrade, see ${SECURITY_SUBSCRIPTION} for options`,
{title: 'End-of-life Gradle version'}
)
}
for (const version of byStatus.get(SupportStatus.Behind) ?? []) {
core.notice(
`Gradle ${version.version} is out of date: consider updating to the latest Gradle version. See ${FEATURE_LIFECYCLE_DOC}`,
{title: 'Out-of-date Gradle version'}
)
}
}
/** The fold-and-paragraph report placed under the build-results table. */
export function renderSupportStatus(gradleVersions: string[]): string {
const byStatus = RELEASES.classified(gradleVersions)
const blocks: string[] = []
const eol = byStatus.get(SupportStatus.Eol) ?? []
if (eol.length > 0) {
// One section however many versions are end-of-life; the table already marks which they are.
blocks.push(renderEolSection(eol))
}
if (byStatus.has(SupportStatus.Behind)) {
blocks.push(UPGRADE_LEGEND)
}
// The leading blank line closes the preceding HTML block, so each rendering stands on its own.
return blocks.length > 0 ? `\n${blocks.join('\n')}\n` : ''
}
function renderEolSection(versions: GradleVersion[]): string {
return `<details>
<summary>${SIGN[SupportStatus.Eol]} ${eolHeadline(versions)}</summary>
<p>${eolDetail(versions)}</p>
<p>If you cannot upgrade, see the <a href="${SECURITY_SUBSCRIPTION}">Gradle Security Subscription</a> for options.</p>
</details>`
}
+134
View File
@@ -0,0 +1,134 @@
interface Stage {
readonly rank: number
readonly number: number
readonly patchNo: string
}
/**
* A Gradle version, parsed and ordered the same way Gradle's own `org.gradle.util.GradleVersion` does
*/
export class GradleVersion {
private static readonly PATTERN = /^((\d+)(\.\d+)+)(-([a-zA-Z]+)-(\w+))?(-(SNAPSHOT|\d{14}([-+]\d{4})?))?$/
// Ranks match Gradle's stage numbers; anything unrecognised sits between milestone and preview.
private static readonly STAGE_RANK: Record<string, number> = {milestone: 0, preview: 2, rc: 3}
private static readonly STAGE_UNKNOWN = 1
readonly major: number
readonly minor: number
readonly patch: number
private readonly versionPart: string
private readonly stage: Stage | undefined
private readonly snapshot: number | undefined
constructor(readonly version: string) {
const matcher = GradleVersion.PATTERN.exec(version)
if (!matcher) {
throw new Error(`'${version}' is not a valid Gradle version string (examples: '1.0', '1.0-rc-1')`)
}
this.versionPart = matcher[1]
this.stage = GradleVersion.parseStage(matcher[5], matcher[6])
this.snapshot = GradleVersion.parseSnapshot(matcher[8], matcher[9])
const parts = this.versionPart.split('.')
this.major = Number(parts[0])
this.minor = Number(parts[1])
this.patch = parts.length > 2 ? Number(parts[2]) : 0
}
isFinalRelease(): boolean {
return this.stage === undefined && this.snapshot === undefined
}
compareTo(other: GradleVersion): number {
const parts = this.versionPart.split('.')
const otherParts = other.versionPart.split('.')
for (let i = 0; i < parts.length && i < otherParts.length; i++) {
if (Number(parts[i]) !== Number(otherParts[i])) {
return Math.sign(Number(parts[i]) - Number(otherParts[i]))
}
}
if (parts.length !== otherParts.length) {
return Math.sign(parts.length - otherParts.length)
}
if (this.stage && other.stage) {
const stageDiff = GradleVersion.compareStages(this.stage, other.stage)
if (stageDiff !== 0) {
return stageDiff
}
} else if (this.stage) {
return -1 // a staged version precedes the final release of the same base
} else if (other.stage) {
return 1
}
// A version with no snapshot is newer than any snapshot of the same base.
const thisSnapshot = this.snapshot ?? Number.MAX_SAFE_INTEGER
const otherSnapshot = other.snapshot ?? Number.MAX_SAFE_INTEGER
if (thisSnapshot !== otherSnapshot) {
return Math.sign(thisSnapshot - otherSnapshot)
}
return this.version < other.version ? -1 : this.version > other.version ? 1 : 0
}
static parseUntrusted(version: string): GradleVersion | undefined {
try {
return new GradleVersion(version)
} catch {
return undefined
}
}
/** Comparator for sorting; `this: void` marks it safe to pass detached, as `Array.sort` does. */
static compare(this: void, a: GradleVersion, b: GradleVersion): number {
return a.compareTo(b)
}
private static parseStage(name: string | undefined, numberPart: string | undefined): Stage | undefined {
if (name === undefined) {
return undefined
}
// Stage names are matched exactly, as Gradle does: 'RC' is not 'rc', and ranks as unknown.
const rank = GradleVersion.STAGE_RANK[name] ?? GradleVersion.STAGE_UNKNOWN
// The whole stage string must be a number with an optional letter suffix; anything else ranks as 0,
// leaving versions such as branch names to be separated by the version string itself.
const match = /^(\d+)([a-z])?$/.exec(numberPart ?? '')
return {rank, number: match ? Number(match[1]) : 0, patchNo: match?.[2] ?? '_'}
}
private static parseSnapshot(snapshot: string | undefined, timezone: string | undefined): number | undefined {
if (snapshot === undefined) {
return undefined
}
if (snapshot === 'SNAPSHOT') {
return 0
}
// A 14-digit timestamp (yyyyMMddHHmmss), optionally with a timezone offset like +0000 (UTC when absent).
const date = `${snapshot.slice(0, 4)}-${snapshot.slice(4, 6)}-${snapshot.slice(6, 8)}`
const time = `${snapshot.slice(8, 10)}:${snapshot.slice(10, 12)}:${snapshot.slice(12, 14)}`
const offset = timezone ? `${timezone.slice(0, 3)}:${timezone.slice(3, 5)}` : 'Z'
const instant = Date.parse(`${date}T${time}${offset}`)
if (Number.isNaN(instant)) {
// The digits matched the pattern but name no real instant. Rejecting here keeps a NaN out of
// compareTo, which would otherwise make ordering undefined. Gradle likewise fails to parse.
throw new Error(`'${snapshot}${timezone ?? ''}' is not a valid Gradle snapshot timestamp`)
}
return instant
}
private static compareStages(a: Stage, b: Stage): number {
if (a.rank !== b.rank) {
return Math.sign(a.rank - b.rank)
}
if (a.number !== b.number) {
return Math.sign(a.number - b.number)
}
if (a.patchNo !== b.patchNo) {
return a.patchNo < b.patchNo ? -1 : 1
}
return 0
}
}
+20 -6
View File
@@ -6,6 +6,7 @@ import {CacheReport} from './cache-service'
import {ProviderNote, renderCachingReport} from './caching-report'
import {DependencyGraphConfig, getActionId, getGithubToken, getJobMatrix, SummaryConfig} from './configuration'
import {Deprecation, getDeprecations, getErrors} from './deprecation-collector'
import {renderSupportStatus, supportStatusSign} from './gradle-support-status'
export async function generateJobSummary(
buildResults: BuildResult[],
@@ -15,8 +16,11 @@ export async function generateJobSummary(
): Promise<void> {
core.startGroup('Generating Job Summary')
const heading = renderActionHeading()
const errors = renderErrors()
if (errors) {
core.summary.addRaw(heading)
core.summary.addRaw(errors)
await core.summary.write()
return
@@ -31,6 +35,7 @@ export async function generateJobSummary(
core.info(cachingReport)
if (config.shouldGenerateJobSummary(hasFailure)) {
core.summary.addRaw(heading)
core.summary.addRaw(summaryTable)
core.summary.addRaw(cachingReport)
await core.summary.write()
@@ -57,8 +62,7 @@ async function addPRComment(jobSummary: string): Promise<void> {
core.info(`Adding Job Summary as comment to PR #${pull_request_number}.`)
const prComment = `${jobMarker(context)}
<h3>Job Summary for Gradle</h3>
<a href="${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}" target="_blank">
${renderActionHeading()}<a href="${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}" target="_blank">
<h5>${context.workflow} :: <em>${context.job}</em></h5>
</a>
@@ -94,7 +98,13 @@ Note that this permission is never available for a workflow triggered from a rep
}
export function renderSummaryTable(results: BuildResult[]): string {
return `${renderDeprecations()}\n${renderBuildResults(results)}`
return `${renderDeprecations()}\n${renderBuildResults(results)}\n${renderSupportStatus(results.map(result => result.gradleVersion))}`
}
function renderActionHeading(): string {
const actionId = getActionId()
const caption = actionId ? ` <sub><em>captured by ${actionId}</em></sub>` : ''
return `<h3>Gradle Builds${caption}</h3>\n\n`
}
function renderErrors(): string | undefined {
@@ -138,8 +148,7 @@ function renderBuildResults(results: BuildResult[]): string {
<th>Build Outcome</th>
<th>Build&nbsp;Scan®</th>
</tr>${results.map(result => renderBuildResultRow(result)).join('')}
</table>
`
</table>`
}
function anyFailed(results: BuildResult[]): boolean {
@@ -151,12 +160,17 @@ function renderBuildResultRow(result: BuildResult): string {
<tr>
<td>${truncateString(result.rootProjectName, 30)}</td>
<td>${truncateString(result.requestedTasks, 60)}</td>
<td align='center'>${result.gradleVersion}</td>
<td align='center'>${renderGradleVersion(result.gradleVersion)}</td>
<td align='center'>${renderOutcome(result)}</td>
<td>${renderBuildScan(result)}</td>
</tr>`
}
function renderGradleVersion(gradleVersion: string): string {
const sign = supportStatusSign(gradleVersion)
return sign ? `${gradleVersion} ${sign}` : gradleVersion
}
function renderOutcome(result: BuildResult): string {
return result.buildFailed ? ':x:' : ':white_check_mark:'
}
@@ -6,7 +6,7 @@ buildscript {
def pluginRepositoryUrl = getInputParam('gradle.plugin-repository.url') ?: 'https://plugins.gradle.org/m2'
def pluginRepositoryUsername = getInputParam('gradle.plugin-repository.username')
def pluginRepositoryPassword = getInputParam('gradle.plugin-repository.password')
def dependencyGraphPluginVersion = getInputParam('dependency-graph-plugin.version') ?: '1.4.2'
def dependencyGraphPluginVersion = getInputParam('dependency-graph-plugin.version') ?: '1.5.0'
logger.lifecycle("Resolving dependency graph plugin ${dependencyGraphPluginVersion} from plugin repository: ${pluginRepositoryUrl}")
repositories {
+2
View File
@@ -19,6 +19,7 @@ import {
} from './configuration'
import * as wrapperValidator from './wrapper-validation/wrapper-validator'
import {initializeGradleUserHome} from './gradle-user-home'
import {reportSupportStatus} from './gradle-support-status'
const GRADLE_SETUP_VAR = 'GRADLE_BUILD_ACTION_SETUP_COMPLETED'
const GRADLE_USER_HOME = 'GRADLE_USER_HOME'
@@ -86,6 +87,7 @@ export async function complete(
cacheOptionsFrom(cacheConfig, develocityServerUrl, cacheToken)
)
await jobSummary.generateJobSummary(buildResults, cacheReport, getProviderNote(cacheConfig), summaryConfig)
reportSupportStatus(buildResults.map(result => result.gradleVersion))
markBuildResultsProcessed()
@@ -1,4 +1,60 @@
[
{
"version": "9.8.2",
"checksum": "3b8a25775a69158b5ad2b1d17a80a88dc7b40a352a73eb27d06c612a7ce68e98"
},
{
"version": "8.14.6",
"checksum": "ad16bca46cb71bb5887c546860d93992aeee35c1fdaf4a242b0a612375d937e0"
},
{
"version": "9.8.1",
"checksum": "3b8a25775a69158b5ad2b1d17a80a88dc7b40a352a73eb27d06c612a7ce68e98"
},
{
"version": "9.8.0",
"checksum": "238e777fcddd7e34f9708186085def2abd6e08e658505b38718d79d74c21abd5"
},
{
"version": "9.8.0-rc-3",
"checksum": "238e777fcddd7e34f9708186085def2abd6e08e658505b38718d79d74c21abd5"
},
{
"version": "9.9.0-milestone-2",
"checksum": "238e777fcddd7e34f9708186085def2abd6e08e658505b38718d79d74c21abd5"
},
{
"version": "9.8.0-rc-2",
"checksum": "238e777fcddd7e34f9708186085def2abd6e08e658505b38718d79d74c21abd5"
},
{
"version": "9.9.0-milestone-1",
"checksum": "238e777fcddd7e34f9708186085def2abd6e08e658505b38718d79d74c21abd5"
},
{
"version": "9.8.0-rc-1",
"checksum": "238e777fcddd7e34f9708186085def2abd6e08e658505b38718d79d74c21abd5"
},
{
"version": "9.8.0-milestone-2",
"checksum": "2b2e2cee3d8a8e5379b4f1c5902419404e83c1dba5ff55192ad5986e3f44cd6e"
},
{
"version": "9.7.1",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
},
{
"version": "9.8.0-milestone-1",
"checksum": "2b2e2cee3d8a8e5379b4f1c5902419404e83c1dba5ff55192ad5986e3f44cd6e"
},
{
"version": "9.7.0",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
},
{
"version": "9.7.0-rc-3",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
},
{
"version": "9.7.0-rc-2",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
Binary file not shown.
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
distributionSha256Sum=21bd5da2de49b642904077f38c0efdc7778e92b3ed0889392dca61b97e389607
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.2-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+41 -11
View File
@@ -26,6 +26,33 @@
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
@rem Catch executions from older scripts and ensure they exit cleanly.
@rem This can be removed once we can be reasonably confident that few people
@rem will be migrating directly to this new wrapper.
goto afterSafetyNet
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
goto exitWithErrorLevel
:afterSafetyNet
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
@@ -45,13 +72,14 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -59,13 +87,14 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
1>&2 echo.
1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
1>&2 echo.
1>&2 echo Please set the JAVA_HOME variable in your environment to match the
1>&2 echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto exitWithErrorLevel
:execute
@rem Setup the command line
@@ -75,8 +104,9 @@ echo location of your Java installation. 1>&2
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel & goto exitWithErrorLevel
@rem This label must not be changed. We rely on old scripts being able to jump to this point.
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
+1 -1
View File
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.5.0"
id "com.gradle.develocity" version "4.6.1"
id "com.gradle.common-custom-user-data-gradle-plugin" version "2.4.0"
}
@@ -16,7 +16,7 @@ import java.nio.file.Files
import java.util.zip.GZIPOutputStream
class BaseInitScriptTest extends Specification {
static final String DEVELOCITY_PLUGIN_VERSION = '4.5.0'
static final String DEVELOCITY_PLUGIN_VERSION = '4.6.1'
static final String CCUD_PLUGIN_VERSION = '2.1'
static final TestGradleVersion GRADLE_4_X = new TestGradleVersion(GradleVersion.version('4.10.3'), 7, 10)
@@ -248,7 +248,7 @@ task expectFailure {
when:
settingsFile.text = """
plugins {
id 'com.gradle.develocity' version '4.5.0' apply(false)
id 'com.gradle.develocity' version '4.6.1' apply(false)
}
gradle.settingsEvaluated {
apply plugin: 'com.gradle.develocity'
@@ -45,6 +45,51 @@ describe('getCacheService selection logic', () => {
expect(service).toBeInstanceOf(BasicCacheService)
})
it('returns NoOpCacheService reporting "external" when cache-provider is external', async () => {
const {getCacheService} = await import('../../src/cache-service-loader')
const mockConfig = {
isCacheDisabled: () => false,
getCacheProvider: () => CacheProvider.External
} as unknown as CacheConfig
const service = await getCacheService(mockConfig)
const report = await service.save('/home/.gradle', [], {
disabled: false,
readOnly: false,
writeOnly: false,
overwriteExisting: false,
strictMatch: false,
cleanup: 'never',
includes: [],
excludes: []
})
expect(report.status).toBe('external')
expect(report.entries).toHaveLength(0)
})
it('reports "external" even when cache-disabled is also true', async () => {
const {getCacheService} = await import('../../src/cache-service-loader')
const mockConfig = {
isCacheDisabled: () => true,
getCacheProvider: () => CacheProvider.External
} as unknown as CacheConfig
const service = await getCacheService(mockConfig)
const report = await service.save('/home/.gradle', [], {
disabled: false,
readOnly: false,
writeOnly: false,
overwriteExisting: false,
strictMatch: false,
cleanup: 'never',
includes: [],
excludes: []
})
expect(report.status).toBe('external')
})
describe('getProviderNote', () => {
it('returns undefined when cache is disabled', async () => {
const {getProviderNote} = await import('../../src/cache-service-loader')
@@ -56,6 +101,16 @@ describe('getCacheService selection logic', () => {
expect(getProviderNote(mockConfig)).toBeUndefined()
})
it('returns undefined when cache-provider is external', async () => {
const {getProviderNote} = await import('../../src/cache-service-loader')
const mockConfig = {
isCacheDisabled: () => false,
getCacheProvider: () => CacheProvider.External
} as unknown as CacheConfig
expect(getProviderNote(mockConfig)).toBeUndefined()
})
it('returns basic note for the basic provider', async () => {
const {getProviderNote} = await import('../../src/cache-service-loader')
const mockConfig = {
+10
View File
@@ -142,4 +142,14 @@ describe('renderCachingReport', () => {
expect(md).toContain('<h4>Gradle State Caching - Unavailable</h4>')
expect(md).not.toContain('<details>')
})
it('renders a compact external report with no provider note', () => {
const report: CacheReport = {status: 'external', entries: []}
const md = renderCachingReport(report, undefined)
expect(md).toContain('<h4>Gradle State Caching - External</h4>')
expect(md).toContain('cached externally')
expect(md).not.toContain('<details>')
expect(md).not.toContain('DISTRIBUTION.md')
})
})
@@ -0,0 +1,253 @@
import * as fs from 'fs'
import * as path from 'path'
import {beforeEach, describe, expect, it, jest} from '@jest/globals'
const mockWarning = jest.fn<(message: string, properties?: {title?: string}) => void>()
const mockNotice = jest.fn<(message: string, properties?: {title?: string}) => void>()
jest.unstable_mockModule('@actions/core', () => ({
warning: mockWarning,
notice: mockNotice
}))
// Mirrors the real release shape: latest 9.7.1, last 8.x minor is 8.14 with patches up to 8.14.5.
const RELEASED = [
'9.7.1',
'9.7.0',
'9.6.1',
'9.6.0',
'9.5.1',
'9.5.0',
'9.4.1',
'9.4.0',
'9.2.1',
'9.2.0',
'9.0.0',
'8.14.5',
'8.14',
'8.13',
'8.3',
'8.0.2',
'8.0',
'7.6.4',
'1.0'
]
const asChecksumEntries = (versions: string[]): {version: string; checksum: string}[] =>
versions.map(version => ({version, checksum: ''}))
let releasedVersions = asChecksumEntries(RELEASED)
jest.unstable_mockModule('../../src/wrapper-validation/wrapper-checksums.json', () => ({
get default() {
return releasedVersions
}
}))
const {renderSupportStatus, reportSupportStatus, supportStatusSign} = await import('../../src/gradle-support-status')
/** Re-imports the module so that its release index is built from `released` instead of RELEASED. */
async function withReleaseData(released: string[]): Promise<typeof import('../../src/gradle-support-status')> {
releasedVersions = asChecksumEntries(released)
jest.resetModules()
try {
return await import('../../src/gradle-support-status')
} finally {
releasedVersions = asChecksumEntries(RELEASED)
}
}
const NO_SIGN = ''
const OUT_OF_DATE = ':information_source:'
const END_OF_LIFE = ':warning:'
const DOC = 'https://docs.gradle.org/current/userguide/feature_lifecycle.html#eol_support'
const SECURITY_SUBSCRIPTION = 'https://gradle.org/security-subscription/?utm_source=github-action'
describe('supportStatusSign', () => {
it.each(['7.6.4', '1.0', '4.10.3'])('marks %s as end-of-life', version => {
expect(supportStatusSign(version)).toBe(END_OF_LIFE)
})
it.each(['8.0', '8.0.2', '8.3', '8.13', '8.14', '8.14.3', '8.14.5'])(
'marks %s as out of date, being on the previous major',
version => {
expect(supportStatusSign(version)).toBe(OUT_OF_DATE)
}
)
it.each(['8.15', '8.15.1'])(
'marks %s, a previous-major minor newer than the release data, as out of date',
version => {
expect(supportStatusSign(version)).toBe(OUT_OF_DATE)
}
)
it('marks a previous major absent from the release data as out of date', async () => {
const {supportStatusSign: sign} = await withReleaseData(['9.7.1', '7.6.4'])
expect(sign('8.0')).toBe(OUT_OF_DATE)
})
it.each(['9.0.0', '9.2.1', '9.4.1'])('marks %s as out of date, being more than 2 minors back', version => {
expect(supportStatusSign(version)).toBe(OUT_OF_DATE)
})
it.each(['9.5.0', '9.5.1', '9.6.1', '9.7.1'])('leaves %s unmarked, inside the grace band', version => {
expect(supportStatusSign(version)).toBe(NO_SIGN)
})
it('does not mark a version merely because a newer patch exists', () => {
expect(supportStatusSign('9.6.0')).toBe(NO_SIGN)
expect(supportStatusSign('9.7.0')).toBe(NO_SIGN)
})
it.each(['10.0', '10.4.2'])('leaves %s unmarked, newer than the release data', version => {
expect(supportStatusSign(version)).toBe(NO_SIGN)
})
it.each(['9.8.0-rc-1', '7.0-milestone-1', '9.8-20260101120000+0000'])(
'leaves non-final version %s unmarked',
version => {
expect(supportStatusSign(version)).toBe(NO_SIGN)
}
)
it('does not throw on an unparseable version', () => {
expect(supportStatusSign('')).toBe(NO_SIGN)
expect(supportStatusSign('unknown')).toBe(NO_SIGN)
})
})
describe('bundled release data', () => {
it('contains a final release, so the release index builds instead of failing', async () => {
const bundled: {version: string}[] = JSON.parse(
fs.readFileSync(path.resolve('src/wrapper-validation/wrapper-checksums.json'), 'utf-8')
)
const {supportStatusSign: sign} = await withReleaseData(bundled.map(entry => entry.version))
expect(sign('1.0')).toBe(END_OF_LIFE)
})
})
describe('reportSupportStatus', () => {
beforeEach(() => {
jest.clearAllMocks()
})
it('warns about an end-of-life version', () => {
reportSupportStatus(['7.6.4'])
expect(mockWarning).toHaveBeenCalledTimes(1)
expect(mockNotice).not.toHaveBeenCalled()
const [message, properties] = mockWarning.mock.calls[0]
expect(message).toBe(
`Gradle 7.6.4 is end-of-life. Gradle 7.x releases receive no further fixes, security fixes included. Update to the latest Gradle version. If you cannot upgrade, see ${SECURITY_SUBSCRIPTION} for options`
)
expect(properties?.title).toBe('End-of-life Gradle version')
})
it.each(['8.0', '8.14.3', '8.14.5', '9.2.1'])('notices %s as out of date', version => {
reportSupportStatus([version])
expect(mockWarning).not.toHaveBeenCalled()
expect(mockNotice).toHaveBeenCalledTimes(1)
const [message, properties] = mockNotice.mock.calls[0]
expect(message).toBe(
`Gradle ${version} is out of date: consider updating to the latest Gradle version. See ${DOC}`
)
expect(properties?.title).toBe('Out-of-date Gradle version')
})
it.each(['9.5.1', '9.6.1', '9.7.1'])('stays quiet about %s, inside the grace band', version => {
reportSupportStatus([version])
expect(mockWarning).not.toHaveBeenCalled()
expect(mockNotice).not.toHaveBeenCalled()
})
it('annotates each distinct version once, at the level its status warrants', () => {
reportSupportStatus(['7.6.4', '4.10.3', '7.6.4', '8.0', '9.2.1', '8.0'])
expect(mockWarning).toHaveBeenCalledTimes(2)
expect(mockNotice).toHaveBeenCalledTimes(2)
})
it('says nothing when no Gradle build ran', () => {
reportSupportStatus([])
expect(mockWarning).not.toHaveBeenCalled()
expect(mockNotice).not.toHaveBeenCalled()
})
})
describe('renderSupportStatus', () => {
const LEGEND =
`<p>${OUT_OF_DATE} Gradle version is out of date — consider upgrading. ` +
`See <a href="${DOC}">Gradle release lifecycle</a></p>`
it('folds end-of-life versions under a warning sign, linking the security subscription', () => {
const rendered = renderSupportStatus(['7.6.4'])
expect(rendered).toContain(`<summary>${END_OF_LIFE} Gradle 7.6.4 is end-of-life</summary>`)
expect(rendered).toContain(
'Gradle 7.x releases receive no further fixes, security fixes included. Update to the latest Gradle version.'
)
expect(rendered).toContain(`<a href="${SECURITY_SUBSCRIPTION}">Gradle Security Subscription</a>`)
expect(rendered).not.toContain(LEGEND)
})
it('names every end-of-life version in the summary line, and reads as a plural', () => {
const rendered = renderSupportStatus(['7.6.4', '1.0', '4.10.3'])
expect(rendered).toContain(`<summary>${END_OF_LIFE} Gradle 1.0, 4.10.3 and 7.6.4 are end-of-life</summary>`)
})
it('names every affected release line when versions span more than one', () => {
const rendered = renderSupportStatus(['7.6.4', '1.0', '4.10.3'])
expect(rendered).toContain('Gradle 1.x, 4.x and 7.x releases receive no further fixes')
})
it('names each release line once when several versions share one', () => {
const rendered = renderSupportStatus(['7.6.4', '7.6.6', '1.0'])
expect(rendered).toContain('Gradle 1.x and 7.x releases receive no further fixes')
})
it('names no version outside the versions that are end-of-life', () => {
expect(renderSupportStatus(['7.6.4'])).not.toContain('9.7.1')
})
it.each(['8.0', '8.14.3', '8.14.5', '9.2.1'])('adds only the legend for %s', version => {
expect(renderSupportStatus([version]).trim()).toBe(LEGEND)
})
it('adds the legend exactly once however many versions are flagged', () => {
const rendered = renderSupportStatus(['9.2.1', '9.4.1', '8.14.5', '8.14.3', '8.3', '8.0'])
expect(rendered.trim()).toBe(LEGEND)
})
it('emits a single section however many versions are end-of-life, plus the single legend', () => {
const rendered = renderSupportStatus(['9.6.1', '9.2.1', '8.14.5', '8.0', '7.6.4', '1.0'])
expect(rendered.match(/<details>/g)).toHaveLength(1)
expect(rendered.match(/consider upgrading/g)).toHaveLength(1)
expect(rendered).toContain(`<summary>${END_OF_LIFE} Gradle 1.0 and 7.6.4 are end-of-life</summary>`)
})
it('names no version outside the fold', () => {
const rendered = renderSupportStatus(['8.0', '9.2.1'])
expect(rendered).not.toContain('8.0')
expect(rendered).not.toContain('9.2.1')
})
it('renders nothing when every version is inside the grace band', () => {
expect(renderSupportStatus(['9.5.1', '9.6.1', '9.7.1'])).toBe('')
})
it('renders nothing when no Gradle build ran', () => {
expect(renderSupportStatus([])).toBe('')
})
})
+146 -123
View File
@@ -1,154 +1,177 @@
import {describe, expect, it} from '@jest/globals'
import {versionIsAtLeast, parseGradleVersionFromOutput} from '../../src/execution/gradle'
import {GradleVersion} from '../../src/gradle-version'
import {parseGradleVersionFromOutput} from '../../src/execution/gradle'
describe('gradle', () => {
describe('can compare versions that are', () => {
function versionsAreOrdered(versions: string[]): void {
for (let i = 0; i < versions.length; i++) {
// Compare with all other versions
for (let j = 0; j < versions.length; j++) {
if (i >= j) {
it(`${versions[i]} is at least ${versions[j]}`, () => {
expect(versionIsAtLeast(versions[i], versions[j])).toBe(true)
})
} else {
it(`${versions[i]} is NOT at least ${versions[j]}`, () => {
expect(versionIsAtLeast(versions[i], versions[j])).toBe(false)
})
}
}
}
}
function versionsAreNotOrdered(versions: string[]): void {
for (let i = 0; i < versions.length; i++) {
// Compare with all other versions
for (let j = 0; j < versions.length; j++) {
if (i !== j) {
it(`${versions[i]} is NOT at least ${versions[j]}`, () => {
expect(versionIsAtLeast(versions[i], versions[j])).toBe(false)
})
}
}
}
}
function versionsAreEqual(versions: string[]): void {
for (let i = 0; i < versions.length; i++) {
// Compare with all other versions
for (let j = 0; j < versions.length; j++) {
it(`${versions[i]} is at least ${versions[j]}`, () => {
expect(versionIsAtLeast(versions[i], versions[j])).toBe(true)
})
}
}
function order(a: string, b: string): number {
return Math.sign(GradleVersion.compare(new GradleVersion(a), new GradleVersion(b)))
}
/** Asserts every pairing of `versions`, which must be listed oldest first. */
function ascending(versions: string[]): void {
for (let i = 0; i < versions.length; i++) {
for (let j = 0; j < versions.length; j++) {
const expected = Math.sign(i - j)
it(`${versions[i]} vs ${versions[j]} is ${expected}`, () => {
expect(order(versions[i], versions[j])).toBe(expected)
})
}
}
}
describe('GradleVersion', () => {
describe('orders', () => {
describe('simple versions', () => {
versionsAreOrdered(['6.0', '6.7', '6.7.1', '6.7.2', '7.0', '7.0.1', '7.1', '8.0', '8.12.1'])
ascending(['6.0', '6.7', '6.7.1', '6.7.2', '7.0', '7.0.1', '7.1', '8.0', '8.12.1'])
})
versionsAreEqual(['7.0', '7.0.0'])
versionsAreEqual(['7.1', '7.1.0'])
describe('a shorter base is older than a longer one that extends it', () => {
ascending(['7.0', '7.0.0'])
ascending(['7.1', '7.1.0'])
})
describe('rc versions', () => {
versionsAreOrdered([
'8.10', '8.11-rc-1', '8.11-rc-2', '8.11', '8.11.1-rc-1', '8.11.1'
])
ascending(['8.10', '8.11-rc-1', '8.11-rc-2', '8.11', '8.11.1-rc-1', '8.11.1'])
})
describe('milestone versions', () => {
versionsAreOrdered([
'8.12.1', '8.12.2-milestone-1', '8.12.2', '8.13-milestone-1', '8.13-milestone-2', '8.13'
])
versionsAreOrdered([
'8.12.1', '8.12.2-milestone-1', '8.12.2-milestone-2', '8.12.2-rc-1', '8.12.2'
])
ascending(['8.12.1', '8.12.2-milestone-1', '8.12.2', '8.13-milestone-1', '8.13-milestone-2', '8.13'])
})
describe('preview versions', () => {
versionsAreOrdered([
'8.12.1', '8.12.2-preview-1', '8.12.2', '8.13-preview-1', '8.13-preview-2', '8.13'
])
versionsAreOrdered([
'8.12.1', '8.12.2-milestone-1', '8.12.2-preview-1', '8.12.2-rc-1', '8.12.2'
])
ascending(['8.12.1', '8.12.2-preview-1', '8.12.2', '8.13-preview-1', '8.13-preview-2', '8.13'])
})
describe('milestone before preview before rc before final', () => {
ascending(['8.12.2-milestone-1', '8.12.2-preview-1', '8.12.2-rc-1', '8.12.2'])
})
describe('snapshot versions', () => {
versionsAreOrdered([
'8.10.1', '8.10.2-20240828012138+0000', '8.10.2', '8.11-20240829002031+0000', '8.11'
])
versionsAreOrdered([
'9.0', '9.1-branch-provider_api_migration_public_api_changes-20240826121451+0000', '9.1'
])
versionsAreNotOrdered([
'8.10.2-20240828012138+0000', '8.10.2-20240828010000+1000', '8.10.2-milestone-1'
])
ascending(['8.10.1', '8.10.2-20240828012138+0000', '8.10.2', '8.11-20240829002031+0000', '8.11'])
ascending(['9.0', '9.1-branch-provider_api_migration_public_api_changes-20240826121451+0000', '9.1'])
})
describe('snapshots order by instant, accounting for timezone', () => {
ascending(['8.10.2-milestone-1', '8.10.2-20240828010000+1000', '8.10.2-20240828012138+0000', '8.10.2'])
})
})
describe('can parse version from output', () => {
it('major version', async () => {
const output = `
------------------------------------------------------------
Gradle 8.9
------------------------------------------------------------
`
const version = await parseGradleVersionFromOutput(output)!
expect(version).toBe('8.9')
// Gradle's `Stage.from` matches the whole stage string against /(\d+)([a-z])?/, so a stage number is
// read only when the string is entirely a number with an optional letter suffix.
describe('reads a stage number only from a fully numeric stage string', () => {
it('orders plain stage numbers numerically, not as text', () => {
// Were these compared as text, '8.11-rc-10' would sort before '8.11-rc-2'.
expect(order('8.11-rc-2', '8.11-rc-10')).toBe(-1)
})
it('patch version', async () => {
const output = `
------------------------------------------------------------
Gradle 8.9.1
------------------------------------------------------------
`
const version = await parseGradleVersionFromOutput(output)!
expect(version).toBe('8.9.1')
describe('a letter suffix orders after the bare number', () => {
ascending(['8.11-rc-1', '8.11-rc-1a', '8.11-rc-1b', '8.11-rc-2'])
})
it('rc version', async () => {
const output = `
------------------------------------------------------------
Gradle 8.9-rc-1
------------------------------------------------------------
`
const version = await parseGradleVersionFromOutput(output)!
expect(version).toBe('8.9-rc-1')
it('ignores digits embedded in a longer stage string', () => {
// 'issue10' and 'issue9' both rank as stage number 0, leaving the version string to break the
// tie; reading the digits positionally would instead sort 'issue10' after 'issue9'.
expect(order('8.0-branch-issue10-20240828012138+0000', '8.0-branch-issue9-20240828012138+0000')).toBe(-1)
})
it('milestone version', async () => {
const output = `
------------------------------------------------------------
Gradle 8.0-milestone-6
------------------------------------------------------------
`
const version = await parseGradleVersionFromOutput(output)!
expect(version).toBe('8.0-milestone-6')
})
describe('matches stage names exactly, as Gradle does', () => {
// 'RC' is not 'rc', so it ranks as unknown (1) and precedes preview (2) rather than following it.
describe('an unrecognised spelling ranks between milestone and preview', () => {
ascending(['8.0-milestone-1', '8.0-RC-1', '8.0-preview-1', '8.0-rc-1', '8.0'])
})
it('snapshot version', async () => {
const output = `
------------------------------------------------------------
Gradle 8.10.2-20240828012138+0000
------------------------------------------------------------
`
const version = await parseGradleVersionFromOutput(output)!
expect(version).toBe('8.10.2-20240828012138+0000')
})
describe('rejects a timestamp that names no real instant', () => {
it.each(['8.0-99999999999999', '8.0-20241301012138', '8.0-20240828992138', '8.0-20240828012138+9999'])(
'throws for %s',
version => {
expect(() => new GradleVersion(version)).toThrow('is not a valid Gradle snapshot timestamp')
}
)
it.each(['8.0-99999999999999', '8.0-20240828012138+9999'])(
'reports %s as unparseable rather than yielding an uncomparable version',
version => {
expect(GradleVersion.parseUntrusted(version)).toBeUndefined()
}
)
})
describe('isFinalRelease', () => {
it.each(['1.0', '8.14.5', '9.7.1'])('treats %s as final', version => {
expect(new GradleVersion(version).isFinalRelease()).toBe(true)
})
it('branch version', async () => {
const output = `
------------------------------------------------------------
Gradle 9.0-branch-provider_api_migration_public_api_changes-20240830060514+0000
------------------------------------------------------------
`
const version = await parseGradleVersionFromOutput(output)!
expect(version).toBe('9.0-branch-provider_api_migration_public_api_changes-20240830060514+0000')
it.each(['8.11-rc-1', '8.0-milestone-6', '8.10.2-20240828012138+0000', '9.0-SNAPSHOT'])(
'treats %s as not final',
version => {
expect(new GradleVersion(version).isFinalRelease()).toBe(false)
}
)
})
describe('parseUntrusted', () => {
it.each(['', 'unknown', 'v1.0'])('returns undefined for the invalid version %s', version => {
expect(GradleVersion.parseUntrusted(version)).toBeUndefined()
})
})
})
describe('parseGradleVersionFromOutput', () => {
it('major version', () => {
const output = `
------------------------------------------------------------
Gradle 8.9
------------------------------------------------------------
`
expect(parseGradleVersionFromOutput(output)).toBe('8.9')
})
it('patch version', () => {
const output = `
------------------------------------------------------------
Gradle 8.9.1
------------------------------------------------------------
`
expect(parseGradleVersionFromOutput(output)).toBe('8.9.1')
})
it('rc version', () => {
const output = `
------------------------------------------------------------
Gradle 8.9-rc-1
------------------------------------------------------------
`
expect(parseGradleVersionFromOutput(output)).toBe('8.9-rc-1')
})
it('milestone version', () => {
const output = `
------------------------------------------------------------
Gradle 8.0-milestone-6
------------------------------------------------------------
`
expect(parseGradleVersionFromOutput(output)).toBe('8.0-milestone-6')
})
it('snapshot version', () => {
const output = `
------------------------------------------------------------
Gradle 8.10.2-20240828012138+0000
------------------------------------------------------------
`
expect(parseGradleVersionFromOutput(output)).toBe('8.10.2-20240828012138+0000')
})
it('branch version', () => {
const output = `
------------------------------------------------------------
Gradle 9.0-branch-provider_api_migration_public_api_changes-20240830060514+0000
------------------------------------------------------------
`
expect(parseGradleVersionFromOutput(output)).toBe(
'9.0-branch-provider_api_migration_public_api_changes-20240830060514+0000'
)
})
})
+79 -11
View File
@@ -1,9 +1,31 @@
import dedent from 'dedent'
import * as github from '@actions/github'
import {afterEach, describe, expect, it} from '@jest/globals'
import {afterEach, describe, expect, it, jest} from '@jest/globals'
import {BuildResult} from '../../src/build-results'
import {jobMarker, renderSummaryTable} from '../../src/job-summary'
// The support-status policy itself is covered by gradle-support-status.test.ts; these tests only
// check that its output reaches the table. '8.0' is the sole release so the tables below, all of
// which build with Gradle 8.0, render without a status sign.
let releasedVersions = [{version: '8.0', checksum: ''}]
jest.unstable_mockModule('../../src/wrapper-validation/wrapper-checksums.json', () => ({
get default() {
return releasedVersions
}
}))
const {jobMarker, renderSummaryTable} = await import('../../src/job-summary')
/** Renders the summary table with the release index built from `versions` rather than the bundled data. */
async function renderWith(versions: string[], results: BuildResult[]): Promise<string> {
releasedVersions = versions.map(version => ({version, checksum: ''}))
jest.resetModules()
const {renderSummaryTable: render} = await import('../../src/job-summary')
return render(results)
}
const DOC = 'https://docs.gradle.org/current/userguide/feature_lifecycle.html#eol_support'
const SECURITY_SUBSCRIPTION = 'https://gradle.org/security-subscription/?utm_source=github-action'
const MATRIX_INPUT_ENV = 'INPUT_WORKFLOW-JOB-CONTEXT'
@@ -30,19 +52,20 @@ const failedHelpBuild: BuildResult = {
const longArgsBuild: BuildResult = {
...successfulHelpBuild,
requestedTasks: 'check publishMyLongNamePluginPublicationToMavenCentral publishMyLongNamePluginPublicationToPluginPortal',
requestedTasks:
'check publishMyLongNamePluginPublicationToMavenCentral publishMyLongNamePluginPublicationToPluginPortal'
}
const scanPublishDisabledBuild: BuildResult = {
...successfulHelpBuild,
buildScanUri: '',
buildScanFailed: false,
buildScanFailed: false
}
const scanPublishFailedBuild: BuildResult = {
...successfulHelpBuild,
buildScanUri: '',
buildScanFailed: true,
buildScanFailed: true
}
describe('renderSummaryTable', () => {
@@ -66,7 +89,7 @@ describe('renderSummaryTable', () => {
<td><a href="https://scans.gradle.com/s/abc123" rel="nofollow" target="_blank"><img src="https://img.shields.io/badge/Build%20Scan%C2%AE-06A0CE?logo=Gradle" alt="Build Scan published" /></a></td>
</tr>
</table>
`);
`)
})
it('failed build', () => {
const table = renderSummaryTable([failedHelpBuild])
@@ -87,7 +110,7 @@ describe('renderSummaryTable', () => {
<td><a href="https://scans.gradle.com/s/abc123" rel="nofollow" target="_blank"><img src="https://img.shields.io/badge/Build%20Scan%C2%AE-06A0CE?logo=Gradle" alt="Build Scan published" /></a></td>
</tr>
</table>
`);
`)
})
describe('when build scan', () => {
it('publishing disabled', () => {
@@ -109,7 +132,7 @@ describe('renderSummaryTable', () => {
<td><a href="https://scans.gradle.com" rel="nofollow" target="_blank"><img src="https://img.shields.io/badge/Not%20published-lightgrey" alt="Build Scan not published" /></a></td>
</tr>
</table>
`);
`)
})
it('publishing failed', () => {
const table = renderSummaryTable([scanPublishFailedBuild])
@@ -130,7 +153,7 @@ describe('renderSummaryTable', () => {
<td><a href="https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting" rel="nofollow" target="_blank"><img src="https://img.shields.io/badge/Publish%20failed-orange" alt="Build Scan publish failed" /></a></td>
</tr>
</table>
`);
`)
})
})
it('multiple builds', () => {
@@ -159,7 +182,7 @@ describe('renderSummaryTable', () => {
<td><a href="https://scans.gradle.com/s/abc123" rel="nofollow" target="_blank"><img src="https://img.shields.io/badge/Build%20Scan%C2%AE-06A0CE?logo=Gradle" alt="Build Scan published" /></a></td>
</tr>
</table>
`);
`)
})
it('truncating long requested tasks', () => {
const table = renderSummaryTable([longArgsBuild])
@@ -180,11 +203,56 @@ describe('renderSummaryTable', () => {
<td><a href="https://scans.gradle.com/s/abc123" rel="nofollow" target="_blank"><img src="https://img.shields.io/badge/Build%20Scan%C2%AE-06A0CE?logo=Gradle" alt="Build Scan published" /></a></td>
</tr>
</table>
`);
`)
})
})
})
describe('Gradle version support status', () => {
it('warns on an end-of-life version and folds the detail below the table', async () => {
const table = await renderWith(['10.0.0', '8.0'], [successfulHelpBuild])
expect(table.trim()).toBe(dedent`
<table>
<tr>
<th>Gradle Root Project</th>
<th>Requested Tasks</th>
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan®</th>
</tr>
<tr>
<td>root</td>
<td>help</td>
<td align='center'>8.0 :warning:</td>
<td align='center'>:white_check_mark:</td>
<td><a href="https://scans.gradle.com/s/abc123" rel="nofollow" target="_blank"><img src="https://img.shields.io/badge/Build%20Scan%C2%AE-06A0CE?logo=Gradle" alt="Build Scan published" /></a></td>
</tr>
</table>
<details>
<summary>:warning: Gradle 8.0 is end-of-life</summary>
<p>Gradle 8.x releases receive no further fixes, security fixes included. Update to the latest Gradle version.</p>
<p>If you cannot upgrade, see the <a href="${SECURITY_SUBSCRIPTION}">Gradle Security Subscription</a> for options.</p>
</details>
`)
})
it('signs a still-supported but outdated version with the info sign and one legend', async () => {
const table = await renderWith(['9.0.0', '8.1', '8.0'], [successfulHelpBuild])
expect(table).toContain(`<td align='center'>8.0 :information_source:</td>`)
expect(table).toContain(
`<p>:information_source: Gradle version is out of date — consider upgrading. ` +
`See <a href="${DOC}">Gradle release lifecycle</a></p>`
)
expect(table).not.toContain('<details>')
})
it('adds nothing for a version inside the grace band', async () => {
const table = await renderWith(['8.2', '8.0'], [successfulHelpBuild])
expect(table).toContain(`<td align='center'>8.0</td>`)
expect(table).not.toContain(':information_source:')
expect(table).not.toContain('consider upgrading')
})
})
describe('jobMarker', () => {
const original = process.env[MATRIX_INPUT_ENV]
+105 -1
View File
@@ -1,8 +1,65 @@
import nock from "nock";
import {describe, expect, it} from '@jest/globals'
import {afterEach, beforeEach, describe, expect, it, jest} from '@jest/globals'
import {DevelocityAccessCredentials, getToken, resolveTokenForServer} from "../../src/develocity/short-lived-token";
describe('access key format warnings', () => {
// `core.warning` is an ESM export and cannot be spied on, so capture the workflow command it
// writes to stdout instead.
let stdout: jest.SpiedFunction<typeof process.stdout.write>
const warnings = (): string[] =>
stdout.mock.calls
.map(call => String(call[0]))
.filter(line => line.startsWith('::warning::'))
.map(line => line.substring('::warning::'.length).trim())
beforeEach(() => {
stdout = jest.spyOn(process.stdout, 'write').mockImplementation(() => true)
})
afterEach(() => {
stdout.mockRestore()
})
it.each([
['no separator', 'host1', "no '=' separator in the value"],
['a trailing separator', 'host1=key1;', "no '=' separator in entry 2 of 2"],
['a leading separator', ';host1=key1', "no '=' separator in entry 1 of 2"],
['an empty hostname', '=key1', 'empty server name in the value'],
['an empty key', 'host1=', 'empty key in the value'],
['whitespace in the hostname', 'ho st1=key1', 'whitespace in the server name in the value'],
['whitespace in the key', 'host1=ke y1', 'whitespace in the key in the value'],
['whitespace around a separator', 'host1=key1; host2=key2', 'whitespace in the server name in entry 2 of 2'],
])('warns about %s', (_description, rawKey, expectedReason) => {
expect(DevelocityAccessCredentials.parse(rawKey)).toBeNull()
expect(warnings()).toEqual([
`Ignoring badly formed Develocity access key: ${expectedReason}. The expected format is 'server=key[;server=key]*'.`
])
})
it('never includes any part of the access key value in the warning', () => {
expect(DevelocityAccessCredentials.parse('my-host=my sec ret')).toBeNull()
const message = warnings()[0]
expect(message).not.toContain('my-host')
expect(message).not.toContain('sec')
})
it('does not warn for a valid access key', () => {
expect(DevelocityAccessCredentials.parse('host1=key1;host2=key2')).not.toBeNull()
expect(warnings()).toEqual([])
})
it('does not warn for an empty access key', () => {
expect(DevelocityAccessCredentials.parse(' ')).toBeNull()
expect(warnings()).toEqual([])
})
})
describe('short lived tokens', () => {
it('parse valid access key should return an object', async () => {
let develocityAccessCredentials = DevelocityAccessCredentials.parse('some-host.local=key1;host2=key2');
@@ -19,6 +76,53 @@ describe('short lived tokens', () => {
expect(develocityAccessCredentials).toBeNull()
})
it('parse access key with an OIDC token value should return an object', async () => {
const oidcToken = 'eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJyZXBvOmZvby9iYXI_-x=.c2lnbmF0dXJl=='
let develocityAccessCredentials = DevelocityAccessCredentials.parse(`some-host.local=${oidcToken}`);
expect(develocityAccessCredentials).toStrictEqual(DevelocityAccessCredentials.of([
{hostname: 'some-host.local', key: oidcToken}])
)
})
it('parse access key splits each entry on the first separator only', async () => {
let develocityAccessCredentials = DevelocityAccessCredentials.parse('host1=a=b==;host2=c=d');
expect(develocityAccessCredentials).toStrictEqual(DevelocityAccessCredentials.of([
{hostname: 'host1', key: 'a=b=='},
{hostname: 'host2', key: 'c=d'}])
)
})
it('parse access key tolerates surrounding whitespace', async () => {
let develocityAccessCredentials = DevelocityAccessCredentials.parse(' host1=key1\n');
expect(develocityAccessCredentials).toStrictEqual(DevelocityAccessCredentials.of([
{hostname: 'host1', key: 'key1'}])
)
})
it.each([
['no separator', 'host1'],
['a trailing separator', 'host1=key1;'],
['a leading separator', ';host1=key1'],
['an empty hostname', '=key1'],
['an empty key', 'host1='],
['whitespace in the hostname', 'ho st1=key1'],
['whitespace in the key', 'host1=ke y1'],
['whitespace around a separator', 'host1=key1; host2=key2'],
['one invalid entry', 'host1=key1;random'],
])('parse access key with %s should return null', async (_description, rawKey) => {
expect(DevelocityAccessCredentials.parse(rawKey)).toBeNull()
})
it('access key with an OIDC token value as raw string', async () => {
const rawKey = 'host1=eyJhbGciOiJSUzI1NiJ9.payload.signature==;host2=key2'
let develocityAccessCredentials = DevelocityAccessCredentials.parse(rawKey);
expect(develocityAccessCredentials?.raw()).toBe(rawKey)
})
it('parse empty access key should return null', async () => {
let develocityAccessCredentials = DevelocityAccessCredentials.parse('');