Compare commits

...
40 Commits
Author SHA1 Message Date
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
dependabot[bot] 9c971963be Bump the github-actions group across 2 directories with 9 updates (#1024)
Bumps the github-actions group with 9 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `6.0.3` |
`7.0.1` |
| [actions/setup-node](https://github.com/actions/setup-node) | `6.4.0`
| `7.0.0` |
| [gradle/actions/setup-gradle](https://github.com/gradle/actions) |
`6.1.0` | `6.2.0` |
| [github/codeql-action/init](https://github.com/github/codeql-action) |
`4.36.2` | `4.37.4` |
|
[github/codeql-action/analyze](https://github.com/github/codeql-action)
| `4.36.2` | `4.37.4` |
| [actions/setup-java](https://github.com/actions/setup-java) | `5.2.0`
| `5.6.0` |
| [ossf/scorecard-action](https://github.com/ossf/scorecard-action) |
`2.4.3` | `2.4.4` |
|
[stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action)
| `7.1.0` | `7.2.0` |
| [gradle/actions/wrapper-validation](https://github.com/gradle/actions)
| `6.1.0` | `6.2.0` |

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 `actions/checkout` from 6.0.3 to 7.0.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/releases">actions/checkout's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<h2>What's Changed</h2>
<ul>
<li>skip running unsafe pr check if input is default by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2518">actions/checkout#2518</a></li>
<li>trim only ascii whitespace for branch by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2521">actions/checkout#2521</a></li>
<li>escape values passed to --unset by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2530">actions/checkout#2530</a></li>
<li>Various dependency updates</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v7...v7.0.1">https://github.com/actions/checkout/compare/v7...v7.0.1</a></p>
<h2>v7.0.0</h2>
<h2>What's Changed</h2>
<ul>
<li>block checking out fork pr for pull_request_target and workflow_run
by <a href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li>
<li>Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 in the
minor-actions-dependencies group across 1 directory by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2458">actions/checkout#2458</a></li>
<li>Bump flatted from 3.3.1 to 3.4.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2460">actions/checkout#2460</a></li>
<li>Bump js-yaml from 4.1.0 to 4.2.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2461">actions/checkout#2461</a></li>
<li>Bump <code>@​actions/core</code> and
<code>@​actions/tool-cache</code> and Remove uuid by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2459">actions/checkout#2459</a></li>
<li>upgrade module to esm and update dependencies by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2463">actions/checkout#2463</a></li>
<li>Bump the minor-npm-dependencies group across 1 directory with 3
updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2462">actions/checkout#2462</a></li>
<li>getting ready for checkout v7 release by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2464">actions/checkout#2464</a></li>
<li>update error wording by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2467">actions/checkout#2467</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v6.0.3...v7.0.0">https://github.com/actions/checkout/compare/v6.0.3...v7.0.0</a></p>
<h2>v6.1.0</h2>
<h2>What's Changed</h2>
<ul>
<li><strong>[BREAKING]</strong> backport
<code>allow-unsafe-pr-checkout</code> to v6 by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2500">actions/checkout#2500</a></li>
<li>backport fixes to releases-v6 by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2527">actions/checkout#2527</a></li>
</ul>
<p><a
href="https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/">https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/</a>
for more details about this breaking change</p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v6.0.3...v6.1.0">https://github.com/actions/checkout/compare/v6.0.3...v6.1.0</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2>v7.0.1</h2>
<ul>
<li>Skip running unsafe pr check if input is default by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2518">actions/checkout#2518</a></li>
<li>Trim only ascii whitespace for branch by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2521">actions/checkout#2521</a></li>
<li>Escape values passed to --unset by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2530">actions/checkout#2530</a></li>
<li>Various dependency updates</li>
</ul>
<h2>v7.0.0</h2>
<ul>
<li>Block checking out fork PR for pull_request_target and workflow_run
by <a href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li>
<li>Various dependency updates</li>
</ul>
<h2>v6.0.3</h2>
<ul>
<li>Fix checkout init for SHA-256 repositories by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li>
<li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li>
</ul>
<h2>v6.0.2</h2>
<ul>
<li>Fix tag handling: preserve annotations and explicit fetch-tags by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li>
</ul>
<h2>v6.0.1</h2>
<ul>
<li>Add worktree support for persist-credentials includeIf by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2327">actions/checkout#2327</a></li>
</ul>
<h2>v6.0.0</h2>
<ul>
<li>Persist creds to a separate file by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2286">actions/checkout#2286</a></li>
<li>Update README to include Node.js 24 support details and requirements
by <a href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2248">actions/checkout#2248</a></li>
</ul>
<h2>v5.0.1</h2>
<ul>
<li>Port v6 cleanup to v5 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2301">actions/checkout#2301</a></li>
</ul>
<h2>v5.0.0</h2>
<ul>
<li>Update actions checkout to use node 24 by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2226">actions/checkout#2226</a></li>
</ul>
<h2>v4.3.1</h2>
<ul>
<li>Port v6 cleanup to v4 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2305">actions/checkout#2305</a></li>
</ul>
<h2>v4.3.0</h2>
<ul>
<li>docs: update README.md by <a
href="https://github.com/motss"><code>@​motss</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1971">actions/checkout#1971</a></li>
<li>Add internal repos for checking out multiple repositories by <a
href="https://github.com/mouismail"><code>@​mouismail</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1977">actions/checkout#1977</a></li>
<li>Documentation update - add recommended permissions to Readme by <a
href="https://github.com/benwells"><code>@​benwells</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2043">actions/checkout#2043</a></li>
<li>Adjust positioning of user email note and permissions heading by <a
href="https://github.com/joshmgross"><code>@​joshmgross</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2044">actions/checkout#2044</a></li>
<li>Update README.md by <a
href="https://github.com/nebuk89"><code>@​nebuk89</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2194">actions/checkout#2194</a></li>
<li>Update CODEOWNERS for actions by <a
href="https://github.com/TingluoHuang"><code>@​TingluoHuang</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2224">actions/checkout#2224</a></li>
<li>Update package dependencies by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2236">actions/checkout#2236</a></li>
</ul>
<h2>v4.2.2</h2>
<ul>
<li><code>url-helper.ts</code> now leverages well-known environment
variables by <a href="https://github.com/jww3"><code>@​jww3</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/1941">actions/checkout#1941</a></li>
<li>Expand unit test coverage for <code>isGhes</code> by <a
href="https://github.com/jww3"><code>@​jww3</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1946">actions/checkout#1946</a></li>
</ul>
<h2>v4.2.1</h2>
<ul>
<li>Check out other refs/* by commit if provided, fall back to ref by <a
href="https://github.com/orhantoy"><code>@​orhantoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1924">actions/checkout#1924</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/checkout/commit/3d3c42e5aac5ba805825da76410c181273ba90b1"><code>3d3c42e</code></a>
prep v7.0.1 release (<a
href="https://redirect.github.com/actions/checkout/issues/2531">#2531</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/28802689a136bfcdb721715abd713740beecbe07"><code>2880268</code></a>
escape values passed to --unset (<a
href="https://redirect.github.com/actions/checkout/issues/2530">#2530</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/12cd2235efa0937479335606d7c3ac9f6c0973b1"><code>12cd223</code></a>
trim only ascii whitespace for branch (<a
href="https://redirect.github.com/actions/checkout/issues/2521">#2521</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/62661c4e71a304b2823ed026347b8d34c3eac541"><code>62661c4</code></a>
skip running unsafe pr check if input is default (<a
href="https://redirect.github.com/actions/checkout/issues/2518">#2518</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/e8d4307400f9427dba7cb98e488d6ab85f1cec5f"><code>e8d4307</code></a>
Bump the minor-actions-dependencies group with 2 updates (<a
href="https://redirect.github.com/actions/checkout/issues/2499">#2499</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/631c942040754b6e095e929c1677c07e10ed4f87"><code>631c942</code></a>
eslint 9 (<a
href="https://redirect.github.com/actions/checkout/issues/2474">#2474</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/4f1f4aec02e41874fa0262ea8ff5172d7978ad1e"><code>4f1f4ae</code></a>
Bump actions/upload-artifact from 4 to 7 (<a
href="https://redirect.github.com/actions/checkout/issues/2476">#2476</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/ba097532fb203f7e88c9c3c0b899b49469908a92"><code>ba09753</code></a>
Bump actions/checkout from 6 to 7 (<a
href="https://redirect.github.com/actions/checkout/issues/2488">#2488</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/b9e0990d219a03df7633c93f6f005a8fecbcab22"><code>b9e0990</code></a>
Bump docker/login-action from 3.3.0 to 4.2.0 (<a
href="https://redirect.github.com/actions/checkout/issues/2479">#2479</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/e8cb398be4a550817e382abf69e4c12c76fce1f2"><code>e8cb398</code></a>
Bump docker/build-push-action from 6.5.0 to 7.2.0 (<a
href="https://redirect.github.com/actions/checkout/issues/2478">#2478</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/checkout/compare/df4cb1c069e1874edd31b4311f1884172cec0e10...3d3c42e5aac5ba805825da76410c181273ba90b1">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 `gradle/actions/setup-gradle` from 6.1.0 to 6.2.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.2.0</h2>
<h2>Highlights</h2>
<p>This release brings significant behaviour improvements to
<strong>Enhanced caching</strong>, improvements to the generated Job
Summary, and a number of correctness and security fixes.</p>
<ol>
<li><strong>Improved cache-cleanup mechanism.</strong> Cleanup of stale
files from the Gradle User Home is now faster, and no longer depends on
Gradle or a JVM. It works by inspecting the local file state directly,
removing the Gradle invocation from the post-build step.</li>
<li><strong>More granular, more stable caching.</strong> The local build
cache is stored as a separate cache entry, so it can be restored and
invalidated independently of the main Gradle User Home entry. Transient
Gradle housekeeping files are excluded from the cache, reducing its size
and improving stability.</li>
<li><strong>Hide obsolete Job summaries in PR commments</strong>: When a
new Job summary comment is added to a PR, previous outdated Job
summaries are now hidden.</li>
<li><strong>Improved caching report in the job summary.</strong> The
cache report now uses a single, consistent layout across all cache
states and providers. Provider information is integrated directly into
the report, and per-entry details are available in an expandable
section. (<a
href="https://redirect.github.com/gradle/actions/issues/985">#985</a>)</li>
<li><strong>Correctness and security fixes.</strong> A unique cache key
is now used per run attempt, so re-runs no longer collide; the job
summary shows the cache key string rather than an internal id; and
bundled dependencies have been updated, including a ReDoS fix and a
fast-xml CVE fix.</li>
</ol>
<h2>What's Changed</h2>
<ul>
<li>Remove unnecessary dependency overrides by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/981">gradle/actions#981</a></li>
<li>Scope CI-integ-test concurrency groups per-branch by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/983">gradle/actions#983</a></li>
<li>Improve typings by <a
href="https://github.com/Vampire"><code>@​Vampire</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/938">gradle/actions#938</a></li>
<li>Hide obsolete Job summaries by <a
href="https://github.com/SimonMarquis"><code>@​SimonMarquis</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/902">gradle/actions#902</a></li>
<li>CI: add requireable aggregate/no-op checks for branch protection by
<a href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/984">gradle/actions#984</a></li>
<li>Redesign 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/985">gradle/actions#985</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Vampire"><code>@​Vampire</code></a> made
their first contribution in <a
href="https://redirect.github.com/gradle/actions/pull/938">gradle/actions#938</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/gradle/actions/compare/v6.1.1...v6.2.0">https://github.com/gradle/actions/compare/v6.1.1...v6.2.0</a></p>
<h2>v6.1.1</h2>
<p>This release updates various dependency versions, resolving several
reported security vulnerabilities.
No functional changes are included</p>
<h2>What's Changed</h2>
<ul>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/sources/test/init-scripts by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/961">gradle/actions#961</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/gradle-plugin by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/962">gradle/actions#962</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/groovy-dsl by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/963">gradle/actions#963</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/java-toolchain by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/964">gradle/actions#964</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/kotlin-dsl by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/965">gradle/actions#965</a></li>
<li>Update known wrapper checksums by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/937">gradle/actions#937</a></li>
<li>Bump the github-actions group across 2 directories with 8 updates by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/976">gradle/actions#976</a></li>
<li>Bump the npm-dependencies group across 1 directory with 14 updates
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/970">gradle/actions#970</a></li>
<li>Bump references to Develocity Gradle plugin from 4.4.0 to 4.4.2 by
<a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/973">gradle/actions#973</a></li>
<li>Bump the npm-dependencies group in /sources with 5 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/977">gradle/actions#977</a></li>
<li>Update <code>@​actions/cache</code> and
<code>@​actions/artifact</code>, stop ignoring them in Dependabot by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/978">gradle/actions#978</a></li>
<li>Resolve npm security vulnerabilities via dependency overrides by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/980">gradle/actions#980</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/gradle/actions/compare/v6.1.0...v6.1.1">https://github.com/gradle/actions/compare/v6.1.0...v6.1.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gradle/actions/commit/3f131e8634966bd73d06cc69884922b02e6faf92"><code>3f131e8</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/97715a29bc75b4c8eeea944dee111d567bb582b5"><code>97715a2</code></a>
Redesign the caching Job Summary (<a
href="https://redirect.github.com/gradle/actions/issues/985">#985</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/8b6cdb5f580ff6b19af985e0fa90cd86daf1d3e1"><code>8b6cdb5</code></a>
CI: add requireable aggregate/no-op checks for branch protection (<a
href="https://redirect.github.com/gradle/actions/issues/984">#984</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/5852e0e5d82ffa89e04ed56eb37c14028a1ce459"><code>5852e0e</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/318eed703815f0482a7498a267b758f78fe7bcb9"><code>318eed7</code></a>
Hide obsolete Job summaries (<a
href="https://redirect.github.com/gradle/actions/issues/902">#902</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/a7406612929c8997f724ceab900ed029936e3bf5"><code>a740661</code></a>
Improve typings (<a
href="https://redirect.github.com/gradle/actions/issues/938">#938</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/7ae0d0208cc8604463cd30cf64c54d08ac84d13f"><code>7ae0d02</code></a>
Update gradle-actions-caching library to v0.6.0 (<a
href="https://redirect.github.com/gradle/actions/issues/982">#982</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/e473973a5b07be6339cc6d3cf458bb1b30eb9b08"><code>e473973</code></a>
Scope CI-integ-test concurrency groups per-branch</li>
<li><a
href="https://github.com/gradle/actions/commit/35a4a3f355e0599a8af664843f0d1a683e5b2230"><code>35a4a3f</code></a>
Queue up integ-test runs</li>
<li><a
href="https://github.com/gradle/actions/commit/b6eebf33f1e928997bb7ff32e39933e3c015ccff"><code>b6eebf3</code></a>
[bot] Update dist directory</li>
<li>Additional commits viewable in <a
href="https://github.com/gradle/actions/compare/50e97c2cd7a37755bbfafc9c5b7cafaece252f6e...3f131e8634966bd73d06cc69884922b02e6faf92">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action/init` from 4.36.2 to 4.37.4
<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.4</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>v4.37.3</h2>
<p>No user facing changes.</p>
<h2>v4.37.2</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>v4.37.1</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>v4.37.0</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>v4.36.3</h2>
<p>No user facing changes.</p>
</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>
<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>
<h2>4.36.1 - 02 Jun 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.0 - 22 May 2026</h2>
<ul>
<li><em>Breaking change</em>: Bump the minimum required CodeQL bundle
version to 2.19.4. <a
href="https://redirect.github.com/github/codeql-action/pull/3894">#3894</a></li>
<li>Add support for SHA-256 Git object IDs. <a
href="https://redirect.github.com/github/codeql-action/pull/3893">#3893</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/f205ea1c3313d32999d8d6a48b4f6530d4437b38"><code>f205ea1</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4053">#4053</a>
from github/update-v4.37.4-9130ce0f7</li>
<li><a
href="https://github.com/github/codeql-action/commit/e40d079dd9dd4a5c74f625cecd83867c8208aa71"><code>e40d079</code></a>
Update changelog for v4.37.4</li>
<li><a
href="https://github.com/github/codeql-action/commit/9130ce0f733a0d17b9e1b9692c2af19be6c69dda"><code>9130ce0</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4051">#4051</a>
from github/update-bundle/codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/c62d82468641dca0f8df108ab73e2a8407ac9cf7"><code>c62d824</code></a>
Add changelog note</li>
<li><a
href="https://github.com/github/codeql-action/commit/da0c1901011e62af9c02aae8bf5b8885b11f7741"><code>da0c190</code></a>
Update default bundle to codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/18420e3271f74589575af831a523c833acda327f"><code>18420e3</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4043">#4043</a>
from github/mbg/ts/changelog</li>
<li><a
href="https://github.com/github/codeql-action/commit/7e8d8970f03ec5a78ab372fc0778e8e4194111a5"><code>7e8d897</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4046">#4046</a>
from github/mbg/repo-prop/code-quality</li>
<li><a
href="https://github.com/github/codeql-action/commit/2d4c474c2ca5ea2965b9e53fabb7b67b0100016c"><code>2d4c474</code></a>
Log <code>!analysisKindSupported</code> case</li>
<li><a
href="https://github.com/github/codeql-action/commit/98c05a17d327d7c4055fca83114434ab56baacf6"><code>98c05a1</code></a>
Fix argument validation in <code>rollback-changelog.ts</code></li>
<li><a
href="https://github.com/github/codeql-action/commit/8289a49271cbb335d374e7e2e7a50c1576be0afe"><code>8289a49</code></a>
Ignore repository property for unsupported analysis kinds</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/8aad20d150bbac5944a9f9d289da16a4b0d87c1e...f205ea1c3313d32999d8d6a48b4f6530d4437b38">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action/analyze` from 4.36.2 to 4.37.4
<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.4</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>v4.37.3</h2>
<p>No user facing changes.</p>
<h2>v4.37.2</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>v4.37.1</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>v4.37.0</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>v4.36.3</h2>
<p>No user facing changes.</p>
</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>
<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>
<h2>4.36.1 - 02 Jun 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.0 - 22 May 2026</h2>
<ul>
<li><em>Breaking change</em>: Bump the minimum required CodeQL bundle
version to 2.19.4. <a
href="https://redirect.github.com/github/codeql-action/pull/3894">#3894</a></li>
<li>Add support for SHA-256 Git object IDs. <a
href="https://redirect.github.com/github/codeql-action/pull/3893">#3893</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/f205ea1c3313d32999d8d6a48b4f6530d4437b38"><code>f205ea1</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4053">#4053</a>
from github/update-v4.37.4-9130ce0f7</li>
<li><a
href="https://github.com/github/codeql-action/commit/e40d079dd9dd4a5c74f625cecd83867c8208aa71"><code>e40d079</code></a>
Update changelog for v4.37.4</li>
<li><a
href="https://github.com/github/codeql-action/commit/9130ce0f733a0d17b9e1b9692c2af19be6c69dda"><code>9130ce0</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4051">#4051</a>
from github/update-bundle/codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/c62d82468641dca0f8df108ab73e2a8407ac9cf7"><code>c62d824</code></a>
Add changelog note</li>
<li><a
href="https://github.com/github/codeql-action/commit/da0c1901011e62af9c02aae8bf5b8885b11f7741"><code>da0c190</code></a>
Update default bundle to codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/18420e3271f74589575af831a523c833acda327f"><code>18420e3</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4043">#4043</a>
from github/mbg/ts/changelog</li>
<li><a
href="https://github.com/github/codeql-action/commit/7e8d8970f03ec5a78ab372fc0778e8e4194111a5"><code>7e8d897</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4046">#4046</a>
from github/mbg/repo-prop/code-quality</li>
<li><a
href="https://github.com/github/codeql-action/commit/2d4c474c2ca5ea2965b9e53fabb7b67b0100016c"><code>2d4c474</code></a>
Log <code>!analysisKindSupported</code> case</li>
<li><a
href="https://github.com/github/codeql-action/commit/98c05a17d327d7c4055fca83114434ab56baacf6"><code>98c05a1</code></a>
Fix argument validation in <code>rollback-changelog.ts</code></li>
<li><a
href="https://github.com/github/codeql-action/commit/8289a49271cbb335d374e7e2e7a50c1576be0afe"><code>8289a49</code></a>
Ignore repository property for unsupported analysis kinds</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/8aad20d150bbac5944a9f9d289da16a4b0d87c1e...f205ea1c3313d32999d8d6a48b4f6530d4437b38">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-java` from 5.2.0 to 5.6.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.6.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Backport to v5: Add Maven compiler problem matcher for javac
diagnostics by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1087">actions/setup-java#1087</a></li>
<li>feat: expose cache-primary-key output (<a
href="https://redirect.github.com/actions/setup-java/issues/597">#597</a>)
[v5 backport] by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1089">actions/setup-java#1089</a></li>
<li>dist: Cover Tencent Kona JDK 25 (<a
href="https://redirect.github.com/actions/setup-java/issues/1108">#1108</a>)
[v5 backport] by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1110">actions/setup-java#1110</a></li>
<li>Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1111">#1111</a>:
Preserve Maven toolchains across repeated setup-java runs (<a
href="https://redirect.github.com/actions/setup-java/issues/1099">#1099</a>)
by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1113">actions/setup-java#1113</a></li>
<li>Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1097">#1097</a>/<a
href="https://redirect.github.com/actions/setup-java/issues/1098">#1098</a>
to v5: cache Maven and Gradle wrapper distributions separately by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1122">actions/setup-java#1122</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-java/compare/v5...v5.6.0">https://github.com/actions/setup-java/compare/v5...v5.6.0</a></p>
<h2>v5.5.0</h2>
<h2>What's Changed</h2>
<ul>
<li>chore: enforce pre-PR validation (aggregate scripts, git hooks, PR
checklist) by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1061">actions/setup-java#1061</a></li>
<li>Bump github/codeql-action from 3 to 4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1069">actions/setup-java#1069</a></li>
<li>Bump actions/checkout from 6 to 7 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1068">actions/setup-java#1068</a></li>
<li>Bump actions/setup-python from 5 to 6 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1067">actions/setup-java#1067</a></li>
<li>Bump <code>@​typescript-eslint/parser</code> from 8.61.1 to 8.62.0
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1062">actions/setup-java#1062</a></li>
<li>feat: Add verify-signature plumbing and Temurin+Microsoft
verification support by <a
href="https://github.com/johnoliver"><code>@​johnoliver</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1060">actions/setup-java#1060</a></li>
<li>Updated jetbrains test: https.request() now catches errors. This
fixes leaking tests as well by <a
href="https://github.com/jmjaffe37"><code>@​jmjaffe37</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1070">actions/setup-java#1070</a></li>
<li>Fix arm64 e2e workflow tests mislabeled as x64 by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a>
with <a href="https://github.com/Copilot"><code>@​Copilot</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1073">actions/setup-java#1073</a></li>
<li>feat: suppress Maven transfer progress via MAVEN_ARGS by default
(add show-download-progress input) by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1053">actions/setup-java#1053</a></li>
<li>feat: Disable interactiveMode in generated Maven settings.xml by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a>
with <a href="https://github.com/Copilot"><code>@​Copilot</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1052">actions/setup-java#1052</a></li>
<li>Bump prettier from 3.6.2 to 3.9.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1066">actions/setup-java#1066</a></li>
<li>chore(deps-dev): bump eslint-plugin-jest from 29.0.1 to 29.15.4 by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1074">actions/setup-java#1074</a></li>
<li>fix: Maven Toolchains grows unexpectedly by <a
href="https://github.com/Okeanos"><code>@​Okeanos</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/534">actions/setup-java#534</a></li>
<li>dist: Support Tencent Kona JDK by <a
href="https://github.com/johnshajiang"><code>@​johnshajiang</code></a>
in <a
href="https://redirect.github.com/actions/setup-java/pull/672">actions/setup-java#672</a></li>
<li>feat: Add set-default option by <a
href="https://github.com/gsmet"><code>@​gsmet</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1017">actions/setup-java#1017</a></li>
<li>docs: document problem matcher (and how to disable it), Maven
Wrapper caching, and generated interactiveMode by <a
href="https://github.com/brunoborges"><code>@​brunoborges</code></a> in
<a
href="https://redirect.github.com/actions/setup-java/pull/1075">actions/setup-java#1075</a></li>
<li>feat: Add distribution detection support to .sdkmanrc file by <a
href="https://github.com/lukaszgyg"><code>@​lukaszgyg</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/975">actions/setup-java#975</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/jmjaffe37"><code>@​jmjaffe37</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-java/pull/1070">actions/setup-java#1070</a></li>
<li><a href="https://github.com/gsmet"><code>@​gsmet</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-java/pull/1017">actions/setup-java#1017</a></li>
<li><a href="https://github.com/lukaszgyg"><code>@​lukaszgyg</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-java/pull/975">actions/setup-java#975</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-java/compare/v5...v5.5.0">https://github.com/actions/setup-java/compare/v5...v5.5.0</a></p>
<h2>v5.4.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Bump <code>@​typescript-eslint/parser</code> from 8.48.0 to 8.61.1
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/setup-java/pull/1021">actions/setup-java#1021</a></li>
<li>Fix codeql workflow permissions by <a
href="https://github.com/jsoref"><code>@​jsoref</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/993">actions/setup-java#993</a></li>
<li>fix CodeQL permissions by <a
href="https://github.com/gdams"><code>@​gdams</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1025">actions/setup-java#1025</a></li>
<li>fix: reject non-semver candidate versions in isVersionSatisfies by
<a href="https://github.com/sproctor"><code>@​sproctor</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1009">actions/setup-java#1009</a></li>
<li>Bump <code>@​actions/cache</code> to 5.1.0, handle cache write
denied by <a
href="https://github.com/jasongin"><code>@​jasongin</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1026">actions/setup-java#1026</a></li>
<li>Add Maven Wrapper cache feature by <a
href="https://github.com/mahabaleshwars"><code>@​mahabaleshwars</code></a>
in <a
href="https://redirect.github.com/actions/setup-java/pull/1027">actions/setup-java#1027</a></li>
<li>Spelling by <a
href="https://github.com/jsoref"><code>@​jsoref</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/713">actions/setup-java#713</a></li>
<li>add link to advanced configuration for JetBrains by <a
href="https://github.com/robstoll"><code>@​robstoll</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/850">actions/setup-java#850</a></li>
<li>docs(action): fix missing required or default fields by <a
href="https://github.com/kranthipoturaju"><code>@​kranthipoturaju</code></a>
in <a
href="https://redirect.github.com/actions/setup-java/pull/1007">actions/setup-java#1007</a></li>
<li>feat: add microsoft openjdk 17.0.18 by <a
href="https://github.com/al-kau"><code>@​al-kau</code></a> in <a
href="https://redirect.github.com/actions/setup-java/pull/1002">actions/setup-java#1002</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-java/commit/03ad4de0992f5dab5e18fcb136590ce7c4a0ac95"><code>03ad4de</code></a>
Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1097">#1097</a>/<a
href="https://redirect.github.com/actions/setup-java/issues/1098">#1098</a>:
cache Maven and Gradle wrapper distributions separately...</li>
<li><a
href="https://github.com/actions/setup-java/commit/d229d2e858d9137cc0b3f118fa5184b9f0a44ac4"><code>d229d2e</code></a>
Backport <a
href="https://redirect.github.com/actions/setup-java/issues/1111">#1111</a>:
Preserve Maven toolchains across repeated setup-java runs (<a
href="https://redirect.github.com/actions/setup-java/issues/1">#1</a>...</li>
<li><a href="https://github.com...

_Description has been truncated_

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-01 21:16:33 -06:00
dependabot[bot] 760e4a476b Bump the npm-dependencies group across 1 directory with 2 updates (#1037)
Bumps the npm-dependencies group with 2 updates in the /sources
directory: [eslint](https://github.com/eslint/eslint) and
[globals](https://github.com/sindresorhus/globals).

Updates `eslint` from 10.7.0 to 10.8.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eslint/eslint/releases">eslint's
releases</a>.</em></p>
<blockquote>
<h2>v10.8.0</h2>
<h2>Features</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/2fee9bb7416116cbed4d8c8100b1ae713b6356a1"><code>2fee9bb</code></a>
feat: export <code>ConfigObject</code> from <code>eslint/config</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/21082">#21082</a>)
(sethamus)</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/6b8d2f7589b8a7c8b91b8ca2a2ef6d46178760d8"><code>6b8d2f7</code></a>
fix: escape reserved characters in rule id in <code>html</code>
formatter (<a
href="https://redirect.github.com/eslint/eslint/issues/21129">#21129</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/90910715011211a20d011d807d398a7005127f35"><code>9091071</code></a>
fix: prevent <code>no-unreachable-loop</code> crash when all loop types
are ignored (<a
href="https://redirect.github.com/eslint/eslint/issues/21116">#21116</a>)
(Pixel)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e23fafe8d4b15355adef6cdebef414c3a2019454"><code>e23fafe</code></a>
fix: prefer-object-spread add semicolon when adding parenthesis (<a
href="https://redirect.github.com/eslint/eslint/issues/21081">#21081</a>)
(synthex-byte)</li>
<li><a
href="https://github.com/eslint/eslint/commit/20b5ad052360a443786a202e94624a3f81846511"><code>20b5ad0</code></a>
fix: quadratic-time regex in <code>prefer-template</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21096">#21096</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/8b6f6c0b33411f34485512456d94f221daf7321f"><code>8b6f6c0</code></a>
fix: apply ignore configs to computed methods in class-methods-use-this
(<a
href="https://redirect.github.com/eslint/eslint/issues/21094">#21094</a>)
(Pixel)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b2c608c014a396800a24a89343265d0616bee2d8"><code>b2c608c</code></a>
fix: NewExpression with parenthesized callee in
<code>preserve-caught-error</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21083">#21083</a>)
(Francesco Trotta)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/6ddf8587e5cfeeb7328332601bb76d98b8a198ea"><code>6ddf858</code></a>
docs: fix broken Specify Parser Options anchor link (<a
href="https://redirect.github.com/eslint/eslint/issues/21106">#21106</a>)
(Minsu)</li>
<li><a
href="https://github.com/eslint/eslint/commit/784dfbe98f0222426fd200153a5ce2e5624151f0"><code>784dfbe</code></a>
docs: Clarify <code>no-eq-null</code> description (<a
href="https://redirect.github.com/eslint/eslint/issues/21120">#21120</a>)
(Park Harin)</li>
<li><a
href="https://github.com/eslint/eslint/commit/7ec733a3ba5acb053a73ac656030a3879aa48fda"><code>7ec733a</code></a>
docs: Fix typos and grammar in glossary (<a
href="https://redirect.github.com/eslint/eslint/issues/21095">#21095</a>)
(Marry (Subin Yang))</li>
<li><a
href="https://github.com/eslint/eslint/commit/92bb13f13065db72d62454b9830d3ae52db15c76"><code>92bb13f</code></a>
docs: replace quake link (<a
href="https://redirect.github.com/eslint/eslint/issues/21108">#21108</a>)
(Jung Hyeon Jun)</li>
<li><a
href="https://github.com/eslint/eslint/commit/68eb4a57572409dbdcfeb3bc5c92ddbba46bc770"><code>68eb4a5</code></a>
docs: fix broken Specify Globals anchor links in rule pages (<a
href="https://redirect.github.com/eslint/eslint/issues/21103">#21103</a>)
(Minsu)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d28f697e0d32d7446c825fd89c362db028450134"><code>d28f697</code></a>
docs: replace Code Climate CLI links with Qlty CLI links (<a
href="https://redirect.github.com/eslint/eslint/issues/21099">#21099</a>)
(Jung Hyeon Jun)</li>
<li><a
href="https://github.com/eslint/eslint/commit/eccc68d42564e46bc9020d19ec52d2988f3b7bfa"><code>eccc68d</code></a>
docs: correct --suppressions-location option description (<a
href="https://redirect.github.com/eslint/eslint/issues/21093">#21093</a>)
(Ga eun Lee)</li>
<li><a
href="https://github.com/eslint/eslint/commit/c5963f74bfa82a5b7ccc0607dcdcc695b8c97a31"><code>c5963f7</code></a>
docs: Update README (GitHub Actions Bot)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/4fbf46d140120ae838db08cbe49544c985956490"><code>4fbf46d</code></a>
test: pin <code>webpack</code> version to 5.108.4 (<a
href="https://redirect.github.com/eslint/eslint/issues/21137">#21137</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2d063e224e9bb0ccb0a28c120f7e380a8d62f320"><code>2d063e2</code></a>
chore: update HTTP URLs to HTTPS in JSDoc and comments (<a
href="https://redirect.github.com/eslint/eslint/issues/21101">#21101</a>)
(Bo Hyun Kim)</li>
<li><a
href="https://github.com/eslint/eslint/commit/eccbe7bc9257a6c99880468e452c8dfafbf47f74"><code>eccbe7b</code></a>
test: add error locations to <code>no-class-assign</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21123">#21123</a>)
(devoil)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e7d1e4373bf626f8da76d62ce024c28928bc99bc"><code>e7d1e43</code></a>
ci: bump actions/setup-go from 6 to 7 (<a
href="https://redirect.github.com/eslint/eslint/issues/21118">#21118</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/e9d66d0cde1a7752c29dee53ab7b62632835a87a"><code>e9d66d0</code></a>
ci: bump actions/setup-node from 6 to 7 (<a
href="https://redirect.github.com/eslint/eslint/issues/21119">#21119</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/ee225b60c26f0cc5f4d71641888a5bd2ec5626d6"><code>ee225b6</code></a>
test: Add error location details to <code>no-eq-null</code> rule (<a
href="https://redirect.github.com/eslint/eslint/issues/21117">#21117</a>)
(Park Harin)</li>
<li><a
href="https://github.com/eslint/eslint/commit/044a627fa3e28ee1410d515acc5378eb4b49f8ba"><code>044a627</code></a>
chore: update minimatch to ^10.2.5 (<a
href="https://redirect.github.com/eslint/eslint/issues/21107">#21107</a>)
(김채영)</li>
<li><a
href="https://github.com/eslint/eslint/commit/fb09aa8ff09730d3ccf68859e065f99666b52466"><code>fb09aa8</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21115">#21115</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/5abd878740fe417fd8a910cac3741f2a0317b365"><code>5abd878</code></a>
test: add error locations to <code>no-proto</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21114">#21114</a>)
(Gihyeon Jeong / 정기현)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9715887ec94a5ff936447d7b680d039fbe2f0541"><code>9715887</code></a>
test: Add error location details to <code>no-div-regex</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21110">#21110</a>)
(Park Harin)</li>
<li><a
href="https://github.com/eslint/eslint/commit/a746ec6ea4a2249b1eb3f512264da5f4d5f7c886"><code>a746ec6</code></a>
test: add error locations to <code>no-new-wrappers</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21109">#21109</a>)
(Gihyeon Jeong / 정기현)</li>
<li><a
href="https://github.com/eslint/eslint/commit/8dde64570e240f3ef8af873d59a752db6d8519aa"><code>8dde645</code></a>
test: add error locations to <code>no-ex-assign</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21102">#21102</a>)
(devoil)</li>
<li><a
href="https://github.com/eslint/eslint/commit/13ab0ec447650c079d8a5e5d67222f79e69c741e"><code>13ab0ec</code></a>
test: add error locations to <code>no-label-var</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21098">#21098</a>)
(Gihyeon Jeong / 정기현)</li>
<li><a
href="https://github.com/eslint/eslint/commit/a99906ffb8342dde03336b5c6372b5658f21d5f2"><code>a99906f</code></a>
test: Add error location details to <code>no-delete-var</code> rule (<a
href="https://redirect.github.com/eslint/eslint/issues/21105">#21105</a>)
(Park Harin)</li>
<li><a
href="https://github.com/eslint/eslint/commit/c47e8dc9bbfba797430db45ae08cb6f7392cfc9d"><code>c47e8dc</code></a>
chore: add missing backticks to <code>languages/js/index.js</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21104">#21104</a>)
(beeen)</li>
<li><a
href="https://github.com/eslint/eslint/commit/0174428dd7543d118cf67a823b98dd97032fe68c"><code>0174428</code></a>
chore: add missing backticks to <code>translate-cli-options.js</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/21097">#21097</a>)
(dongkyu lee)</li>
<li><a
href="https://github.com/eslint/eslint/commit/3d36589a4917326500f0707bb41745160f387d00"><code>3d36589</code></a>
chore: add missing backticks to <code>serialization.js</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21091">#21091</a>)
(이규환)</li>
<li><a
href="https://github.com/eslint/eslint/commit/dcc9312c1081931de0fe1b555fbb6aa82fe696b9"><code>dcc9312</code></a>
test: add error locations to <code>eqeqeq</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21090">#21090</a>)
(Ga eun Lee)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2710b182472cd1a95e4aff6186cb2c4fbadb4ee0"><code>2710b18</code></a>
ci: Add explicit permissions to rebuild-docs-sites workflow (<a
href="https://redirect.github.com/eslint/eslint/issues/21089">#21089</a>)
(Marry (Subin Yang))</li>
<li><a
href="https://github.com/eslint/eslint/commit/5d2f8663ee60701e9036b0b0933a12efd9d93269"><code>5d2f866</code></a>
chore: update dependency prettier to v3.9.5 (<a
href="https://redirect.github.com/eslint/eslint/issues/21086">#21086</a>)
(renovate[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/d584e31098f262563b97dc5d5f23a63a187879a0"><code>d584e31</code></a>
chore: fix failing ecosystem test for <code>eslint-plugin-unicorn</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/21084">#21084</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/bf3eda049bd690f1e9a5a0c4520a6329b3e4ec85"><code>bf3eda0</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/21079">#21079</a>)
(ESLint Bot)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/749dfed106f44d77bf3af2402ebfae20cdbf59ee"><code>749dfed</code></a>
10.8.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/4bd0d75b22ffd44809a92659f113c972c5be0770"><code>4bd0d75</code></a>
Build: changelog update for 10.8.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/4fbf46d140120ae838db08cbe49544c985956490"><code>4fbf46d</code></a>
test: pin <code>webpack</code> version to 5.108.4 (<a
href="https://redirect.github.com/eslint/eslint/issues/21137">#21137</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6ddf8587e5cfeeb7328332601bb76d98b8a198ea"><code>6ddf858</code></a>
docs: fix broken Specify Parser Options anchor link (<a
href="https://redirect.github.com/eslint/eslint/issues/21106">#21106</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/784dfbe98f0222426fd200153a5ce2e5624151f0"><code>784dfbe</code></a>
docs: Clarify <code>no-eq-null</code> description (<a
href="https://redirect.github.com/eslint/eslint/issues/21120">#21120</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6b8d2f7589b8a7c8b91b8ca2a2ef6d46178760d8"><code>6b8d2f7</code></a>
fix: escape reserved characters in rule id in <code>html</code>
formatter (<a
href="https://redirect.github.com/eslint/eslint/issues/21129">#21129</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2d063e224e9bb0ccb0a28c120f7e380a8d62f320"><code>2d063e2</code></a>
chore: update HTTP URLs to HTTPS in JSDoc and comments (<a
href="https://redirect.github.com/eslint/eslint/issues/21101">#21101</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/eccbe7bc9257a6c99880468e452c8dfafbf47f74"><code>eccbe7b</code></a>
test: add error locations to <code>no-class-assign</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/21123">#21123</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2fee9bb7416116cbed4d8c8100b1ae713b6356a1"><code>2fee9bb</code></a>
feat: export <code>ConfigObject</code> from <code>eslint/config</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/21082">#21082</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e7d1e4373bf626f8da76d62ce024c28928bc99bc"><code>e7d1e43</code></a>
ci: bump actions/setup-go from 6 to 7 (<a
href="https://redirect.github.com/eslint/eslint/issues/21118">#21118</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/eslint/eslint/compare/v10.7.0...v10.8.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `globals` from 17.7.0 to 17.8.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.8.0</h2>
<ul>
<li>Update globals (2026-07-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/347">#347</a>)
7394811</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.7.0...v17.8.0">https://github.com/sindresorhus/globals/compare/v17.7.0...v17.8.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sindresorhus/globals/commit/36c76590583fc1f31d755525862eda1793a7d661"><code>36c7659</code></a>
17.8.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/739481186ed54482e29845eff0bc44803c35fde8"><code>7394811</code></a>
Update globals (2026-07-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/347">#347</a>)</li>
<li>See full diff in <a
href="https://github.com/sindresorhus/globals/compare/v17.7.0...v17.8.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-01 21:03:01 -06:00
Bot Githubaction 73e4c4222b Update gradle-actions-caching library to v1.0.0 (#1029)
Updates to the latest gradle-actions-caching library.
2026-08-01 20:57:35 -06:00
Daz DeBoerandClaude Opus 5 a9d14388b4 Add dependabot ignore rules for TypeScript 7.x and @types/node 25.x/26.x
Previously handled via `@dependabot ignore` issue comments, which don't
provide enough control. Declaring the rules in the config makes them
explicit and reviewable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 20:55:01 -06:00
bot-githubaction 68f37005d7 [bot] Update dist directory 2026-08-02 02:30:10 +00:00
5971332a8f Bump Gradle Wrapper to 9.6.1, wrapper checksums, and Develocity plugin to 4.5.0 (#1034)
Consolidates seven open bot PRs into three commits.

## 1. Bump Gradle Wrapper from 9.5.1 to 9.6.1

Combines **#1008, #1009, #1010, #1011, #1012** into a single commit.
Each of those PRs bumped the wrapper in one directory; this covers all
five (15 files):

- `sources/test/init-scripts`
- `.github/workflow-samples/gradle-plugin`
- `.github/workflow-samples/groovy-dsl`
- `.github/workflow-samples/java-toolchain`
- `.github/workflow-samples/kotlin-dsl`

Each location gets the same `distributionUrl` → `gradle-9.6.1-bin.zip`
and `distributionSha256Sum` update, plus the regenerated `gradlew` /
`gradlew.bat` scripts.

## 2. Update known wrapper checksums

**#990**, unchanged, as its own commit. Adds 36 checksum entries to
`sources/src/wrapper-validation/wrapper-checksums.json`, **including the
9.6.1 checksums** — which is what lets the wrapper bump above pass
`CI-validate-wrappers`. These two are worth landing together.

## 3. Bump Develocity Gradle plugin from 4.4.2 to 4.5.0

**#1015**, unchanged, as its own commit. Updates the plugin reference
across workflow samples, init-script tests, docs, and the injected
default in `sources/src/develocity/build-scan.ts`:

```diff
-maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.4.2')
+maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.5.0')
```

Since this touches `sources/src`, the bundled `dist/` will change when
the update-dist bot runs.

## Verification

All three cherry-picks applied without conflicts. On the combined
branch:

- `./build` — clean
- `npm run check` (prettier + eslint) — clean
- `npm test` — 373 tests, 15 suites, all passing

Original bot authorship is preserved on all three commits.

## Superseded PRs

Once this merges, these can be closed: #1008, #1009, #1010, #1011,
#1012, #990, #1015.

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
2026-08-01 20:29:23 -06:00
bot-githubaction b5bc804016 [bot] Update dist directory 2026-08-02 02:28:50 +00:00
dcbab4e919 Bump npm-dependencies group with TypeScript 6.0.3, @types/node 24.x, and security fixes (#1033)
Supersedes #1023.

## 1. Adjust dependabot's TypeScript choices

Dependabot's group bump included two changes that we don't want to take
as-is:

- **typescript**: `5.9.3` → `7.0.2`. Pinned to **6.0.3** instead.
- **@types/node**: `25.9.2` → `26.1.1`. Downgraded to the latest 24.x
(**24.13.3**), matching the Node 24 runtime the actions target.

All other updates from #1023 are kept unchanged (`@actions/cache` 6.2.0,
`semver` 7.8.5, `@typescript-eslint/eslint-plugin` 8.65.0, `esbuild`
0.28.1, `eslint` 10.7.0, `globals` 17.7.0, `prettier` 3.9.6, `ts-jest`
29.4.12), and the branch is rebased onto current `main`.

The prettier 3.9.6 bump reformats two union types in
`sources/src/cache-service.ts`; that reformatting is included so `npm
run check` passes.

## 2. Clear 5 open security advisories

`npm audit` reported 4 high and 1 low severity advisory. All are fixable
with **semver-compatible transitive updates** — `npm audit fix` clears
them without `--force`, and `package.json` is untouched.

**Production** (bundled into `dist/`, so they ship in the actions):

| Package | Before | After | Via |
| --- | --- | --- | --- |
| `undici` | 6.24.1 | 6.28.0 | `@actions/github`, `@actions/http-client`
|
| `undici` | 7.24.5 | 7.29.0 | `cheerio` |
| `brace-expansion` | 5.0.6 | 5.0.9 | `@actions/glob` → `minimatch` |
| `brace-expansion` | 2.0.3 | 2.1.4 | `@actions/artifact` → `archiver` |

**Dev only:** `shell-quote` 1.8.4 → 1.10.0 (`npm-run-all`), `js-yaml`
3.14.2 → 3.15.1 (`ts-jest`), `@babel/core` 7.28.0 → 7.29.x (`ts-jest`,
low severity).

These were outstanding because the lockfile pins transitive resolutions
while `.github/dependabot.yml` only bumps direct dependencies. Because
`undici` and `brace-expansion` are production dependencies, the bundled
`dist/` output will change when the update-dist bot runs.

## 3. Downgrade nock to 14.0.17

**nock 15.0.0 was published by mistake.** The registry marks it
deprecated:

> v15.0.0 was released accidentally and is unstable. Please use v14.x
until v15 is officially ready.

nock's `latest` dist-tag still points at 14.0.17 for exactly this
reason, and 15.x remains a beta line (`beta` = `15.0.0-beta.14`).
Dependabot picked up 15.0.0 in an earlier group bump simply because it
is the highest published version. This moves us to 14.0.17, pulling
`@mswjs/interceptors` 0.39.8 → 0.41.9 and adding `propagate` 2.0.1.

Dependabot will likely re-propose nock 15.0.0 on its next weekly run,
since no ignore rule was added.

## 4. Delete unused `sources/.nvmrc`

The file pinned Node `v16`, contradicting `package.json` engines
(`>=24.0.0`), the esbuild `node24` target, and `.tool-versions` (`nodejs
24.3.0`). Nothing reads it — no workflow uses `node-version-file` and
there are no other references in the repo. Stale since 5e522253.

## 5. Run CI workflows on Node 24

`ci-check-and-unit-test.yml`, `ci-update-dist.yml`, and
`update-checksums-file.yml` pinned `node-version: 20`, so `npm
clean-install` was emitting `EBADENGINE` warnings for the root package
against its own `engines: >=24.0.0`. All three now use Node 24, matching
`.github/actions/build-dist/action.yml`.

Worth noting: `ci-update-dist.yml` built `dist/` on Node 20 in its
inline steps while `build-dist/action.yml` built it on Node 24, so the
committed distribution could previously be produced under either
version.

## Verification

- `./build` — clean
- `npm run check` (prettier + eslint) — clean
- `npm test` — 373 tests, 15 suites, all passing
- `npm audit` — **found 0 vulnerabilities** (was 4 high, 1 low)
- `npx tsc --noEmit` — one pre-existing error in
`@octokit/request-error` types (`Cannot find name 'ErrorOptions'`),
identical on `main` with TypeScript 5.9.3, so not a regression. `tsc` is
not part of the build or CI.

A clean regeneration of `package-lock.json` from `package.json` was also
evaluated. It likewise yields 0 vulnerabilities and 373 passing tests,
but churns 80 transitive packages including the `@azure/core-*` /
`@azure/storage-blob` stack used by `@actions/cache`. Since it offers no
security benefit over the current lockfile, it was not adopted.

### Known-failing checks (pre-existing on `main`)

The three `smoke-tests / restore-gradle-home / … (windows-latest)` jobs
fail with `Build was not cached: unexpected execution of test task`. The
identical three jobs fail on `main` in run
[30723964208](https://github.com/gradle/actions/actions/runs/30723964208),
on the very commit this branch is based on, so they are not caused by
these changes.

## Not included

`npm outdated` also shows `eslint` 10.7.0 → 10.8.0 and `globals` 17.7.0
→ 17.8.0. Both are dev-only and dependabot's weekly npm group run will
propose them.

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

---------

Signed-off-by: dependabot[bot] <support@github.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-08-01 20:28:09 -06:00
Daz DeBoerandClaude Opus 5 ca8d95717f Move non-smoke restore-gradle-home tests back to the integ-test suite (#1032)
Partial revert of the extraction in #1027. The caching smoke test should
answer one question quickly — does a seeded cache let a later build run
`--offline`? Everything else is integration-level.

Replaces #1031 and #1030, squashed into a single commit.

## Layout

`smoke-test-restore-gradle-home.yml` — two jobs:

| job | purpose |
|---|---|
| `restore-gradle-home-seed-build` | seed the cache |
| `restore-gradle-home-dependencies-cache` | verify the restored cache
allows `--offline` |

`integ-test-restore-gradle-home.yml` — restored, wired back into
`suite-integ-test-caching`:

| job | purpose |
|---|---|
| `restore-gradle-home-seed-build` | seed the cache (duplicated, see
below) |
| `restore-gradle-home-build-cache` | local build-cache restored |
| `restore-gradle-home-no-extracted-cache-entries-restored` | build
works with cache entries skipped |
| `restore-gradle-home-pre-existing-gradle-home` | pre-existing GUH
overwritten by restore |

This file is identical to the pre-#1027 original except for the
`dependencies-cache` job, which the smoke test now owns. All four jobs
keep the `runner-os` matrix.

## Notes

**The seed job is duplicated, with distinct cache keys.** The smoke
suite uses `smoke-test-restore-gradle-home-*`; the integ suite keeps
`restore-gradle-home-*`. This matters: `smoke-tests` and
`caching-integ-tests` run concurrently in `ci-integ-test.yml`, so
sharing a key would have both suites racing to write the same entry.

**Distinct workflow `name:`.** The smoke workflow is `Smoke test restore
Gradle Home`, so the two don't appear identically in the Actions UI.

**One thing to be aware of for the future:**
`restore-gradle-home-pre-existing-gradle-home` cannot pass on Windows.
Pre-creating `~/.gradle` is what stops `setup-gradle` relocating the
Gradle User Home to `D:\a\.gradle`, so the job looks for a cache entry
rooted at a different path than the seed build saved and never matches
it. The caching integ suite runs ubuntu-only, so this is not a problem
today — but adding Windows to that suite would surface it.

## Verification

All workflow YAML parses, and every local `uses:` reference resolves —
no dangling paths after the rename and re-add.

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

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 20:18:37 -06:00
bot-githubaction 4318659b28 [bot] Update dist directory 2026-08-01 23:45:55 +00:00
Daz DeBoerandClaude Opus 5 79b19cd50f Fix basic caching smoke test on Windows, and warn on save failure (#1028)
Follow-up to #1027, which added Windows coverage for the caching smoke
tests. `basic-cache-verify-build` failed on Windows for a reason
unrelated to #1013.

## Root cause

The Windows seed job **never uploaded a cache entry, but reported that
it did**. `gh cache list` showed no `setup-java-Windows-*` entry at all,
despite the job logging `Basic caching saved entry with key:
setup-java-Windows-x64-gradle-594edf…`. The keys were never the problem
— seed and verify requested the identical key.

The seed build leaves a Gradle daemon running, holding the `*.lock`
files in the Gradle User Home. On Windows those locks are mandatory, so
`tar` cannot read them:

```
/usr/bin/tar: ../../.gradle/caches/modules-2/modules-2.lock: Read error at byte 0,
              while reading 38 bytes: Device or resource busy
/usr/bin/tar: Exiting with failure status due to previous errors
```

38 bytes is exactly Gradle's lock-file header — the region the daemon
holds via `FileChannel.lock()`. On Linux the lock is advisory and tar
reads straight through, which is why this only ever failed on Windows.

`cache.saveCache()` catches the tar failure, logs it, and returns `-1`
rather than throwing. `BasicCacheService.save()` ignored the return
value, so the seed job went green and the failure surfaced only later —
as a plugin resolution error in the verify job, pointing nowhere near
caching.

## Changes

**1. Warn when the save fails.** Check the returned `cacheId` and, when
it is `-1`, emit a warning and report `(Entry not saved: save failed)`
in the job summary. Caching failures still do not fail the build.

**2. Run the seed build with `--no-daemon`.** Daemon management for
enhanced caching lives in the `gradle-actions-caching` library; basic
caching leaves it to the workflow, so the smoke test now ensures no
daemon is holding locks when the post-action save runs.

## Not related to #1013

The enhanced provider fails differently on Windows — every entry dies at
path validation, before tar runs (`Path Validation Error: Path(s)
specified in the action for caching do(es) not exist`). Same symptom,
different mechanism; that one is unchanged here and is still expected to
be red.

## Verification

`npm run check` and `npm test` pass locally (373 tests). The real check
is this PR's Windows run: `basic-cache-seed-build` and
`basic-cache-verify-build` should both be green on `windows-latest`,
while the `restore-gradle-home-*` Windows jobs stay red pending the
#1013 fix.

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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 17:45:05 -06:00
Daz DeBoerandClaude Opus 5 9d31058114 Add Windows coverage for caching via a new smoke-test suite (#1027)
## Why

Issue #1013 revealed that caching was **never storing content on
Windows**. Nothing caught it because the integ-tests lost their multi-OS
matrices: these workflows used to default to `'["ubuntu-latest",
"windows-latest", "macos-latest"]'`, narrowed to ubuntu-only in bcd07e66
/ d74ee73e (Aug 2024). The Windows code path has been dark ever since.

## What

Extract the two cheapest caching tests — `restore-gradle-home` and
`basic-cache-provider` — into a new `suite-smoke-test-caching` workflow,
and run that suite on both `ubuntu-latest` and `windows-latest`.

Both tests seed a cache in one job and then verify it in a dependent job
with an `--offline` build, so a cache that stores nothing fails the
verify job rather than passing silently.

- Rename `integ-test-{restore-gradle-home,basic-cache-provider}` →
`smoke-test-*` and drop them from `suite-integ-test-caching`
- Add the new suite to both `CI-integ-test` and `CI-integ-test-full`,
each with its own concurrency group matching the sibling suites
- Include `smoke-tests` in the `integ-test-success` aggregate gate
- Ignore the generated `task-configured.txt` marker in
`workflow-samples`
- Drop a dead `needs.determine-suite` guard on the `build-distribution`
step — `CI-integ-test` has no such job, so it always evaluated to true

The suite runs on Windows in PR CI (not just `CI-integ-test-full`)
specifically so the failure is visible on this PR and the fix can be
verified the same way.

## Expected result

This PR is expected to be **red on Windows**.
`restore-gradle-home-dependencies-cache` and `basic-cache-verify-build`
should fail with dependency-resolution errors under `--offline` — that
is the bug from #1013 being caught. The ubuntu legs should stay green.

Cross-OS cache keys are safe: both providers include `RUNNER_OS` in the
key (`sources/src/cache-service-basic.ts:146`), so the matrix legs don't
collide.

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

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 17:15:42 -06:00
bot-githubaction 0088877924 [bot] Update dist directory 2026-07-31 19:09:45 +00:00
Reinhold Degenfellner ff4dbcd5fa Disable Isolated Projects via promoted property in dependency-submission (#1025)
## Problem

The `dependency-submission` action disables Isolated Projects for the
dependency-resolution build by passing
`-Dorg.gradle.unsafe.isolated-projects=false`.

Recent Gradle versions have promoted the property to
`org.gradle.isolated-projects`. A build that enables IP via the promoted
property (e.g. `gradle/gradle`, see [this failing
run](https://github.com/gradle/gradle/actions/runs/30357651750/job/90269499556?pr=38402))
is no longer disabled by the unsafe spelling, so the build runs with IP
enabled and fails:

```
Error resolving plugin [id: 'gradlebuild.build-environment']
> Project ':build-logic-settings' cannot access 'Project.tasks' functionality on subprojects via 'allprojects'
```

(`ForceDependencyResolutionPlugin` is not IP-compatible.)

## Fix

Pass both spellings of the property. `-D` system properties that Gradle
does not recognize are silently ignored, so this is safe for all
supported Gradle versions — the action already passes the unsafe
spelling to pre-IP Gradle versions without issue.
2026-07-31 13:08:52 -06:00
Daz DeBoer 6550634d3e Use the latest dependency graph plugin 2026-07-04 21:16:38 -06:00
Bot Githubaction b128da9bf0 Update gradle-actions-caching library to v0.9.0 (#996)
## What's Changed

> [!IMPORTANT]
> **Cache invalidation:** The cache protocol version has been bumped to `v2`, invalidating all cache entries written by earlier releases. The first build after upgrading will not find existing caches and will repopulate them from scratch.

### Improvements
* **Consistent cache-entry names in reports** — every extracted cache entry now has a single, unique name reported identically on both restore and save. Previously the restore report could show a raw glob pattern (e.g. `caches/modules-*/files-*/*/*/*/*/`) instead of a friendly name like `dependencies`. Bundled entries are named by artifact type, per-file entries by their Gradle-User-Home-relative path, and per-project entries by `project-<rootProjectName>`.
2026-06-16 19:59:10 +00:00
bot-githubaction ee7ea9a078 [bot] Update dist directory 2026-06-16 18:15:16 +00:00
Daz DeBoerandClaude Opus 4.8 9c445f57df Support experimental project-entry caching (configuration-cache + build-logic) (#994)
Pass develocityAccessToken and develocityServerUrl the
`gradle-actions-caching`: required to support project-entry caching
(build-logic + configuration-cache), which has experimental support in
'gradle-actions-cache@v0.8.0. This support is not yet released and will
be available as a restricted trial.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 18:14:19 +00:00
Bot Githubaction bbaaec0da2 Update gradle-actions-caching library to v0.8.0 (#993)
Updates to the latest gradle-actions-caching library, bringing experimental support for caching of project content.
2026-06-16 18:07:10 +00:00
bot-githubaction 54d3208a40 [bot] Update dist directory 2026-06-13 01:52:50 +00:00
Daz DeBoerandClaude Opus 4.8 e993c93d71 Render configuration-cache status in the caching Job Summary (#989)
Render the configuration-cache restore-state in the caching Job Summary,
driven by the new `CacheReport.configurationCache` field produced by the
`gradle-actions-caching` provider.

## What's here

- `cache-service.ts`: add a `ConfigurationCacheStatus` type
(`not-active` / `restored` / `not-restored` / `restore-incomplete`) and
an optional `configurationCache` field on `CacheReport`.
- `caching-report.ts`: a `CONFIG_CACHE_COPY` map and a prominent status
line in `renderCachingReport`, beside the cleanup line. The `not-active`
case links to the `#cache-encryption-key` docs.

## Cross-repo dependency

The field is populated by gradle/actions-caching PR #75 ("Restore
configuration-cache support for simple builds"). This rendering compiles
independently (it uses this repo's own `CacheReport` type) and renders
nothing until the vendored `gradle-actions-caching` bundle is refreshed
from that branch — so this should land with/after the vendor refresh.

## Verification

`npm run check` clean; full Jest suite (366 tests) passes, including 3
new rendering tests.

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

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 19:51:57 -06:00
114 changed files with 5856 additions and 2253 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
+1 -1
View File
@@ -10,7 +10,7 @@ runs:
using: "composite"
steps:
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: 'temurin'
java-version: ${{ inputs.java-version }}
+12
View File
@@ -15,6 +15,18 @@ updates:
npm-dependencies:
patterns:
- "*"
ignore:
- dependency-name: "typescript"
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
+3
View File
@@ -3,3 +3,6 @@
# Ignore Gradle build output directory
build
# Marker file written when the 'test' task is configured
task-configured.txt
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -19,7 +19,7 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@@ -72,7 +72,7 @@ echo location of your Java installation. 1>&2
@rem Execute Gradle
@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
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+2 -2
View File
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -19,7 +19,7 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@@ -72,7 +72,7 @@ echo location of your Java installation. 1>&2
@rem Execute Gradle
@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
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.develocity" version "4.5.0"
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=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -19,7 +19,7 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@@ -72,7 +72,7 @@ echo location of your Java installation. 1>&2
@rem Execute Gradle
@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
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+2 -2
View File
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -19,7 +19,7 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@@ -72,7 +72,7 @@ echo location of your Java installation. 1>&2
@rem Execute Gradle
@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
@@ -1,5 +1,5 @@
plugins {
id("com.gradle.develocity") version "4.4.2"
id("com.gradle.develocity") version "4.5.0"
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.4.0"
}
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.develocity" version "4.5.0"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.develocity" version "4.5.0"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.develocity" version "4.5.0"
}
develocity {
+4 -4
View File
@@ -18,15 +18,15 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
- name: Setup Gradle
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
with:
@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
+3 -3
View File
@@ -31,11 +31,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # 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@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v3.29.5
+3 -3
View File
@@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
# Detect whether anything relevant to the init-script tests changed.
@@ -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@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.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@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.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
+11
View File
@@ -14,6 +14,16 @@ permissions:
contents: read
jobs:
smoke-tests:
uses: ./.github/workflows/suite-smoke-test-caching.yml
concurrency:
group: CI-smoke-test-caching
cancel-in-progress: false
with:
skip-dist: true
runner-os: '["ubuntu-latest", "windows-latest"]'
secrets: inherit
caching-integ-tests:
uses: ./.github/workflows/suite-integ-test-caching.yml
concurrency:
@@ -26,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:
+15 -2
View File
@@ -19,11 +19,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
if: ${{ needs.determine-suite.outputs.suite != 'full' }}
uses: ./.github/actions/build-dist
smoke-tests:
needs: build-distribution
uses: ./.github/workflows/suite-smoke-test-caching.yml
concurrency:
group: CI-smoke-test-caching-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
runner-os: '["ubuntu-latest", "windows-latest"]'
secrets: inherit
caching-integ-tests:
needs: build-distribution
uses: ./.github/workflows/suite-integ-test-caching.yml
@@ -37,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:
@@ -64,6 +75,7 @@ jobs:
if: ${{ always() }}
needs:
- build-distribution
- smoke-tests
- caching-integ-tests
- other-integ-tests
- dependency-submission-integ-tests
@@ -74,6 +86,7 @@ jobs:
run: |
echo "One or more integ-test jobs did not succeed:"
echo " build-distribution: ${{ needs.build-distribution.result }}"
echo " smoke-tests: ${{ needs.smoke-tests.result }}"
echo " caching-integ-tests: ${{ needs.caching-integ-tests.result }}"
echo " other-integ-tests: ${{ needs.other-integ-tests.result }}"
echo " dependency-submission-integ-tests: ${{ needs.dependency-submission-integ-tests.result }}"
+2 -2
View File
@@ -21,13 +21,13 @@ jobs:
steps:
- name: 'Checkout code'
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
show-progress: false
- name: 'Run analysis'
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
with:
results_file: results.sarif
results_format: sarif
+4 -4
View File
@@ -23,14 +23,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
@@ -73,7 +73,7 @@ jobs:
# Important: The push event will not trigger any other workflows, see
# https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#commits-made-by-this-action-do-not-trigger-new-workflow-runs
- name: Commit & push changes
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0
with:
commit_author: bot-githubaction <bot-githubaction@gradle.com>
commit_user_name: bot-githubaction
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
validate-typings:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: typesafegithub/github-actions-typing@9ddf35b71a482be7d8922b28e8d00df16b77e315 # v2.2.2
with:
ignored-action-files: |
+2 -2
View File
@@ -11,7 +11,7 @@ jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: gradle/actions/wrapper-validation@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: gradle/actions/wrapper-validation@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
with:
allow-checksums: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+100 -10
View File
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
uses: ./.github/actions/build-dist
@@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -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,12 +57,85 @@ 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
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +155,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -103,7 +176,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -120,7 +193,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -132,12 +205,29 @@ 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
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -154,7 +244,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -172,7 +262,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
uses: ./.github/actions/build-dist
@@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -41,7 +41,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -32,7 +32,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -57,7 +57,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -83,7 +83,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -91,7 +91,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -115,7 +115,7 @@ jobs:
runs-on: ubuntu-latest # This test only runs on Ubuntu
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -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:
@@ -146,7 +170,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -170,7 +194,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -45,7 +45,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -80,7 +80,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -123,7 +123,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -160,7 +160,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -86,7 +86,7 @@ jobs:
contents: read
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -58,7 +58,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +82,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -104,7 +104,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -124,7 +124,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -172,7 +172,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -193,7 +193,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -255,7 +255,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -272,7 +272,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -309,7 +309,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -350,7 +350,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -382,7 +382,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -401,7 +401,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -60,20 +60,24 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Java 16
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.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@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.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.4.2']
plugin-version: ['3.16.2', '4.5.0']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -43,7 +43,7 @@ jobs:
java-version: 11
- plugin-version: '3.16.2'
accessKeyEnv: GRADLE_ENTERPRISE_ACCESS_KEY
- plugin-version: '4.4.2'
- plugin-version: '4.5.0'
accessKeyEnv: DEVELOCITY_ACCESS_KEY
runs-on: ${{ matrix.os }}
env:
@@ -55,7 +55,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -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.4.2']
plugin-version: ['3.16.2', '4.5.0']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -106,7 +106,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -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.4.2' ]
plugin-version: [ '3.16.2', '4.5.0' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -162,7 +162,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -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.4.2' ]
plugin-version: [ '3.16.2', '4.5.0' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -205,7 +205,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -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@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: temurin
java-version: 17
@@ -105,12 +105,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
@@ -24,7 +24,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -43,7 +43,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -67,7 +67,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -43,29 +43,6 @@ jobs:
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
restore-gradle-home-dependencies-cache:
needs: restore-gradle-home-seed-build
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
- name: Execute Gradle build with --offline
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test --offline
# Test that the gradle-user-home cache will cache and restore local build-cache
restore-gradle-home-build-cache:
needs: restore-gradle-home-seed-build
@@ -77,7 +54,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -100,7 +77,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -125,7 +102,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -56,7 +56,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -111,7 +111,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: |
.github
@@ -145,7 +145,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v4.2.2 # Checkout the repository with no wrappers
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4.2.2 # Checkout the repository with no wrappers
with:
sparse-checkout: |
.github/actions
@@ -1,4 +1,4 @@
name: Test basic cache provider
name: Smoke test basic caching
on:
workflow_call:
@@ -15,7 +15,7 @@ on:
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: basic-cache-provider-${{ inputs.cache-key-prefix }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: smoke-test-basic-caching-${{ inputs.cache-key-prefix }}
permissions:
contents: read
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -39,9 +39,12 @@ jobs:
with:
cache-provider: basic
cache-read-only: false # For testing, allow writing cache entries on non-default branches
# Basic caching does no daemon management, so the workflow must ensure no daemon is left
# holding locks on the Gradle User Home when the post-action save runs. Without this, `tar`
# cannot read the Gradle '*.lock' files on Windows and the cache entry is never saved.
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew build
run: ./gradlew build --no-daemon
basic-cache-verify-build:
needs: basic-cache-seed-build
@@ -53,7 +56,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -0,0 +1,67 @@
name: Smoke test enhanced caching
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: smoke-test-enhanced-caching-${{ inputs.cache-key-prefix }}
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: smoke-test-enhanced-caching
permissions:
contents: read
jobs:
enhanced-cache-seed-build:
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
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-read-only: false # For testing, allow writing cache entries on non-default branches
- name: Build using Gradle wrapper
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
enhanced-cache-verify-build:
needs: enhanced-cache-seed-build
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
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-read-only: true
- name: Execute Gradle build with --offline
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test --offline
@@ -57,9 +57,3 @@ jobs:
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
basic-cache-provider:
uses: ./.github/workflows/integ-test-basic-cache-provider.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
@@ -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:
@@ -0,0 +1,27 @@
name: suite-smoke-test-caching
on:
workflow_call:
inputs:
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
permissions:
contents: read
jobs:
enhanced-caching:
uses: ./.github/workflows/smoke-test-enhanced-caching.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
basic-caching:
uses: ./.github/workflows/smoke-test-basic-caching.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
+3 -3
View File
@@ -19,12 +19,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
+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'
+166 -156
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var K8e=Object.create;var $M=Object.defineProperty;var $8e=Object.getOwnPropertyDescriptor;var X8e=Object.getOwnPropertyNames;var Z8e=Object.getPrototypeOf,e4e=Object.prototype.hasOwnProperty;var b=(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)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Sa=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},t4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of X8e(e))!e4e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=$8e(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?K8e(Z8e(t)):{},t4e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var HZ=E(Hp=>{"use strict";var x7t=b("net"),a4e=b("tls"),tL=b("http"),UZ=b("https"),c4e=b("events"),R7t=b("assert"),A4e=b("util");Hp.httpOverHttp=u4e;Hp.httpsOverHttp=l4e;Hp.httpOverHttps=d4e;Hp.httpsOverHttps=h4e;function u4e(t){var e=new Au(t);return e.request=tL.request,e}function l4e(t){var e=new Au(t);return e.request=tL.request,e.createSocket=PZ,e.defaultPort=443,e}function d4e(t){var e=new Au(t);return e.request=UZ.request,e}function h4e(t){var e=new Au(t);return e.request=UZ.request,e.createSocket=PZ,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||tL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=OZ(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)})}A4e.inherits(Au,c4e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,OZ(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=rL({},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")),Rl("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){Rl("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){Rl("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 Rl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Rl(`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 PZ(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=rL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=a4e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function OZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function rL(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 Rl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Rl=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)}:Rl=function(){};Hp.debug=Rl});var nL=E((k7t,GZ)=>{GZ.exports=HZ()});var yr=E((v7t,qZ)=>{qZ.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 Lt=E((_7t,fee)=>{"use strict";var YZ=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[YZ]===!0}[YZ]=!0},VZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),sL=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[VZ]===!0}[VZ]=!0},WZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iL=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[WZ]===!0}[WZ]=!0},JZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),oL=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[JZ]===!0}[JZ]=!0},zZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aL=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[zZ]===!0}[zZ]=!0},jZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),cL=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 x5e(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(h5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function R5e(){return"allowed"}function D5e(){return"success"}function k5e(){return"success"}function v5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function _5e(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&&ZL(t.origin)&&!ZL(NI(t))&&(e=null);break;case"same-origin":pS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function $p(t,e){return t}function F5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:$p(t.domainLookupStartTime,r),domainLookupEndTime:$p(t.domainLookupEndTime,r),connectionStartTime:$p(t.connectionStartTime,r),connectionEndTime:$p(t.connectionEndTime,r),secureConnectionStartTime:$p(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function M5e(t){return $p(E5e.now(),t)}function L5e(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 Tte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function U5e(t){return{referrerPolicy:t.referrerPolicy}}function P5e(t){let e=t.referrerPolicy;Vh(e);let r=null;if(t.referrer==="client"){let a=Bte();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=XL(r),s=XL(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??XL(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 XL(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 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 O5e(t,e){if(gS===void 0)return!0;let r=xte(e);if(r==="no metadata"||r.length===0)return!0;let n=G5e(r),s=q5e(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)),Y5e(c,a))return!0}return!1}var H5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function xte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=H5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Qte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function G5e(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 q5e(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 Y5e(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 V5e(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 W5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function J5e(t){return t.controller.state==="aborted"}function z5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function j5e(t){return y5e[t.toLowerCase()]??t}function K5e(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 $5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Rte(t,e,r=0,n=1){class s{ Line truncated
`);function NHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function THe(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 xHe(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,wHe,i)||i.position===t.length-4&&CS(t,SHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=RHe(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",NHe(u)||(u=""),h=new bHe([d],A,{type:u})):h=EHe(Buffer.from(d)),ES(Gte(c)),ES(typeof h=="string"&&Gte(h)||IHe(h)),s.push(yHe(c,h,A))}}function RHe(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=Zp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=oU(o,!0,!0,a=>a===9||a===32),!CHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Zp(a=>a===32||a===9,t,e),mHe(o)){case"content-disposition":{if(r=n=null,!CS(t,QHe,e)||(e.position+=17,r=Vte(t,e),r===null))return"failure";if(CS(t,Yte,e)){let a=e.position+Yte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Vte(t,e),n===null))return"failure"}break}case"content-type":{let a=Zp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=qte(a);break}case"content-transfer-encoding":{let a=Zp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=qte(a);break}default:Zp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Vte(t,e){ES(t[e.position-1]===34);let r=Zp(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 Zp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function oU(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}Wte.exports={multipartFormDataParser:xHe,validateBoundary:THe}});var rm=E((iWt,nre)=>{"use strict";var RI=dt(),{ReadableStreamFrom:DHe,isBlobLike:zte,isReadableStreamLike:kHe,readableStreamClose:vHe,createDeferredPromise:_He,fullyReadBody:FHe,extractMimeType:MHe,utf8DecodeBytes:$te}=xi(),{FormData:jte}=xI(),{kState:tm}=Dl(),{webidl:LHe}=Kn(),{Blob:UHe}=b("node:buffer"),aU=b("node:assert"),{isErrored:Xte,isDisturbed:PHe}=b("node:stream"),{isArrayBuffer:OHe}=b("node:util/types"),{serializeAMimeType:HHe}=Ks(),{multipartFormDataParser:GHe}=Jte(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var IS=new TextEncoder;function qHe(){}var Zte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,ere;Zte&&(ere=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!PHe(e)&&!Xte(e)&&e.cancel("Response object has been garbage collected").catch(qHe)}));function tre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:zte(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(()=>vHe(c))},start(){},type:"bytes"}),aU(kHe(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(OHe(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${`${cU(1e11)}`.padStart(11,"0")}`,A=`--${c}\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=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=IS.encode(A+`; name="${u(l(I))}"\r
var CHe=Object.create;var jU=Object.defineProperty;var IHe=Object.getOwnPropertyDescriptor;var yHe=Object.getOwnPropertyNames;var BHe=Object.getPrototypeOf,bHe=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}},gc=(t,e)=>{for(var r in e)jU(t,r,{get:e[r],enumerable:!0})},QHe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of yHe(e))!bHe.call(t,s)&&s!==r&&jU(t,s,{get:()=>e[s],enumerable:!(n=IHe(e,s))||n.enumerable});return t};var Ee=(t,e,r)=>(r=t!=null?CHe(BHe(t)):{},QHe(e||!t||!t.__esModule?jU(r,"default",{value:t,enumerable:!0}):r,t));var ere=C(A0=>{"use strict";var fjt=Q("net"),DHe=Q("tls"),$U=Q("http"),Xte=Q("https"),RHe=Q("events"),gjt=Q("assert"),kHe=Q("util");A0.httpOverHttp=vHe;A0.httpsOverHttp=FHe;A0.httpOverHttps=MHe;A0.httpsOverHttps=_He;function vHe(t){var e=new el(t);return e.request=$U.request,e}function FHe(t){var e=new el(t);return e.request=$U.request,e.createSocket=Zte,e.defaultPort=443,e}function MHe(t){var e=new el(t);return e.request=Xte.request,e}function _He(t){var e=new el(t);return e.request=Xte.request,e.createSocket=Zte,e.defaultPort=443,e}function el(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$U.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=$te(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)})}kHe.inherits(el,RHe.EventEmitter);el.prototype.addRequest=function(e,r,n,s){var i=this,o=eP({request:e},i.options,$te(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)}})};el.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eP({},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")),vd("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){vd("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){vd("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 vd("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),vd(`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)}};el.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 Zte(t,e){var r=this;el.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eP({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=DHe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function $te(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eP(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 vd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?vd=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)}:vd=function(){};A0.debug=vd});var tP=C((mjt,tre)=>{tre.exports=ere()});var vr=C((Ejt,rre)=>{rre.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 Vt=C((Cjt,Nre)=>{"use strict";var nre=Symbol.for("undici.error.UND_ERR"),Fr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[nre]===!0}[nre]=!0},sre=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),rP=class extends Fr{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[sre]===!0}[sre]=!0},ire=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),nP=class extends Fr{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[ire]===!0}[ire]=!0},ore=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),sP=class extends Fr{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[ore]===!0}[ore]=!0},are=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),iP=class extends Fr{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[are]===!0}[are]=!0},cre=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),oP=class extends Fr{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 ZGe(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(_Ge.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function $Ge(){return"allowed"}function e9e(){return"success"}function t9e(){return"success"}function r9e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function n9e(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&&XP(t.origin)&&!XP(rB(t))&&(e=null);break;case"same-origin":XN(t,rB(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function C0(t,e){return t}function s9e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:C0(t.domainLookupStartTime,r),domainLookupEndTime:C0(t.domainLookupEndTime,r),connectionStartTime:C0(t.connectionStartTime,r),connectionEndTime:C0(t.connectionEndTime,r),secureConnectionStartTime:C0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function i9e(t){return C0(HGe.now(),t)}function o9e(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 Hne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function a9e(t){return{referrerPolicy:t.referrerPolicy}}function c9e(t){let e=t.referrerPolicy;Kf(e);let r=null;if(t.referrer==="client"){let a=Mne();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=KP(r),s=KP(r,!0);n.toString().length>4096&&(n=s);let i=XN(t,n),o=tB(n)&&!tB(t.url);switch(e){case"origin":return s??KP(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=rB(t);return XN(n,a)?n:tB(n)&&!tB(a)?"no-referrer":s}default:return o?"no-referrer":s}}function KP(t,e){return Kf(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 tB(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 A9e(t,e){if(KN===void 0)return!0;let r=Gne(e);if(r==="no metadata"||r.length===0)return!0;let n=l9e(r),s=d9e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=KN.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)),h9e(c,a))return!0}return!1}var u9e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Gne(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=u9e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Lne.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function l9e(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 d9e(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 h9e(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 f9e(t){}function XN(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function g9e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function p9e(t){return t.controller.state==="aborted"}function m9e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function E9e(t){return YGe[t.toLowerCase()]??t}function C9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Kf(typeof e=="string"),e}var I9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function qne(t,e,r=0,n=1){class s{ Line truncated
`);function K9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function X9e(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){$N(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&&eT(t,z9e,i)||i.position===t.length-4&&eT(t,j9e,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",K9e(u)||(u=""),h=new J9e([d],A,{type:u})):h=H9e(Buffer.from(d)),$N(tse(c)),$N(typeof h=="string"&&tse(h)||q9e(h)),s.push(Y9e(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=y0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=sO(o,!0,!0,a=>a===9||a===32),!G9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,y0(a=>a===32||a===9,t,e),O9e(o)){case"content-disposition":{if(r=n=null,!eT(t,W9e,e)||(e.position+=17,r=sse(t,e),r===null))return"failure";if(eT(t,nse,e)){let a=e.position+nse.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=sse(t,e),n===null))return"failure"}break}case"content-type":{let a=y0(c=>c!==10&&c!==13,t,e);a=sO(a,!1,!0,c=>c===9||c===32),s=rse(a);break}case"content-transfer-encoding":{let a=y0(c=>c!==10&&c!==13,t,e);a=sO(a,!1,!0,c=>c===9||c===32),i=rse(a);break}default:y0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function sse(t,e){$N(t[e.position-1]===34);let r=y0(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 y0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function sO(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 eT(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}ise.exports={multipartFormDataParser:Z9e,validateBoundary:X9e}});var Q0=C((Yjt,pse)=>{"use strict";var iB=Ct(),{ReadableStreamFrom:eqe,isBlobLike:ase,isReadableStreamLike:tqe,readableStreamClose:rqe,createDeferredPromise:nqe,fullyReadBody:sqe,extractMimeType:iqe,utf8DecodeBytes:use}=ao(),{FormData:cse}=sB(),{kState:b0}=Fd(),{webidl:oqe}=gs(),{Blob:aqe}=Q("node:buffer"),iO=Q("node:assert"),{isErrored:lse,isDisturbed:cqe}=Q("node:stream"),{isArrayBuffer:Aqe}=Q("node:util/types"),{serializeAMimeType:uqe}=Qi(),{multipartFormDataParser:lqe}=ose(),oO;try{let t=Q("node:crypto");oO=e=>t.randomInt(0,e)}catch{oO=t=>Math.floor(Math.random(t))}var tT=new TextEncoder;function dqe(){}var dse=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,hse;dse&&(hse=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!cqe(e)&&!lse(e)&&e.cancel("Response object has been garbage collected").catch(dqe)}));function fse(t,e=!1){let r=null;t instanceof ReadableStream?r=t:ase(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?tT.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>rqe(c))},start(){},type:"bytes"}),iO(tqe(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(Aqe(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(iB.isFormDataLike(t)){let c=`----formdata-undici-0${`${oO(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=tT.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=IS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=tT.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=IS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(zte(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:DHe(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(!Xte(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 YHe(t,e=!1){return t instanceof ReadableStream&&(aU(!RI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),tre(t,e)}function VHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function WHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function JHe(t){return{blob(){return em(this,r=>{let n=Kte(this);return n===null?n="":n&&(n=HHe(n)),new UHe([r],{type:n})},t)},arrayBuffer(){return em(this,r=>new Uint8Array(r).buffer,t)},text(){return em(this,$te,t)},json(){return em(this,jHe,t)},formData(){return em(this,r=>{let n=Kte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=GHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new jte;return i[tm]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new jte;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 em(this,r=>new Uint8Array(r),t)}}}function zHe(t){Object.assign(t.prototype,JHe(t))}async function em(t,e,r){if(LHe.brandCheck(t,r),rre(t))throw new TypeError("Body is unusable: Body has already been read");WHe(t[tm]);let n=_He(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[tm].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await FHe(t[tm].body,i,s),n.promise)}function rre(t){let e=t[tm].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function jHe(t){return JSON.parse($te(t))}function Kte(t){let e=t[tm].headersList,r=MHe(e);return r==="failure"?null:r}nre.exports={extractBody:tre,safelyExtractBody:YHe,cloneBody:VHe,mixinBody:zHe,streamRegistry:ere,hasFinalizationRegistry:Zte,bodyUnusable:rre}});var fre=E((oWt,hre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:sre}=qp(),AU=YL(),{RequestContentLengthMismatchError:Wh,ResponseContentLengthMismatchError:KHe,RequestAbortedError:ure,HeadersTimeoutError:$He,HeadersOverflowError:XHe,SocketError:SS,InformationalError:nm,BodyTimeoutError:ZHe,HTTPParserError:e9e,ResponseExceededMaxSizeError:t9e}=Lt(),{kUrl:lre,kReset:$s,kClient:hU,kParser:Mr,kBlocking:vI,kRunning:cs,kPending:r9e,kSize:ire,kWriting:vl,kQueue:Ta,kNoRef:DI,kKeepAliveDefaultTimeout:n9e,kHostHeader:s9e,kPendingIdx:i9e,kRunningIdx:Qo,kError:wo,kPipelining:QS,kSocket:sm,kKeepAliveTimeoutValue:NS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:o9e,kKeepAliveTimeoutThreshold:a9e,kHeadersTimeout:c9e,kBodyTimeout:A9e,kStrictContentLength:fU,kMaxRequests:ore,kCounter:u9e,kMaxResponseSize:l9e,kOnError:d9e,kResume:kl,kHTTPContext:dre}=yr(),Sc=ete(),h9e=Buffer.alloc(0),yS=Buffer[Symbol.species],BS=Xe.addListener,f9e=Xe.removeAllListeners,lU;async function g9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(nte())}catch{e=await WebAssembly.compile(t||JL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onStatus(new yS(Nc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(gn.ptr===r),gn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onHeaderField(new yS(Nc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onHeaderValue(new yS(Nc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(gn.ptr===r),gn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onBody(new yS(Nc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=g9e();gU.catch();var gn=null,Nc=null,bS=0,Tc=null,p9e=0,kI=1,im=2|kI,wS=4|kI,pU=8|p9e,mU=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[uU])&&e[uU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Sc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[s9e],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=tT.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(ase(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(iB.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:eqe(t)}if((typeof s=="string"||iB.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(!lse(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 hqe(t,e=!1){return t instanceof ReadableStream&&(iO(!iB.isDisturbed(t),"The body has already been consumed."),iO(!t.locked,"The stream is locked.")),fse(t,e)}function fqe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function gqe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function pqe(t){return{blob(){return B0(this,r=>{let n=Ase(this);return n===null?n="":n&&(n=uqe(n)),new aqe([r],{type:n})},t)},arrayBuffer(){return B0(this,r=>new Uint8Array(r).buffer,t)},text(){return B0(this,use,t)},json(){return B0(this,Eqe,t)},formData(){return B0(this,r=>{let n=Ase(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=lqe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new cse;return i[b0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new cse;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 B0(this,r=>new Uint8Array(r),t)}}}function mqe(t){Object.assign(t.prototype,pqe(t))}async function B0(t,e,r){if(oqe.brandCheck(t,r),gse(t))throw new TypeError("Body is unusable: Body has already been read");gqe(t[b0]);let n=nqe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[b0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await sqe(t[b0].body,i,s),n.promise)}function gse(t){let e=t[b0].body;return e!=null&&(e.stream.locked||iB.isDisturbed(e.stream))}function Eqe(t){return JSON.parse(use(t))}function Ase(t){let e=t[b0].headersList,r=iqe(e);return r==="failure"?null:r}pse.exports={extractBody:fse,safelyExtractBody:hqe,cloneBody:fqe,mixinBody:mqe,streamRegistry:hse,hasFinalizationRegistry:dse,bodyUnusable:gse}});var kse=C((Vjt,Rse)=>{"use strict";var Pe=Q("node:assert"),qe=Ct(),{channels:mse}=l0(),aO=GP(),{RequestContentLengthMismatchError:Xf,ResponseContentLengthMismatchError:Ese,RequestAbortedError:Sse,InvalidArgumentError:Cqe,HeadersTimeoutError:Iqe,HeadersOverflowError:yqe,SocketError:w0,InformationalError:S0,BodyTimeoutError:Bqe,HTTPParserError:bqe,ResponseExceededMaxSizeError:Qqe}=Vt(),{kUrl:Nse,kReset:wi,kClient:iT,kParser:Ir,kBlocking:cB,kRunning:In,kPending:Tse,kSize:Cse,kWriting:Md,kQueue:mc,kNoRef:oB,kKeepAliveDefaultTimeout:wqe,kHostHeader:Sqe,kPendingIdx:Nqe,kRunningIdx:aa,kError:Ks,kPipelining:oT,kSocket:Zf,kKeepAliveTimeoutValue:cT,kMaxHeadersSize:cO,kKeepAliveMaxTimeout:Tqe,kKeepAliveTimeoutThreshold:xqe,kHeadersTimeout:Dqe,kBodyTimeout:Rqe,kStrictContentLength:lO,kMaxRequests:Ise,kCounter:kqe,kMaxResponseSize:vqe,kOnError:yse,kResume:ol,kHTTPContext:xse}=vr(),co=hne(),Bse=Buffer.alloc(0),rT=Buffer[Symbol.species],nT=qe.addListener,Fqe=qe.removeAllListeners,$f=Symbol("kIdleSocketValidation"),N0=Symbol("kIdleSocketValidationTimeout"),gO=Symbol("kSocketUsed"),AO;async function Mqe(){let t=process.env.JEST_WORKER_ID?VP():void 0,e;try{e=await WebAssembly.compile(pne())}catch{e=await WebAssembly.compile(t||VP())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Pe(jr.ptr===r);let i=n-gA+fA.byteOffset;return jr.onStatus(new rT(fA.buffer,i,s))||0},wasm_on_message_begin:r=>(Pe(jr.ptr===r),jr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Pe(jr.ptr===r);let i=n-gA+fA.byteOffset;return jr.onHeaderField(new rT(fA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Pe(jr.ptr===r);let i=n-gA+fA.byteOffset;return jr.onHeaderValue(new rT(fA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Pe(jr.ptr===r),jr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Pe(jr.ptr===r);let i=n-gA+fA.byteOffset;return jr.onBody(new rT(fA.buffer,i,s))||0},wasm_on_message_complete:r=>(Pe(jr.ptr===r),jr.onMessageComplete()||0)}})}var uO=null,dO=Mqe();dO.catch();var jr=null,fA=null,sT=0,gA=null,_qe=0,aB=1,T0=2|aB,aT=4|aB,hO=8|_qe,fO=class{constructor(e,r,{exports:n}){Pe(Number.isFinite(e[cO])&&e[cO]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[Sqe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[QS]&&!h[$s]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return sre.sendHeaders.hasSubscribers&&sre.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?cre(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?cre(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?Are(f,c.stream(),t,e,h,u,p,l):B9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?y9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?Are(f,c,t,e,h,u,p,l):Ge(!1),!0}function y9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===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(p){Xe.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new ure;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[vl]&&r[cs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}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 cre(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[oT]&&!h[wi]?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 mse.sendHeaders.hasSubscribers&&mse.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Qse(f,null,t,e,h,u,g,l):qe.isBuffer(c)?Qse(f,c,t,e,h,u,g,l):qe.isBlobLike(c)?typeof c.stream=="function"?wse(f,c.stream(),t,e,h,u,g,l):qqe(f,c,t,e,h,u,g,l):qe.isStream(c)?Gqe(f,c,t,e,h,u,g,l):qe.isIterable(c)?wse(f,c,t,e,h,u,g,l):Pe(!1),!0}function Gqe(t,e,r,n,s,i,o,a){Pe(i!==0||r[In]===0,"stream body cannot be pipelined");let c=!1,A=new AT({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){qe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Sse;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Pe(s.destroyed||s[Md]&&r[In]<=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")?qe.destroy(e,f):qe.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 Qse(t,e,r,n,s,i,o,a){try{e?qe.isBuffer(e)&&(Pe(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[$s]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[wi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[kl]()}catch(c){t(c)}}async function B9e(t,e,r,n,s,i,o,a){Ge(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"):(Pe(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[ol]()}catch(c){t(c)}}async function qqe(t,e,r,n,s,i,o,a){Pe(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Xf;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[$s]=!0),r[kl]()}catch(c){t(c)}}async function Are(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===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)=>{Ge(c===null),s[wo]?h(s[wo]):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[wo])throw s[wo];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[vl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[wo])throw r[wo];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[fU])throw new Wh;process.emitWarning(new Wh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!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[wi]=!0),r[ol]()}catch(c){t(c)}}async function wse(t,e,r,n,s,i,o,a){Pe(i!==0||r[In]===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)=>{Pe(c===null),s[Ks]?h(s[Ks]):c=d});s.on("close",A).on("drain",A);let l=new AT({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ks])throw s[Ks];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var AT=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[Ks])throw r[Ks];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[lO])throw new Xf;process.emitWarning(new Xf)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[wi]=!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[Mr].timeout&&r[Mr].timeoutType===im&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[vl]=!1,e[wo])throw e[wo];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[Ir].timeout&&r[Ir].timeoutType===T0&&r[Ir].timeout.refresh&&r[Ir].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[Ks])throw e[Ks];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[fU])throw new Wh;process.emitWarning(new Wh)}e[Mr].timeout&&e[Mr].timeoutType===im&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[kl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[vl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};hre.exports=m9e});var Bre=E((aWt,yre)=>{"use strict";var So=b("node:assert"),{pipeline:b9e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:gre,SocketError:_I,InformationalError:CU}=Lt(),{kUrl:xS,kReset:DS,kClient:om,kRunning:kS,kPending:Q9e,kQueue:_l,kPendingIdx:IU,kRunningIdx:xa,kError:Da,kSocket:Dn,kStrictContentLength:w9e,kOnError:yU,kMaxConcurrentStreams:Ire,kHTTP2Session:Ra,kResume:Fl,kSize:S9e,kHTTPContext:N9e}=yr(),gu=Symbol("open streams"),pre,mre=!1,RS;try{RS=b("node:http2")}catch{RS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:T9e,HTTP2_HEADER_METHOD:x9e,HTTP2_HEADER_PATH:R9e,HTTP2_HEADER_SCHEME:D9e,HTTP2_HEADER_CONTENT_LENGTH:k9e,HTTP2_HEADER_EXPECT:v9e,HTTP2_HEADER_STATUS:_9e}}=RS;function F9e(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 M9e(t,e){t[Dn]=e,mre||(mre=!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[Ire]});r[gu]=0,r[om]=t,r[Dn]=e,Et.addListener(r,"error",U9e),Et.addListener(r,"frameError",P9e),Et.addListener(r,"end",O9e),Et.addListener(r,"goaway",H9e),Et.addListener(r,"close",function(){let{[om]:s}=this,{[Dn]:i}=s,o=this[Dn][Da]||this[Da]||new _I("closed",Et.getSocketInfo(i));if(s[Ra]=null,s.destroyed){So(s[Q9e]===0);let a=s[_l].splice(s[xa]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Ra]=r,e[Ra]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Da]=s,this[om][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new _I("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[Da]||new _I("closed",Et.getSocketInfo(this));t[Dn]=null,this[Ra]!=null&&this[Ra].destroy(s),t[IU]=t[xa],So(t[kS]===0),t.emit("disconnect",t[xS],[t],s),t[Fl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return q9e(t,...s)},resume(){L9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function L9e(t){let e=t[Dn];e?.destroyed===!1&&(t[S9e]===0&&t[Ire]===0?(e.unref(),t[Ra].unref()):(e.ref(),t[Ra].ref()))}function U9e(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][Da]=t,this[om][yU](t)}function P9e(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][Da]=n,this[om][yU](n)}}function O9e(){let t=new _I("other side closed",Et.getSocketInfo(this[Dn]));this.destroy(t),Et.destroy(this[Dn],t)}function H9e(t){let e=this[Da]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[om];if(r[Dn]=null,r[N9e]=null,this[Ra]!=null&&(this[Ra].destroy(e),this[Ra]=null),Et.destroy(this[Dn],e),r[xa]<r[_l].length){let n=r[_l][r[xa]];r[_l][r[xa]++]=null,Et.errorRequest(r,n,e),r[IU]=r[xa]}So(r[kS]===0),r.emit("disconnect",r[xS],[r],e),r[Fl]()}function G9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function q9e(t,e){let r=t[Ra],{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 N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[xS];l[T9e]=i||`${h}${f?`:${f}`:""}`,l[x9e]=n;let p=N=>{e.aborted||e.completed||(N=N||new gre,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[_l][t[xa]++]=null,t[Fl]())};try{e.onConnect(p)}catch(N){Et.errorRequest(t,e,N)}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[gu],t[_l][t[xa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[gu],t[_l][t[xa]++]=null}),d.once("close",()=>{r[gu]-=1,r[gu]===0&&r.unref()}),!0;l[R9e]=s,l[D9e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){pre??=rm().extractBody;let[N,M]=pre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),G9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[w9e])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[k9e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[v9e]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[gGe]=c??3e5,this[fGe]=s??3e5,this[pGe]=C??!0,this[mGe]=N,this[wU]=O,this[Ll]=null,this[BGe]=P>-1?P:-1,this[QGe]=ee??100,this[Kr]=null,this[ka]=[],this[mu]=0,this[va]=0,this[UI]=ce=>NU(this,ce),this[bGe]=ce=>_re(this,ce)}get pipelining(){return this[MS]}set pipelining(e){this[MS]=e,this[UI](!0)}get[HI](){return this[ka].length-this[va]}get[OI](){return this[va]-this[mu]}get[PI](){return this[ka].length-this[mu]}get[aGe](){return!!this[Kr]&&!this[cm]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[PI]>=(vre(this)||1)||this[HI]>0)}[oGe](e){Fre(this),this.once("connect",e)}[yGe](e,r){let n=e.origin||this[Rc].origin,s=new eGe(n,e,r);return this[ka].push(s),this[zh]||(Jh.bodyLength(s.body)==null&&Jh.isIterable(s.body)?(this[zh]=1,queueMicrotask(()=>NU(this))):this[UI](!0)),this[zh]&&this[Ul]!==2&&this[QU]&&(this[Ul]=2),this[Ul]<2}async[CGe](){return new Promise(e=>{this[PI]?this[Ll]=e:e(null)})}async[IGe](e){return new Promise(r=>{let n=this[ka].splice(this[va]);for(let i=0;i<n.length;i++){let o=n[i];Jh.errorRequest(this,o,e)}let s=()=>{this[Ll]&&(this[Ll](),this[Ll]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},NGe=FS();function _re(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){pu(t[va]===t[mu]);let r=t[ka].splice(t[mu]);for(let n=0;n<r.length;n++){let s=r[n];Jh.errorRequest(t,s,e)}pu(t[PI]===0)}}async function Fre(t){pu(!t[cm]),pu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[Rc];if(r[0]==="["){let i=r.indexOf("]");pu(i!==-1);let o=r.substring(1,i);pu(kre.isIP(o)),r=o}t[cm]=!0,am.beforeConnect.hasSubscribers&&am.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],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[Ml],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Jh.destroy(i.on("error",Rre),new nGe);return}pu(i);try{t[Kr]=i.alpnProtocol==="h2"?await SGe(t,i):await wGe(t,i)}catch(o){throw i.destroy().on("error",Rre),o}t[cm]=!1,i[EGe]=0,i[wU]=t[wU],i[iGe]=t,i[AGe]=null,am.connected.hasSubscribers&&am.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[Rc],[t])}catch(i){if(t.destroyed)return;if(t[cm]=!1,am.connectError.hasSubscribers&&am.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(pu(t[OI]===0);t[HI]>0&&t[ka][t[va]].servername===t[Ml];){let o=t[ka][t[va]++];Jh.errorRequest(t,o,i)}else _re(t,i);t.emit("connectionError",t[Rc],[t],i)}t[UI]()}function Dre(t){t[Ul]=0,t.emit("drain",t[Rc],[t])}function NU(t,e){t[zh]!==2&&(t[zh]=2,TGe(t,e),t[zh]=0,t[mu]>256&&(t[ka].splice(0,t[mu]),t[va]-=t[mu],t[mu]=0))}function TGe(t,e){for(;;){if(t.destroyed){pu(t[HI]===0);return}if(t[Ll]&&!t[PI]){t[Ll](),t[Ll]=null;return}if(t[Kr]&&t[Kr].resume(),t[QU])t[Ul]=2;else if(t[Ul]===2){e?(t[Ul]=1,queueMicrotask(()=>Dre(t))):Dre(t);continue}if(t[HI]===0||t[OI]>=(vre(t)||1))return;let r=t[ka][t[va]];if(t[Rc].protocol==="https:"&&t[Ml]!==r.servername){if(t[OI]>0)return;t[Ml]=r.servername,t[Kr]?.destroy(new rGe("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[cm])return;if(!t[Kr]){Fre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[va]++:t[ka].splice(t[va],1)}}Mre.exports=SU});var TU=E((dWt,Lre)=>{"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)}};Lre.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 Pre=E((hWt,Ure)=>{var{kFree:xGe,kConnected:RGe,kPending:DGe,kQueued:kGe,kRunning:vGe,kSize:_Ge}=yr(),jh=Symbol("pool"),xU=class{constructor(e){this[jh]=e}get connected(){return this[jh][RGe]}get free(){return this[jh][xGe]}get pending(){return this[jh][DGe]}get queued(){return this[jh][kGe]}get running(){return this[jh][vGe]}get size(){return this[jh][_Ge]}};Ure.exports=xU});var FU=E((fWt,jre)=>{"use strict";var FGe=Jp(),MGe=TU(),{kConnected:RU,kSize:Ore,kRunning:Hre,kPending:Gre,kQueued:GI,kBusy:LGe,kFree:UGe,kUrl:PGe,kClose:OGe,kDestroy:HGe,kDispatch:GGe}=yr(),qGe=Pre(),Xs=Symbol("clients"),ws=Symbol("needDrain"),qI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),qre=Symbol("onConnect"),Yre=Symbol("onDisconnect"),Vre=Symbol("onC Line truncated
`,"latin1"),r!==null&&s!==r){if(n[lO])throw new Xf;process.emitWarning(new Xf)}e[Ir].timeout&&e[Ir].timeoutType===T0&&e[Ir].timeout.refresh&&e[Ir].timeout.refresh(),n[ol]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Md]=!1,e&&(Pe(n[In]<=1,"pipeline should only contain this request"),s(e))}};Rse.exports=Lqe});var Ose=C((Jjt,Pse)=>{"use strict";var ca=Q("node:assert"),{pipeline:Yqe}=Q("node:stream"),Nt=Ct(),{RequestContentLengthMismatchError:pO,RequestAbortedError:vse,SocketError:AB,InformationalError:mO}=Vt(),{kUrl:uT,kReset:dT,kClient:x0,kRunning:hT,kPending:Vqe,kQueue:_d,kPendingIdx:EO,kRunningIdx:Ec,kError:Ic,kSocket:zn,kStrictContentLength:Jqe,kOnError:CO,kMaxConcurrentStreams:Use,kHTTP2Session:Cc,kResume:Ld,kSize:Wqe,kHTTPContext:zqe}=vr(),al=Symbol("open streams"),Fse,Mse=!1,lT;try{lT=Q("node:http2")}catch{lT={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:jqe,HTTP2_HEADER_METHOD:Kqe,HTTP2_HEADER_PATH:Xqe,HTTP2_HEADER_SCHEME:Zqe,HTTP2_HEADER_CONTENT_LENGTH:$qe,HTTP2_HEADER_EXPECT:eYe,HTTP2_HEADER_STATUS:tYe}}=lT;function rYe(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 nYe(t,e){t[zn]=e,Mse||(Mse=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=lT.connect(t[uT],{createConnection:()=>e,peerMaxConcurrentStreams:t[Use]});r[al]=0,r[x0]=t,r[zn]=e,Nt.addListener(r,"error",iYe),Nt.addListener(r,"frameError",oYe),Nt.addListener(r,"end",aYe),Nt.addListener(r,"goaway",cYe),Nt.addListener(r,"close",function(){let{[x0]:s}=this,{[zn]:i}=s,o=this[zn][Ic]||this[Ic]||new AB("closed",Nt.getSocketInfo(i));if(s[Cc]=null,s.destroyed){ca(s[Vqe]===0);let a=s[_d].splice(s[Ec]);for(let c=0;c<a.length;c++){let A=a[c];Nt.errorRequest(s,A,o)}}}),r.unref(),t[Cc]=r,e[Cc]=r,Nt.addListener(e,"error",function(s){ca(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ic]=s,this[x0][CO](s)}),Nt.addListener(e,"end",function(){Nt.destroy(this,new AB("other side closed",Nt.getSocketInfo(this)))}),Nt.addListener(e,"close",function(){let s=this[Ic]||new AB("closed",Nt.getSocketInfo(this));t[zn]=null,this[Cc]!=null&&this[Cc].destroy(s),t[EO]=t[Ec],ca(t[hT]===0),t.emit("disconnect",t[uT],[t],s),t[Ld]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return uYe(t,...s)},resume(){sYe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function sYe(t){let e=t[zn];e?.destroyed===!1&&(t[Wqe]===0&&t[Use]===0?(e.unref(),t[Cc].unref()):(e.ref(),t[Cc].ref()))}function iYe(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[zn][Ic]=t,this[x0][CO](t)}function oYe(t,e,r){if(r===0){let n=new mO(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[zn][Ic]=n,this[x0][CO](n)}}function aYe(){let t=new AB("other side closed",Nt.getSocketInfo(this[zn]));this.destroy(t),Nt.destroy(this[zn],t)}function cYe(t){let e=this[Ic]||new AB(`HTTP/2: "GOAWAY" frame received with code ${t}`,Nt.getSocketInfo(this)),r=this[x0];if(r[zn]=null,r[zqe]=null,this[Cc]!=null&&(this[Cc].destroy(e),this[Cc]=null),Nt.destroy(this[zn],e),r[Ec]<r[_d].length){let n=r[_d][r[Ec]];r[_d][r[Ec]++]=null,Nt.errorRequest(r,n,e),r[EO]=r[Ec]}ca(r[hT]===0),r.emit("disconnect",r[uT],[r],e),r[Ld]()}function AYe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function uYe(t,e){let r=t[Cc],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Nt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let F=A[B+0],V=A[B+1];if(Array.isArray(V))for(let L=0;L<V.length;L++)l[F]?l[F]+=`,${V[L]}`:l[F]=V[L];else l[F]=V}let d,{hostname:h,port:f}=t[uT];l[jqe]=i||`${h}${f?`:${f}`:""}`,l[Kqe]=n;let g=B=>{e.aborted||e.completed||(B=B||new vse,Nt.errorRequest(t,e,B),d!=null&&Nt.destroy(d,B),Nt.destroy(u,B),t[_d][t[Ec]++]=null,t[Ld]())};try{e.onConnect(g)}catch(B){Nt.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[al],t[_d][t[Ec]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[al],t[_d][t[Ec]++]=null}),d.once("close",()=>{r[al]-=1,r[al]===0&&r.unref()}),!0;l[Xqe]=s,l[Zqe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Nt.bodyLength(u);if(Nt.isFormDataLike(u)){Fse??=Q0().extractBody;let[B,F]=Fse(u);l["content-type"]=F,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),AYe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[Jqe])return Nt.errorRequest(t,e,new pO),!1;process.emitWarning(new pO)}m!=null&&(ca(u,"no body must not have content length"),l[$qe]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[eYe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[_Ye]=c??3e5,this[MYe]=s??3e5,this[LYe]=I??!0,this[UYe]=B,this[bO]=V,this[Pd]=null,this[qYe]=P>-1?P:-1,this[VYe]=Z??100,this[un]=null,this[yc]=[],this[Al]=0,this[Bc]=0,this[hB]=de=>wO(this,de),this[YYe]=de=>Zse(this,de)}get pipelining(){return this[mT]}set pipelining(e){this[mT]=e,this[hB](!0)}get[pB](){return this[yc].length-this[Bc]}get[gB](){return this[Bc]-this[Al]}get[fB](){return this[yc].length-this[Al]}get[TYe](){return!!this[un]&&!this[R0]&&!this[un].destroyed}get[BO](){return!!(this[un]?.busy(null)||this[fB]>=(Xse(this)||1)||this[pB]>0)}[NYe](e){$se(this),this.once("connect",e)}[GYe](e,r){let n=e.origin||this[mA].origin,s=new yYe(n,e,r);return this[yc].push(s),this[tg]||(eg.bodyLength(s.body)==null&&eg.isIterable(s.body)?(this[tg]=1,queueMicrotask(()=>wO(this))):this[hB](!0)),this[tg]&&this[Od]!==2&&this[BO]&&(this[Od]=2),this[Od]<2}async[OYe](){return new Promise(e=>{this[fB]?this[Pd]=e:e(null)})}async[HYe](e){return new Promise(r=>{let n=this[yc].splice(this[Bc]);for(let i=0;i<n.length;i++){let o=n[i];eg.errorRequest(this,o,e)}let s=()=>{this[Pd]&&(this[Pd](),this[Pd]=null),r(null)};this[un]?(this[un].destroy(e,s),this[un]=null):queueMicrotask(s),this[hB]()})}},zYe=pT();function Zse(t,e){if(t[gB]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){cl(t[Bc]===t[Al]);let r=t[yc].splice(t[Al]);for(let n=0;n<r.length;n++){let s=r[n];eg.errorRequest(t,s,e)}cl(t[fB]===0)}}async function $se(t){cl(!t[R0]),cl(!t[un]);let{host:e,hostname:r,protocol:n,port:s}=t[mA];if(r[0]==="["){let i=r.indexOf("]");cl(i!==-1);let o=r.substring(1,i);cl(Kse.isIP(o)),r=o}t[R0]=!0,D0.beforeConnect.hasSubscribers&&D0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ud],localAddress:t[dB]},connector:t[lB]});try{let i=await new Promise((o,a)=>{t[lB]({host:e,hostname:r,protocol:n,port:s,servername:t[Ud],localAddress:t[dB]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){eg.destroy(i.on("error",zse),new QYe);return}cl(i);try{t[un]=i.alpnProtocol==="h2"?await WYe(t,i):await JYe(t,i)}catch(o){throw i.destroy().on("error",zse),o}t[R0]=!1,i[PYe]=0,i[bO]=t[bO],i[SYe]=t,i[DYe]=null,D0.connected.hasSubscribers&&D0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ud],localAddress:t[dB]},connector:t[lB],socket:i}),t.emit("connect",t[mA],[t])}catch(i){if(t.destroyed)return;if(t[R0]=!1,D0.connectError.hasSubscribers&&D0.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ud],localAddress:t[dB]},connector:t[lB],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(cl(t[gB]===0);t[pB]>0&&t[yc][t[Bc]].servername===t[Ud];){let o=t[yc][t[Bc]++];eg.errorRequest(t,o,i)}else Zse(t,i);t.emit("connectionError",t[mA],[t],i)}t[hB]()}function jse(t){t[Od]=0,t.emit("drain",t[mA],[t])}function wO(t,e){t[tg]!==2&&(t[tg]=2,jYe(t,e),t[tg]=0,t[Al]>256&&(t[yc].splice(0,t[Al]),t[Bc]-=t[Al],t[Al]=0))}function jYe(t,e){for(;;){if(t.destroyed){cl(t[pB]===0);return}if(t[Pd]&&!t[fB]){t[Pd](),t[Pd]=null;return}if(t[un]&&t[un].resume(),t[BO])t[Od]=2;else if(t[Od]===2){e?(t[Od]=1,queueMicrotask(()=>jse(t))):jse(t);continue}if(t[pB]===0||t[gB]>=(Xse(t)||1))return;let r=t[yc][t[Bc]];if(t[mA].protocol==="https:"&&t[Ud]!==r.servername){if(t[gB]>0)return;t[Ud]=r.servername,t[un]?.destroy(new bYe("servername changed"),()=>{t[un]=null,wO(t)})}if(t[R0])return;if(!t[un]){$se(t);return}if(t[un].destroyed||t[un].busy(r))return;!r.aborted&&t[un].write(r)?t[Bc]++:t[yc].splice(t[Bc],1)}}eie.exports=QO});var SO=C((Xjt,tie)=>{"use strict";var ET=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)}};tie.exports=class{constructor(){this.head=this.tail=new ET}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ET),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var nie=C((Zjt,rie)=>{var{kFree:KYe,kConnected:XYe,kPending:ZYe,kQueued:$Ye,kRunning:eVe,kSize:tVe}=vr(),rg=Symbol("pool"),NO=class{constructor(e){this[rg]=e}get connected(){return this[rg][XYe]}get free(){return this[rg][KYe]}get pending(){return this[rg][ZYe]}get queued(){return this[rg][$Ye]}get running(){return this[rg][eVe]}get size(){return this[rg][tVe]}};rie.exports=NO});var vO=C(($jt,hie)=>{"use strict";var rVe=g0(),nVe=SO(),{kConnected:TO,kSize:sie,kRunning:iie,kPending:oie,kQueued:mB,kBusy:sVe,kFree:iVe,kUrl:oVe,kClose:aVe,kDestroy:cVe,kDispatch:AVe}=vr(),uVe=nie(),Si=Symbol("clients"),Xs=Symbol("needDrain"),EB=Symbol("queue"),xO=Symbol("closed resolve"),DO=Symbol("onDrain"),aie=Symbol("onConnect"),cie=Symbol("onDisconnect"),Aie=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};tie.exports=FP});var tN=E((GWt,oie)=>{"use strict";var nie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:gVe}=Lt(),pVe=lm();iie()===void 0&&sie(new pVe);function sie(t){if(!t||typeof t.dispatch!="function")throw new gVe("Argument agent must implement Agent");Object.defineProperty(globalThis,nie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function iie(){return globalThis[nie]}oie.exports={setGlobalDispatcher:sie,getGlobalDispatcher:iie}});var rN=E((YWt,aie)=>{"use strict";aie.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 Aie=E((VWt,cie)=>{"use strict";var mVe=_S();cie.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 mVe(r,o,s,i);return r(a,c)}}});var lie=E((WWt,uie)=>{"use strict";var EVe=VS();uie.exports=t=>e=>function(n,s){return e(n,new EVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var hie=E((JWt,die)=>{"use strict";var CVe=dt(),{InvalidArgumentError:IVe,RequestAbortedError:yVe}=Lt(),BVe=rN(),MP=class extends BVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new IVe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=CVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new yVe(`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.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function bVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new MP({maxSize:i},s);return e(n,o)}}die.exports=bVe});var pie=E((zWt,gie)=>{"use strict";var{isIP:QVe}=b("node:net"),{lookup:wVe}=b("node:dns"),SVe=rN(),{InvalidArgumentError:ym,InformationalError:NVe}=Lt(),fie=Math.pow(2,31)-1,LP=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.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new NVe("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){wVe(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())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===fie?(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===fie?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 UP(this,e,r)}},UP=class extends SVe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=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.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":jae(i)&&(r[s]=i);break;case"id":Kae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&jae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Kae(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}}};$ae.exports={EventSourceStream:bO}});var oce=E((wJt,ice)=>{"use strict";var{pipeline:Lze}=b("node:stream"),{fetching:Uze}=ry(),{makeRequest:Pze}=Qm(),{webidl:Bu}=Kn(),{EventSourceStream:Oze}=Xae(),{parseMIMEType:Hze}=Ks(),{createFastMessageEvent:Gze}=Rm(),{isNetworkError:Zae}=ey(),{delay:qze}=yO(),{kEnumerableProperty:lf}=dt(),{environmentSettingsObject:ece}=xi(),tce=!1,rce=3e3,gy=0,nce=1,py=2,Yze="anonymous",Vze="use-credentials",Fm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Bu.util.markAsUncloneable(this);let n="EventSource constructor";Bu.argumentLengthCheck(arguments,1,n),tce||(tce=!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.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:rce};let s=ece,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=Yze;r.withCredentials&&(o=Vze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ece.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=Pze(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===py)return;this.#r=gy;let e={request:this.#s,dispatcher:this.#a},r=n=>{Zae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Zae(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?Hze(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=nce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Oze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Gze(c.type,c.options))}});Lze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Uze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await qze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){Bu.brandCheck(this,t),this.#r!==py&&(this.#r=py,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},sce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:nce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(Fm,sce);Object.defineProperties(Fm.prototype,sce);Object.defineProperties(Fm.prototype,{close:lf,onerror:lf,onmessage:lf,onopen:lf,readyState:lf,url:lf,withCredentials:lf});Bu.converters.EventSourceInitDict=Bu.dictionaryConverter([{key:"withCredentials",converter:Bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Bu.converters.any}]);ice.exports={EventSource:Fm,defaultReconnectionTime:rce}});var YN=E((SJt,Ye)=>{"use strict";var Wze=Am(),ace=II(),Jze=um(),zze=sne(),jze=lm(),Kze=zU(),$ze=Tne(),Xze=_ne(),cce=Lt(),qN=dt(),{InvalidArgumentError:GN}=cce,Mm=Ise(),Zze=BI(),eje=xP(),tje=rie(),rje=kP(),nje=pP(),sje=VS(),{getGlobalDispatcher:Ace,setGlobalDispatcher:ije}=tN(),oje=rN(),aje=_S(),cje=FS();Object.assign(ace.prototype,Mm);Ye.exports.Dispatcher=ace;Ye.exports.Client=Wze;Ye.exports.Pool=Jze;Ye.exports.BalancedPool=zze;Ye.exports.Agent=jze;Ye.exports.ProxyAgent=Kze;Ye.exports.EnvHttpProxyAgent=$ze;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?A3:C.type==="?"?c3:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+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 D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);te+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var $e="";ce===""&&e!==hT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===hT)return[n,s];if(!s)return P$e(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Oi.makeRe=function(t,e){return new cn(t,e||{}).makeRe()};cn.prototype.makeRe=U$e;function U$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?A3:e.dot?R$e:D$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===mf?r:typeof o=="string"?O$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}Oi.match=function(t,e,r){r=r||{};var n=new cn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};cn.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;xy.sep!=="/"&&(e=e.split(xy.sep).join("/")),e=e.split(JAe),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};cn.prototype.matchOne=function(t,e,r){return e.indexOf(mf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};cn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===mf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===mf){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 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,y=[0],N=0;N<A.length;N++){var M=A[N];M===mf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};cn.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};cn.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===mf)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 P$e(t){return t.replace(/\\(.)/g,"$1")}function O$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ym=E((Djt,eue)=>{"use strict";var z$e="2.0.0",j$e=Number.MAX_SAFE_INTEGER||9007199254740991,K$e=16,$$e=250,X$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];eue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:K$e,MAX_SAFE_BUILD_LENGTH:$$e,MAX_SAFE_INTEGER:j$e,RELEASE_TYPES:X$e,SEMVER_SPEC_VERSION:z$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var vy=E((kjt,tue)=>{"use strict";var Z$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};tue.exports=Z$e});var Vm=E((Lc,rue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:l3,MAX_SAFE_BUILD_LENGTH:eXe,MAX_LENGTH:tXe}=Ym(),rXe=vy();Lc=rue.exports={};var nXe=Lc.re=[],sXe=Lc.safeRe=[],me=Lc.src=[],iXe=Lc.safeSrc=[],Ee=Lc.t={},oXe=0,d3="[a-zA-Z0-9-]",aXe=[["\\s",1],["\\d",tXe],[d3,eXe]],cXe=t=>{for(let[e,r]of aXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`.trim())}};Iae.exports=v3});var _T=C((NKt,wae)=>{"use strict";var Bae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:_We}=Vt(),LWe=F0();Qae()===void 0&&bae(new LWe);function bae(t){if(!t||typeof t.dispatch!="function")throw new _We("Argument agent must implement Agent");Object.defineProperty(globalThis,Bae,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Qae(){return globalThis[Bae]}wae.exports={setGlobalDispatcher:bae,getGlobalDispatcher:Qae}});var LT=C((xKt,Sae)=>{"use strict";Sae.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 Tae=C((DKt,Nae)=>{"use strict";var UWe=gT();Nae.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 UWe(r,o,s,i);return r(a,c)}}});var Dae=C((RKt,xae)=>{"use strict";var PWe=ST();xae.exports=t=>e=>function(n,s){return e(n,new PWe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var kae=C((kKt,Rae)=>{"use strict";var OWe=Ct(),{InvalidArgumentError:HWe,RequestAbortedError:GWe}=Vt(),qWe=LT(),F3=class extends qWe{#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 HWe("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=OWe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new GWe(`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 YWe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new F3({maxSize:i},s);return e(n,o)}}Rae.exports=YWe});var Mae=C((vKt,Fae)=>{"use strict";var{isIP:VWe}=Q("node:net"),{lookup:JWe}=Q("node:dns"),WWe=LT(),{InvalidArgumentError:q0,InformationalError:zWe}=Vt(),vae=Math.pow(2,31)-1,M3=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 zWe("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){JWe(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===vae?(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===vae?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 _3(this,e,r)}},_3=class extends WWe{#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(bx(e,s,aXe)){cXe(e,i)&&(r.retry=e.toString("utf8",i));return}if(bx(e,s,oXe)){AXe(e,i)&&(r.id=e.toString("utf8",i));return}if(bx(e,s,iXe)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&eXe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&tXe(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===nE[0]||(this.checkBOM=!1),!0):n===void 0?e===nE[0]&&r===nE[1]?!0:(this.checkBOM=!1,!1):(e===nE[0]&&r===nE[1]&&n===nE[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};hue.exports={EventSourceStream:w8}});var Bue=C((uXt,yue)=>{"use strict";var{pipeline:uXe}=Q("node:stream"),{fetching:lXe}=RB(),{makeRequest:dXe}=J0(),{webidl:hl}=gs(),{EventSourceStream:hXe}=fue(),{parseMIMEType:fXe}=Qi(),{createFastMessageEvent:gXe}=Z0(),{isNetworkError:gue}=xB(),{delay:pXe}=b8(),{kEnumerableProperty:Eg}=Ct(),{environmentSettingsObject:pue}=ao(),mue=!1,Eue=3e3,VB=0,Cue=1,JB=2,mXe="anonymous",EXe="use-credentials",sE=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=VB;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),hl.util.markAsUncloneable(this);let n="EventSource constructor";hl.argumentLengthCheck(arguments,1,n),mue||(mue=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hl.converters.USVString(e,n,"url"),r=hl.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Eue};let s=pue,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=mXe;r.withCredentials&&(o=EXe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=pue.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=dXe(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===JB)return;this.#r=VB;let e={request:this.#i,dispatcher:this.#a},r=n=>{gue(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(gue(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?fXe(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=Cue,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new hXe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(gXe(c.type,c.options))}});uXe(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=lXe(e)}async#A(){this.#r!==JB&&(this.#r=VB,this.dispatchEvent(n Line truncated
%s`,F,F,I,n);var V=I.type==="*"?g4:I.type==="?"?f4:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+F}f(),i&&(n+="\\\\");var L=!1;switch(n.charAt(0)){case"[":case".":case"(":L=!0}for(var P=a.length-1;P>-1;P--){var k=a[P],j=n.slice(0,k.reStart),Z=n.slice(k.reStart,k.reEnd-8),ne=n.slice(k.reEnd-8,k.reEnd),ce=n.slice(k.reEnd);ne+=ce;var de=j.split("(").length-1,ke=ce;for(g=0;g<de;g++)ke=ke.replace(/\)[+*?]?/,"");ce=ke;var ve="";ce===""&&e!==zx&&(ve="$");var rt=j+Z+ce+ve+ne;n=rt}if(n!==""&&s&&(n="(?=.)"+n),L&&(n=d+n),e===zx)return[n,s];if(!s)return oet(t);var _t=r.nocase?"i":"";try{var Rt=new RegExp("^"+n+"$",_t)}catch{return new RegExp("$.")}return Rt._glob=t,Rt._src=n,Rt}Io.makeRe=function(t,e){return new bn(t,e||{}).makeRe()};bn.prototype.makeRe=iet;function iet(){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?g4:e.dot?X$e:Z$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===bg?r:typeof o=="string"?aet(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}Io.match=function(t,e,r){r=r||{};var n=new bn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};bn.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;ob.sep!=="/"&&(e=e.split(ob.sep).join("/")),e=e.split(lde),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};bn.prototype.matchOne=function(t,e,r){return e.indexOf(bg)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};bn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===bg){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===bg){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 F=A[B];F===bg?(y.push(I),m=[[],0],E.push(m)):(m[0].push(F),I++)}for(var V=E.length-1,L=t.length-d,P=0;P<E.length;P++)E[P][1]=L-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};bn.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};bn.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===bg)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 oet(t){return t.replace(/\\(.)/g,"$1")}function aet(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var dE=C((C$t,Ede)=>{"use strict";var pet="2.0.0",met=Number.MAX_SAFE_INTEGER||9007199254740991,Eet=16,Cet=250,Iet=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ede.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Eet,MAX_SAFE_BUILD_LENGTH:Cet,MAX_SAFE_INTEGER:met,RELEASE_TYPES:Iet,SEMVER_SPEC_VERSION:pet,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ub=C((I$t,Cde)=>{"use strict";var yet=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Cde.exports=yet});var hE=C((QA,Ide)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:m4,MAX_SAFE_BUILD_LENGTH:Bet,MAX_LENGTH:bet}=dE(),Qet=ub();QA=Ide.exports={};var wet=QA.re=[],Net=QA.safeRe=[],ye=QA.src=[],Tet=QA.safeSrc=[],Be=QA.t={},xet=0,E4="[a-zA-Z0-9-]",Det=[["\\s",1],["\\d",bet],[E4,Bet]],Ret=t=>{for(let[e,r]of Det)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+XT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ktt()+e+" "+t[0]}function Ktt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function $tt(...t){return process.stderr.write($T.formatWithOptions(vn.inspectOpts,...t)+`
`)}function Xtt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Ztt(){return process.env.DEBUG}function ert(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=t8()(vn);var{formatters:Rde}=XT.exports;Rde.o=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Rde.O=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts)}});var ZT=E((cXt,s8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?s8.exports=Qde():s8.exports=Dde()});var _de=E(oi=>{"use strict";var trt=oi&&oi.__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=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kde=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)&&trt(e,t,r);return rrt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var nrt=kde(b("http")),srt=kde(b("https"));async function vde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=vde;async function irt(t){let r=(await vde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=irt;function ort(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?srt:nrt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}oi.req=ort});var o8=E(qi=>{"use strict";var Mde=qi&&qi.__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]})),art=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lde=qi&&qi.__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)&&Mde(e,t,r);return art(e,t),e},crt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Mde(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var Art=Lde(b("net")),Fde=Lde(b("http")),urt=b("https");crt(_de(),qi);var Oc=Symbol("AgentBaseInternalState"),i8=class extends Fde.Agent{constructor(e){super(e),this[Oc]={}}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 Art.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)?urt.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 Fde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Oc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Oc].currentSocket;if(this[Oc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Oc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Oc]&&(this[Oc].defaultPort=e)}get protocol(){return this[Oc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Oc]&&(this[Oc].protocol=e)}};qi.Agent=i8});var Ude=E(e0=>{"use strict";var lrt=e0&&e0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e0,"__esModule",{value:!0});e0.parseProxyResponse=void 0;var drt=lrt(ZT()),ex=(0,drt.default)("https-proxy-agent:parse-proxy-response");function hrt(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+"+_D.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Est()+e+" "+t[0]}function Est(){return Kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Cst(...t){return process.stderr.write(MD.formatWithOptions(Kn.inspectOpts,...t)+`
`)}function Ist(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function yst(){return process.env.DEBUG}function Bst(t){t.inspectOpts={};let e=Object.keys(Kn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Kn.inspectOpts[e[r]]}_D.exports=a6()(Kn);var{formatters:zfe}=_D.exports;zfe.o=function(t){return this.inspectOpts.colors=this.useColors,MD.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};zfe.O=function(t){return this.inspectOpts.colors=this.useColors,MD.inspect(t,this.inspectOpts)}});var LD=C((Ktr,u6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?u6.exports=Gfe():u6.exports=jfe()});var Zfe=C(vi=>{"use strict";var bst=vi&&vi.__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]})),Qst=vi&&vi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kfe=vi&&vi.__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)&&bst(e,t,r);return Qst(e,t),e};Object.defineProperty(vi,"__esModule",{value:!0});vi.req=vi.json=vi.toBuffer=void 0;var wst=Kfe(Q("http")),Sst=Kfe(Q("https"));async function Xfe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}vi.toBuffer=Xfe;async function Nst(t){let r=(await Xfe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}vi.json=Nst;function Tst(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Sst:wst).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}vi.req=Tst});var d6=C(bo=>{"use strict";var ege=bo&&bo.__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]})),xst=bo&&bo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tge=bo&&bo.__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)&&ege(e,t,r);return xst(e,t),e},Dst=bo&&bo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ege(e,t,r)};Object.defineProperty(bo,"__esModule",{value:!0});bo.Agent=void 0;var Rst=tge(Q("net")),$fe=tge(Q("http")),kst=Q("https");Dst(Zfe(),bo);var NA=Symbol("AgentBaseInternalState"),l6=class extends $fe.Agent{constructor(e){super(e),this[NA]={}}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 Rst.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)?kst.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 $fe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[NA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[NA].currentSocket;if(this[NA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[NA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[NA]&&(this[NA].defaultPort=e)}get protocol(){return this[NA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[NA]&&(this[NA].protocol=e)}};bo.Agent=l6});var rge=C(BE=>{"use strict";var vst=BE&&BE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(BE,"__esModule",{value:!0});BE.parseProxyResponse=void 0;var Fst=vst(LD()),UD=(0,Fst.default)("https-proxy-agent:parse-proxy-response");function Mst(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(),UD("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),UD("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 p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}ex("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}e0.parseProxyResponse=hrt});var Yde=E(_o=>{"use strict";var frt=_o&&_o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),grt=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gde=_o&&_o.__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)&&frt(e,t,r);return grt(e,t),e},qde=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});_o.HttpsProxyAgent=void 0;var tx=Gde(b("net")),Pde=Gde(b("tls")),prt=qde(b("assert")),mrt=qde(ZT()),Ert=o8(),Crt=b("url"),Irt=Ude(),zy=(0,mrt.default)("https-proxy-agent"),Ode=t=>t.servername===void 0&&t.host&&!tx.isIP(t.host)?{...t,servername:t.host}:t,rx=class extends Ert.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Crt.URL(e):e,this.proxyHeaders=r?.headers??{},zy("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?Hde(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:"?(zy("Creating `tls.Socket`: %o",this.connectOpts),s=Pde.connect(Ode(this.connectOpts))):(zy("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){UD("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 F=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),L=I[F];typeof L=="string"?I[F]=[L,V]:Array.isArray(L)?L.push(V):I[F]=V}UD("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()})}BE.parseProxyResponse=Mst});var cge=C(Ea=>{"use strict";var _st=Ea&&Ea.__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]})),Lst=Ea&&Ea.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oge=Ea&&Ea.__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)&&_st(e,t,r);return Lst(e,t),e},age=Ea&&Ea.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.HttpsProxyAgent=void 0;var PD=oge(Q("net")),nge=oge(Q("tls")),Ust=age(Q("assert")),Pst=age(LD()),Ost=d6(),Hst=Q("url"),Gst=rge(),Qb=(0,Pst.default)("https-proxy-agent"),sge=t=>t.servername===void 0&&t.host&&!PD.isIP(t.host)?{...t,servername:t.host}:t,OD=class extends Ost.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Hst.URL(e):e,this.proxyHeaders=r?.headers??{},Qb("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?ige(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:"?(Qb("Creating `tls.Socket`: %o",this.connectOpts),s=nge.connect(sge(this.connectOpts))):(Qb("Creating `net.Socket`: %o",this.connectOpts),s=PD.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=PD.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,Irt.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",yrt),r.secureEndpoint?(zy("Upgrading socket connection to TLS"),Pde.connect({...Hde(Ode(r),"host","path","port"),socket:s})):s;s.destroy();let l=new tx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{zy("Replaying proxy buffer for failed request"),(0,prt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};rx.protocols=["http","https"];_o.HttpsProxyAgent=rx;function yrt(t){t.resume()}function Hde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Jde=E(Fo=>{"use strict";var Brt=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]})),brt=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wde=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)&&Brt(e,t,r);return brt(e,t),e},Qrt=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpProxyAgent=void 0;var wrt=Wde(b("net")),Srt=Wde(b("tls")),Nrt=Qrt(ZT()),Trt=b("events"),xrt=o8(),Vde=b("url"),t0=(0,Nrt.default)("http-proxy-agent"),nx=class extends xrt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Vde.URL(e):e,this.proxyHeaders=r?.headers??{},t0("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?Rrt(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 Vde.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;t0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(t0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,Gst.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",qst),r.secureEndpoint?(Qb("Upgrading socket connection to TLS"),nge.connect({...ige(sge(r),"host","path","port"),socket:s})):s;s.destroy();let l=new PD.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Qb("Replaying proxy buffer for failed request"),(0,Ust.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};OD.protocols=["http","https"];Ea.HttpsProxyAgent=OD;function qst(t){t.resume()}function ige(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var lge=C(Ca=>{"use strict";var Yst=Ca&&Ca.__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]})),Vst=Ca&&Ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uge=Ca&&Ca.__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)&&Yst(e,t,r);return Vst(e,t),e},Jst=Ca&&Ca.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.HttpProxyAgent=void 0;var Wst=uge(Q("net")),zst=uge(Q("tls")),jst=Jst(LD()),Kst=Q("events"),Xst=d6(),Age=Q("url"),bE=(0,jst.default)("http-proxy-agent"),HD=class extends Xst.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Age.URL(e):e,this.proxyHeaders=r?.headers??{},bE("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?Zst(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 Age.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;bE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(bE("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),t0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(t0("Creating `tls.Socket`: %o",this.connectOpts),i=Srt.connect(this.connectOpts)):(t0("Creating `net.Socket`: %o",this.connectOpts),i=wrt.connect(this.connectOpts)),await(0,Trt.once)(i,"connect"),i}};nx.protocols=["http","https"];Fo.HttpProxyAgent=nx;function Rrt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var mhe=E(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.state=void 0;gx.state={instrumenterImplementation:void 0}});var _he=E(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.state=void 0;Ix.state={operationRequestMap:new WeakMap}});var fpe=E((Agr,Uct)=>{Uct.exports={name:"@actions/cache",version:"6.0.1",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 ppe=E((ugr,gpe)=>{var Pct=fpe();gpe.exports={version:Pct.version}});var XR=E(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.isJsonObject=w0.typeofJsonValue=void 0;function zct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}w0.typeofJsonValue=zct;function jct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}w0.isJsonObject=jct});var eD=E(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.base64encode=S0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZR=[];for(let t=0;t<Gu.length;t++)ZR[Gu[t].charCodeAt(0)]=t;ZR[45]=Gu.indexOf("+");ZR[95]=Gu.indexOf("/");function Kct(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)}S0.base64decode=Kct;function $ct(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}S0.base64encode=$ct});var ype=E(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.utf8read=void 0;var $H=t=>String.fromCharCode.apply(String,t);function Xct(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($H(n)),s=0);return r.length?(s&&r.push($H(n.slice(0,s))),r.join("")):$H(n.slice(0,s))}tD.utf8read=Xct});var YB=E(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0});lA.WireType=lA.mergeBinaryOptions=lA.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=lA.UnknownFieldHandler||(lA.UnknownFieldHandler={}));function eAt(t,e){return Object.assign(Object.assign({},t),e)}lA.mergeBinaryOptions=eAt;var tAt;(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"})(tAt=lA.WireType||(lA.WireType={}))});var nD=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function rAt(){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")}hi.varint64read=rAt;function nAt(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)}}hi.varint64write=nAt;var rD=65536*65536;function sAt(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]}hi.int64fromString=sAt;function iAt(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)}hi.int64toString=iAt;function oAt(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)}}hi.varint32write=oAt;function aAt(){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}hi.varint32read=aAt});var Id=E(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.PbLong=Cd.PbULong=Cd.detectBi=void 0;var VB=nD(),ir;function Bpe(){let t=new DataView(new ArrayBuffer(8));ir=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=Bpe;Bpe();function bpe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Qpe=/^-?[0-9]+$/,iD=4294967296,sD=2147483648,oD=c Line truncated
`)}};RD.RpcError=Q9});var S9=E(kD=>{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.mergeRpcOptions=void 0;var eme=At();function xut(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=eme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=eme.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=xut;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 T9=E(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.Deferred=jf.DeferredState=void 0;var fA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(fA=jf.DeferredState||(jf.DeferredState={}));var N9=class{constructor(e=!0){this._state=fA.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!==fA.PENDING)throw new Error(`cannot resolve ${fA[this.state].toLowerCase()}`);this._resolve(e),this._state=fA.RESOLVED}reject(e){if(this.state!==fA.PENDING)throw new Error(`cannot reject ${fA[this.state].toLowerCase()}`);this._reject(e),this._state=fA.REJECTED}resolvePending(e){this._state===fA.PENDING&&this.resolve(e)}rejectPending(e){this._state===fA.PENDING&&this.reject(e)}};jf.Deferred=N9});var R9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.RpcOutputStreamController=void 0;var tme=T9(),Kf=At(),x9=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){Kf.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){Kf.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){Kf.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(){Kf.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;Kf.assert(e,"bad state"),Kf.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 tme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Kf.assert(n.state==tme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};vD.RpcOutputStreamController=x9});var k9=E(v0=>{"use strict";var Rut=v0&&v0.__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(v0,"__esModule",{value:!0});v0.UnaryCall=void 0;var D9=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 Rut(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}})}};v0.UnaryCall=D9});var _9=E(_0=>{"use strict";var Dut=_0&&_0.__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(_0,"__esModule",{value:!0});_0.ServerStreamingCall=void 0;var v9=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),bE("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(bE("Creating `tls.Socket`: %o",this.connectOpts),i=zst.connect(this.connectOpts)):(bE("Creating `net.Socket`: %o",this.connectOpts),i=Wst.connect(this.connectOpts)),await(0,Kst.once)(i,"connect"),i}};HD.protocols=["http","https"];Ca.HttpProxyAgent=HD;function Zst(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Mge=C($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});$D.state=void 0;$D.state={instrumenterImplementation:void 0}});var Zge=C(sR=>{"use strict";Object.defineProperty(sR,"__esModule",{value:!0});sR.state=void 0;sR.state={operationRequestMap:new WeakMap}});var U0e=C((eCr,vlt)=>{vlt.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 O0e=C((tCr,P0e)=>{var Flt=U0e();P0e.exports={version:Flt.version}});var M2=C($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.isJsonObject=$E.typeofJsonValue=void 0;function qlt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}$E.typeofJsonValue=qlt;function Ylt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}$E.isJsonObject=Ylt});var L2=C(eC=>{"use strict";Object.defineProperty(eC,"__esModule",{value:!0});eC.base64encode=eC.base64decode=void 0;var Ml="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),_2=[];for(let t=0;t<Ml.length;t++)_2[Ml[t].charCodeAt(0)]=t;_2[45]=Ml.indexOf("+");_2[95]=Ml.indexOf("/");function Vlt(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=_2[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)}eC.base64decode=Vlt;function Jlt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ml[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ml[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ml[s|n>>6],e+=Ml[n&63],r=0;break}return r&&(e+=Ml[s],e+="=",r==1&&(e+="=")),e}eC.base64encode=Jlt});var V0e=C(U2=>{"use strict";Object.defineProperty(U2,"__esModule",{value:!0});U2.utf8read=void 0;var pq=t=>String.fromCharCode.apply(String,t);function Wlt(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(pq(n)),s=0);return r.length?(s&&r.push(pq(n.slice(0,s))),r.join("")):pq(n.slice(0,s))}U2.utf8read=Wlt});var NQ=C(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.WireType=XA.mergeBinaryOptions=XA.UnknownFieldHandler=void 0;var zlt;(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])})(zlt=XA.UnknownFieldHandler||(XA.UnknownFieldHandler={}));function jlt(t,e){return Object.assign(Object.assign({},t),e)}XA.mergeBinaryOptions=jlt;var Klt;(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"})(Klt=XA.WireType||(XA.WireType={}))});var O2=C(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.varint32read=Gi.varint32write=Gi.int64toString=Gi.int64fromString=Gi.varint64write=Gi.varint64read=void 0;function Xlt(){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")}Gi.varint64read=Xlt;function Zlt(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)}}Gi.varint64write=Zlt;var P2=65536*65536;function $lt(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>=P2&&(s=s+(n/P2|0),n=n%P2)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Gi.int64fromString=$lt;function edt(t,e){if(e>>>0<=2097151)return""+(P2*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)}Gi.int64toString=edt;function tdt(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)}}Gi.varint32write=tdt;function rdt(){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}Gi.varint32read=rdt});var Bh=C(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.PbLong=yh.PbULong=yh.detectBi=void 0;var TQ=O2(),fr;function J0e(){let t=new DataView(new ArrayBuffer(8));fr=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}yh.detectBi=J0e;J0e();function W0e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var z0e=/^-?[0-9]+$/,G2=4294967296,H2=2147483648,q2=c Line truncated
`)}};hk.RpcError=qq});var Vq=C(gk=>{"use strict";Object.defineProperty(gk,"__esModule",{value:!0});gk.mergeRpcOptions=void 0;var QEe=gt();function Qht(t,e){if(!e)return t;let r={};fk(t,r),fk(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=QEe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=QEe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},fk(t.meta,r.meta),fk(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}gk.mergeRpcOptions=Qht;function fk(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 Wq=C(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.Deferred=tp.DeferredState=void 0;var eu;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(eu=tp.DeferredState||(tp.DeferredState={}));var Jq=class{constructor(e=!0){this._state=eu.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!==eu.PENDING)throw new Error(`cannot resolve ${eu[this.state].toLowerCase()}`);this._resolve(e),this._state=eu.RESOLVED}reject(e){if(this.state!==eu.PENDING)throw new Error(`cannot reject ${eu[this.state].toLowerCase()}`);this._reject(e),this._state=eu.REJECTED}resolvePending(e){this._state===eu.PENDING&&this.resolve(e)}rejectPending(e){this._state===eu.PENDING&&this.reject(e)}};tp.Deferred=Jq});var jq=C(pk=>{"use strict";Object.defineProperty(pk,"__esModule",{value:!0});pk.RpcOutputStreamController=void 0;var wEe=Wq(),rp=gt(),zq=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){rp.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){rp.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){rp.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(){rp.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;rp.assert(e,"bad state"),rp.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 wEe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;rp.assert(n.state==wEe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};pk.RpcOutputStreamController=zq});var Xq=C(aC=>{"use strict";var wht=aC&&aC.__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(aC,"__esModule",{value:!0});aC.UnaryCall=void 0;var Kq=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 wht(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}})}};aC.UnaryCall=Kq});var $q=C(cC=>{"use strict";var Sht=cC&&cC.__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(cC,"__esModule",{value:!0});cC.ServerStreamingCall=void 0;var Zq=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 lIe=E(uIe=>{"use strict";var xY=el().Buffer;uIe._dbcs=tl;var Zn=-1,AIe=-2,na=-10,Us=-1e3,dE=new Array(256),Yb=-1;for(gk=0;gk<256;gk++)dE[gk]=Zn;var gk;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]=dE.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(dE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(dE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],c=48;c<=57;c++){if(a[c]===Zn)a[c]=Us-s;else if(a[c]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Us-a[c]],u=129;u<=254;u++){if(A[u]===Zn)A[u]=Us-i;else{if(A[u]===Us-i)continue;if(A[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-A[u]],d=48;d<=57;d++)l[d]===Zn&&(l[d]=AIe)}}}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 SIt(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(lIt.has(s)){r=s;break}}return r}function NIt(t,e){let r=SIt(e);r!==""&&(t.referrerPolicy=r)}function TIt(){return"allowed"}function xIt(){return"success"}function RIt(){return"success"}function DIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function kIt(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&&JV(t.origin)&&!JV(wg(t))&&(e=null);break;case"same-origin":Zb(t,wg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function mE(t,e){return t}function vIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:mE(t.domainLookupStartTime,r),domainLookupEndTime:mE(t.domainLookupEndTime,r),connectionStartTime:mE(t.connectionStartTime,r),connectionEndTime:mE(t.connectionEndTime,r),secureConnectionStartTime:mE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function _It(t){return mE(gIt.now(),t)}function FIt(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 MIt(t){return{referrerPolicy:t.referrerPolicy}}function LIt(t){let e=t.referrerPolicy;eQ(e);let r=null;if(t.referrer==="client"){let i=MBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yd.is.URL(t.referrer)&&(r=t.referrer);let n=WV(r),s=WV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??WV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=wg(t);return Zb(n,i)?n:Qg(n)&&!Qg(i)?"no-referrer":s}case"same-origin":return Zb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Zb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":n}}}function WV(t,e=!1){return eQ(Yd.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 UIt=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)$/),PIt=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)),PIt(t)):UIt(t)}function OIt(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 Qg(t){return Yd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:OIt(t.origin):!1}function HIt(t){}function Zb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function GIt(t){return t.controller.state==="aborted"}function qIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function YIt(t){return mIt[t.toLowerCase()]??t}var VIt=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,VIt),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 WIt(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 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=oa(a=>r7(a)&&a!==59,t,e);i=e7.decode(o)}return{name:n,value:i}}function pyt(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 yi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=oa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=t7(o,!0,!0,a=>a===9||a===32),!cyt.test(o.toString()))throw yi("header name does not match the field-name token production");if(t[e.position]!==58)throw yi("expected :");switch(e.position++,oa(a=>a===32||a===9,t,e),ayt(o)){case"content-disposition":{if(r=n=null,oa(c=>r7(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw yi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=gyt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw yi("name attribute is required in content-disposition header");break}case"content-type":{let a=oa(c=>c!==10&&c!==13,t,e);a=t7(a,!1,!0,c=>c===9||c===32),s=$Be(a);break}case"content-transfer-encoding":{let a=oa(c=>c!==10&&c!==13,t,e);a=t7(a,!1,!0,c=>c===9||c===32),i=$Be(a);break}default:oa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw yi("expected CRLF");e.position+=2}}function oa(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 myt(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 yi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Eyt(t){return t<=31||t===127}function Cyt(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&&!Eyt(t)&&!Cyt(t)}XBe.exports={multipartFormDataParser:fyt,validateBoundary:hyt}});var tQ=E((mBr,ebe)=>{"use strict";function Iyt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}ebe.exports={createDeferredPromise:Iyt}});var IE=E((EBr,ibe)=>{"use strict";var i7=Ze(),{ReadableStreamFrom:yyt,readableStreamClose:Byt,fullyReadBody:byt,extractMimeType:Qyt}=ro(),{FormData:tbe,setFormDataState:wyt}=Ok(),{webidl:cc}=es(),n7=b("node:assert"),{isErrored:s7,isDisturbed:Syt}=b("node:stream"),{isUint8Array:Nyt}=b("node:util/types"),{serializeAMimeType:Tyt}=ia(),{multipartFormDataParser:xyt}=ZBe(),{createDeferredPromise:Ryt}=tQ(),{parseJSONFromBytes:Dyt}=sl(),{utf8DecodeBytes:kyt}=_k(),{runtimeFeatures:vyt}=il(),_yt=vyt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Hk=new TextEncoder;function Fyt(){}var Myt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Syt(e)&&!s7(e)&&e.cancel("Response object has been garbage collected").catch(Fyt)});function nbe(t,e=!1){let r=null,n=null;cc.is.ReadableStream(t)?r=t:cc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),n7(cc.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(cc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(cc.is.BufferSource(t))i=cc.util.getCopyOfBytesHeldByBufferSource(t);else if(cc.is.FormData(t)){let A=`----formdata-undici-0${`${_yt(1e11)}`.padStart(11,"0")}`,u=`--${A}\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 _Be=C(MBe=>{"use strict";var jJ=zl().Buffer;MBe._dbcs=jl;var Is=-1,FBe=-2,qa=-10,ui=-1e3,OC=new Array(256),Tw=-1;for(rF=0;rF<256;rF++)OC[rF]=Is;var rF;function jl(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]=OC.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(OC.slice(0));var i=this.decodeTables.length;this.decodeTables.push(OC.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[ui-o[n]],c=48;c<=57;c++){if(a[c]===Is)a[c]=ui-s;else if(a[c]>ui)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[ui-a[c]],u=129;u<=254;u++){if(A[u]===Is)A[u]=ui-i;else{if(A[u]===ui-i)continue;if(A[u]>ui)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[ui-A[u]],d=48;d<=57;d++)l[d]===Is&&(l[d]=FBe)}}}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 Dbt(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(gbt.has(s)){r=s;break}}return r}function Rbt(t,e){let r=Dbt(e);r!==""&&(t.referrerPolicy=r)}function kbt(){return"allowed"}function vbt(){return"success"}function Fbt(){return"success"}function Mbt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function _bt(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&&f7(t.origin)&&!f7(kp(t))&&(e=null);break;case"same-origin":Uw(t,kp(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function VC(t,e){return t}function Lbt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:VC(t.domainLookupStartTime,r),domainLookupEndTime:VC(t.domainLookupEndTime,r),connectionStartTime:VC(t.connectionStartTime,r),connectionEndTime:VC(t.connectionEndTime,r),secureConnectionStartTime:VC(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Ubt(t){return VC(Cbt.now(),t)}function Pbt(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 lwe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Obt(t){return{referrerPolicy:t.referrerPolicy}}function Hbt(t){let e=t.referrerPolicy;Pw(e);let r=null;if(t.referrer==="client"){let i=owe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Vh.is.URL(t.referrer)&&(r=t.referrer);let n=h7(r),s=h7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??h7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=kp(t);return Rp(n)&&!Rp(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=kp(t);return Uw(n,i)?n:Rp(n)&&!Rp(i)?"no-referrer":s}case"same-origin":return Uw(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Uw(t,n)?n:s;case"no-referrer-when-downgrade":{let i=kp(t);return Rp(n)&&!Rp(i)?"no-referrer":n}}}function h7(t,e=!1){return Pw(Vh.is.URL(t)),t=new URL(t),gwe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var Gbt=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)$/),qbt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function dwe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),qbt(t)):Gbt(t)}function Ybt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||dwe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Rp(t){return Vh.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Ybt(t.origin):!1}function Vbt(t){}function Uw(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Jbt(t){return t.controller.state==="aborted"}function Wbt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function zbt(t){return ybt[t.toLowerCase()]??t}var jbt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function hwe(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,jbt),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 Kbt(t,e,r,n=0,s=1){let i=hwe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vh.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vh.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ja(a=>b7(a)&&a!==59,t,e);i=y7.decode(o)}return{name:n,value:i,extended:s}}function IQt(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 Ki("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ja(a=>a!==10&&a!==13&&a!==58,t,e);if(o=B7(o,!0,!0,a=>a===9||a===32),!dQt.test(o.toString()))throw Ki("header name does not match the field-name token production");if(t[e.position]!==58)throw Ki("expected :");switch(e.position++,Ja(a=>a===32||a===9,t,e),lQt(o)){case"content-disposition":{r=n=null;let a=!1;if(Ja(A=>b7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ki("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=CQt(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 Ki("name attribute is required in content-disposition header");break}case"content-type":{let a=Ja(c=>c!==10&&c!==13,t,e);a=B7(a,!1,!0,c=>c===9||c===32),s=ywe(a);break}case"content-transfer-encoding":{let a=Ja(c=>c!==10&&c!==13,t,e);a=B7(a,!1,!0,c=>c===9||c===32),i=ywe(a);break}default:Ja(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Ki("expected CRLF");e.position+=2}}function Ja(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function B7(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 yQt(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 Ki(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function BQt(t){return t<=31||t===127}function bQt(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 b7(t){return t<=127&&t!==32&&t!==9&&!BQt(t)&&!bQt(t)}Bwe.exports={multipartFormDataParser:EQt,validateBoundary:mQt}});var Ow=C((CSr,Qwe)=>{"use strict";function QQt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Qwe.exports={createDeferredPromise:QQt}});var zC=C((ISr,xwe)=>{"use strict";var S7=st(),{ReadableStreamFrom:wQt,readableStreamClose:SQt,fullyReadBody:NQt,extractMimeType:TQt}=Oo(),{FormData:wwe,setFormDataState:xQt}=NF(),{webidl:zc}=ys(),Q7=Q("node:assert"),{isErrored:w7,isDisturbed:DQt}=Q("node:stream"),{isUint8Array:RQt}=Q("node:util/types"),{serializeAMimeType:kQt}=Va(),{multipartFormDataParser:vQt}=bwe(),{createDeferredPromise:FQt}=Ow(),{parseJSONFromBytes:MQt}=Zl(),{utf8DecodeBytes:_Qt}=yF(),{runtimeFeatures:LQt}=$l(),UQt=LQt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),TF=new TextEncoder;function PQt(){}var OQt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!DQt(e)&&!w7(e)&&e.cancel("Response object has been garbage collected").catch(PQt)});function Nwe(t,e=!1){let r=null,n=null;zc.is.ReadableStream(t)?r=t:zc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),Q7(zc.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(zc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(zc.is.BufferSource(t))i=zc.util.getCopyOfBytesHeldByBufferSource(t);else if(zc.is.FormData(t)){let A=`----formdata-undici-0${`${UQt(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 p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=Hk.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=TF.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=Hk.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(y),o+=y.byteLength}else{let y=TF.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=Hk.encode(`--${A}--\r
`);h.push(I),o+=I.byteLength,p&&(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(cc.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(i7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=cc.is.ReadableStream(t)?t:yyt(t)}return(typeof i=="string"||Nyt(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(s7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!s7(r)&&n.enqueue(typeof A=="string"?Hk.encode(A):new Uint8Array(A));queueMicrotask(()=>Byt(n))})(),[{stream:r,source:i,length:o},a]}function Lyt(t,e=!1){return cc.is.ReadableStream(t)&&(n7(!i7.isDisturbed(t),"The body has already been consumed."),n7(!t.locked,"The stream is locked.")),nbe(t,e)}function Uyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Pyt(t,e){return{blob(){return CE(this,n=>{let s=rbe(e(this));return s===null?s="":s&&(s=Tyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return CE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return CE(this,kyt,t,e)},json(){return CE(this,Dyt,t,e)},formData(){return CE(this,n=>{let s=rbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=xyt(n,s),o=new tbe;return wyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new tbe;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 CE(this,n=>new Uint8Array(n),t,e)}}}function Oyt(t,e){Object.assign(t.prototype,Pyt(t,e))}function CE(t,e,r,n){try{cc.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=Ryt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(byt(t.body,o,i),s.promise)}function sbe(t){let e=t.body;return e!=null&&(e.stream.locked||i7.isDisturbed(e.stream))}function rbe(t){let e=t.headersList,r=Qyt(e);return r==="failure"?null:r}ibe.exports={extractBody:nbe,safelyExtractBody:Lyt,cloneBody:Uyt,mixinBody:Oyt,streamRegistry:Myt,bodyUnusable:sbe}});var pbe=E((CBr,gbe)=>{"use strict";var We=b("node:assert"),Je=Ze(),{channels:obe}=Gd(),o7=HY(),{RequestContentLengthMismatchError:Sg,ResponseContentLengthMismatchError:Hyt,RequestAbortedError:dbe,HeadersTimeoutError:Gyt,HeadersOverflowError:qyt,SocketError:sQ,InformationalError:yE,BodyTimeoutError:Yyt,HTTPParserError:Vyt,ResponseExceededMaxSizeError:Wyt}=Ke(),{kUrl:hbe,kReset:Bi,kClient:h7,kParser:Wr,kBlocking:iQ,kRunning:ms,kPending:Jyt,kSize:abe,kWriting:Wd,kQueue:Ac,kNoRef:rQ,kKeepAliveDefaultTimeout:zyt,kHostHeader:jyt,kPendingIdx:Kyt,kRunningIdx:aa,kError:ca,kPipelining:Yk,kSocket:BE,kKeepAliveTimeoutValue:Wk,kMaxHeadersSize:$yt,kKeepAliveMaxTimeout:Xyt,kKeepAliveTimeoutThreshold:Zyt,kHeadersTimeout:eBt,kBodyTimeout:tBt,kStrictContentLength:A7,kMaxRequests:cbe,kCounter:rBt,kMaxResponseSize:nBt,kOnError:sBt,kResume:Vd,kHTTPContext:fbe,kClosed:u7}=Kt(),wA=iBe(),iBt=Buffer.alloc(0),Gk=Buffer[Symbol.species],oBt=Je.removeAllListeners,a7;function aBt(){let t=process.env.JEST_WORKER_ID?vV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(cBe())}catch{}return e||(e=new WebAssembly.Module(t||vV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{We(bn.ptr===n);let o=s-NA+SA.byteOffset;return bn.onStatus(new Gk(SA.buffer,o,i))},wasm_on_message_begin:n=>(We(bn.ptr===n),bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{We(bn.ptr===n);let o=s-NA+SA.byteOffset;return bn.onHeaderField(new Gk(SA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{We(bn.ptr===n);let o=s-NA+SA.byteOffset;return bn.onHeaderValue(new Gk(SA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(We(bn.ptr===n),bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{We(bn.ptr===n);let o=s-NA+SA.byteOffset;return bn.onBody(new Gk(SA.buffer,o,i))},wasm_on_message_complete:n=>(We(bn.ptr===n),bn.onMessageComplete())}})}var c7=null,bn=null,SA=null,qk=0,NA=null,cBt=0,nQ=1,bE=2|nQ,Vk=4|nQ,l7=8|cBt,d7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(wA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[$yt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[nBt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[jyt],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=TF.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(zc.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(S7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=zc.is.ReadableStream(t)?t:wQt(t)}return(typeof i=="string"||RQt(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(w7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!w7(r)&&n.enqueue(typeof A=="string"?TF.encode(A):new Uint8Array(A));queueMicrotask(()=>SQt(n))})(),[{stream:r,source:i,length:o},a]}function HQt(t,e=!1){return zc.is.ReadableStream(t)&&(Q7(!S7.isDisturbed(t),"The body has already been consumed."),Q7(!t.locked,"The stream is locked.")),Nwe(t,e)}function GQt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function qQt(t,e){return{blob(){return WC(this,n=>{let s=Swe(e(this));return s===null?s="":s&&(s=kQt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return WC(this,n=>new Uint8Array(n).buffer,t,e)},text(){return WC(this,_Qt,t,e)},json(){return WC(this,MQt,t,e)},formData(){return WC(this,n=>{let s=Swe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=vQt(n,s),o=new wwe;return xQt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new wwe;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 WC(this,n=>new Uint8Array(n),t,e)}}}function YQt(t,e){Object.assign(t.prototype,qQt(t,e))}function WC(t,e,r,n){try{zc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Twe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=FQt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(NQt(t.body,o,i),s.promise)}function Twe(t){let e=t.body;return e!=null&&(e.stream.locked||S7.isDisturbed(e.stream))}function Swe(t){let e=t.headersList,r=TQt(e);return r==="failure"?null:r}xwe.exports={extractBody:Nwe,safelyExtractBody:HQt,cloneBody:GQt,mixinBody:YQt,streamRegistry:OQt,bodyUnusable:Twe}});var Ywe=C((ySr,qwe)=>{"use strict";var Je=Q("node:assert"),_e=st(),{channels:Dwe}=qh(),N7=aW(),{RequestContentLengthMismatchError:vp,ResponseContentLengthMismatchError:Rwe,RequestAbortedError:Pwe,InvalidArgumentError:VQt,HeadersTimeoutError:JQt,HeadersOverflowError:WQt,SocketError:Fp,InformationalError:jC,BodyTimeoutError:zQt,HTTPParserError:jQt,ResponseExceededMaxSizeError:KQt}=et(),{kUrl:Owe,kReset:Xi,kClient:vF,kParser:Sr,kBlocking:qw,kRunning:Sn,kPending:F7,kSize:kwe,kWriting:Jh,kQueue:jc,kNoRef:Hw,kKeepAliveDefaultTimeout:XQt,kHostHeader:ZQt,kPendingIdx:$Qt,kRunningIdx:Wa,kError:li,kPipelining:RF,kSocket:Mp,kKeepAliveTimeoutValue:FF,kMaxHeadersSize:ewt,kKeepAliveMaxTimeout:twt,kKeepAliveTimeoutThreshold:rwt,kHeadersTimeout:nwt,kBodyTimeout:swt,kStrictContentLength:D7,kMaxRequests:vwe,kCounter:iwt,kMaxResponseSize:owt,kOnError:Fwe,kResume:td,kHTTPContext:Hwe,kClosed:R7}=sr(),Ho=xQe(),Mwe=Buffer.alloc(0),xF=Buffer[Symbol.species],awt=_e.removeAllListeners,_p=Symbol("kIdleSocketValidation"),KC=Symbol("kIdleSocketValidationTimeout"),M7=Symbol("kSocketUsed"),T7;function cwt(){let t=process.env.JEST_WORKER_ID?e7():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(kQe())}catch{}return e||(e=new WebAssembly.Module(t||e7())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Je(on.ptr===n);let o=s-du+lu.byteOffset;return on.onStatus(new xF(lu.buffer,o,i))},wasm_on_message_begin:n=>(Je(on.ptr===n),on.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Je(on.ptr===n);let o=s-du+lu.byteOffset;return on.onHeaderField(new xF(lu.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Je(on.ptr===n);let o=s-du+lu.byteOffset;return on.onHeaderValue(new xF(lu.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Je(on.ptr===n),on.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Je(on.ptr===n);let o=s-du+lu.byteOffset;return on.onBody(new xF(lu.buffer,o,i))},wasm_on_message_complete:n=>(Je(on.ptr===n),on.onMessageComplete())}})}var x7=null,on=null,lu=null,DF=0,du=null,Awt=0,Gw=1,XC=2|Gw,kF=4|Gw,k7=8|Awt,v7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Ho.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[ewt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[ZQt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Yk]&&!h[Bi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return obe.sendHeaders.hasSubscribers&&obe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?ube(f,null,t,e,h,u,p,l):Je.isBuffer(c)?ube(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?lbe(f,c.stream(),t,e,h,u,p,l):CBt(f,c,t,e,h,u,p,l):Je.isStream(c)?EBt(f,c,t,e,h,u,p,l):Je.isIterable(c)?lbe(f,c,t,e,h,u,p,l):We(!1),!0}function EBt(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new Jk({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(p){Je.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new dbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,We(s.destroyed||s[Wd]&&r[ms]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.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 ube(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(We(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[RF]&&!h[Xi]?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 Dwe.sendHeaders.hasSubscribers&&Dwe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Lwe(f,null,t,e,h,u,g,l):_e.isBuffer(c)?Lwe(f,c,t,e,h,u,g,l):_e.isBlobLike(c)?typeof c.stream=="function"?Uwe(f,c.stream(),t,e,h,u,g,l):ywt(f,c,t,e,h,u,g,l):_e.isStream(c)?Iwt(f,c,t,e,h,u,g,l):_e.isIterable(c)?Uwe(f,c,t,e,h,u,g,l):Je(!1),!0}function Iwt(t,e,r,n,s,i,o,a){Je(i!==0||r[Sn]===0,"stream body cannot be pipelined");let c=!1,A=new MF({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){_e.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Pwe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Je(s.destroyed||s[Jh]&&r[Sn]<=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")?_e.destroy(e,f):_e.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 Lwe(t,e,r,n,s,i,o,a){try{e?_e.isBuffer(e)&&(Je(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[Xi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(We(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Vd]()}catch(c){t(c)}}async function CBt(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 Sg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Je(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[td]()}catch(c){t(c)}}async function ywt(t,e,r,n,s,i,o,a){Je(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new vp;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[Vd]()}catch(c){t(c)}}async function lbe(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===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[ca]?h(s[ca]):c=d});s.on("close",A).on("drain",A);let l=new Jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[ca])throw s[ca];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Jk=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[ca])throw r[ca];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[A7])throw new Sg;process.emitWarning(new Sg)}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[Xi]=!0),r[td]()}catch(c){t(c)}}async function Uwe(t,e,r,n,s,i,o,a){Je(i!==0||r[Sn]===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)=>{Je(c===null),s[li]?h(s[li]):c=d});s.on("close",A).on("drain",A);let l=new MF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[li])throw s[li];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var MF=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[li])throw r[li];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[D7])throw new vp;process.emitWarning(new vp)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Xi]=!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[Wr].timeout&&r[Wr].timeoutType===bE&&r[Wr].timeout.refresh&&r[Wr].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[ca])throw e[ca];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[Sr].timeout&&r[Sr].timeoutType===XC&&r[Sr].timeout.refresh&&r[Sr].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[li])throw e[li];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[A7])throw new Sg;process.emitWarning(new Sg)}e[Wr].timeout&&e[Wr].timeoutType===bE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Vd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wd]=!1,e&&(We(n[ms]<=1,"pipeline should only contain this request"),s(e))}};gbe.exports=ABt});var wbe=E((IBr,Qbe)=>{"use strict";var ua=b("node:assert"),{pipeline:IBt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:m7,RequestAbortedError:yBt,SocketError:AQ,InformationalError:Jd,InvalidArgumentError:BBt}=Ke(),{kUrl:cQ,kReset:$k,kClient:no,kRunning:uQ,kPending:bBt,kQueue:zd,kPendingIdx:C7,kRunningIdx:uc,kError:so,kSocket:Dr,kStrictContentLength:QBt,kOnError:QE,kMaxConcurrentStreams:jk,kPingInterval:mbe,kHTTP2Session:al,kHTTP2InitialWindowSize:wBt,kHTTP2ConnectionWindowSize:SBt,kResume:TA,kSize:NBt,kHTTPContext:I7,kClosed:E7,kBodyTimeout:TBt,kEnableConnectProtocol:oQ,kRemoteSettings:aQ,kHTTP2Stream:zk,kHTTP2SessionState:y7}=Kt(),{channels:Ebe}=Gd(),Aa=Symbol("open streams"),Cbe,Kk;try{Kk=b("node:http2")}catch{Kk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:xBt,HTTP2_HEADER_METHOD:Ibe,HTTP2_HEADER_PATH:ybe,HTTP2_HEADER_SCHEME:f7,HTTP2_HEADER_CONTENT_LENGTH:RBt,HTTP2_HEADER_EXPECT:DBt,HTTP2_HEADER_STATUS:g7,HTTP2_HEADER_PROTOCOL:kBt,NGHTTP2_REFUSED_STREAM:vBt,NGHTTP2_CANCEL:_Bt}}=Kk;function p7(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 FBt(t,e){t[Dr]=e;let r=t[wBt],n=t[SBt],s=Kk.connect(t[cQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[jk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[Aa]=0,s[no]=t,s[Dr]=e,s[y7]={ping:{interval:t[mbe]===0?null:setInterval(PBt,t[mbe],s).unref()}},s[oQ]=!1,s[aQ]=!1,n&&ut.addListener(s,"connect",LBt.bind(s,n)),ut.addListener(s,"error",OBt),ut.addListener(s,"frameError",HBt),ut.addListener(s,"end",GBt),ut.addListener(s,"goaway",qBt),ut.addListener(s,"close",YBt),ut.addListener(s,"remoteSettings",UBt),s.unref(),t[al]=s,e[al]=s,ut.addListener(e,"error",WBt),ut.addListener(e,"end",JBt),ut.addListener(e,"close",VBt),e[E7]=!1,e.on("close",zBt),{version:"h2",defaultPipelining:1/0,write(i){return KBt(t,i)},resume(){MBt(t)},destroy(i,o){e[E7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[uQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[aQ]===!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[aQ]===!1;return!1}}}function MBt(t){let e=t[Dr];e?.destroyed===!1&&(t[NBt]===0||t[jk]===0?(e.unref(),t[al].unref()):(e.ref(),t[al].ref()))}function LBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function UBt(t){if(this[no][jk]=t.maxConcurrentStreams??this[no][jk],this[aQ]===!0&&this[oQ]===!0&&t.enableConnectProtocol===!1){let e=new Jd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][QE](e);return}this[oQ]=t.enableConnectProtocol??this[oQ],this[aQ]=!0,this[no][TA]()}function PBt(t){let e=t[y7];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[no],o=this[no];if(n!=null){let a=new Jd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[QE](a)}else i.emit("ping",s)}}function OBt(t){ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][QE](t)}function HBt(t,e,r){if(r===0){let n=new Jd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][QE](n)}}function GBt(){let t=new AQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function qBt(t){let e=this[so]||new AQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[no];if(r[Dr]=null,r[I7]=null,this.close(),this[al]=null,ut.destroy(this[Dr],e),r[uc]<r[zd].length){let n=r[zd][r[uc]];r[zd][r[uc]++]=null,ut.errorRequest(r,n,e),r[C7]=r[uc]}ua(r[uQ]===0),r.emit("disconnect",r[cQ],[r],e),r.emit("connectionError",r[cQ],[r],e),r[TA]()}function YBt(){let{[no]:t,[y7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new AQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[I7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ua(t[bBt]===0);let s=t[zd].splice(t[uc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function VBt(){let t=this[so]||new AQ("closed",ut.getSocketInfo(this)),e=this[al][no];e[Dr]=null,e[I7]=null,this[al]!==null&&this[al].destroy(t),e[C7]=e[uc],ua(e[uQ]===0),e.emit("disconnect",e[cQ],[e],t),e[TA]()}function WBt(t){ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][QE](t)}function JBt(){ut.destroy(this,new AQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;Ebe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[DBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[zk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[zk]=!0,O()),++n[Aa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[g7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),p7(D),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[uc]++]=null,t[TA]()):(m(new Jd("HTTP/2: stream half-closed (remote)")),t[zd][t[uc]++]=null,t[C7]=t[uc],t[TA]())}),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 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[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 O(){!d||y===0?Bbe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?Bbe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?bbe(m,f,d.stream(),t,e,t[Dr],y,C):XBt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?$Bt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?bbe(m,f,d,t,e,t[Dr],y,C):ua(!1)}}function Bbe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ua(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[$k]=!0),s.onRequestSent(),n[TA]()}catch(c){t(c)}}function $Bt(t,e,r,n,s,i,o,a){ua(a!==0||i[uQ]===0,"stream body cannot be pipelined");let c=IBt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[$k]=!0),i[TA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function XBt(t,e,r,n,s,i,o,a){ua(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new m7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[$k]=!0),n[TA]()}catch(c){t(c)}}async function bbe(t,e,r,n,s,i,o,a){ua(o!==0||n[uQ]===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)=>{ua(c===null),i[so]?d(i[so]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[so])throw i[so];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[$k]=!0),n[TA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Qbe.exports=FBt});var Zd=E((yBr,_be)=>{"use strict";var cl=b("node:assert"),Rbe=b("node:net"),lQ=b("node:http"),Ng=Ze(),{ClientStats:ZBt}=pV(),{channels:wE}=Gd(),ebt=Jye(),tbt=yg(),{InvalidArgumentError:gr,InformationalError:rbt,ClientDestroyedError:nbt}=Ke(),sbt=Bg(),{kUrl:xA,kServerName:Xd,kClient:ibt,kBusy:B7,kConnect:obt,kResuming:Tg,kRunning:gQ,kPending:pQ,kSize:dQ,kQueue:lc,kConnected:abt,kConnecting:SE,kNeedDrain:Kd,kKeepAliveDefaultTimeout:Sbe,kHostHeader:cbt,kPendingIdx:dc,kRunningIdx:Al,kError:Abt,kPipelining:Xk,kKeepAliveTimeoutValue:ubt,kMaxHeadersSize:lbt,kKeepAliveMaxTimeout:dbt,kKeepAliveTimeoutThreshold:hbt,kHeadersTimeout:fbt,kBodyTimeout:gbt,kStrictContentLength:pbt,kConnector:hQ,kMaxRequests:b7,kCounter:mbt,kClose:Ebt,kDestroy:Cbt,kDispatch:Ibt,kLocalAddress:fQ,kMaxResponseSize:ybt,kOnError:Bbt,kHTTPContext:nn,kMaxConcurrentStreams:bbt,kHTTP2InitialWindowSize:Qbt,kHTTP2ConnectionWindowSize:wbt,kResume:$d,kPingInterval:Sbt}=Kt(),Nbt=pbe(),Tbt=wbe(),jd=Symbol("kClosedResolve"),xbt=lQ&&lQ.maxHeaderSize&&Number.isInteger(lQ.maxHeaderSize)&&lQ.maxHeaderSize>0?()=>lQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},Nbe=()=>{};function Dbe(t){return t[Xk]??t[nn]?.defaultPipelining??1}var Q7=class extends tbt{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:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns Line truncated
`,this[gbt]=a??3e5,this[fbt]=n??3e5,this[pbt]=m??!0,this[b7]=N,this[jd]=null,this[ybt]=O>-1?O:-1,this[nn]=null,this[bbt]=D??100,this[Qbt]=te??262144,this[wbt]=ce??524288,this[Sbt]=ge??6e4,this[lc]=[],this[Al]=0,this[dc]=0,this[$d]=De=>w7(this,De),this[Bbt]=De=>kbe(this,De)}get pipelining(){return this[Xk]}set pipelining(e){this[Xk]=e,this[$d](!0)}get stats(){return new ZBt(this)}get[pQ](){return this[lc].length-this[dc]}get[gQ](){return this[dc]-this[Al]}get[dQ](){return this[lc].length-this[Al]}get[abt](){return!!this[nn]&&!this[SE]&&!this[nn].destroyed}get[B7](){return!!(this[nn]?.busy(null)||this[dQ]>=(Dbe(this)||1)||this[pQ]>0)}[obt](e){vbe(this),this.once("connect",e)}[Ibt](e,r){let n=new ebt(this[xA].origin,e,r);return this[lc].push(n),this[Tg]||(Ng.bodyLength(n.body)==null&&Ng.isIterable(n.body)?(this[Tg]=1,queueMicrotask(()=>w7(this))):this[$d](!0)),this[Tg]&&this[Kd]!==2&&this[B7]&&(this[Kd]=2),this[Kd]<2}[Ebt](){return new Promise(e=>{this[dQ]?this[jd]=e:e(null)})}[Cbt](e){return new Promise(r=>{let n=this[lc].splice(this[dc]);for(let i=0;i<n.length;i++){let o=n[i];Ng.errorRequest(this,o,e)}let s=()=>{this[jd]&&(this[jd](),this[jd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[$d]()})}};function kbe(t,e){if(t[gQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){cl(t[dc]===t[Al]);let r=t[lc].splice(t[Al]);for(let n=0;n<r.length;n++){let s=r[n];Ng.errorRequest(t,s,e)}cl(t[dQ]===0)}}function vbe(t){cl(!t[SE]),cl(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[xA];if(r[0]==="["){let i=r.indexOf("]");cl(i!==-1);let o=r.substring(1,i);cl(Rbe.isIPv6(o)),r=o}t[SE]=!0,wE.beforeConnect.hasSubscribers&&wE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ]}),t[hQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Xd],localAddress:t[fQ]},(i,o)=>{if(i){Tbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[$d]();return}if(t.destroyed){Ng.destroy(o.on("error",Nbe),new nbt),t[$d]();return}cl(o);try{t[nn]=o.alpnProtocol==="h2"?Tbt(t,o):Nbt(t,o)}catch(a){o.destroy().on("error",Nbe),Tbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[$d]();return}t[SE]=!1,o[mbt]=0,o[b7]=t[b7],o[ibt]=t,o[Abt]=null,wE.connected.hasSubscribers&&wE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ],socket:o}),t.emit("connect",t[xA],[t]),t[$d]()})}function Tbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[SE]=!1,wE.connectError.hasSubscribers&&wE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(cl(t[gQ]===0);t[pQ]>0&&t[lc][t[dc]].servername===t[Xd];){let o=t[lc][t[dc]++];Ng.errorRequest(t,o,e)}else kbe(t,e);t.emit("connectionError",t[xA],[t],e)}}function xbe(t){t[Kd]=0,t.emit("drain",t[xA],[t])}function w7(t,e){t[Tg]!==2&&(t[Tg]=2,Rbt(t,e),t[Tg]=0,t[Al]>256&&(t[lc].splice(0,t[Al]),t[dc]-=t[Al],t[Al]=0))}function Rbt(t,e){for(;;){if(t.destroyed){cl(t[pQ]===0);return}if(t[jd]&&!t[dQ]){t[jd](),t[jd]=null;return}if(t[nn]&&t[nn].resume(),t[B7])t[Kd]=2;else if(t[Kd]===2){e?(t[Kd]=1,queueMicrotask(()=>xbe(t))):xbe(t);continue}if(t[pQ]===0||t[gQ]>=(Dbe(t)||1))return;let r=t[lc][t[dc]];if(r===null)return;if(t[xA].protocol==="https:"&&t[Xd]!==r.servername){if(t[gQ]>0)return;t[Xd]=r.servername,t[nn]?.destroy(new rbt("servername changed"),()=>{t[nn]=null,w7(t)})}if(t[SE])return;if(!t[nn]){vbe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[dc]++:t[lc].splice(t[dc],1)}}_be.exports=Q7});var S7=E((bBr,Fbe)=>{"use strict";var Zk=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)}};Fbe.exports=class{constructor(){this.head=this.tail=new Zk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Zk),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 ev=E((QBr,Ybe)=>{"use strict";var{PoolStats:Dbt}=pV(),kbt=yg(),vbt=S7(),{kConnected:N7,kSize:Mbe,kRunning:Lbe,kPending:Ube,kQueued:mQ,kBusy:_bt,kFree:Fbt,kUrl:Mbt,kClose:Lbt,kDestroy:Ubt,kDispatch:Pbt}=Kt(),Vn=Symbol("clients"),Ps=Symbol("needDrain"),EQ=Symbol("queue"),T7=Symbol("closed resolve"),x7=Symbol("onDrain"),Pbe=Symbol("onConnect"),Obe=Symbol("onDisconnect"),Hbe=Symbol("onConnectionError"),R7=Symbol("get dispatcher"),Gbe=Symbol("add client"),qbe=Symbol("remove client"),D7=class extends kbt{[EQ]=new vbt;[mQ]=0;[Vn]=[];[Ps]=!1;[x7](e,r,n){let s=this[EQ],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[D7])throw new vp;process.emitWarning(new vp)}e[Sr].timeout&&e[Sr].timeoutType===XC&&e[Sr].timeout.refresh&&e[Sr].timeout.refresh(),n[td]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Jh]=!1,e&&(Je(n[Sn]<=1,"pipeline should only contain this request"),s(e))}};qwe.exports=uwt});var $we=C((BSr,Zwe)=>{"use strict";var ja=Q("node:assert"),{pipeline:Bwt}=Q("node:stream"),pt=st(),{RequestContentLengthMismatchError:P7,RequestAbortedError:bwt,SocketError:jw,InformationalError:Wh,InvalidArgumentError:Qwt,HeadersTimeoutError:wwt,BodyTimeoutError:Swt}=et(),{kUrl:zw,kReset:UF,kClient:Go,kRunning:Kw,kPending:Nwt,kQueue:Vw,kPendingIdx:Lp,kRunningIdx:hu,kError:qo,kSocket:Yr,kStrictContentLength:Twt,kOnError:ZC,kMaxConcurrentStreams:O7,kPingInterval:Vwe,kHTTP2Session:rd,kHTTP2InitialWindowSize:xwt,kHTTP2ConnectionWindowSize:Dwt,kResume:fu,kSize:Rwt,kHTTPContext:G7,kClosed:H7,kBodyTimeout:kwt,kHeadersTimeout:vwt,kEnableConnectProtocol:Jw,kRemoteSettings:Ww,kHTTP2Stream:_F,kHTTP2SessionState:q7}=sr(),{channels:Jwe}=qh(),za=Symbol("open streams"),Wwe,LF;try{LF=Q("node:http2")}catch{LF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Fwt,HTTP2_HEADER_METHOD:zwe,HTTP2_HEADER_PATH:jwe,HTTP2_HEADER_SCHEME:_7,HTTP2_HEADER_CONTENT_LENGTH:Mwt,HTTP2_HEADER_EXPECT:_wt,HTTP2_HEADER_STATUS:L7,HTTP2_HEADER_PROTOCOL:Lwt,NGHTTP2_REFUSED_STREAM:Uwt,NGHTTP2_CANCEL:Pwt}}=LF;function U7(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 Owt(t,e){t[Yr]=e;let r=t[xwt],n=t[Dwt],s=LF.connect(t[zw],{createConnection:()=>e,peerMaxConcurrentStreams:t[O7],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Yr]=e,s[za]=0,s[Go]=t,s[Yr]=e,s[q7]={ping:{interval:t[Vwe]===0?null:setInterval(Ywt,t[Vwe],s).unref()}},s[Jw]=!1,s[Ww]=!1,n&&pt.addListener(s,"connect",Gwt.bind(s,n)),pt.addListener(s,"error",Vwt),pt.addListener(s,"frameError",Jwt),pt.addListener(s,"end",Wwt),pt.addListener(s,"goaway",zwt),pt.addListener(s,"close",jwt),pt.addListener(s,"remoteSettings",qwt),s.unref(),t[rd]=s,e[rd]=s,pt.addListener(e,"error",Xwt),pt.addListener(e,"end",Zwt),pt.addListener(e,"close",Kwt),e[H7]=!1,e.on("close",$wt),{version:"h2",defaultPipelining:1/0,write(i){return t1t(t,i)},resume(){Hwt(t)},destroy(i,o){e[H7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Kw]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ww]===!1||pt.bodyLength(i.body)!==0&&(pt.isStream(i.body)||pt.isAsyncIterable(i.body)||pt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ww]===!1;return!1}}}function Hwt(t){let e=t[Yr];e?.destroyed===!1&&(t[Rwt]===0?(e.unref(),t[rd].unref()):(e.ref(),t[rd].ref()))}function Gwt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function qwt(t){if(this[Go][O7]=t.maxConcurrentStreams??this[Go][O7],this[Ww]===!0&&this[Jw]===!0&&t.enableConnectProtocol===!1){let e=new Wh("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Yr][qo]=e,this[Go][ZC](e);return}this[Jw]=t.enableConnectProtocol??this[Jw],this[Ww]=!0,this[Go][fu]()}function Ywt(t){let e=t[q7];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[Go],o=this[Go];if(n!=null){let a=new Wh(`HTTP/2: "PING" errored - type ${n.message}`);o[qo]=a,i[ZC](a)}else i.emit("ping",s)}}function Vwt(t){ja(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Yr][qo]=t,this[Go][ZC](t)}function Jwt(t,e,r){if(r===0){let n=new Wh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Yr][qo]=n,this[Go][ZC](n)}}function Wwt(){let t=new jw("other side closed",pt.getSocketInfo(this[Yr]));this.destroy(t),pt.destroy(this[Yr],t)}function Yw(t,e,r=!1){let n=t[Vw],s=t[hu];if(s<t[Lp]&&n[s]===e){n[s]=null,t[hu]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[Lp]||(n.splice(i,1),t[Lp]--,r&&t[Lp]<t[hu]&&(t[Lp]=t[hu]))}function zwt(t){let e=this[qo]||new jw(`HTTP/2: "GOAWAY" frame received with code ${t}`,pt.getSocketInfo(this[Yr])),r=this[Go];if(r[Yr]=null,r[G7]=null,this.close(),this[rd]=null,pt.destroy(this[Yr],e),r[hu]<r[Vw].length){let n=r[Vw][r[hu]];r[Vw][r[hu]++]=null,n!=null&&pt.errorRequest(r,n,e),r[Lp]=r[hu]}ja(r[Kw]===0),r.emit("disconnect",r[zw],[r],e),r.emit("connectionError",r[zw],[r],e),r[fu]()}function jwt(){let{[Go]:t,[q7]:e}=this,{[Yr]:r}=t,n=this[Yr][qo]||this[qo]||new jw("closed",pt.getSocketInfo(r));if(t[Yr]=null,t[G7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ja(t[Nwt]===0);let s=t[Vw].splice(t[hu]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&pt.errorRequest(t,o,n)}}}function Kwt(){let t=this[qo]||new jw("closed",pt.getSocketInfo(this)),e=this[rd][Go];e[Yr]=null,e[G7]=null,this[rd]!==null&&this[ Line truncated
`;Jwe.sendHeaders.publish({request:e,headers:P,socket:s[Yr]})}let F=i==="GET"||i==="HEAD"||h===null;A?(f[_wt]="100-continue",g=s.request(f,{endStream:F,signal:u}),g[_F]=!0,g.once("continue",L)):(g=s.request(f,{endStream:F,signal:u}),g[_F]=!0,L()),++s[za],g.setTimeout(r);let V=!1;return g.once("response",P=>{let{[L7]:k,...j}=P;if(e.onResponseStarted(),V=!0,g.setTimeout(n),e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(k),U7(j),g.resume.bind(g),"")===!1&&g.pause(),g.on("data",Z=>{e.aborted||e.completed||e.onData(Z)===!1&&g.pause()})}),g.once("end",()=>{g.removeAllListeners("data"),V?(!e.aborted&&!e.completed&&e.onComplete({}),Yw(t,e),t[fu]()):(I(new Wh("HTTP/2: stream half-closed (remote)")),Yw(t,e,!0),t[fu]())}),g.once("close",()=>{g.removeAllListeners("data"),s[za]-=1,s[za]===0&&s.unref(),!e.aborted&&!e.completed&&I(new Wh("HTTP/2: stream closed before the response was complete"))}),g.once("error",function(P){g.removeAllListeners("data"),I(P)}),g.once("frameError",(P,k)=>{g.removeAllListeners("data"),I(new Wh(`HTTP/2: "frameError" received - type ${P}, code ${k}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let P=V?new Swt(`HTTP/2: "body timeout after ${n}"`):new wwt(`HTTP/2: "headers timeout after ${r}"`);g.removeAllListeners("data"),s[za]-=1,s[za]===0&&s.unref(),I(P)}),g.once("trailers",P=>{e.aborted||e.completed||(g.removeAllListeners("data"),e.onComplete(P))}),!0;function L(){!h||B===0?Kwe(I,g,null,t,e,t[Yr],B,y):pt.isBuffer(h)?Kwe(I,g,h,t,e,t[Yr],B,y):pt.isBlobLike(h)?typeof h.stream=="function"?Xwe(I,g,h.stream(),t,e,t[Yr],B,y):n1t(I,g,h,t,e,t[Yr],B,y):pt.isStream(h)?r1t(I,t[Yr],y,g,h,t,e,B):pt.isIterable(h)?Xwe(I,g,h,t,e,t[Yr],B,y):ja(!1)}}function Kwe(t,e,r,n,s,i,o,a){try{r!=null&&pt.isBuffer(r)&&(ja(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[UF]=!0),s.onRequestSent(),n[fu]()}catch(c){t(c)}}function r1t(t,e,r,n,s,i,o,a){ja(a!==0||i[Kw]===0,"stream body cannot be pipelined");let c=Bwt(s,n,u=>{u?(pt.destroy(c,u),t(u)):(pt.removeAllListeners(c),o.onRequestSent(),r||(e[UF]=!0),i[fu]())});pt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function n1t(t,e,r,n,s,i,o,a){ja(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new P7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[UF]=!0),n[fu]()}catch(c){t(c)}}async function Xwe(t,e,r,n,s,i,o,a){ja(o!==0||n[Kw]===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)=>{ja(c===null),i[qo]?d(i[qo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[qo])throw i[qo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[UF]=!0),n[fu]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Zwe.exports=Owt});var Xh=C((bSr,a1e)=>{"use strict";var nd=Q("node:assert"),n1e=Q("node:net"),Xw=Q("node:http"),Up=st(),{ClientStats:s1t}=_W(),{channels:$C}=qh(),i1t=mQe(),o1t=Tp(),{InvalidArgumentError:Nr,InformationalError:a1t,ClientDestroyedError:c1t}=et(),A1t=xp(),{kUrl:gu,kServerName:Kh,kClient:u1t,kBusy:V7,kConnect:l1t,kResuming:Pp,kRunning:t1,kPending:r1,kSize:Zw,kQueue:Kc,kConnected:d1t,kConnecting:eI,kNeedDrain:jh,kKeepAliveDefaultTimeout:e1e,kHostHeader:h1t,kPendingIdx:Xc,kRunningIdx:id,kError:f1t,kPipelining:PF,kKeepAliveTimeoutValue:g1t,kMaxHeadersSize:p1t,kKeepAliveMaxTimeout:m1t,kKeepAliveTimeoutThreshold:E1t,kHeadersTimeout:C1t,kBodyTimeout:I1t,kStrictContentLength:y1t,kConnector:$w,kMaxRequests:J7,kCounter:B1t,kClose:b1t,kDestroy:Q1t,kDispatch:w1t,kLocalAddress:e1,kMaxResponseSize:S1t,kOnError:N1t,kHTTPContext:mn,kMaxConcurrentStreams:T1t,kHTTP2InitialWindowSize:x1t,kHTTP2ConnectionWindowSize:D1t,kResume:sd,kPingInterval:R1t}=sr(),k1t=Ywe(),v1t=$we(),zh=Symbol("kClosedResolve"),F1t=Xw&&Xw.maxHeaderSize&&Number.isInteger(Xw.maxHeaderSize)&&Xw.maxHeaderSize>0?()=>Xw.maxHeaderSize:()=>{throw new Nr("http module not available or http.maxHeaderSize invalid")},t1e=()=>{};function s1e(t){return t[PF]??t[mn]?.defaultPipelining??1}var W7=class extends o1t{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:F,maxResponseSize:V,autoSelectFamily:L,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:k,allowH2:j,useH2c:Z,initialWindowSize:ne,connectionWindowSize:ce,pingInterval:de,webSocket:ke}={}){if(A!==void 0)throw new Nr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Nr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Nr("unsupported requestTimeout, use headersTimeout & Line truncated
`,this[I1t]=a??3e5,this[C1t]=n??3e5,this[y1t]=m??!0,this[J7]=B,this[zh]=null,this[S1t]=V>-1?V:-1,this[mn]=null,this[T1t]=k??100,this[x1t]=ne??262144,this[D1t]=ce??524288,this[R1t]=de??6e4,this[Kc]=[],this[id]=0,this[Xc]=0,this[sd]=ve=>z7(this,ve),this[N1t]=ve=>i1e(this,ve)}get pipelining(){return this[PF]}set pipelining(e){this[PF]=e,this[sd](!0)}get stats(){return new s1t(this)}get[r1](){return this[Kc].length-this[Xc]}get[t1](){return this[Xc]-this[id]}get[Zw](){return this[Kc].length-this[id]}get[d1t](){return!!this[mn]&&!this[eI]&&!this[mn].destroyed}get[V7](){return!!(this[mn]?.busy(null)||this[Zw]>=(s1e(this)||1)||this[r1]>0)}[l1t](e){o1e(this),this.once("connect",e)}[w1t](e,r){let n=new i1t(this[gu].origin,e,r);return this[Kc].push(n),this[Pp]||(Up.bodyLength(n.body)==null&&Up.isIterable(n.body)?(this[Pp]=1,queueMicrotask(()=>z7(this))):this[sd](!0)),this[Pp]&&this[jh]!==2&&this[V7]&&(this[jh]=2),this[jh]<2}[b1t](){return new Promise(e=>{this[Zw]?this[zh]=e:e(null)})}[Q1t](e){return new Promise(r=>{let n=this[Kc].splice(this[Xc]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&Up.errorRequest(this,o,e)}let s=()=>{this[zh]&&(this[zh](),this[zh]=null),r(null)};this[mn]?(this[mn].destroy(e,s),this[mn]=null):queueMicrotask(s),this[sd]()})}};function i1e(t,e){if(t[t1]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){nd(t[Xc]===t[id]);let r=t[Kc].splice(t[id]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&Up.errorRequest(t,s,e)}nd(t[Zw]===0)}}function o1e(t){nd(!t[eI]),nd(!t[mn]);let{host:e,hostname:r,protocol:n,port:s}=t[gu];if(r[0]==="["){let i=r.indexOf("]");nd(i!==-1);let o=r.substring(1,i);nd(n1e.isIPv6(o)),r=o}t[eI]=!0,$C.beforeConnect.hasSubscribers&&$C.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[mn]?.version,servername:t[Kh],localAddress:t[e1]},connector:t[$w]});try{t[$w]({host:e,hostname:r,protocol:n,port:s,servername:t[Kh],localAddress:t[e1]},(i,o)=>{if(i){Y7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[sd]();return}if(t.destroyed){Up.destroy(o.on("error",t1e),new c1t),t[sd]();return}nd(o);try{t[mn]=o.alpnProtocol==="h2"?v1t(t,o):k1t(t,o)}catch(a){o.destroy().on("error",t1e),Y7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[sd]();return}t[eI]=!1,o[B1t]=0,o[J7]=t[J7],o[u1t]=t,o[f1t]=null,$C.connected.hasSubscribers&&$C.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[mn]?.version,servername:t[Kh],localAddress:t[e1]},connector:t[$w],socket:o}),t.emit("connect",t[gu],[t]),t[sd]()})}catch(i){Y7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[sd]()}}function Y7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[eI]=!1,$C.connectError.hasSubscribers&&$C.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[mn]?.version,servername:t[Kh],localAddress:t[e1]},connector:t[$w],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(nd(t[t1]===0);t[r1]>0&&t[Kc][t[Xc]].servername===t[Kh];){let o=t[Kc][t[Xc]++];Up.errorRequest(t,o,e)}else i1e(t,e);t.emit("connectionError",t[gu],[t],e)}}function r1e(t){t[jh]=0,t.emit("drain",t[gu],[t])}function z7(t,e){t[Pp]!==2&&(t[Pp]=2,M1t(t,e),t[Pp]=0,t[id]>256&&(t[Kc].splice(0,t[id]),t[Xc]-=t[id],t[id]=0))}function M1t(t,e){for(;;){if(t.destroyed){nd(t[r1]===0);return}if(t[zh]&&!t[Zw]){t[zh](),t[zh]=null;return}if(t[mn]&&t[mn].resume(),t[V7])t[jh]=2;else if(t[jh]===2){e?(t[jh]=1,queueMicrotask(()=>r1e(t))):r1e(t);continue}if(t[r1]===0||t[t1]>=(s1e(t)||1))return;let r=t[Kc][t[Xc]];if(r===null)return;if(t[gu].protocol==="https:"&&t[Kh]!==r.servername){if(t[t1]>0)return;t[Kh]=r.servername,t[mn]?.destroy(new a1t("servername changed"),()=>{t[mn]=null,z7(t)})}if(t[eI])return;if(!t[mn]){o1e(t);return}if(t[mn].destroyed||t[mn].busy(r))return;!r.aborted&&t[mn].write(r)?t[Xc]++:t[Kc].splice(t[Xc],1)}}a1e.exports=W7});var j7=C((wSr,c1e)=>{"use strict";var OF=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)}};c1e.exports=class{constructor(){this.head=this.tail=new OF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new OF),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 HF=C((SSr,m1e)=>{"use strict";var{PoolStats:_1t}=_W(),L1t=Tp(),U1t=j7(),{kConnected:K7,kSize:A1e,kRunning:u1e,kPending:l1e,kQueued:n1,kBusy:P1t,kFree:O1t,kUrl:H1t,kClose:G1t,kDestroy:q1t,kDispatch:Y1t}=sr(),cs=Symbol("clients"),di=Symbol("needDrain"),s1=Symbol("queue"),X7=Symbol("closed resolve"),Z7=Symbol("onDrain"),d1e=Symbol("onConnect"),h1e=Symbol("onDisconnect"),f1e=Symbol("onConnectionError"),$7=Symbol("get dispatcher"),g1e=Symbol("add client"),p1e=Symbol("remove client"),ez=class extends L1t{[s1]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};d1e.exports=WW});var zW=E((tbr,p1e)=>{"use strict";var{InvalidArgumentError:M1t}=Ke(),{runtimeFeatures:L1t}=il();function U1t(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=L1t.has("crypto")?b("node:crypto"):null,P1t=h1e?.hash?t=>h1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function g1e(t){return Array.isArray(t)&&(t.length&1)===0}function O1t(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 H1t(t){let e={};if(!t)return e;if(g1e(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 f1e=["record","playback","update"];function G1t(t){if(!f1e.includes(t))throw new M1t(`Invalid snapshot mode: ${t}. Must be one of: ${f1e.join(", ")}`)}p1e.exports={createHeaderFilters:U1t,hashId:P1t,isUndiciHeaders:g1e,normalizeHeaders:H1t,isUrlExcludedFactory:O1t,validateSnapshotMode:G1t}});var w1e=E((rbr,Q1e)=>{"use strict";var{writeFile:q1t,readFile:Y1t,mkdir:V1t}=b("node:fs/promises"),{dirname:W1t,resolve:m1e}=b("node:path"),{setTimeout:J1t,clearTimeout:E1e}=b("node:timers"),{InvalidArgumentError:C1e,UndiciError:z1t}=Ke(),{hashId:j1t,isUrlExcludedFactory:K1t,normalizeHeaders:I1e,createHeaderFilters:y1e}=zW();function kQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||I1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:B1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function B1e(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 b1e(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 j1t(r)}var jW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=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=y1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=K1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=kQ(e,this.#a,this.matchOptions),s=vQ(n),i=I1e(r.headers),o={statusCode:r.statusCode,headers:b1e(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.#s&&!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.#i&&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.#a,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 C1e("Snapshot path is required");try{let n=await Y1t(m1e(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 z1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new C1e("Snapshot path is required");let n=m1e(r);await V1t(W1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await q1t(n,JSON.s Line truncated
${e.format(r)}`.trim())}};GNe.exports=Ej});var Ij=C((nNr,JNe)=>{"use strict";var{InvalidArgumentError:OTt}=et(),{runtimeFeatures:HTt}=$l();function GTt(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 qNe=HTt.has("crypto")?Q("node:crypto"):null,qTt=qNe?.hash?t=>qNe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function VNe(t){return Array.isArray(t)&&(t.length&1)===0}function YTt(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 VTt(t){let e={};if(!t)return e;if(VNe(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 YNe=["record","playback","update"];function JTt(t){if(!YNe.includes(t))throw new OTt(`Invalid snapshot mode: ${t}. Must be one of: ${YNe.join(", ")}`)}JNe.exports={createHeaderFilters:GTt,hashId:qTt,isUndiciHeaders:VNe,normalizeHeaders:VTt,isUrlExcludedFactory:YTt,validateSnapshotMode:JTt}});var tTe=C((sNr,eTe)=>{"use strict";var{writeFile:WTt,readFile:zTt,mkdir:jTt}=Q("node:fs/promises"),{dirname:KTt,resolve:WNe}=Q("node:path"),{setTimeout:XTt,clearTimeout:zNe}=Q("node:timers"),{InvalidArgumentError:jNe,UndiciError:ZTt}=et(),{hashId:$Tt,isUrlExcludedFactory:ext,normalizeHeaders:KNe,createHeaderFilters:XNe}=Ij();function m1(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||KNe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:ZNe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function ZNe(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 $Ne(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 E1(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 $Tt(r)}var yj=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=XNe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=ext(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=m1(e,this.#a,this.matchOptions),s=E1(n),i=KNe(r.headers),o={statusCode:r.statusCode,headers:$Ne(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=m1(e,this.#a,this.matchOptions),n=E1(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 jNe("Snapshot path is required");try{let n=await zTt(WNe(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 ZTt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new jNe("Snapshot path is required");let n=WNe(r);await jTt(KTt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await WTt(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${Vo} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};d1e.exports=WW});var zW=E((tbr,p1e)=>{"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${Vo}_getValuesQuery ON cacheInterceptorV${Vo}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Vo}_deleteByUrlQuery ON cacheInterceptorV${Vo}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};d1e.exports=WW});var zW=E((tbr,p1e)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${ao}
FROM cacheInterceptorV${Vo}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${ao} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${Vo} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};d1e.exports=WW});var zW=E((tbr,p1e)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ao} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${Vo} (
url,
method,
body,
@@ -182,91 +182,98 @@ ${e.format(r)}`.trim())}};d1e.exports=WW});var zW=E((tbr,p1e)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#a=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${Vo} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Vo}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${Vo} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${Vo}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${ao}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${Vo}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){mJ(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){mJ(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.#s.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.#u(),this.#i.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))}createWriteStream(e,r){mJ(e),MNt(r);let n=0,s=[],i=this;return new FNt({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}`}#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)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!LNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function LNt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var Gg=E((Qbr,kSe)=>{"use strict";var{kConstruct:UNt}=Kt(),{kEnumerableProperty:HE}=Ze(),{iteratorMixin:PNt,isValidHeaderName:LQ,isValidHeaderValue:NSe}=ro(),{webidl:wt}=es(),CJ=b("node:assert"),Dv=b("node:util");function SSe(t){return t===10||t===13||t===9||t===32}function TSe(t){let e=0,r=t.length;for(;r>e&&SSe(t.charCodeAt(r-1));)--r;for(;r>e&&SSe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function xSe(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}.`});IJ(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)IJ(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 IJ(t,e,r){if(r=TSe(r),LQ(e)){if(!NSe(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(DSe(t)==="immutable")throw new TypeError("immutable");return vv(t).append(e,r,!1)}function ONt(t){let e=vv(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 RSe(t,e){return t[0]<e[0]?-1:1}var kv=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.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":PTe(i)&&(r[s]=i);break;case"id":OTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&PTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&OTe(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}}};HTe.exports={EventSourceStream:nz}});var KTe=E((jbr,jTe)=>{"use strict";var{pipeline:n2t}=b("node:stream"),{fetching:s2t}=GQ(),{makeRequest:i2t}=qE(),{webidl:Hs}=es(),{EventSourceStream:o2t}=GTe(),{parseMIMEType:a2t}=ia(),{createFastMessageEvent:c2t}=s_(),{isNetworkError:qTe}=PQ(),{kEnumerableProperty:Kg}=Ze(),{environmentSettingsObject:YTe}=ro(),VTe=!1,WTe=3e3,jQ=0,JTe=1,KQ=2,A2t="anonymous",u2t="use-credentials",ZE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=jQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),VTe||(VTe=!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,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=YTe,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=A2t;r.withCredentials===!0&&(o=u2t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=YTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=i2t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===KQ)return;this.#r=jQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!qTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(qTe(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?a2t(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=JTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new o2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(c2t(c.type,c.options))}});n2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=s2t(e)}#A(){this.#r!==KQ&&(this.#r=jQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===jQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==KQ&&(this.#r=KQ,this.#i.abort(),this.#s=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}},zTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:jQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:JTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:KQ,writable:!1}};Object.defineProperties(ZE,zTe);Object.defineProperties(ZE.prototype,zTe);Object.defineProperties(ZE.prototype,{close:Kg,onerror:Kg,onmessage:Kg,onopen:Kg,readyState:Kg,url:Kg,withCredentials:Kg});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:()=>WTe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);jTe.exports={EventSource:ZE,defaultReconnectionTime:WTe}});var rxe=E((Kbr,pe)=>{"use strict";var l2t=Zd(),XTe=zb(),d2t=xg(),h2t=Xbe(),f2t=rQe(),g2t=kg(),p2t=$7(),m2t=J7(),E2t=PQe(),C2t=VQe(),I2t=zQe(),ZTe=Ke(),m_=Ze(),{InvalidArgumentError:p_}=ZTe,eC=xwe(),y2t=Bg(),B2t=FW(),{MockCallHistory:b2 Line truncated
`)}close(){this.#n.close()}get(e){Kj(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){Kj(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){Kj(e),sRt(r);let n=0,s=[],i=this;return new nRt({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(!iRt(s[l],u[l])){A=!1;break}}if(A)return c}}};function iRt(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 im=C((SNr,wxe)=>{"use strict";var{kConstruct:oRt}=sr(),{kEnumerableProperty:pI}=st(),{iteratorMixin:aRt,isValidHeaderName:b1,isValidHeaderValue:Ixe}=Oo(),{webidl:Mt}=ys(),Zj=Q("node:assert"),CM=Q("node:util");function Cxe(t){return t===10||t===13||t===9||t===32}function yxe(t){let e=0,r=t.length;for(;r>e&&Cxe(t.charCodeAt(r-1));)--r;for(;r>e&&Cxe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Bxe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Mt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});$j(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)$j(t,r[n],e[r[n]])}else throw Mt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function $j(t,e,r){if(r=yxe(r),b1(e)){if(!Ixe(r))throw Mt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Mt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Qxe(t)==="immutable")throw new TypeError("immutable");return yM(t).append(e,r,!1)}function cRt(t){let e=yM(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 bxe(t,e){return t[0]<e[0]?-1:1}var IM=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(s_(e,s,xFt)){DFt(e,i)&&(r.retry=e.toString("utf8",i));return}if(s_(e,s,TFt)){RFt(e,i)&&(r.id=e.toString("utf8",i));return}if(s_(e,s,NFt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&BFt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&bFt(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===TI[0]||(this.checkBOM=!1),!0):n===void 0?e===TI[0]&&r===TI[1]?!0:(this.checkBOM=!1,!1):(e===TI[0]&&r===TI[1]&&n===TI[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};DRe.exports={EventSourceStream:PK}});var PRe=C((XNr,URe)=>{"use strict";var{pipeline:kFt}=Q("node:stream"),{fetching:vFt}=T1(),{makeRequest:FFt}=EI(),{webidl:fi}=ys(),{EventSourceStream:MFt}=RRe(),{parseMIMEType:_Ft}=Va(),{createFastMessageEvent:LFt}=JM(),{isNetworkError:kRe}=w1(),{kEnumerableProperty:hm}=st(),{environmentSettingsObject:vRe}=Oo(),FRe=!1,MRe=3e3,M1=0,_Re=1,_1=2,UFt="anonymous",PFt="use-credentials",xI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=M1;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),fi.util.markAsUncloneable(this);let n="EventSource constructor";fi.argumentLengthCheck(arguments,1,n),FRe||(FRe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fi.converters.USVString(e),r=fi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=vRe,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=UFt;r.withCredentials===!0&&(o=PFt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=vRe.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=FFt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===_1)return;this.#r=M1;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!kRe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kRe(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?_Ft(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=_Re,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new MFt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(LFt(c.type,c.options))}});kFt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=vFt(e)}#A(){this.#r!==_1&&(this.#r=M1,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 _2t(e,r).catch(n=>{throw $Te?txe(n,$Te):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Gg().Headers;pe.exports.Response=PQ().Response;pe.exports.Request=qE().Request;pe.exports.FormData=Ok().FormData;var{setGlobalOrigin:F2t,getGlobalOrigin:M2t}=MV();pe.exports.setGlobalOrigin=F2t;pe.exports.getGlobalOrigin=M2t;var{CacheStorage:L2t}=FNe(),{kConstruct:U2t}=Kt();pe.exports.caches=new L2t(U2t);var{deleteCookie:P2t,getCookies:O2t,getSetCookies:H2t,setCookie:G2t,parseCookie:q2t}=zNe();pe.exports.deleteCookie=P2t;pe.exports.getCookies=O2t;pe.exports.getSetCookies=H2t;pe.exports.setCookie=G2t;pe.exports.parseCookie=q2t;var{parseMIMEType:Y2t,serializeAMimeType:V2t}=ia();pe.exports.parseMIMEType=Y2t;pe.exports.serializeAMimeType=V2t;var{CloseEvent:W2t,ErrorEvent:J2t,MessageEvent:z2t}=s_(),{WebSocket:j2t,ping:K2t}=TTe();pe.exports.WebSocket=j2t;pe.exports.CloseEvent=W2t;pe.exports.ErrorEvent=J2t;pe.exports.MessageEvent=z2t;pe.exports.ping=K2t;pe.exports.WebSocketStream=MTe().WebSocketStream;pe.exports.WebSocketError=XJ().WebSocketError;pe.exports.request=$Q(eC.request);pe.exports.stream=$Q(eC.stream);pe.exports.pipeline=$Q(eC.pipeline);pe.exports.connect=$Q(eC.connect);pe.exports.upgrade=$Q(eC.upgrade);pe.exports.MockClient=B2t;pe.exports.MockCallHistory=b2t;pe.exports.MockCallHistoryLog=Q2t;pe.exports.MockPool=S2t;pe.exports.MockAgent=w2t;pe.exports.SnapshotAgent=N2t;pe.exports.mockErrors=T2t;var{EventSource:$2t}=KTe();pe.exports.EventSource=$2t;function X2t(){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=X2t});var XQ=E(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 sxe=E((Zbr,nxe)=>{"use strict";var{asciiLowercase:E_,solelyContainsHTTPTokenCodePoints:Z2t,soleyContainsHTTPQuotedStringTokenCodePoints:ekt}=XQ();nxe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=E_(String(e)),this._map.get(e)}has(e){return e=E_(String(e)),this._map.has(e)}set(e,r){if(e=E_(String(e)),r=String(r),!Z2t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!ekt(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=E_(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 axe=E((eQr,oxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:tkt,removeTrailingHTTPWhitespace:ixe,isHTTPWhitespaceChar:rkt,solelyContainsHTTPTokenCodePoints:sz,soleyContainsHTTPQuotedStringTokenCodePoints:nkt,asciiLowercase:iz,collectAnHTTPQuotedString:skt}=XQ();oxe.exports=t=>{t=tkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!sz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=ixe(n),n.length===0||!sz(n))return null;let s={type:iz(r),subtype:iz(n),parameters:new Map};for(;e<t.length;){for(++e;rkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=iz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=skt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=ixe(o),o==="")continue}i.length>0&&sz(i)&&nkt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var Axe=E((tQr,cxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:ikt}=XQ();cxe.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+="=",(!ikt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var hxe=E((nQr,dxe)=>{"use strict";var okt=sxe(),akt=axe(),ckt=Axe(),{asciiLowercase:uxe,solelyContainsHTTPTokenCodePoints:lxe}=XQ();dxe.exports=class{constructor(e){e=String(e);let r=akt(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 okt(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=uxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!lxe(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=uxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!lxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return ckt(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 Dxe=E(Qn=>{"use strict";var dz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Dkt=dz(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("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==="*"?nj:f.type==="?"?oj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=_vt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+ee,ce=D.split(")").length,ge=D.split("(").length-ce,De=ee;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==sj?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===sj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Mvt(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_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?nj:r.dot?kvt:vvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Uvt(a):a===Gs?Gs:a._src).reduce((a,c)=>(a[a.length-1]===Gs&&c===Gs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Gs||o[c-1]===Gs||(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]=Gs))}),o.filter(a=>a!==Gs).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;ij.sep!=="/"&&(e=e.split(ij.sep).join("/")),e=e.split(eDe),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 go.defaults(e).Minimatch}};go.Minimatch=aC});var cDe=E((r1r,aDe)=>{aDe.exports=oDe;var Aj=b("fs"),{EventEmitter:Ovt}=b("events"),{Minimatch:cj}=nDe(),{resolve:Hvt}=b("path");function Gvt(t,e){return new Promise((r,n)=>{Aj.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 sDe(t,e){return new Promise((r,n)=>{(e?Aj.stat:Aj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?sDe(t,!1):null):r(null):r(o)})})}async function*iDe(t,e,r,n,s,i){let o=await Gvt(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 sDe(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*iDe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*qvt(t,e,r,n){yield*iDe("",t,e,r,n,!0)}function Yvt(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 k_=class extends Ovt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Yvt(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 cj(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 cj(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 cj(i,{dot:!0}))}this.iterator=qvt(Hvt(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 Line truncated
`,w);w=q===-1?Q.length:q}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let q=Q.indexOf("*/",w);q!==-1?(w=q+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function aI(Q){let B=oI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}Ce.exports.fetch=function(e,r=void 0){return AMt(e,r).catch(n=>{throw ORe?YRe(n,ORe):n&&typeof n=="object"&&Error.captureStackTrace(n,Ce.exports.fetch),n})};Ce.exports.Headers=im().Headers;Ce.exports.Response=w1().Response;Ce.exports.Request=EI().Request;Ce.exports.FormData=NF().FormData;var{setGlobalOrigin:uMt,getGlobalOrigin:lMt}=n7();Ce.exports.setGlobalOrigin=uMt;Ce.exports.getGlobalOrigin=lMt;var{CacheStorage:dMt}=TDe(),{kConstruct:hMt}=sr();Ce.exports.caches=new dMt(hMt);var{deleteCookie:fMt,getCookies:gMt,getSetCookies:pMt,setCookie:mMt,parseCookie:EMt}=ODe();Ce.exports.deleteCookie=fMt;Ce.exports.getCookies=gMt;Ce.exports.getSetCookies=pMt;Ce.exports.setCookie=mMt;Ce.exports.parseCookie=EMt;var{parseMIMEType:CMt,serializeAMimeType:IMt}=Va();Ce.exports.parseMIMEType=CMt;Ce.exports.serializeAMimeType=IMt;var{CloseEvent:yMt,ErrorEvent:BMt,MessageEvent:bMt}=JM(),{WebSocket:QMt,ping:wMt}=CRe();Ce.exports.WebSocket=QMt;Ce.exports.CloseEvent=yMt;Ce.exports.ErrorEvent=BMt;Ce.exports.MessageEvent=bMt;Ce.exports.ping=wMt;Ce.exports.WebSocketStream=NRe().WebSocketStream;Ce.exports.WebSocketError=FK().WebSocketError;Ce.exports.request=L1(DI.request);Ce.exports.stream=L1(DI.stream);Ce.exports.pipeline=L1(DI.pipeline);Ce.exports.connect=L1(DI.connect);Ce.exports.upgrade=L1(DI.upgrade);Ce.exports.MockClient=XFt;Ce.exports.MockCallHistory=ZFt;Ce.exports.MockCallHistoryLog=$Ft;Ce.exports.MockPool=tMt;Ce.exports.MockAgent=eMt;Ce.exports.SnapshotAgent=rMt;Ce.exports.mockErrors=nMt;var{EventSource:SMt}=PRe();Ce.exports.EventSource=SMt;function NMt(){globalThis.fetch=Ce.exports.fetch,globalThis.Headers=Ce.exports.Headers,globalThis.Response=Ce.exports.Response,globalThis.Request=Ce.exports.Request,globalThis.FormData=Ce.exports.FormData,globalThis.WebSocket=Ce.exports.WebSocket,globalThis.CloseEvent=Ce.exports.CloseEvent,globalThis.ErrorEvent=Ce.exports.ErrorEvent,globalThis.MessageEvent=Ce.exports.MessageEvent,globalThis.EventSource=Ce.exports.EventSource}Ce.exports.install=NMt});var U1=C(lf=>{"use strict";lf.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lf.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lf.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lf.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lf.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lf.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lf.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 WRe=C((tTr,JRe)=>{"use strict";var{asciiLowercase:a_,solelyContainsHTTPTokenCodePoints:TMt,soleyContainsHTTPQuotedStringTokenCodePoints:xMt}=U1();JRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=a_(String(e)),this._map.get(e)}has(e){return e=a_(String(e)),this._map.has(e)}set(e,r){if(e=a_(String(e)),r=String(r),!TMt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!xMt(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=a_(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 KRe=C((rTr,jRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:DMt,removeTrailingHTTPWhitespace:zRe,isHTTPWhitespaceChar:RMt,solelyContainsHTTPTokenCodePoints:OK,soleyContainsHTTPQuotedStringTokenCodePoints:kMt,asciiLowercase:HK,collectAnHTTPQuotedString:vMt}=U1();jRe.exports=t=>{t=DMt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!OK(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=zRe(n),n.length===0||!OK(n))return null;let s={type:HK(r),subtype:HK(n),parameters:new Map};for(;e<t.length;){for(++e;RMt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=HK(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=vMt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=zRe(o),o==="")continue}i.length>0&&OK(i)&&kMt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var ZRe=C((nTr,XRe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:FMt}=U1();XRe.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+="=",(!FMt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var r2e=C((iTr,t2e)=>{"use strict";var MMt=WRe(),_Mt=KRe(),LMt=ZRe(),{asciiLowercase:$Re,solelyContainsHTTPTokenCodePoints:e2e}=U1();t2e.exports=class{constructor(e){e=String(e);let r=_Mt(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 MMt(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=$Re(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!e2e(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=$Re(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!e2e(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return LMt(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 C2e=C(Pn=>{"use strict";var zK=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),o_t=zK(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`,L,L,f,s);let P=f.type==="*"?PX:f.type==="?"?GX:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+L}B(),o&&(s+="\\\\");let F=dLt[s.charAt(0)];for(let L=c.length-1;L>-1;L--){let P=c[L],k=s.slice(0,P.reStart),j=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),ne=s.slice(P.reEnd-8,P.reEnd)+Z,ce=k.split(")").length,de=k.split("(").length-ce,ke=Z;for(let rt=0;rt<de;rt++)ke=ke.replace(/\)[+*?]?/,"");Z=ke;let ve=Z===""&&r!==OX?"(?:$|\\/)":"";s=k+j+Z+ve+ne}if(s!==""&&i&&(s="(?=.)"+s),F&&(s=I()+s),r===OX)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return fLt(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?PX:r.dot?uLt:lLt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?pLt(a):a===gi?gi:a._src).reduce((a,c)=>(a[a.length-1]===gi&&c===gi||a.push(c),a),[]),o.forEach((a,c)=>{a!==gi||o[c-1]===gi||(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]=gi))}),o.filter(a=>a!==gi).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;HX.sep!=="/"&&(e=e.split(HX.sep).join("/")),e=e.split(Jke),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 Xo.defaults(e).Minimatch}};Xo.Minimatch=LI});var eve=C((aDr,$ke)=>{$ke.exports=Zke;var VX=Q("fs"),{EventEmitter:ELt}=Q("events"),{Minimatch:YX}=jke(),{resolve:CLt}=Q("path");function ILt(t,e){return new Promise((r,n)=>{VX.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 Kke(t,e){return new Promise((r,n)=>{(e?VX.stat:VX.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Kke(t,!1):null):r(null):r(o)})})}async function*Xke(t,e,r,n,s,i){let o=await ILt(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 Kke(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*Xke(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*yLt(t,e,r,n){yield*Xke("",t,e,r,n,!0)}function BLt(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 y_=class extends ELt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=BLt(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 YX(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 YX(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 YX(i,{dot:!0}))}this.iterator=yLt(CLt(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
`,N);N=Y===-1?w.length:Y}else if(M!==-1&&w[N]==="/"&&w[N+1]==="*"){let Y=w.indexOf("*/",N);Y!==-1?(N=Y+2,M=w.indexOf("*/",N)):(b+=w[N],N++)}else b+=w[N],N++;return b}function qn(w){let b=Js(w.toString()),N=b.match(io);if(N||(N=b.match(ju)),!N)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(b1).map(q=>q.replace(Q1,"").trim())}function cI(Q,B){var w={};return Object.keys(Q).forEach(F=>{var q=Q[F],V,J=h(q),j=!J&&q.length===1||J&&q.length===0;if(Array.isArray(q))V=[...q],q=V.pop(),w[F]=V.concat(V.length>0?re:q);else if(j)w[F]=q;else{if(V=aI(q),q.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(re)}function re(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(q)(...Ft)}}),iI(w,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,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,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 w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function uI(Q,B){Q.length=1,Q.head=Q.tail=B}function Mp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),q=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function re(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,xn;function Bo(Hh,...mI){if(Hh)return Pe?xn(Hh):Ir();if(mI.length<=1)return Ir(mI[0]);Ir(mI)}var Op=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Op):Mt._tasks.push(Op),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Hh,mI)=>{Ir=Hh,xn=mI})}function yo(Ue){return function(be,...Pe){q-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var xn=Ue[Nt],Bo=V.indexOf(xn);Bo===0?V.shift():Bo>0&&V.splice(Bo,1),xn.callback(be,...Pe),be!=null&&Bt("error",be,xn.data)}q<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function Pp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Oh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{re(Ue,(Ir,xn)=>{if(Ir)return Nt(Ir);Pe(xn)})});Se(Ue),j(Ue,be)};var pI=!1,Mt={_tasks:new AI,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!pI){for(pI=!0;!Mt.paused&&q<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}q+=1,Mt._tasks.length===0&&Bt("empty"),q===Mt.concurrency&&Bt("saturated");var xn=te(yo(Ue));F(be,xn)}pI=!1}},length(){return Mt._tasks.length},running(){return q},workersList(){return V},idle(){return Mt._tasks.length+q===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{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")}}),Mt}function lI(Q,B){return Mp(Q,1,B)}function Lp(Q,B,w){return Mp(Q,B,w)}function Io(Q,B,w,F){F=O(F);var q=I(w);return js(Q,(V,J,j)=>{q(B,V,(re,Se)=>{B=Se,j(re)})},V=>F(V,B))}var wa=m(Io,4);function Up(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=cu(),wa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[au]}}function w1(...Q){return Up(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var G=m(we,4);function T(Q,B,w,F){var q=I(w);return G(Q,B,(V,J)=>{q(V,(j,...re)=>j?J(j):J(j,re))},(V,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(V,j)})}var Y=m(T,4);function K(Q,B,w){return Y(Q,1/0,B,w)}var X=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[rs]||(EDe=global[rs]||[],IDe(vr,EDe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||CDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,L_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),CDe()}return Object.defineProperty(e,L_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){sp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var EDe;global[rs]||IDe(global,vr[rs]);hj.exports=lj(Zvt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(hj.exports=lj(vr),vr.__patched=!0);function lj(t){$vt(t),t.gracefulify=lj,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),te(D,z,ee);function te(ce,ge,De,$e){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?cC([te,[ce,ge,De],st,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=0),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var te=u.test(process.version)?function(De,$e,st,Yt){return A(De,ce(De,$e,st,Yt))}:function(De,$e,st,Yt){return A(De,$e,ce(De,$e,st,Yt))};return te(D,z,ee);function ce(ge,De,$e,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?cC([te,[ge,De,$e],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=Xvt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return k(ge,De,$e,function(vt,fn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function cC(t){sp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),dj()}var M_;function CDe(){for(var t=Date.now(),e=0;e<vr[rs].length;++e)vr[rs][e].length>2&&(vr[rs][e][3]=t,vr[rs][e][4]=t);dj()}function dj(){if(clearTimeout(M_),M_=void 0,vr[rs].length!==0){var t=vr[rs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)sp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){sp("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?(sp("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}M_===void 0&&(M_=setTimeout(dj,0))}}});var U_=E((a1r,yDe)=>{"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= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Zke.exports={AggregateError:jj,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 Kj=E((mSr,eve)=>{"use strict";eve.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 Is=E((ESr,nve)=>{"use strict";var{format:BUt,inspect:nF}=Kj(),{AggregateError:bUt}=Tr(),QUt=globalThis.AggregateError||bUt,wUt=Symbol("kIsNodeError"),SUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],NUt=/^([A-Z][a-z0-9]*)+$/,TUt="__node_internal_",sF={};function ap(t,e){if(!t)throw new sF.ERR_INTERNAL_ASSERTION(e)}function tve(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 xUt(t,e,r){if(typeof e=="function")return ap(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 ap(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:BUt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(xUt(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[wUt]=!0,sF[t]=n}function rve(t){let e=TUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function RUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new QUt([e,t],e.message);return r.code=e.code,r}return t||e}var $j=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new sF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ss("ERR_ASSERTION","%s",Error);ss("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ap(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)ap(typeof c=="string","All expected entries have to be of type string"),SUt.includes(c)?s.push(c.toLowerCase()):NUt.test(c)?i.push(c):(ap(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+=xX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=xX(" "+s+"="+n[s]+`
`);return kt.from(r)};jC.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};jC.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&HYt,6),100),kt.write(r,kh(e.uid,6),108),kt.write(r,kh(e.gid,6),116),zYt(e.size,r,124),kt.write(r,kh(e.mtime.getTime()/1e3|0,11),136),r[156]=kM+WYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(wOe,r,f1),kt.copy(UYt,r,RX),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(NOe(r),6),148),r)};jC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-kM,i=zC(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=VYt(s),d=e[157]===0?null:zC(e,157,100,r),h=zC(e,265,32),f=zC(e,297,32),p=Dh(e,329,8),I=Dh(e,337,8),m=NOe(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(GYt(e))e[345]&&(i=zC(e,345,155,r)+"/"+i);else if(!qYt(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:p,devminor:I,pax:null}};function GYt(t){return kt.equals(wOe,t.subarray(f1,f1+6))}function qYt(t){return kt.equals(PYt,t.subarray(f1,f1+6))&&kt.equals(OYt,t.subarray(RX,RX+2))}function YYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function VYt(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 WYt(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 SOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function NOe(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?LYt.slice(0,e)+" ":MYt.slice(0,e-t.length)+t+" "}function JYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function zYt(t,e,r){t.toString(8).length>11?JYt(t,e,r):kt.write(e,kh(t,11),r)}function jYt(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 jYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=YYt(SOe(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 zC(t,e,r,n){return kt.toString(t.subarray(e,SOe(t,0,e,e+r)),n)}function xX(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 kOe=E((YTr,DOe)=>{var{Writable:KYt,Readable:$Yt,getStreamError:TOe}=TX(),XYt=hX(),xOe=qC(),KC=DX(),ZYt=xOe.alloc(0),vX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new XYt,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 ZYt;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 xOe.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)}},_X=class extends $Yt{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(TOe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=ROe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},FX=class extends KYt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function xce(t,e){if(process.env.GITHUB_OUTPUT||"")return EI("OUTPUT",z1(t,e));process.stdout.write(vO.EOL),Na("set-output",{name:t},Bc(e))}function Xl(t){process.exitCode=kO.Failure,Pi(t)}function Oa(){return process.env.RUNNER_DEBUG==="1"}function H(t){Na("debug",{},t)}function Pi(t,e={}){Na("error",V1(e),t instanceof Error?t.toString():t)}function Ve(t,e={}){Na("warning",V1(e),t instanceof Error?t.toString():t)}function Rce(t,e={}){Na("notice",V1(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+vO.EOL)}function jje(t){ZM("group",t)}function Kje(){ZM("endgroup")}function ZN(t,e){return zje(this,void 0,void 0,function*(){jje(t);let r;try{r=yield e()}finally{Kje()}return r})}function wu(t,e){if(process.env.GITHUB_STATE||"")return EI("STATE",z1(t,e));Na("save-state",{name:t},Bc(e))}function by(t){return process.env[`STATE_${t}`]||""}import*as uz from"fs";import*as lz from"path";import*as y_ from"os";import{readFileSync as $je,existsSync as Xje}from"fs";import{EOL as Zje}from"os";var Lm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Xje(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${Zje}`)}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 UO=fe(Fce(),1),Mce=fe(YN(),1),dKe=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 Lce(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 Uce(t){return new UO.HttpClient().getAgent(t)}function hKe(t){return new UO.HttpClient().getAgentDispatcher(t)}function Pce(t){let e=hKe(t);return(n,s)=>dKe(this,void 0,void 0,function*(){return(0,Mce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Oce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function PO(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 oT(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)=>oT.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 Hce(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 Gce(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 qce=Function.bind,Yce=qce.bind(qce);function Vce(t,e,r){let n=Yce(Gce,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]=Yce(Hce,null). Line truncated
`+b);let[,M]=N;return M.replace(/\s/g,"").split(aA).map(Y=>Y.replace(Km,"").trim())}function lc(w,b){var N={};return Object.keys(w).forEach(M=>{var Y=w[M],W,K=h(Y),$=!K&&Y.length===1||K&&Y.length===0;if(Array.isArray(Y))W=[...Y],Y=W.pop(),N[M]=W.concat(W.length>0?se:Y);else if($)N[M]=Y;else{if(W=qn(Y),Y.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),N[M]=W.concat(se)}function se(xe,kt){var Jt=W.map(Ut=>xe[Ut]);Jt.push(kt),E(Y)(...Jt)}}),zu(N,b)}class dc{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,N){N.prev=b,N.next=b.next,b.next?b.next.prev=N:this.tail=N,b.next=N,this.length+=1}insertBefore(b,N){N.prev=b.prev,N.next=b,b.prev?b.prev.next=N:this.head=N,b.prev=N,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Td(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Td(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 N=this.head;N;){var{next:M}=N;b(N)&&this.removeLink(N),N=M}return this}}function Td(w,b){w.length=1,w.head=w.tail=b}function cA(w,b,N){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var M=E(w),Y=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function $(ze,Ne){K[ze].push(Ne)}function se(ze,Ne){let je=(...Pt)=>{xe(ze,je),Ne(...Pt)};K[ze].push(je)}function xe(ze,Ne){if(!ze)return Object.keys(K).forEach(je=>K[je]=[]);if(!Ne)return K[ze]=[];K[ze]=K[ze].filter(je=>je!==Ne)}function kt(ze,...Ne){K[ze].forEach(je=>je(...Ne))}var Jt=!1;function Ut(ze,Ne,je,Pt){if(Pt!=null&&typeof Pt!="function")throw new Error("task callback must be a function");Wt.started=!0;var kr,Jn;function ia(Jf,...Vy){if(Jf)return je?Jn(Jf):kr();if(Vy.length<=1)return kr(Vy[0]);kr(Vy)}var c0=Wt._createTaskItem(ze,je?ia:Pt||ia);if(Ne?Wt._tasks.unshift(c0):Wt._tasks.push(c0),Jt||(Jt=!0,A(()=>{Jt=!1,Wt.process()})),je||!Pt)return new Promise((Jf,Vy)=>{kr=Jf,Jn=Vy})}function sa(ze){return function(Ne,...je){Y-=1;for(var Pt=0,kr=ze.length;Pt<kr;Pt++){var Jn=ze[Pt],ia=W.indexOf(Jn);ia===0?W.shift():ia>0&&W.splice(ia,1),Jn.callback(Ne,...je),Ne!=null&&kt("error",Ne,Jn.data)}Y<=Wt.concurrency-Wt.buffer&&kt("unsaturated"),Wt.idle()&&kt("drain"),Wt.process()}}function a0(ze){return ze.length===0&&Wt.idle()?(A(()=>kt("drain")),!0):!1}let Vf=ze=>Ne=>{if(!Ne)return new Promise((je,Pt)=>{se(ze,(kr,Jn)=>{if(kr)return Pt(kr);je(Jn)})});xe(ze),$(ze,Ne)};var Yy=!1,Wt={_tasks:new dc,_createTaskItem(ze,Ne){return{data:ze,callback:Ne}},*[Symbol.iterator](){yield*Wt._tasks[Symbol.iterator]()},concurrency:b,payload:N,buffer:b/4,started:!1,paused:!1,push(ze,Ne){return Array.isArray(ze)?a0(ze)?void 0:ze.map(je=>Ut(je,!1,!1,Ne)):Ut(ze,!1,!1,Ne)},pushAsync(ze,Ne){return Array.isArray(ze)?a0(ze)?void 0:ze.map(je=>Ut(je,!1,!0,Ne)):Ut(ze,!1,!0,Ne)},kill(){xe(),Wt._tasks.empty()},unshift(ze,Ne){return Array.isArray(ze)?a0(ze)?void 0:ze.map(je=>Ut(je,!0,!1,Ne)):Ut(ze,!0,!1,Ne)},unshiftAsync(ze,Ne){return Array.isArray(ze)?a0(ze)?void 0:ze.map(je=>Ut(je,!0,!0,Ne)):Ut(ze,!0,!0,Ne)},remove(ze){Wt._tasks.remove(ze)},process(){if(!Yy){for(Yy=!0;!Wt.paused&&Y<Wt.concurrency&&Wt._tasks.length;){var ze=[],Ne=[],je=Wt._tasks.length;Wt.payload&&(je=Math.min(je,Wt.payload));for(var Pt=0;Pt<je;Pt++){var kr=Wt._tasks.shift();ze.push(kr),W.push(kr),Ne.push(kr.data)}Y+=1,Wt._tasks.length===0&&kt("empty"),Y===Wt.concurrency&&kt("saturated");var Jn=ne(sa(ze));M(Ne,Jn)}Yy=!1}},length(){return Wt._tasks.length},running(){return Y},workersList(){return W},idle(){return Wt._tasks.length+Y===0},pause(){Wt.paused=!0},resume(){Wt.paused!==!1&&(Wt.paused=!1,A(Wt.process))}};return Object.defineProperties(Wt,{saturated:{writable:!1,value:Vf("saturated")},unsaturated:{writable:!1,value:Vf("unsaturated")},empty:{writable:!1,value:Vf("empty")},drain:{writable:!1,value:Vf("drain")},error:{writable:!1,value:Vf("error")}}),Wt}function Ku(w,b){return cA(w,1,b)}function Xu(w,b,N){return cA(w,b,N)}function Bi(w,b,N,M){M=V(M);var Y=E(N);return hs(w,(W,K,$)=>{Y(b,W,(se,xe)=>{b=xe,$(se)})},W=>M(W,b))}var Ws=m(Bi,4);function Zu(...w){var b=w.map(E);return function(...N){var M=this,Y=N[N.length-1];return typeof Y=="function"?N.pop():Y=oA(),Ws(b,N,(W,K,$)=>{K.apply(M,W.concat((se,...xe)=>{$(se,xe)}))},(W,K)=>Y(W,...K)),Y[uc]}}function Of(...w){return Zu(...w.reverse())}function Se(w,b,N,M){return y(de(b),w,N,M)}var q=m(Se,4);function x(w,b,N,M){var Y=E(N);return q(w,b,(W,K)=>{Y(W,($,...se)=>$?K($):K($,se))},(W,K)=>{for(var $=[],se=0;se<K.length;se++)K[se]&&($=$.concat(...K[se]));return M(W,$)})}var J=m(x,4);function X(w,b,N){return J(w,1/0,b,N)}var te=m(X,3);function ue(w,b,N){retu Line truncated
GFS4: `),console.error(t)});Jr[bs]||(uve=global[bs]||[],dve(Jr,uve),Jr.close=(function(t){function e(r,n){return t.call(Jr,r,function(s){s||lve(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,S_,{value:t}),e})(Jr.close),Jr.closeSync=(function(t){function e(r){t.apply(Jr,arguments),lve()}return Object.defineProperty(e,S_,{value:t}),e})(Jr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ym(Jr[bs]),Q("assert").equal(Jr[bs].length,0)}));var uve;global[bs]||dve(global,Jr[bs]);jX.exports=WX(RLt(Jr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Jr.__patched&&(jX.exports=WX(Jr),Jr.__patched=!0);function WX(t){xLt(t),t.gracefulify=WX,t.createReadStream=F,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(k,j,Z){return typeof j=="function"&&(Z=j,j=null),ne(k,j,Z);function ne(ce,de,ke,ve){return e(ce,de,function(rt){rt&&(rt.code==="EMFILE"||rt.code==="ENFILE")?UI([ne,[ce,de,ke],rt,ve||Date.now(),Date.now()]):typeof ke=="function"&&ke.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return n(de,ke,ve,function(Rt){Rt&&(Rt.code==="EMFILE"||Rt.code==="ENFILE")?UI([ce,[de,ke,ve,rt],Rt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return i(de,ke,ve,function(Rt){Rt&&(Rt.code==="EMFILE"||Rt.code==="ENFILE")?UI([ce,[de,ke,ve,rt],Rt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=0),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return a(de,ke,ve,function(Rt){Rt&&(Rt.code==="EMFILE"||Rt.code==="ENFILE")?UI([ce,[de,ke,ve,rt],Rt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,Z){typeof j=="function"&&(Z=j,j=null);var ne=u.test(process.version)?function(ke,ve,rt,_t){return A(ke,ce(ke,ve,rt,_t))}:function(ke,ve,rt,_t){return A(ke,ve,ce(ke,ve,rt,_t))};return ne(k,j,Z);function ce(de,ke,ve,rt){return function(_t,Rt){_t&&(_t.code==="EMFILE"||_t.code==="ENFILE")?UI([ne,[de,ke,ve],_t,rt||Date.now(),Date.now()]):(Rt&&Rt.sort&&Rt.sort(),typeof ve=="function"&&ve.call(this,_t,Rt))}}}if(process.version.substr(0,4)==="v0.8"){var d=DLt(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(k){m=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(k){y=k},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function m(k,j){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z),k.read())})}function y(k,j){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z))})}function F(k,j){return new t.ReadStream(k,j)}function V(k,j){return new t.WriteStream(k,j)}var L=t.open;t.open=P;function P(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return L(de,ke,ve,function(Rt,Cr){Rt&&(Rt.code==="EMFILE"||Rt.code==="ENFILE")?UI([ce,[de,ke,ve,rt],Rt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}return t}function UI(t){ym("ENQUEUE",t[0].name,t[1]),Jr[bs].push(t),zX()}var w_;function lve(){for(var t=Date.now(),e=0;e<Jr[bs].length;++e)Jr[bs][e].length>2&&(Jr[bs][e][3]=t,Jr[bs][e][4]=t);zX()}function zX(){if(clearTimeout(w_),w_=void 0,Jr[bs].length!==0){var t=Jr[bs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)ym("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){ym("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?(ym("RETRY",e.name,r),e.apply(null,r.concat([s]))):Jr[bs].push(t)}w_===void 0&&(w_=setTimeout(zX,0))}}});var N_=C((dDr,hve)=>{"use strict";var vu=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";vu.writable=t=>vu(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";vu.readable=t=>vu(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};VMe.exports={AggregateError:RZ,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 kZ=C((BRr,JMe)=>{"use strict";JMe.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 Gs=C((bRr,jMe)=>{"use strict";var{format:e8t,inspect:J_}=kZ(),{AggregateError:t8t}=Or(),r8t=globalThis.AggregateError||t8t,n8t=Symbol("kIsNodeError"),s8t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],i8t=/^([A-Z][a-z0-9]*)+$/,o8t="__node_internal_",W_={};function Qm(t,e){if(!t)throw new W_.ERR_INTERNAL_ASSERTION(e)}function WMe(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 a8t(t,e,r){if(typeof e=="function")return Qm(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 Qm(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:e8t(e,...r)}function ws(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(a8t(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[n8t]=!0,W_[t]=n}function zMe(t){let e=o8t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function c8t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new r8t([e,t],e.message);return r.code=e.code,r}return t||e}var vZ=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new W_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ws("ERR_ASSERTION","%s",Error);ws("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Qm(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)Qm(typeof c=="string","All expected entries have to be of type string"),s8t.includes(c)?s.push(c.toLowerCase()):i8t.test(c)?i.push(c):(Qm(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+=hte(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=hte(" "+s+"="+n[s]+`
`);return Yt.from(r)};wy.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(Yt.toString(e.subarray(0,n)),10);if(!s)return r;let i=Yt.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};wy.encode=function(e){let r=Yt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Yt.byteLength(n)!==n.length)return null;for(;Yt.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 Yt.byteLength(n)>100||Yt.byteLength(s)>155||e.linkname&&Yt.byteLength(e.linkname)>100?null:(Yt.write(r,n),Yt.write(r,vf(e.mode&Q7t,6),100),Yt.write(r,vf(e.uid,6),108),Yt.write(r,vf(e.gid,6),116),R7t(e.size,r,124),Yt.write(r,vf(e.mtime.getTime()/1e3|0,11),136),r[156]=yU+x7t(e.type),e.linkname&&Yt.write(r,e.linkname,157),Yt.copy(S4e,r,eN),Yt.copy(y7t,r,fte),e.uname&&Yt.write(r,e.uname,265),e.gname&&Yt.write(r,e.gname,297),Yt.write(r,vf(e.devmajor||0,6),329),Yt.write(r,vf(e.devminor||0,6),337),s&&Yt.write(r,s,345),Yt.write(r,vf(T4e(r),6),148),r)};wy.decode=function(e,r,n){let s=e[156]===0?0:e[156]-yU,i=Qy(e,0,100,r),o=kf(e,100,8),a=kf(e,108,8),c=kf(e,116,8),A=kf(e,124,12),u=kf(e,136,12),l=T7t(s),d=e[157]===0?null:Qy(e,157,100,r),h=Qy(e,265,32),f=Qy(e,297,32),g=kf(e,329,8),E=kf(e,337,8),m=T4e(e);if(m===256)return null;if(m!==kf(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(w7t(e))e[345]&&(i=Qy(e,345,155,r)+"/"+i);else if(!S7t(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:g,devminor:E,pax:null}};function w7t(t){return Yt.equals(S4e,t.subarray(eN,eN+6))}function S7t(t){return Yt.equals(B7t,t.subarray(eN,eN+6))&&Yt.equals(b7t,t.subarray(fte,fte+2))}function N7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function T7t(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 x7t(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 N4e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function T4e(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 vf(t,e){return t=t.toString(8),t.length>e?I7t.slice(0,e)+" ":C7t.slice(0,e-t.length)+t+" "}function D7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function R7t(t,e,r){t.toString(8).length>11?D7t(t,e,r):Yt.write(e,vf(t,11),r)}function k7t(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 kf(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return k7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=N7t(N4e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Yt.toString(t.subarray(e,n)),8)}}function Qy(t,e,r,n){return Yt.toString(t.subarray(e,N4e(t,0,e,e+r)),n)}function hte(t){let e=Yt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var v4e=C((Zkr,k4e)=>{var{Writable:v7t,Readable:F7t,getStreamError:x4e}=dte(),M7t=Kee(),D4e=Cy(),Sy=gte(),_7t=D4e.alloc(0),L7t=4*1024*1024,mte=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new M7t,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 _7t;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 D4e.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)}},Ete=class extends F7t{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(x4e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=R4e(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 Vue(t,e){if(process.env.GITHUB_OUTPUT||"")return Jy("OUTPUT",xN(t,e));process.stdout.write(M8.EOL),pc("set-output",{name:t},uA(e))}function eh(t){process.exitCode=F8.Failure,Co(t)}function Tc(){return process.env.RUNNER_DEBUG==="1"}function G(t){pc("debug",{},t)}function Co(t,e={}){pc("error",SN(e),t instanceof Error?t.toString():t)}function Ye(t,e={}){pc("warning",SN(e),t instanceof Error?t.toString():t)}function L8(t,e={}){pc("notice",SN(e),t instanceof Error?t.toString():t)}function ee(t){process.stdout.write(t+M8.EOL)}function Jue(t){XU("group",t)}function Wue(){XU("endgroup")}function Mx(t,e){return yZe(this,void 0,void 0,function*(){Jue(t);let r;try{r=yield e()}finally{Wue()}return r})}function bA(t,e){if(process.env.GITHUB_STATE||"")return Jy("STATE",xN(t,e));pc("save-state",{name:t},uA(e))}function $B(t){return process.env[`STATE_${t}`]||""}import*as JK from"fs";import*as WK from"path";import*as u_ from"os";import{readFileSync as BZe,existsSync as bZe}from"fs";import{EOL as QZe}from"os";var oE=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(bZe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(BZe(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${QZe}`)}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 H8=Ee(Zue(),1),$ue=Ee(Sx(),1),LZe=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 ele(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 tle(t){return new H8.HttpClient().getAgent(t)}function UZe(t){return new H8.HttpClient().getAgentDispatcher(t)}function rle(t){let e=UZe(t);return(n,s)=>LZe(this,void 0,void 0,function*(){return(0,$ue.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function nle(){return process.env.GITHUB_API_URL||"https://api.github.com"}function G8(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 th(){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 Gx(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)=>Gx.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 sle(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 ile(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 ole=Function.bind,ale=ole.bind(ole);function cle(t,e,r){let n=ale(ile,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]=ale(sle,null). Line truncated
`+n.repeat(l));let E=f.val[f.index],m=o(f.val,String(f.index),E);if(j8(m))u.push("null"),f.first=!1,f.index++;else{let I=m!==null&&typeof m=="object",y=K8(m);if(I&&!y){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(rh(m)),f.first=!1,f.index++}}else g=!0;else{for(;f.index<f.keys.length;){let m=f.keys[f.index++];if(i&&!i.has(m))continue;let y=f.val[m],B=o(f.val,m,y);if(j8(B))continue;f.first||u.push(","),n?u.push(`
`+n.repeat(l)+rh(m)+": "):u.push(rh(m)+":");let F=B!==null&&typeof B=="object",V=K8(B);if(F&&!V){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:m,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(rh(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(g=!0)}g&&(l--,!f.first&&n&&u.push(`
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},Tle=(t,e,r)=>{try{return"rawJSON"in JSON?rh(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?rh(t,(a,c)=>typeof c=="string"&&Yx.test(c)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(ble,"$1$2$3").replace(Qle,"$1$2$3"):rh(t,e,r)}catch(n){if(n instanceof RangeError){let s=o$e(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(ble,"$1$2$3").replace(Qle,"$1$2$3")}throw n}},qx=new Map,a$e=()=>{let t=JSON.parse.toString();if(qx.has(t))return qx.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return qx.set(t,e),e}catch{return qx.set(t,!1),!1}},c$e=(t,e,r,n)=>typeof e=="string"&&Nle.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&Yx.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,A$e=(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&&i$e.test(s.source);return a&&c?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),xle=Number.MAX_SAFE_INTEGER.toString(),wle=xle.length,u$e=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,l$e=/^"-?\d+n+"$/,d$e=(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"&&(Nle.test(a)?a=BigInt(a.slice(0,-1)):Yx.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[""]},Sle=t=>t.replace(u$e,(e,r,n,s)=>{let i=e[0]==='"';if(i&&l$e.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,c=r&&(r.length<wle||r.length===wle&&r<=xle);return i||a||c?e:'"'+e+'n"'}),Dle=(t,e)=>{if(!t)return z8(t,e);try{if(a$e())return A$e(t,e);let r=Sle(t);return z8(r,(n,s,i)=>c$e(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=Sle(t),s=z8(n);return d$e(s,e)}throw r}};var ml=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 h$e="10.0.16",f$e={headers:{"user-agent":`octokit-request.js/${h$e} ${th()}`}};function g$e(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 Rle=()=>"";async function kle(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=g$e(t.body)||Array.isArray(t.body)?Tle(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 ml(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 ml(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await X8(o),new ml("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await X8(o),new ml(m$e(u.data),a,{response:u,request:t});return u.data=n?await X8(o):o.body,u}async function X8(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Rle);let r=Cle(e);if(p$e(r)){let n="";try{return n=await t.text(),Dle(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 t$e=class extends Error{constructor(t,e,r){super(e$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},r$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],n$e=["query","method","url"],pAe=/\/api\/v3\/?$/;function s$e(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(n$e.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)=>r$e.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 pAe.test(i)&&(s.url=i.replace(pAe,"/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 t$e(s,a,o.data)}return o.data.data})}function zO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>s$e(r,s,i),{defaults:zO.bind(null,r),endpoint:r.endpoint})}var Rzt=zO(Sy,{headers:{"user-agent":`octokit-graphql.js/${ZKe} ${Zl()}`},method:"POST",url:"/graphql"});function mAe(t){return zO(t,{method:"POST",url:"/graphql"})}var jO="(?:[a-zA-Z0-9_-]+)",EAe="\\.",CAe=new RegExp(`^${jO}${EAe}${jO}${EAe}${jO}$`),i$e=CAe.test.bind(CAe);async function o$e(t){let e=i$e(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 a$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function c$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=a$e(t),e(s)}var IAe=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(o$e.bind(null,e),{hook:c$e.bind(null,e)})};var KO="7.0.6";var yAe=()=>{},A$e=console.warn.bind(console),u$e=console.error.bind(console);function l$e(t={}){return typeof t.debug!="function"&&(t.debug=yAe),typeof t.info!="function"&&(t.info=yAe),typeof t.warn!="function"&&(t.warn=A$e),typeof t.error!="function"&&(t.error=u$e),t}var BAe=`octokit-core.js/${KO} ${Zl()}`,AT=class{static VERSION=KO;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 Wce.Collection,n={baseUrl:Sy.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} ${BAe}`:BAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Sy.defaults(n),this.graphql=mAe(this.request).defaults(n),this.log=l$e(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=IAe(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 $O="17.0.0";var d$e={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 I$e=class extends Error{constructor(t,e,r){super(C$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)}request;headers;response;name="GraphqlResponseError";errors;data},y$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],B$e=["query","method","url"],vle=/\/api\/v3\/?$/;function b$e(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(B$e.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)=>y$e.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 vle.test(i)&&(s.url=i.replace(vle,"/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 I$e(s,a,o.data)}return o.data.data})}function $8(t,e){let r=t.defaults(e);return Object.assign((s,i)=>b$e(r,s,i),{defaults:$8.bind(null,r),endpoint:r.endpoint})}var pZt=$8(rb,{headers:{"user-agent":`octokit-graphql.js/${E$e} ${th()}`},method:"POST",url:"/graphql"});function Fle(t){return $8(t,{method:"POST",url:"/graphql"})}var e4="(?:[a-zA-Z0-9_-]+)",Mle="\\.",_le=new RegExp(`^${e4}${Mle}${e4}${Mle}${e4}$`),Q$e=_le.test.bind(_le);async function w$e(t){let e=Q$e(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 S$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function N$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=S$e(t),e(s)}var Lle=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(w$e.bind(null,e),{hook:N$e.bind(null,e)})};var t4="7.0.8";var Ule=()=>{},T$e=console.warn.bind(console),x$e=console.error.bind(console);function D$e(t={}){return typeof t.debug!="function"&&(t.debug=Ule),typeof t.info!="function"&&(t.info=Ule),typeof t.warn!="function"&&(t.warn=T$e),typeof t.error!="function"&&(t.error=x$e),t}var Ple=`octokit-core.js/${t4} ${th()}`,Vx=class{static VERSION=t4;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 Ale.Collection,n={baseUrl:rb.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} ${Ple}`:Ple,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=rb.defaults(n),this.graphql=Fle(this.request).defaults(n),this.log=D$e(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=Lle(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 r4="17.0.0";var R$e={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 Dy(i));return n.searchPaths.push(...i3(n.patterns)),n})}static stat(e,r,n){return u3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield qm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield qm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield qm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var 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 ZAe(t,e){return W$e(this,void 0,void 0,function*(){return yield gT.create(t,e)})}var Vle=fe(Uy(),1);import*as DT from"crypto";import*as Jm from"fs";import*as yf from"path";import*as Wle from"util";var Py;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Py||(Py={}));var Rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Rs||(Rs={}));var Hi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hi||(Hi={}));var xT=2,RT=5e3,D3=5e3,k3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Yle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Oy="cache.tar",v3="manifest.txt",BKt=10*Math.pow(1024,3);var Wm=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())})},rtt=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)}},ntt="1.0";function Hy(){return Wm(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=yf.join(n,"actions","temp")}let r=yf.join(e,DT.randomUUID());return yield df(r),r})}function Uc(t){return Jm.statSync(t).size}function _3(t){return Wm(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 ZAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=rtt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=yf.relative(a,s).replace(new RegExp(`\\${yf.sep}`,"g"),"/");H(`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 Gy(t){return Wm(this,void 0,void 0,function*(){return Wle.promisify(Jm.unlink)(t)})}function Jle(t){return Wm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Pa(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){H(s.message)}return n=n.trim(),H(n),n})}function qy(){return Wm(this,void 0,void 0,function*(){let t=yield Jle("zstd",["--quiet"]),e=Vle.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function sd(t){return t===Rs.Gzip?Py.Gzip:Py.Zstd}function zle(){return Wm(this,void 0,void 0,function*(){return Jm.existsSync(k3)?k3:(yield Jle("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function F3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function zm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(ntt),DT.createHash("sha256").update(n.join("|")).digest("hex")}function jle(){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 Q0 from"fs";import{URL as Oct}from"url";var Pc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as stt}from"node:os";import itt from"node:util";import ott from"node:process";function Kle(t,...e){ott.stderr.write(`${itt.format(t,...e)}${stt}`)}import Yy from"node:process";function vT(t){return Yy.env[t]}var $le=typeof Yy.versions.deno=="string"&&Yy.versions.deno.length>0,Xle=typeof Yy.versions.bun=="string"&&Yy.versions.bun.length>0,_T=!0;var Zle=vT("DEBUG"),tde,M3=[],L3=[],FT=[];Zle&&U3(Zle);var rde=Object.assign(t=>nde(t),{enable:U3,enabled:P3,disable:att,log:Kle});function U3(t){tde=t,M3=[],L3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?L3.push(r.substring(1)):M3.push(r);for(let r of FT)r.enabled=P3(r.namespace)}function P3(t){if(t.endsWith("*"))return!0;for(let e of L3)if(ede(t,e))return!1;for(let e of M3)if(ede(t,e))return!0;return!1}function ede(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 att(){let t=tde||"";return U3(""),t}function nde(t){let e=Object.assign(r,{enabled:P3(t),destroy:ctt,log:rde.log,namespace:t,extend:Att});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return FT.push(e),e}function ctt(){let t=FT.indexOf(this);return t>=0?(FT.splice(t,1),!0):!1}function Att(t){let e=nde(`${this.namespace}:${t}`);return e.log=this.log,e}var jm=rde;var O3=["verbose","info","warning","error"],sde={verbose:400,info:300,warning:200,error:100};function ide(t,e){e.log=(...r)=>{t.log(...r)}}function ode(t){return O3.includes(t)}function MT(t){let e=new Set,r=vT(t.logLevelEnvVarName),n,s=jm(t.namespace);s.log=(...u)=>{jm.log(...u)};function i(u){if(u&&!ode(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${O3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);jm.enable(l.join(","))}r&&(ode(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${O3.join(", ")}.`));function o(u){return!!(n&&sde[u.level]<=sde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(ide(u,d),o(d)){let h=jm.disable();jm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return ide(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 ade=MT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),utt=ade.logger;function Vy(t){return ade.createClientLogger(t)}function LT(t){return t.toLowerCase()}function ltt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*dtt(t){for(let e of t.values())yield[e.name,e.value]}var H3=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:ltt(r)})}get(e){return this._headersMap.get(LT(e))?.value}has(e){return this._ Line truncated
${ptt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Km(t){return t instanceof Ds?!0:bf(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import V3 from"node:http";import W3 from"node:https";import ude from"node:zlib";import{Transform as mtt}from"node:stream";var si=Vy("ts-http-runtime");var Ett={};function Wy(t){return t&&typeof t.pipe=="function"}function lde(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 dde(t){return t&&typeof t.byteLength=="number"}var OT=class extends mtt{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}},J3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Pc("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 Ya;si.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=Btt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new OT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Wy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Ctt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Itt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new OT(h);f.on("error",p=>{si.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ytt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Wy(a)&&(A=lde(a));let u=Promise.resolve();Wy(c)&&(u=lde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{si.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?V3.request(a,c):W3.request(a,c);u.once("error",l=>{A(new Ds(l.message,{code:l.code??Ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Pc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Wy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):dde(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(si.error("Unrecognized body type",n),A(new Ds("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return W3.globalAgent;let s=e.tlsSettings??Ett,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new W3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Ctt(t){let e=Gi();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 Itt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ude.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ude.createInflate();return t.pipe(n),n}return t}function ytt(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 Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function Btt(t){return t?Buffer.isBuffer(t)?t.length:Wy(t)?null:dde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function hde(){return new J3}function HT(){return hde()}var z3="logPolicy";function GT(t={}){let e=t.logger??si.info,r=new Ya({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:z3,asy Line truncated
`;return e}function qrt(t){return t instanceof Uint8Array?t.byteLength:jy(t)?t.size===-1?void 0:t.size:void 0}function Yrt(t){let e=0;for(let r of t){let n=qrt(r);if(n===void 0)return;e+=n}return e}async function Vrt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(Grt(i.headers),"utf-8"),ni(`\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new cb(i));return n.searchPaths.push(...u4(n.patterns)),n})}static stat(e,r,n){return p4(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield lE.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 lE.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield lE.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})}};var fet=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 mde(t,e){return fet(this,void 0,void 0,function*(){return yield Kx.create(t,e)})}var Afe=Ee(uD(),1);import*as fD from"crypto";import*as gE from"fs";import*as Ng from"path";import*as ufe from"util";var gb;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(gb||(gb={}));var ti;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ti||(ti={}));var yo;(function(t){t.GNU="gnu",t.BSD="bsd"})(yo||(yo={}));var lD=2,dD=5e3,L4=5e3,U4=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cfe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,pb="cache.tar",P4="manifest.txt",uer=10*Math.pow(1024,3),hD="cache read denied:";var fE=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())})},Qnt=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)}},wnt="1.0";function mb(){return fE(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=Ng.join(n,"actions","temp")}let r=Ng.join(e,fD.randomUUID());return yield Cg(r),r})}function wA(t){return gE.statSync(t).size}function O4(t){return fE(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 mde(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Qnt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Ng.relative(a,s).replace(new RegExp(`\\${Ng.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 Eb(t){return fE(this,void 0,void 0,function*(){return ufe.promisify(gE.unlink)(t)})}function lfe(t){return fE(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield Nc(`${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 Cb(){return fE(this,void 0,void 0,function*(){let t=yield lfe("zstd",["--quiet"]),e=Afe.clean(t);return G(`zstd version: ${e}`),t===""?ti.Gzip:ti.ZstdWithoutLong})}function ah(t){return t===ti.Gzip?gb.Gzip:gb.Zstd}function dfe(){return fE(this,void 0,void 0,function*(){return gE.existsSync(U4)?U4:(yield lfe("tar")).toLowerCase().includes("gnu tar")?Eo("tar"):""})}function H4(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function pE(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(wnt),fD.createHash("sha256").update(n.join("|")).digest("hex")}function hfe(){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 ZE from"fs";import{URL as Mlt}from"url";var SA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Snt}from"node:os";import Nnt from"node:util";import Tnt from"node:process";function ffe(t,...e){Tnt.stderr.write(`${Nnt.format(t,...e)}${Snt}`)}import Ib from"node:process";function pD(t){return Ib.env[t]}var gfe=typeof Ib.versions.deno=="string"&&Ib.versions.deno.length>0,pfe=typeof Ib.versions.bun=="string"&&Ib.versions.bun.length>0,mD=!0;var mfe=pD("DEBUG"),Cfe,G4=[],q4=[],ED=[];mfe&&Y4(mfe);var Ife=Object.assign(t=>yfe(t),{enable:Y4,enabled:V4,disable:xnt,log:ffe});function Y4(t){Cfe=t,G4=[],q4=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?q4.push(r.substring(1)):G4.push(r);for(let r of ED)r.enabled=V4(r.namespace)}function V4(t){if(t.endsWith("*"))return!0;for(let e of q4)if(Efe(t,e))return!1;for(let e of G4)if(Efe(t,e))return!0;return!1}function Efe(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 xnt(){let t=Cfe||"";return Y4(""),t}function yfe(t){let e=Object.assign(r,{enabled:V4(t),destroy:Dnt,log:Ife.log,namespace:t,extend:Rnt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ED.push(e),e}function Dnt(){let t=ED.indexOf(this);return t>=0?(ED.splice(t,1),!0):!1}function Rnt(t){let e=yfe(`${this.namespace}:${t}`);return e.log=this.log,e}var mE=Ife;var J4=["verbose","info","warning","error"],Bfe={verbose:400,info:300,warning:200,error:100};function bfe(t,e){e.log=(...r)=>{t.log(...r)}}function Qfe(t){return J4.includes(t)}function CD(t){let e=new Set,r=pD(t.logLevelEnvVarName),n,s=mE(t.namespace);s.log=(...u)=>{mE.log(...u)};function i(u){if(u&&!Qfe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${J4.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);mE.enable(l.join(","))}r&&(Qfe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${J4.join(", ")}.`));function o(u){return!!(n&&Bfe[u.level]<=Bfe[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(bfe(u,d),o(d)){let h=mE.disable();mE.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return bfe(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 wfe=CD({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),knt=wfe.logger;function yb(t){return wfe.createClientLogger(t)}function ID(t){return t.toLowerCase()}function vnt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Fnt(t){for(let e of t.values())yield[e.name,e.value]}var W4=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(ID(e),{name:e,value:vnt(r)})}get(e){return this._headersMap.get(ID(e))?.value}has(e){return this._ Line truncated
${Unt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function EE(t){return t instanceof ri?!0:xg(t)&&t.name==="RestError"}function Bb(t,e){return Buffer.from(t).toString(e)}function ni(t,e){return Buffer.from(t,e)}import X4 from"node:http";import Z4 from"node:https";import Tfe from"node:zlib";import{Transform as Pnt}from"node:stream";var Ri=yb("ts-http-runtime");var Ont={};function bb(t){return t&&typeof t.pipe=="function"}function xfe(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 Dfe(t){return t&&typeof t.byteLength=="number"}var bD=class extends Pnt{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}},$4=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new SA("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 kc;Ri.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=Ynt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new bD(f);g.on("error",E=>{Ri.error("Error in upload progress",E)}),bb(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a),u=Hnt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Gnt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new bD(h);f.on("error",g=>{Ri.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 qnt(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();bb(a)&&(A=xfe(a));let u=Promise.resolve();bb(c)&&(u=xfe(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Ri.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?X4.request(a,c):Z4.request(a,c);u.once("error",l=>{A(new ri(l.message,{code:l.code??ri.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new SA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&bb(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Dfe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(Ri.error("Unrecognized body type",n),A(new ri("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?X4.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new X4.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Z4.globalAgent;let s=e.tlsSettings??Ont,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Ri.info("No cached TLS Agent exist, creating a new Agent"),i=new Z4.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Hnt(t){let e=Bo();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 Gnt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Tfe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Tfe.createInflate();return t.pipe(n),n}return t}function qnt(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 ri(`Error reading response as text: ${s.message}`,{code:ri.PARSE_ERROR}))})})}function Ynt(t){return t?Buffer.isBuffer(t)?t.length:bb(t)?null:Dfe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Rfe(){return new $4}function QD(){return Rfe()}var e6="logPolicy";function wD(t={}){let e=t.logger??Ri.info,r=new kc({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi Line truncated
`;return e}function lit(t){return t instanceof Uint8Array?t.byteLength:wb(t)?t.size===-1?void 0:t.size:void 0}function dit(t){let e=0;for(let r of t){let n=lit(r);if(n===void 0)return;e+=n}return e}async function hit(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(uit(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
\r
`,"utf-8")],s=Yrt(n);s&&t.headers.set("Content-Length",s),t.body=await ihe(n)}var Ky="multipartPolicy",Wrt=70,Jrt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function zrt(t){if(t.length>Wrt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Jrt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ux(){return{name:Ky,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?zrt(r):r=Hrt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Vrt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function lx(){return PT()}var ohe=MT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Qer=ohe.logger;function Mo(t){return ohe.createClientLogger(t)}var Hc=Mo("core-rest-pipeline");function d8(t={}){return GT({logger:Hc.info,...t})}var h8=cx;function f8(t={}){return Ax(t)}import g8 from"node:os";import ad from"node:process";function ahe(){return"User-Agent"}async function che(t){if(ad&&ad.versions){let e=`${g8.type()} ${g8.release()}; ${g8.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 dx="1.24.0";function rnt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Ahe(){return ahe()}async function hx(t){let e=new Map;e.set("core-rest-pipeline",dx),await che(e);let r=rnt(e);return t?`${t} ${r}`:r}var uhe=Ahe(),lhe="userAgentPolicy";function p8(t={}){let e=hx(t.userAgentPrefix);return{name:lhe,async sendRequest(r,n){return r.headers.has(uhe)||r.headers.set(uhe,await e),n(r)}}}var dhe=Symbol("rawContent");function m8(t){return typeof t[dhe]=="function"}function hhe(t){return m8(t)?t[dhe]():t}var fx=Ky;function E8(){let t=ux();return{name:fx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)m8(n.body)&&(n.body=hhe(n.body));return t.sendRequest(e,r)}}}var C8=ox;function I8(){return ax()}function y8(t={}){return VT(t)}function B8(){return WT()}var $y=class extends Error{constructor(e){super(e),this.name="AbortError"}};function b8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new $y(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 lnt="The delay was aborted.";function r0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return b8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??lnt})}function cd(t){if(bf(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 fhe(t){return bf(t)}function n0(){return Bf()}var Wt=_T;function Ad(t){return c8(t)}function w8(t,e){return ix(t,e)}var ghe="setClientRequestIdPolicy";function S8(t="x-ms-client-request-id"){return{name:ghe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function N8(t){return JT(t)}function T8(t){return zT(t)}var s0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function phe(t={}){let e=new x8(t.parentContext);return t.span&&(e=e.setValue(s0.span,t.span)),t.namespace&&(e=e.setValue(s0.namespace,t.namespace)),e}var x8=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 Ehe=fe(mhe(),1),px=Ehe.state;function dnt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function hnt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:dnt(),tracingContext:phe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Xy(){return px.instrumenterImplementation||(px.instrumenterImplementation=hnt()),px.instrumenterImplementation}function Zy(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Xy().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--),!Fst(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Zr("InvalidTag",l,ks(t,i))}let A=Rst(t,i);if(A===!1)return Zr("InvalidAttr","Attributes for '"+c+"' have open quote.",ks(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=Zhe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,ks(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ks(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+c+"' has not been opened.",ks(t,o));{let l=r.pop();if(c!==l.tagName){let d=ks(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",ks(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ks(t,i));else{let l=Zhe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,ks(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",ks(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=Xhe(t,i);continue}else if(t[i+1]==="?"){if(i=$he(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=vst(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!Khe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(Khe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",ks(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ks(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Khe(t){return t===" "||t===" "||t===`
`||t==="\r"}function $he(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 Zr("InvalidXml","XML declaration allowed only at the start of the document.",ks(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Xhe(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 Tst='"',xst="'";function Rst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Tst||t[e]===xst)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 Dst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Zhe(t,e){let r=wx(t,Dst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("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 Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",AB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",AB(r[s]));let i=r[s][2];if(!_st(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",AB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",AB(r[s]))}return!0}function kst(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 vst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,kst(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 Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function _st(t){return J8(t)}function Fst(t){return J8(t)}function ks(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 efe={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"},tfe={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"},rfe={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 ci("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new dB(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=u0(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=t4(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=r4(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 ci(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=u0(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=u0(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=r4(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=t4(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 I=r;I&&s.unpairedTagsSet.has(I.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 C=null,y={},N;N=ait(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=oit(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.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,O=P.tagContent}let k=new ci(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=t4(s.transformTagName,l,h,s));let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ci(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function hit(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 fit(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 git(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 pit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function mit(t,e,r=">"){Line truncated
`;function wit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(c4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Tfe(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function a4(t,e){let r="";e.format&&(r=Qit);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 Wi(a)):a instanceof Wi&&n.push(a)}let s=wit(t,e),i=new Yc;return xfe(t,e,r,i,n,s)}function xfe(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=o4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=c4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Tfe(u,!1,e,n,i),h=Sit(A[":@"],e);n.push(d,h);let f=Tit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=o4(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],N=Mx(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Fx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Nfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=Nfe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=Rfe(A[u],e):C=xfe(A[u],e,p,n,s,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,n.pop()}return o}function Sit(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 Rfe(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=c4(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=Nit(s[":@"],e),a=Rfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Nit(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 c4(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 Nfe(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:Tfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=o4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${dd(A)}"`}return i}function Tit(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 o4(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 A4(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 xit={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 ui(t){if(this.options=Object.assign({},xit,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 Wi(r)):r instanceof Wi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=dit(n);s&&t.headers.set("Content-Length",s),t.body=await bge(n)}var Sb="multipartPolicy",fit=70,git=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function pit(t){if(t.length>fit)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!git.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function zD(){return{name:Sb,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?pit(r):r=Ait(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await hit(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function jD(){return BD()}var Qge=CD({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),dsr=Qge.logger;function Ia(t){return Qge.createClientLogger(t)}var TA=Ia("core-rest-pipeline");function m6(t={}){return wD({logger:TA.info,...t})}var E6=JD;function C6(t={}){return WD(t)}import I6 from"node:os";import uh from"node:process";function wge(){return"User-Agent"}async function Sge(t){if(uh&&uh.versions){let e=`${I6.type()} ${I6.release()}; ${I6.arch()}`;uh.versions.bun?t.set("Bun",`${uh.versions.bun} (${e})`):uh.versions.deno?t.set("Deno",`${uh.versions.deno} (${e})`):uh.versions.node&&t.set("Node",`${uh.versions.node} (${e})`)}}var KD="1.25.0";function Qit(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Nge(){return wge()}async function XD(t){let e=new Map;e.set("core-rest-pipeline",KD),await Sge(e);let r=Qit(e);return t?`${t} ${r}`:r}var Tge=Nge(),xge="userAgentPolicy";function y6(t={}){let e=XD(t.userAgentPrefix);return{name:xge,async sendRequest(r,n){return r.headers.has(Tge)||r.headers.set(Tge,await e),n(r)}}}var Dge=Symbol("rawContent");function B6(t){return typeof t[Dge]=="function"}function Rge(t){return B6(t)?t[Dge]():t}var ZD=Sb;function b6(){let t=zD();return{name:ZD,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)B6(n.body)&&(n.body=Rge(n.body));return t.sendRequest(e,r)}}}var Q6=YD;function w6(){return VD()}function S6(t={}){return xD(t)}function N6(){return DD()}var Es=class extends Error{constructor(e){super(e),this.name="AbortError"}};function T6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Es(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 vit="The delay was aborted.";function QE(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return T6(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??vit})}function lh(t){if(xg(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 kge(t){return xg(t)}function wE(){return Tg()}var Qr=mD;function D6(t,e){return Bb(t,e)}function R6(t,e){return ni(t,e)}function dh(t){return f6(t)}function k6(t,e){return qD(t,e)}var vge="setClientRequestIdPolicy";function v6(t="x-ms-client-request-id"){return{name:vge,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function F6(t){return RD(t)}function M6(t){return kD(t)}var SE={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Fge(t={}){let e=new _6(t.parentContext);return t.span&&(e=e.setValue(SE.span,t.span)),t.namespace&&(e=e.setValue(SE.namespace,t.namespace)),e}var _6=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 _ge=Ee(Mge(),1),eR=_ge.state;function Fit(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Mit(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Fit(),tracingContext:Fge({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Nb(){return eR.instrumenterImplementation||(eR.instrumenterImplementation=Mit()),eR.instrumenterImplementation}function Tb(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Nb().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext 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--),!sat(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",hn("InvalidTag",l,si(t,i))}let A=$ot(t,i);if(A===!1)return hn("InvalidAttr","Attributes for '"+c+"' have open quote.",si(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=mpe(u,e);if(d===!0)n=!0;else return hn(d.err.code,d.err.msg,si(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return hn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",si(t,o));if(r.length===0)return hn("InvalidTag","Closing tag '"+c+"' has not been opened.",si(t,o));{let l=r.pop();if(c!==l.tagName){let d=si(t,l.tagStartPos);return hn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",si(t,o))}r.length==0&&(s=!0)}}else return hn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",si(t,i));else{let l=mpe(u,e);if(l!==!0)return hn(l.err.code,l.err.msg,si(t,i-u.length+l.err.line));if(s===!0)return hn("InvalidXml","Multiple possible root nodes found.",si(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=ppe(t,i);continue}else if(t[i+1]==="?"){if(i=gpe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=rat(t,i);if(l==-1)return hn("InvalidChar","char '&' is not expected.",si(t,i));i=l}else if(s===!0&&!xE(t[i]))return hn("InvalidXml","Extra text at the end",si(t,i));t[i]==="<"&&i--}}else{if(xE(t[i]))continue;return hn("InvalidChar","char '"+t[i]+"' is not expected.",si(t,i))}if(n){if(r.length==1)return hn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",si(t,r[0].tagStartPos));if(r.length>0)return hn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return hn("InvalidXml","Start tag expected.",1);return!0}function xE(t){return t===" "||t===" "||t===`
`||t==="\r"}function gpe(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 hn("InvalidXml","XML declaration allowed only at the start of the document.",si(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function ppe(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 Xot='"',Zot="'";function $ot(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Xot||t[e]===Zot)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 eat(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&xE(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&&!xE(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&xE(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&xE(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,g=t.indexOf(t[d],f);g!==-1&&(u=t[d],l=t.slice(f,g),n=g+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 mpe(t,e){let r=eat(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return hn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Pb(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return hn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Pb(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return hn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Pb(r[s]));let i=r[s][2];if(!nat(i))return hn("InvalidAttr","Attribute '"+i+"' is an invalid name.",Pb(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return hn("InvalidAttr","Attribute '"+i+"' is repeated.",Pb(r[s]))}return!0}function tat(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 rat(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,tat(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 hn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function nat(t){return eH(t)}function sat(t){return eH(t)}function si(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Pb(t){return t.startIndex+t[1].length}var tH={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 Ob={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},rH={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 DE=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),iat=new Set("!?\\\\/[]$%{}^&*()<>|+");function Epe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(iat.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Hb(...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 Mg="external",uR="base",nH="all";function oat(t){return!t||t===Mg?new Set([Mg]):t===nH?new Set([nH]):t===uR?new Set([uR]):Array.isArray(t)?new Set(t):new Set([Mg])}var Fi=Object.freeze({allow:0,leave:1,remove:2,throw:3}),aat=new Set([9,10,13]);function cat(t){if(!t)return{xmlVersion:1,onLevel:Fi.allow,nullLevel:Fi.remove};let e=t.xmlVersion===1.1?1.1:1,r=Fi[t.onNCR]??Fi.allow,n=Fi[t.nullNCR]??Fi.remove,s=Math.max(n,Fi.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var RE=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=oat(this._limit.applyLimitsTo??Mg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Hb(Ob,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 Mi("!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 qb(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=_E(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=pH(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=mH(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 Mi(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=_E(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=_E(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=mH(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}=pH(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=Yat(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=qat(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=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 L=new Mi(l);I&&(L[":@"]=I),L.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(a+1)}else{if(m){({tagName:l,tagExp:h}=pH(s.transformTagName,l,h,s));let V=new Mi(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(g+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new Mi(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new Mi(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,F),r=V}n="",a=g}}}else n+=t[a];return e.child};function Kat(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 Xat(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 Zat(t,e,Line truncated
`;function cct(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(bH(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Lpe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function BH(t,e){let r="";e.format&&(r=act);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 So(c)):c instanceof So&&n.push(c)}let s=cct(t,e),i=lR("qName",{xmlVersion:s}),o=new RA;return Upe(t,e,r,o,n,i)}function Upe(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=Cs(t);return c=yH(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=bH(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Lpe(u,!1,e,n,i),h=Act(A[":@"],e);n.push(d,h);let f=lct(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=yH(y,e)),y=Cs(y),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=pR(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Jb(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=_pe(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=_pe(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Ppe(A[u],e):I=Upe(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 Act(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]=kA(t[s]),n=!0}return n?r:null}function Ppe(t,e){if(!Array.isArray(t))return t!=null?Cs(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=bH(s);if(i===e.textNodeName)r+=Cs(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=uct(s[":@"],e),a=Ppe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function uct(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)}="${kA(s)}"`}return r}function bH(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 _pe(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:Lpe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=yH(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${kA(A)}"`}return i}function lct(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 yH(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 QH(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 dct={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({},dct,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 So(r)):r instanceof So&&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 Rit(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 u4(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return a4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Yc,r=Rit(t,this.options);return this.j2x(t,0,e,r).val}};ui.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:u4(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=u4(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 p=t[c][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,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);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,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=u4(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}};ui.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 Dit(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)}ui.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};ui.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 hct(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 wH(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Li.prototype.build=function(t){if(this.options.preserveOrder)return BH(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new RA,r=hct(t,this.options),n=lR("qName",{xmlVersion:r});return this.j2x(t,0,e,n).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:wH(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=wH(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,Cs(t[c]),a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,Cs(t[c]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=Cs(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),E=Cs(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=Cs(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=wH(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,Cs(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,Cs(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+kA(e)+'"'};function fct(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]=kA(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]=kA(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.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.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 vf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new mB(e,r,this)}computeHMACSHA256(e){return qit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var _f=class extends Error{constructor(e){super(e),this.name="AbortError"}};var En=Mo("storage-common");var Lo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Lo||(Lo={}));var fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Yit=new _f("The operation was aborted."),EB=class extends Vc{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=qx(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(En.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(En.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 En.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 En.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 En.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return En.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.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')?(En.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 Lo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return En.info(`RetryPolicy: Delay for ${s}ms`),Wx(s,n,Yit)}};var CB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new EB(e,r,this.retryOptions)}};var Vit="storageBrowserPolicy";function Ffe(){return{name:Vit,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=hd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var Wit="StorageCorrectContentLengthPolicy";function Mfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Wit,async sendRequest(e,r){return t(e),r(e)}}}var Jit="storageRetryPolicy",d0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},zit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],jit=new _f("The operation was aborted.");function Lfe(t={}){let e=t.retryPolicyType??d0.retryPolicyType,r=t.maxTries??d0.maxTries,n=t.retryDelayInMs??d0.retryDelayInMs,s=t.maxRetryDelayInMs??d0.maxRetryDelayInMs,i=t.secondaryHost??d0.secondaryHost,o=t.tryTimeoutInMs??d0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return En.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of zit)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(dt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===dt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(dt.PREFIX_FOR_STORAGE));r.sort((s,i)=>DR(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=NR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=TR(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 Xr=class extends Pg{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new $b(e,r,this)}computeHMACSHA256(e){return Fct("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Fn=Ia("storage-common");var ya;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ya||(ya={}));var ph={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ya.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Mct=new Es("The operation was aborted."),eQ=class extends vA{retryOptions;constructor(e,r,n=ph){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ph.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ph.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ph.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ph.maxRetryDelayInMs):ph.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ph.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ph.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=SR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=wR(s.url,Zb.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Fn.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(Fn.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 Fn.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 Fn.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 Fn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Fn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(dt.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')?(Fn.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 ya.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ya.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Fn.info(`RetryPolicy: Delay for ${s}ms`),xR(s,n,Mct)}};var tQ=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new eQ(e,r,this.retryOptions)}};var _ct="storageBrowserPolicy";function Zpe(){return{name:_ct,async sendRequest(t,e){return e(t)}}}var Lct="StorageCorrectContentLengthPolicy";function $pe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(dt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Lct,async sendRequest(e,r){return t(e),r(e)}}}var Uct="storageRetryPolicy",PE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ya.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Pct=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Oct=new Es("The operation was aborted.");function eme(t={}){let e=t.retryPolicyType??PE.retryPolicyType,r=t.maxTries??PE.maxTries,n=t.retryDelayInMs??PE.retryDelayInMs,s=t.maxRetryDelayInMs??PE.maxRetryDelayInMs,i=t.secondaryHost??PE.secondaryHost,o=t.tryTimeoutInMs??PE.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return Fn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Pct)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return Fn.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return Fn.info("RetryPolicy: Incomplete XML response likely Line truncated
`)+`
`+n(i)+s(i),a=Kit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(je.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:$it,async sendRequest(i,o){return e(i),o(i)}}}var Xit="storageRequestFailureDetailsParserPolicy";function Ufe(){return{name:Xit,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",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Va="",p4="*",eot=1*1024*1024;var tot=4*eot;var Pfe="AES256",Ofe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Hfe=["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"],Gfe=["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"],qfe="BlobUsesCustomerSpecifiedEncryption",Yfe="BlobDoesNotUseCustomerSpecifiedEncryption",Vfe=["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 IB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new IB([],e);return r._credential=t,r}function rot(t){let e=[not,Wfe,sot,iot,oot,aot,Aot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>cot(s));return{wrappedPolicies:V8(r),afterRetry:n}}}}function m4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?W8(e):f4(),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=rB({...r,loggingOptions:{additionalAllowedHeaderNames:Hfe,additionalAllowedQueryParameters:Gfe,logger:Ux.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Lx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:d4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:C8}),s.addPolicy(Mfe()),s.addPolicy(Lfe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Ufe()),s.addPolicy(Ffe());let a=rot(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=E4(t);Yi(c)?s.addPolicy(i0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ka(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 nct(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(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 Ka(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 sct(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(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 Ka(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 ict(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(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?ja(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 Ka(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 oct(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(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?ja(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 Ka(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 act(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(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?ja(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 Ka(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 cct(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(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,void 0,t.delegatedUserObjectId,t.ipRange?ja(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 Ka(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 Gf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function qf(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 kB=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=n0()),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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==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 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"}};B0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Wf=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"}};Wf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var OB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Dct=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())})},VH=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 ipe(t,e,r){return Dct(this,void 0,void 0,function*(){var n;let s=new $a(t),i=s.getBlockBlobClient(),o=new VH((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(),H(`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 Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as ape from"buffer";import*as uA from"fs";import*as cpe from"stream";import*as Ape 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 kct(t){return t?t>=500:!0}function vct(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function _ct(t){return WR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function ope(t,e,r){return WR(this,arguments,void 0,function*(n,s,i,o=xT,a=RT,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),!kct(d)))return l;if(d&&(h=vct(d),A=`Cache service responded with ${d}`),H(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){H(`${n} - Error is not retryable`);break}yield _ct(a),u++}throw Error(`${n} failed: ${A}`)})}function HB(t,e){return WR(this,arguments,void 0,function*(r,n,s=xT,i=RT){return yield ope(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof _c)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function b0(t,e){return WR(this,arguments,void 0,function*(r,n,s=xT,i=RT){return yield ope(r,n,o=>o.message.statusCode,s,i)})}var Go=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 Fct(t,e){return Go(this,void 0,void 0,function*(){yield Ape.promisify(cpe.pipeline)(t.message,e)})}var zR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,H(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),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||[])H(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function jH(t,e,r){return di(this,void 0,void 0,function*(){let n=new Oct(t),s=hpe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield lpe(t,e,s):s.concurrentBlobDownloads?yield upe(t,e,s):yield jR(t,e):yield jR(t,e)})}function Ipe(t,e,r){return di(this,void 0,void 0,function*(){let n=zH(),s=zm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield HB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(qB("caches"),i)}))})}function Epe(t,e){return`bytes ${t}-${e}/*`}function Yct(t,e,r,n,s){return di(this,void 0,void 0,function*(){H(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Epe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Epe(n,s)},o=yield b0(`uploadChunk (start: ${n}, end: ${s})`,()=>di(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 Vct(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Uc(r),i=qB(`caches/${e.toString()}`),o=Q0.openSync(r,"r"),a=WH(n),c=F3("uploadConcurrency",a.uploadConcurrency),A=F3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(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 Yct(t,i,()=>Q0.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{Q0.closeSync(o)}})}function Wct(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield HB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(qB(`caches/${e.toString()}`),n)}))})}function KH(t,e,r,n){return di(this,void 0,void 0,function*(){if(WH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ipe(r,e,n)}else{let i=zH();H("Upload cache"),yield Vct(i,t,e,n),H("Commiting cache");let o=Uc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Wct(i,t,o);if(!JR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var hme=fe(H9(),1),rn=fe(At(),1),ji=fe(At(),1),$f=fe(At(),1),Xf=fe(At(),1),Zf=fe(At(),1);var V9=fe(At(),1),W9=fe(At(),1),ume=fe(At(),1),lme=fe(At(),1),dme=fe(At(),1);var G9=fe(At(),1),q9=fe(At(),1),ame=fe(At(),1),cme=fe(At(),1),Ame=fe(At(),1),Y9=class extends Ame.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,cme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ame.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?q9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,G9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,G9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?q9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},MD=new Y9;var J9=class extends dme.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,lme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ume.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?W9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,V9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)MD.internalBinaryWrite(e.scope[i],r.tag(2,V9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?W9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield cG(r,"create");yield AG(n,t)})}var O0=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())})},$i=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},bd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function mme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function dG(t){if(t.length>512)throw new $i(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $i(`Key Validation Error: ${t} cannot contain commas.`)}function Eme(){return GB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function OD(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=GB();return H(`Cache service version: ${A}`),mme(s),A==="v2"?yield Alt(s,i,o,a,c):yield clt(s,i,o,a,c)})}function clt(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)dG(d);let u=yield qy(),l="";try{let d=yield Cpe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),d.cacheKey;l=ib.join(yield Hy(),sd(u)),H(`Archive Path: ${l}`),yield jH(d.archiveLocation,l,a),Oa()&&(yield sb(l,u));let h=Uc(l);return $(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield uG(l,u),$("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===$i.name)throw d;h instanceof _c&&typeof h.statusCode=="number"&&h.statusCode>=500?Pi(`Failed to restore: ${d.message}`):Ve(`Failed to restore: ${d.message}`)}finally{try{yield Gy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function Alt(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)dG(l);let u="";try{let l=aG(),d=yield qy(),h={key:i,restoreKeys:o,version:zm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){H(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?$(`Cache hit for restore-key: ${f.matchedKey}`):$(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),f.matchedKey;u=ib.join(yield Hy(),sd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield jH(f.signedDownloadUrl,u,a);let I=Uc(u);return $(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Oa()&&(yield sb(u,d)),yield uG(u,d),$("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===$i.name)throw l;d instanceof _c&&typeof d.statusCode=="number"&&d.statusCode>=500?Pi(`Failed to restore: ${l.message}`):Ve(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Gy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function HD(t,e,r){return O0(this,arguments,void 0,function*(n,s,i,o=!1){let a=GB();return H(`Cache service version: ${a}`),mme(n),dG(s),a==="v2"?yield llt(n,s,i,o):yield ult(n,s,i,o)})}function ult(t,e,r){return O0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield qy(),h=-1,f=yield _3(n);if(H("Cache Paths:"),H(`${JSON.stringify(f)}`),f.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 p=yield Hy(),I=ib.join(p,sd(d));H(`Archive Path: ${I}`);try{yield lG(p,f,d),Oa()&&(yield sb(I,d));let m=10*1024*1024*1024,C=Uc(I);if(H(`File Size: ${C}`),C>m&&!JH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);H("Reserving Cache");let y=yield Ipe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new bd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);H(`Saving Cache (ID: ${h})`),yield KH(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===bd.name Line truncated
See ${r.getDocumentationLink()}`;Cme.push(n),Xl(n)}function yme(){wu("deprecation-collector_deprecations",JSON.stringify(fG)),wu("deprecation-collector_errors",JSON.stringify(Cme))}import*as YD from"path";var Bme="GRADLE_ACTION_ID";var zD=".setup-gradle",ab=class t{getDependencyGraphOption(){let e=dr("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 pA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return flt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,bme())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return YD.resolve(Yu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return eg("dependency-graph-exclude-projects")}getIncludeProjects(){return eg("dependency-graph-include-projects")}getExcludeConfigurations(){return eg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return eg("dependency-graph-include-configurations")}getPluginRepository(){return new VD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){H(`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 H0=class{isCacheDisabled(){return Eme()?pA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&pA("cache-read-only")}isCacheWriteOnly(){return pA("cache-write-only")}isCacheOverwriteExisting(){return pA("cache-overwrite-existing")}isCacheStrictMatch(){return pA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=ob("gradle-home-cache-cleanup");if(e!==void 0)return qD("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=dr("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 dr("cache-encryption-key")}getCacheIncludes(){return _O("gradle-home-cache-includes")}getCacheExcludes(){return _O("gradle-home-cache-excludes")}getCacheProvider(){let e=dr("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 ec=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return pA("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 ob("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return ob("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return ob("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return ob("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new VD}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:(Ve("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},VD=class{getUrl(){return eg("gradle-plugin-repository-url")}getUsername(){return eg("gradle-plugin-repository-username")}getPassword(){return eg("gradle-plugin-repository-password")}},WD=class{getGradleVersion(){re Line truncated
`+n(i)+s(i),a=Hct("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(dt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===dt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(dt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>DR(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=NR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=TR(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:Gct,async sendRequest(i,o){return e(i),o(i)}}}var qct="storageRequestFailureDetailsParserPolicy";function tme(){return{name:qct,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 Yct}from"node:crypto";var RR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Yct("sha256",this.key).update(e,"utf8").digest("base64")}};var kR="12.33.0",vR="2026-06-06";var FR="https://storage.azure.com/.default",Ql={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var vc="",FH="*",Vct=1*1024*1024;var Jct=4*Vct;var rme="AES256",nme="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",sme=["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"],ime=["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"],ome="BlobUsesCustomerSpecifiedEncryption",ame="BlobDoesNotUseCustomerSpecifiedEncryption",cme=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wl(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 rQ=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 Lr);let r=new rQ([],e);return r._credential=t,r}function Wct(t){let e=[zct,Ame,jct,Kct,Xct,Zct,eAt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>$ct(s));return{wrappedPolicies:Z6(r),afterRetry:n}}}}function MH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?$6(e):kH(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${kR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Rb({...r,loggingOptions:{additionalAllowedHeaderNames:sme,additionalAllowedQueryParameters:ime,logger:ER.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:mR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:NH,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:Q6}),s.addPolicy($pe()),s.addPolicy(eme(r.retryOptions),{phase:"Retry"}),s.addPolicy(tme()),s.addPolicy(Zpe());let a=Wct(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=_H(t);Qo(c)?s.addPolicy(NE({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ro(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 zut(t,e){if(t=vl(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=Sa.parse(t.permissions.toString()).toString():s=Na.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Do(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 Ro(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 jut(t,e){if(t=vl(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=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Do(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 Ro(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 Kut(t,e){if(t=vl(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=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Do(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 Ro(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 Xut(t,e){if(t=vl(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=Sa.parse(t.permissions.toString()).toString():s=Na.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Do(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 Ro(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 Zut(t,e){if(t=vl(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=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Do(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 Ro(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 $ut(t,e){if(t=vl(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=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Do(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 Ro(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 elt(t,e){if(t=vl(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=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Do(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 Ro(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 tlt(t,e){if(t=vl(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=zE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Do(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,rlt(t.requestHeaders),nlt(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Ro(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,g0e(t.requestHeaders),g0e(t.requestQueryParameters),s),stringToSign:o}}function rlt(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function nlt(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function g0e(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 kl(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function vl(t){let e=t.version?t.version:vR;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 zE(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var gQ=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=wE()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==vc||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vc||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 we.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ue(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!==vc||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vc||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 we.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ue(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!==vc||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==vc||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 we.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ue(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!==vc||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==vc||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 we.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing 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"}};KE.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Zg=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"}};Zg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var bQ=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Slt=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())})},Aq=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 S0e(t,e,r){return Slt(this,void 0,void 0,function*(){var n;let s=new Lc(t),i=s.getBlockBlobClient(),o=new Aq((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 T2(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ye(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as T0e from"buffer";import*as KA from"fs";import*as x0e from"stream";import*as D0e from"util";var x2=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 D2(t){return t?t>=200&&t<300:!1}function Nlt(t){return t?t>=500:!0}function Tlt(t){return t?[ur.BadGateway,ur.ServiceUnavailable,ur.GatewayTimeout].includes(t):!1}function xlt(t){return x2(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function N0e(t,e,r){return x2(this,arguments,void 0,function*(n,s,i,o=lD,a=dD,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),!Nlt(d)))return l;if(d&&(h=Tlt(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 xlt(a),u++}throw Error(`${n} failed: ${A}`)})}function QQ(t,e){return x2(this,arguments,void 0,function*(r,n,s=lD,i=dD){return yield N0e(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof yA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function XE(t,e){return x2(this,arguments,void 0,function*(r,n,s=lD,i=dD){return yield N0e(r,n,o=>o.message.statusCode,s,i)})}var Ta=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 Dlt(t,e){return Ta(this,void 0,void 0,function*(){yield D0e.promisify(x0e.pipeline)(t.message,e)})}var R2=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 fq(t,e,r){return Hi(this,void 0,void 0,function*(){let n=new Mlt(t),s=F0e(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield k0e(t,e,s):s.concurrentBlobDownloads?yield R0e(t,e,s):yield k2(t,e):yield k2(t,e)})}function Y0e(t,e,r){return Hi(this,void 0,void 0,function*(){let n=hq(),s=pE(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield QQ("reserveCache",()=>Hi(this,void 0,void 0,function*(){return n.postJson(SQ("caches"),i)}))})}function G0e(t,e){return`bytes ${t}-${e}/*`}function Plt(t,e,r,n,s){return Hi(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${G0e(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":G0e(n,s)},o=yield XE(`uploadChunk (start: ${n}, end: ${s})`,()=>Hi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!D2(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Olt(t,e,r,n){return Hi(this,void 0,void 0,function*(){let s=wA(r),i=SQ(`caches/${e.toString()}`),o=ZE.openSync(r,"r"),a=uq(n),c=H4("uploadConcurrency",a.uploadConcurrency),A=H4("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];G("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 Plt(t,i,()=>ZE.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{ZE.closeSync(o)}})}function Hlt(t,e,r){return Hi(this,void 0,void 0,function*(){let n={size:r};return yield QQ("commitCache",()=>Hi(this,void 0,void 0,function*(){return t.postJson(SQ(`caches/${e.toString()}`),n)}))})}function gq(t,e,r,n){return Hi(this,void 0,void 0,function*(){if(uq(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield S0e(r,e,n)}else{let i=hq();G("Upload cache"),yield Olt(i,t,e,n),G("Commiting cache");let o=wA(e);ee(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Hlt(i,t,o);if(!D2(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ee("Cache saved successfully")}})}var LEe=Ee(oY(),1),pn=Ee(gt(),1),vo=Ee(gt(),1),np=Ee(gt(),1),sp=Ee(gt(),1),ip=Ee(gt(),1);var uY=Ee(gt(),1),lY=Ee(gt(),1),FEe=Ee(gt(),1),MEe=Ee(gt(),1),_Ee=Ee(gt(),1);var aY=Ee(gt(),1),cY=Ee(gt(),1),REe=Ee(gt(),1),kEe=Ee(gt(),1),vEe=Ee(gt(),1),AY=class extends vEe.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,kEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,REe.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?cY.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,aY.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,aY.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?cY.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Ck=new AY;var dY=class extends _Ee.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:()=>Ck}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,MEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,FEe.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(Ck.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?lY.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,uY.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)Ck.internalBinaryWrite(e.scope[i],r.tag(2,uY.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?lY.UnknownFieldHandler.onWrite Line truncated
`));let n=yield NY(r,"create");yield TY(n,t)})}var fC=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())})},Mo=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ll=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},RY="cache write denied:",Bk=class t extends Ll{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},HEe=hD,bk=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},Qk=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function GEe(t){if(!t||t.length===0)throw new Mo("Path Validation Error: At least one directory or file path is required")}function kY(t){if(t.length>512)throw new Mo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Mo(`Key Validation Error: ${t} cannot contain commas.`)}function qEe(){return wQ()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function wk(t,e,r,n){return fC(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=wQ();G(`Cache service version: ${A}`),GEe(s);let u=dq();if(!_0e(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 sft(s,i,o,a,c):yield nft(s,i,o,a,c)})}function nft(t,e,r,n){return fC(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 Mo("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)kY(h);let l=yield Cb(),d="";try{let h;try{h=yield q0e(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(HEe)?new bk(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return ee("Lookup only - skipping download"),h.cacheKey;d=GQ.join(yield mb(),ah(l)),G(`Archive Path: ${d}`),yield fq(h.archiveLocation,d,a),Tc()&&(yield HQ(d,l));let f=wA(d);return ee(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield xY(d,l),ee("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Mo.name)throw h;f instanceof yA&&typeof f.statusCode=="number"&&f.statusCode>=500?Co(`Failed to restore: ${h.message}`):Ye(`Failed to restore: ${h.message}`)}finally{try{yield Eb(d)}catch(h){G(`Failed to delete archive: ${h}`)}}})}function sft(t,e,r,n){return fC(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 Mo("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)kY(d);let l="";try{let d=SY(),h=yield Cb(),f={key:i,restoreKeys:o,version:pE(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(HEe)?new bk(y):I}if(!g.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?ee(`Cache hit for restore-key: ${g.matchedKey}`):ee(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return ee("Lookup only - skipping download"),g.matchedKey;l=GQ.join(yield mb(),ah(h)),G(`Archive path: ${l}`),G(`Starting download of archive to: ${l}`),yield fq(g.signedDownloadUrl,l,a);let m=wA(l);return ee(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Tc()&&(yield HQ(l,h)),yield xY(l,h),ee("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===Mo.name)throw d;h instanceof yA&&typeof h.statusCode=="number"&&h.statusCode>=500?Co(`Failed to restore: ${d.message}`):Ye(`Failed to restore: ${d.message}`)}finally{try{l&&(yield Eb(l))}catch(d){G(`Failed to delete archive: ${d}`)}}})}function Sk(t,e,r){return fC(this,arguments,void 0,function*(n,s,i,o=!1){let a=wQ();G(`Cache service version: ${a}`),GEe(n),kY(s);let c=dq();return L0e(c)?a==="v2"?yield oft(n,s,i,o):yield ift(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 ift(t,e,r){return fC(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield Cb(),f=-1,g=yield O4(n);if(G("Cache Paths:"),G(`${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 mb(),m=GQ.join(E,ah(h));G(`Archive Path: ${m}`);try{yield DY(E,g,h),Tc()&&(yield HQ(m,h));let I=10*1024*1024*1024,y Line truncated
See ${r.getDocumentationLink()}`;YEe.push(n),eh(n)}function JEe(){bA("deprecation-collector_deprecations",JSON.stringify(FY)),bA("deprecation-collector_errors",JSON.stringify(YEe))}import*as xk from"path";var WEe="GRADLE_ACTION_ID";var vk=".setup-gradle",YQ=class t{getDependencyGraphOption(){let e=Br("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 ru("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Br("artifact-retention-days");return Aft("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(Di.workflow,Di.job,zEe())}getReportDirectory(){let e=Br("dependency-graph-report-dir");return xk.resolve(Ul(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return op("dependency-graph-exclude-projects")}getIncludeProjects(){return op("dependency-graph-include-projects")}getExcludeConfigurations(){return op("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return op("dependency-graph-include-configurations")}getPluginRepository(){return new Dk}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 gC=class{isCacheDisabled(){return qEe()?ru("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&ru("cache-read-only")}isCacheWriteOnly(){return ru("cache-write-only")}isCacheOverwriteExisting(){return ru("cache-overwrite-existing")}isCacheStrictMatch(){return ru("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=qQ("gradle-home-cache-cleanup");if(e!==void 0)return Tk("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Br("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 Br("cache-encryption-key")}getCacheIncludes(){return _8("gradle-home-cache-includes")}getCacheExcludes(){return _8("gradle-home-cache-excludes")}getCacheProvider(){let e=Br("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 Oc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return ru("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Br("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Br("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Br("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Br("develocity-token-expiry")}getDevelocityInjectionEnabled(){return qQ("develocity-injection-enabled")}getDevelocityUrl(){return Br("develocity-url")}getDevelocityAllowUntrustedServer(){return qQ("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return qQ("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return qQ("develocity-enforce-url")}getDevelocityPluginVersion(){return Br("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Br("develocity-ccud-plugin-version")}getPluginRepository(){return new Dk}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:(Ye("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},Dk=class{getUrl(){return op("gradle-plugin-repository-url")}getUsername(){return op("gradle-plugin-repository-username")}getPassword(){return op("gradle-plugin-repository-p 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 fb(i));return n.searchPaths.push(...CG(n.patterns)),n})}static stat(e,r,n){return SG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Y0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Y0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Y0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as NG from"crypto";import*as t2 from"fs";import*as $me from"stream";import*as Xme from"util";import*as Zme from"path";var xdt=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())})},Rdt=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 e0e(t,e){return xdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:H,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=NG.createHash("sha256"),f=0;try{for(var p=!0,I=Rdt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${Zme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(t2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=NG.createHash("sha256");yield Xme.promisify($me.pipeline)(t2.createReadStream(C),y),h.write(y.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 h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var t0e=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 TG(t,e){return t0e(this,void 0,void 0,function*(){return yield ZD.create(t,e)})}function r0e(t){return t0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield TG(e,{followSymbolicLinks:i});return e0e(o,r,s)})}import*as xG from"path";var Ddt="Gradle User Home",s0e="BASIC_CACHE_PRIMARY_KEY",i0e="BASIC_CACHE_RESTORED_KEY",kdt="setup-java",o0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],n2=class{async restore(e,r){let n=a0e(e),s=await vdt();wu(s0e,s);try{let i=await OD(n,s);i?(wu(i0e,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ve(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=by(s0e),i=by(i0e);if(n.readOnly)return{status:"read-only",entries:[r2({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:[r2({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=a0e(e);try{return await HD(o,s),$(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[r2({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 Ve(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[r2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function r2(t){return{entryName:Ddt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}funcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${o0e}], make sure you have checked out the target repository`);return`${kdt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Fdt="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.",Mdt="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.",DG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function u0e(t){return t.isCacheDisabled()?(RG("Cache is disabled: will not restore state from previous builds."),new DG):t.getCacheProvider()==="basic"?(RG(Mdt),new n2):(RG(Fdt),Ldt())}async function Ldt(){let t=Udt();return await import(_dt(t).href)}function Udt(){let t=import.meta.dirname,e=A0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(c0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function RG(t){console.info(t)}import s2 from"fs";import l0e from"path";var i2=class{constructor(e){this.cacheFile=l0e.resolve(e,zD,"valid-wrappers.json")}load(){if(s2.existsSync(this.cacheFile))try{return JSON.parse(s2.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ve(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];s2.mkdirSync(l0e.dirname(this.cacheFile),{recursive:!0}),s2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var m0e=fe(g0e(),1);import*as p0e from"util";import*as o2 from"path";import*as a2 from"fs";var Ydt=p0e.promisify(a2.readdir);async function E0e(t){return(await C0e(t)).filter(r=>(0,m0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>o2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function C0e(t){let e=await Ydt(t),r=await Promise.all(e.map(async n=>{let s=o2.resolve(t,n),i=a2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?C0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Wdt={_useHtmlParser2:!1};function V0(t,e){if(!t)return e??Wdt;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={};Sa(tq,{contains:()=>B2,extract:()=>Oht,html:()=>Mht,merge:()=>G0e,parseHTML:()=>Uht,root:()=>Pht,text:()=>lg,xml:()=>Lht});var kd={};Sa(kd,{DocumentPosition:()=>jo,append:()=>Eht,appendChild:()=>mht,compareDocumentPosition:()=>U0e,existsOne:()=>M0e,filter:()=>K0,find:()=>E2,findAll:()=>Bht,findOne:()=>C2,findOneChild:()=>yht,getAttributeValue:()=>hht,getChildren:()=>j0,getElementById:()=>Sht,getElements:()=>wht,getElementsByClassName:()=>Nht,getElementsByTagName:()=>ug,getElementsByTagType:()=>Tht,getFeed:()=>eq,getInnerHTML:()=>dht,getName:()=>ght,getOuterHTML:()=>_0e,getParent:()=>F0e,getSiblings:()=>XG,getText:()=>g2,hasAttrib:()=>fht,hasChildren:()=>tr,innerText:()=>Ib,isCDATA:()=>W0,isComment:()=>Ag,isDocument:()=>zo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>p2,prepend:()=>Iht,prependChild:()=>Cht,prevElementSibling:()=>m2,removeElement:()=>Ku,removeSubsets:()=>xht,replaceElement:()=>pht,testElement:()=>Qht,textContent:()=>ju,uniqueSort:()=>Rd});var Jo={};Sa(Jo,{CDATA:()=>OG,Comment:()=>MG,Directive:()=>FG,Doctype:()=>HG,ElementType:()=>bt,Root:()=>vG,Script:()=>LG,Style:()=>UG,Tag:()=>PG,Text:()=>_G,isTag:()=>kG});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 kG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var vG=bt.Root,_G=bt.Text,FG=bt.Directive,MG=bt.Comment,LG=bt.Script,UG=bt.Style,PG=bt.Tag,OG=bt.CDATA,HG=bt.Doctype;var c2=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 J0(this,e)}},pb=class extends c2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},EA=class extends pb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},og=class extends pb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ag=class extends pb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},mb=class extends c2{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
`:g2(t.children):W0(t)?g2(t.children):pi(t)?t.data:""}function ju(t){return Array.isArray(t)?t.map(ju).join(""):tr(t)&&!Ag(t)?ju(t.children):pi(t)?t.data:""}function Ib(t){return Array.isArray(t)?t.map(Ib).join(""):tr(t)&&(t.type===bt.Tag||W0(t))?Ib(t.children):pi(t)?t.data:""}function j0(t){return tr(t)?t.children:[]}function F0e(t){return t.parent||null}function XG(t){let e=F0e(t);if(e!=null)return j0(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 hht(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function fht(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function ght(t){return t.name}function p2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function m2(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 pht(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 mht(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 Eht(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 Cht(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 Iht(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 K0(t,e,r=!0,n=1/0){return E2(t,Array.isArray(e)?e:[e],r,n)}function E2(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 yht(t,e){return e.find(t)}function C2(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&&tr(i)&&i.children.length>0){let o=C2(t,i.children,!0);if(o)return o}}return null}function M0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&M0e(t,r.children))}function Bht(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),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var I2={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=>pi(e)&&t(e.data):e=>pi(e)&&e.data===t}};function ZG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function bht(t,e){return r=>t(r)||e(r)}function L0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(I2,r)?I2[r](n):ZG(r,n)});return e.length===0?null:e.reduce(bht)}function Qht(t,e){let r=L0e(t);return r?r(e):!0}function wht(t,e,r,n=1/0){let s=L0e(t);return s?K0(s,e,r,n):[]}function Sht(t,e,r=!0){return Array.isArray(e)||(e=[e]),C2(ZG("id",t),e,r)}function ug(t,e,r=!0,n=1/0){return K0(I2.tag_name(t),e,r,n)}function Nht(t,e,r=!0,n=1/0){return K0(ZG("class",t),e,r,n)}function Tht(t,e,r=!0,n=1/0){return K0(I2.tag_type(t),e,r,n)}function xht(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 jo;(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"})(jo||(jo={}));function U0e(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 jo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?jo.FOLLOWING|jo.CONTAINED_BY:jo.FOLLOWING:a===t?jo.PRECEDING|jo.CONTAINS:jo.PRECEDING}function Rd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=U0e(e,r);return n&jo.PRECEDING?-1:n&jo.FOLLOWING?1:0}),t}function eq(t){let e=y2(_ht,t);return e?e.name==="feed"?Rht(e):Dht(e):null}function Rht(t){var e;let r=t.children,n={type:"atom",items:ug("entry",r).map(o=>{var a;let{children:c}=o,A={media:P0e(c)};mi(A,"id","id",c),mi(A,"title","title",c);let u=(a=y2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dd("summary",c)||Dd("conten Line truncated
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new XQ(i));return n.searchPaths.push(...OY(n.patterns)),n})}static stat(e,r,n){return zY(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield EC.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 EC.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield EC.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 jY from"crypto";import*as Hk from"fs";import*as BCe from"stream";import*as bCe from"util";import*as QCe from"path";var Rgt=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())})},kgt=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 wCe(t,e){return Rgt(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=jY.createHash("sha256"),f=0;try{for(var g=!0,E=kgt(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}${QCe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(Hk.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=jY.createHash("sha256");yield bCe.promisify(BCe.pipeline)(Hk.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 SCe=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 KY(t,e){return SCe(this,void 0,void 0,function*(){return yield Pk.create(t,e)})}function NCe(t){return SCe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield KY(e,{followSymbolicLinks:i});return wCe(o,r,s)})}import*as XY from"path";var vgt="Gradle User Home",xCe="BASIC_CACHE_PRIMARY_KEY",DCe="BASIC_CACHE_RESTORED_KEY",Fgt="setup-java",RCe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],Gk=class{async restore(e,r){let n=kCe(e),s=await Mgt();bA(xCe,s);try{let i=await wk(n,s);i?(bA(DCe,i),ee(`Basic caching restored from cache key: ${i}`)):ee("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ye(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=$B(xCe),i=$B(DCe);if(n.readOnly)return{status:"read-only",entries:[$Q({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 ee(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[$Q({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=kCe(e);try{return await Sk(o,s)===-1?(Ye(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[$Q({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(ee(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[$Q({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 Ye(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[$Q({primaryKey:s,restoredKey:i,restoredOutcome:i?"(EntLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${RCe}], make sure you have checked out the target repository`);return`${Fgt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Lgt="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.",Ugt="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.",Pgt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",Yk=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function MCe(t){return t.getCacheProvider()==="external"?(qk(Pgt),new Yk("external")):t.isCacheDisabled()?(qk("Cache is disabled: will not restore state from previous builds."),new Yk("disabled")):t.getCacheProvider()==="basic"?(qk(Ugt),new Gk):(qk(Lgt),Ogt())}async function Ogt(){let t=Hgt();return await import(_gt(t).href)}function Hgt(){let t=import.meta.dirname,e=FCe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(vCe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function qk(t){console.info(t)}import Vk from"fs";import _Ce from"path";var Jk=class{constructor(e){this.cacheFile=_Ce.resolve(e,vk,"valid-wrappers.json")}load(){if(Vk.existsSync(this.cacheFile))try{return JSON.parse(Vk.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ye(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];Vk.mkdirSync(_Ce.dirname(this.cacheFile),{recursive:!0}),Vk.writeFileSync(this.cacheFile,JSON.stringify(r))}};var GCe=Ee(OCe(),1);import*as HCe from"util";import*as Wk from"path";import*as zk from"fs";var Wgt=HCe.promisify(zk.readdir);async function qCe(t){return(await YCe(t)).filter(r=>(0,GCe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>Wk.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function YCe(t){let e=await Wgt(t),r=await Promise.all(e.map(async n=>{let s=Wk.resolve(t,n),i=zk.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?YCe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var jgt={_useHtmlParser2:!1};function CC(t,e){if(!t)return e??jgt;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 yV={};gc(yV,{contains:()=>Av,extract:()=>qpt,html:()=>Ppt,merge:()=>hIe,parseHTML:()=>Hpt,root:()=>Gpt,text:()=>Ep,xml:()=>Opt});var vh={};gc(vh,{DocumentPosition:()=>Ma,append:()=>ypt,appendChild:()=>Ipt,compareDocumentPosition:()=>AIe,existsOne:()=>aIe,filter:()=>QC,find:()=>iv,findAll:()=>wpt,findOne:()=>ov,findOneChild:()=>Qpt,getAttributeValue:()=>ppt,getChildren:()=>bC,getElementById:()=>xpt,getElements:()=>Tpt,getElementsByClassName:()=>Dpt,getElementsByTagName:()=>mp,getElementsByTagType:()=>Rpt,getFeed:()=>IV,getInnerHTML:()=>gpt,getName:()=>Ept,getOuterHTML:()=>iIe,getParent:()=>oIe,getSiblings:()=>EV,getText:()=>rv,hasAttrib:()=>mpt,hasChildren:()=>lr,innerText:()=>sw,isCDATA:()=>IC,isComment:()=>pp,isDocument:()=>Fa,isTag:()=>Te,isText:()=>Vi,nextElementSibling:()=>nv,prepend:()=>bpt,prependChild:()=>Bpt,prevElementSibling:()=>sv,removeElement:()=>Yl,removeSubsets:()=>kpt,replaceElement:()=>Cpt,testElement:()=>Npt,textContent:()=>ql,uniqueSort:()=>Rh});var va={};gc(va,{CDATA:()=>oV,Comment:()=>rV,Directive:()=>tV,Doctype:()=>aV,ElementType:()=>vt,Root:()=>$Y,Script:()=>nV,Style:()=>sV,Tag:()=>iV,Text:()=>eV,isTag:()=>ZY});var vt;(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"})(vt||(vt={}));function ZY(t){return t.type===vt.Tag||t.type===vt.Script||t.type===vt.Style}var $Y=vt.Root,eV=vt.Text,tV=vt.Directive,rV=vt.Comment,nV=vt.Script,sV=vt.Style,iV=vt.Tag,oV=vt.CDATA,aV=vt.Doctype;var jk=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 yC(this,e)}},ew=class extends jk{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},su=class extends ew{constructor(){super(...arguments),this.type=vt.Text}get nodeType(){return 3}},hp=class extends ew{constructor(){super(...arguments),this.type=vt.Comment}get nodeType(){return 8}},fp=class extends ew{constructor(e,r){super(r),this.name=e,this.type=vt.Di Line truncated
`:rv(t.children):IC(t)?rv(t.children):Vi(t)?t.data:""}function ql(t){return Array.isArray(t)?t.map(ql).join(""):lr(t)&&!pp(t)?ql(t.children):Vi(t)?t.data:""}function sw(t){return Array.isArray(t)?t.map(sw).join(""):lr(t)&&(t.type===vt.Tag||IC(t))?sw(t.children):Vi(t)?t.data:""}function bC(t){return lr(t)?t.children:[]}function oIe(t){return t.parent||null}function EV(t){let e=oIe(t);if(e!=null)return bC(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 ppt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function mpt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Ept(t){return t.name}function nv(t){let{next:e}=t;for(;e!==null&&!Te(e);)({next:e}=e);return e}function sv(t){let{prev:e}=t;for(;e!==null&&!Te(e);)({prev:e}=e);return e}function Yl(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 Cpt(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 Ipt(t,e){if(Yl(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 ypt(t,e){Yl(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 Bpt(t,e){if(Yl(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 bpt(t,e){Yl(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 QC(t,e,r=!0,n=1/0){return iv(t,Array.isArray(e)?e:[e],r,n)}function iv(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&&lr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Qpt(t,e){return e.find(t)}function ov(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Te(i)&&t(i))return i;if(r&&lr(i)&&i.children.length>0){let o=ov(t,i.children,!0);if(o)return o}}return null}function aIe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Te(r)&&t(r)||lr(r)&&aIe(t,r.children))}function wpt(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]++];Te(i)&&t(i)&&r.push(i),lr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var av={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=>Vi(e)&&t(e.data):e=>Vi(e)&&e.data===t}};function CV(t,e){return typeof e=="function"?r=>Te(r)&&e(r.attribs[t]):r=>Te(r)&&r.attribs[t]===e}function Spt(t,e){return r=>t(r)||e(r)}function cIe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(av,r)?av[r](n):CV(r,n)});return e.length===0?null:e.reduce(Spt)}function Npt(t,e){let r=cIe(t);return r?r(e):!0}function Tpt(t,e,r,n=1/0){let s=cIe(t);return s?QC(s,e,r,n):[]}function xpt(t,e,r=!0){return Array.isArray(e)||(e=[e]),ov(CV("id",t),e,r)}function mp(t,e,r=!0,n=1/0){return QC(av.tag_name(t),e,r,n)}function Dpt(t,e,r=!0,n=1/0){return QC(CV("class",t),e,r,n)}function Rpt(t,e,r=!0,n=1/0){return QC(av.tag_type(t),e,r,n)}function kpt(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 Ma;(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"})(Ma||(Ma={}));function AIe(t,e){let r=[],n=[];if(t===e)return 0;let s=lr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=lr(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 Ma.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ma.FOLLOWING|Ma.CONTAINED_BY:Ma.FOLLOWING:a===t?Ma.PRECEDING|Ma.CONTAINS:Ma.PRECEDING}function Rh(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=AIe(e,r);return n&Ma.PRECEDING?-1:n&Ma.FOLLOWING?1:0}),t}function IV(t){let e=cv(Lpt,t);return e?e.name==="feed"?vpt(e):Fpt(e):null}function vpt(t){var e;let r=t.children,n={type:"atom",items:mp("entry",r).map(o=>{var a;let{children:c}=o,A={media:uIe(c)};Ji(A,"id","id",c),Ji(A,"title","title",c);let u=(a=cv("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=kh("summary",c)||kh("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 Xo=fe(vd(),1);var mq={};function Eq(t,e){return t===Xo.default.falseFunc?Xo.default.falseFunc:r=>e.isTag(r)&&t(r)}function Cq(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 pq(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,pq(r),n);return i===Xo.default.trueFunc?t:i===Xo.default.falseFunc?Xo.default.falseFunc:o=>i(o)&&t(o)},_2={is:gq,matches:gq,where:gq,not(t,e,r,n,s){let i=s(e,pq(r),n);return i===Xo.default.falseFunc?t:i===Xo.default.trueFunc?Xo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=pq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Nb))?[mq]:void 0,c=s(e,o,a);if(c===Xo.default.falseFunc)return Xo.default.falseFunc;let A=Eq(c,i);if(a&&c!==Xo.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,...Cq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function NEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in _2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return _2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:v2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,SEe.parse)(A);return _2.is(t,u,r,n,s)}if(typeof c=="function")return fq(c,o,a,1),u=>c(u,a)&&t(u);if(o in iE)return iE[o](t,a,r,n);if(o in xb){let u=xb[o];return fq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Zo=fe(nE(),1);function Iq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function TEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Zo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Zo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Zo.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()),BEe[e.action](t,e,r)}case Zo.SelectorType.Pseudo:return NEe(t,e,r,n,s);case Zo.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 Zo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Iq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Iq(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=Iq(A,i));return!1};case Zo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Zo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Zo.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 Zo.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 Zo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function xEe(t,e,r){let n=F2(t,e,r);return Eq(n,e.adapter)}function F2(t,e,r){let n=typeof t=="string"?(0,sc.parse)(t):t;return M2(n,e,r)}function REe(t){return t.type===sc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(REe)))}var wft={type:sc.SelectorType.Descendant},Sft={type:"_flexibleDescendant"},Nft={type:sc.SelectorType.Pseudo,name:"scope",data:null};function Tft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===mq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(WEe,`\r
`)}}).toArray()}var Mq={};Sa(Mq,{extract:()=>qgt});function Ggt(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 qgt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Ggt(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,Aq,kq,vq,_q,Fq,Mq);function JEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=V0(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&&Ko(u))return u;let f=V0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Ko(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&yb(u)?t(u,f,!1,null).children:Ygt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?yb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Ko(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,tq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Ygt(t){return!!t.name||t.type===Jo.Root||t.type===Jo.Text||t.type===Jo.Comment}var Vgt=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",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 Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function G2(t){return t>=55296&&t<=57343}function zEe(t){return t>=56320&&t<=57343}function jEe(t,e){return(t-55296)*1024+9216+e}function q2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Y2(t){return t>=64976&&t<=65007||Vgt.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 Ua=Ee(Fh(),1);var LV={};function UV(t,e){return t===Ua.default.falseFunc?Ua.default.falseFunc:r=>e.isTag(r)&&t(r)}function PV(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 _V(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 MV=(t,e,r,n,s)=>{let i=s(e,_V(r),n);return i===Ua.default.trueFunc?t:i===Ua.default.falseFunc?Ua.default.falseFunc:o=>i(o)&&t(o)},yv={is:MV,matches:MV,where:MV,not(t,e,r,n,s){let i=s(e,_V(r),n);return i===Ua.default.falseFunc?t:i===Ua.default.trueFunc?Ua.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=_V(r);o.relativeSelector=!0;let a=e.some(u=>u.some(lw))?[LV]:void 0,c=s(e,o,a);if(c===Ua.default.falseFunc)return Ua.default.falseFunc;let A=UV(c,i);if(a&&c!==Ua.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,...PV(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function ZIe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in yv))throw new Error(`Unknown pseudo-class :${o}(${a})`);return yv[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Iv[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,XIe.parse)(A);return yv.is(t,u,r,n,s)}if(typeof c=="function")return FV(c,o,a,1),u=>c(u,a)&&t(u);if(o in vC)return vC[o](t,a,r,n);if(o in hw){let u=hw[o];return FV(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Pa=Ee(RC(),1);function OV(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function $Ie(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Pa.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Pa.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Pa.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()),WIe[e.action](t,e,r)}case Pa.SelectorType.Pseudo:return ZIe(t,e,r,n,s);case Pa.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 Pa.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=OV(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=OV(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=OV(A,i));return!1};case Pa.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Pa.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Pa.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 Pa.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 Pa.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function eye(t,e,r){let n=Bv(t,e,r);return UV(n,e.adapter)}function Bv(t,e,r){let n=typeof t=="string"?(0,Yc.parse)(t):t;return bv(n,e,r)}function tye(t){return t.type===Yc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(tye)))}var Tmt={type:Yc.SelectorType.Descendant},xmt={type:"_flexibleDescendant"},Dmt={type:Yc.SelectorType.Pseudo,name:"scope",data:null};function Rmt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===LV||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(mye,`\r
`)}}).toArray()}var rJ={};gc(rJ,{extract:()=>J0t});function V0t(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 J0t(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=V0t(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 Lh=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}}};Lh.prototype.cheerio="[cheerio object]";Lh.prototype.splice=Array.prototype.splice;Lh.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Lh.prototype,xV,ZV,$V,eJ,tJ,rJ);function Eye(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=CC(s),a=t(n,o,i,null);class c extends Lh{_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&&_a(u))return u;let f=CC(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=_a(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&iw(u)?t(u,f,!1,null).children:W0t(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"?iw(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):_a(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,yV,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function W0t(t){return!!t.name||t.type===va.Root||t.type===va.Text||t.type===va.Comment}var z0t=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]),Er="\uFFFD",T;(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"})(T||(T={}));var Ai={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function xv(t){return t>=55296&&t<=57343}function Cye(t){return t>=56320&&t<=57343}function Iye(t,e){return(t-55296)*1024+9216+e}function Dv(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Rv(t){return t>=64976&&t<=65007||z0t.has(t)}var z;(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(`
`)}`}},I_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var $g=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function yxe(t){if(t instanceof AggregateError){Xl("Multiple errors returned");for(let e of t.errors)Pi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&$(e.stack)}else t instanceof $g?(Xl(String(t)),t.stack&&$(t.stack)):(Xl(String(t)),t instanceof Error&&t.stack&&$(t.stack))}async function Bxe(t,e,r){if(!t.doValidateWrappers())return;let n=new i2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await Ixe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await ZN("All Gradle Wrapper jars are valid",async()=>{H(`Loaded previously validated checksums from cache: ${i.join(", ")}`),$(o.toDisplayString())});else throw $(o.toDisplayString()),new $g(`At least one Gradle Wrapper Jar failed validation!
`)}`}},A_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var fm=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function A2e(t){if(t instanceof AggregateError){eh("Multiple errors returned");for(let e of t.errors)Co(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&ee(e.stack)}else t instanceof fm?(eh(String(t)),t.stack&&ee(t.stack)):(eh(String(t)),t instanceof Error&&t.stack&&ee(t.stack))}async function u2e(t,e,r){if(!t.doValidateWrappers())return;let n=new Jk(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await c2e(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await Mx("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 fm(`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 ho from"fs";import Xg from"path";function bxe(t,e,r){let n=Xg.resolve(e,zD);ho.mkdirSync(n,{recursive:!0}),ykt(e),Bkt(t),Oa()&&bkt(e),r&&pn("GRADLE_ENCRYPTION_KEY",r)}function ykt(t){let e=Xg.resolve(t,"init.d");ho.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=Qkt("init-scripts",n),i=Xg.resolve(e,n);ho.writeFileSync(i,s)}}function Bkt(t){let e=wkt();if(e==null)return;let r=Xg.resolve(t,".m2"),n=Xg.resolve(r,"toolchains.xml");if(!ho.existsSync(n))ho.mkdirSync(r,{recursive:!0}),ho.writeFileSync(n,e),$(`Wrote default JDK locations to ${n}`);else{let s=ho.readFileSync(n,"utf8"),i=Skt(s,e);ho.writeFileSync(n,i),$(`Merged default JDK locations into ${n}`)}}function bkt(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import jo from"fs";import gm from"path";function l2e(t,e,r){let n=gm.resolve(e,vk);jo.mkdirSync(n,{recursive:!0}),jMt(e),KMt(t),Tc()&&XMt(e),r&&Rn("GRADLE_ENCRYPTION_KEY",r)}function jMt(t){let e=gm.resolve(t,"init.d");jo.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=ZMt("init-scripts",n),i=gm.resolve(e,n);jo.writeFileSync(i,s)}}function KMt(t){let e=$Mt();if(e==null)return;let r=gm.resolve(t,".m2"),n=gm.resolve(r,"toolchains.xml");if(!jo.existsSync(n))jo.mkdirSync(r,{recursive:!0}),jo.writeFileSync(n,e),ee(`Wrote default JDK locations to ${n}`);else{let s=jo.readFileSync(n,"utf8"),i=e_t(s,e);jo.writeFileSync(n,i),ee(`Merged default JDK locations into ${n}`)}}function XMt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Xg.resolve(t,"gradle.properties");if(ho.existsSync(r)){$(`Merged --info and --stacktrace into existing ${r} file`);let n=ho.readFileSync(r,"utf-8");ho.writeFileSync(r,`${e}
${n}`)}else $(`Created a new ${r} with --info and --stacktrace`),ho.writeFileSync(r,e)}function Qkt(...t){let e=import.meta.dirname,r=Xg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function wkt(){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=gm.resolve(t,"gradle.properties");if(jo.existsSync(r)){ee(`Merged --info and --stacktrace into existing ${r} file`);let n=jo.readFileSync(r,"utf-8");jo.writeFileSync(r,`${e}
${n}`)}else ee(`Created a new ${r} with --info and --stacktrace`),jo.writeFileSync(r,e)}function ZMt(...t){let e=import.meta.dirname,r=gm.resolve(e,"..","..","..","sources","src","resources",...t);return jo.readFileSync(r,"utf8")}function $Mt(){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,55 +287,56 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function Skt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Az="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Nkt="GRADLE_USER_HOME";async function Qxe(t,e,r){let n=await wxe(),s=await xkt();return process.env[Az]?($("Gradle setup only performed on first gradle/actions step in workflow."),!1):(pn(Az,!0),wu(Az,!0),wu(Nkt,s),bxe(n,s,t.getCacheEncryptionKey()),await(await u0e(t)).restore(s,Tkt(t)),await Bxe(r,Yu(),s),await Nme(e),!0)}function Tkt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function xkt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Yu();return lz.resolve(r,t)}let e=lz.resolve(await wxe(),".gradle");if(uz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),pn("GRADLE_USER_HOME",e),e;if(y_.platform()==="win32"&&e.startsWith("C:\\")&&uz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),pn("GRADLE_USER_HOME",r),r}return pn("GRADLE_USER_HOME",e),e}async function wxe(){let t=await By("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()."),y_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}var dRe=fe(Hxe(),1),pz=fe(Uy(),1);import*as tC from"fs";import*as sRe from"os";import*as hh from"path";import*as fz from"crypto";import*as ep from"fs";var qkt=fe(Uy(),1);import*as ZQ from"path";var Q_=fe(Uy(),1);import*as qxe from"stream";import*as Yxe from"util";import{ok as Vkt}from"assert";var Gxe=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())})},B_=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 Gxe(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 Gxe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Zg=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())})},b_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Wkt=process.platform==="win32",zQr=process.platform==="darwin",Jkt="actions/tool-cache";function Vxe(t,e,r,n){return Zg(this,void 0,void 0,function*(){e=e||ZQ.join(Jxe(),fz.randomUUID()),yield df(ZQ.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=hz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=hz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new B_(s,i,o).execute(()=>Zg(this,void 0,void 0,function*(){return yield zkt(t,e||"",r,n)}),c=>!(c instanceof b_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function zkt(t,e,r,n){return Zg(this,void 0,void 0,function*(){if(ep.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(Jkt,[],{allowRetries:!1});r&&(H("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new b_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=Yxe.promisify(qxe.pipeline),c=hz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,ep.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield Cce(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function Wxe(t,e){return Zg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield $kt(e),Wkt?yield jkt(t,e):yield Kkt(t,e),e})}function jkt(t,e){return Zg(this,void 0,void 0,function*(){let r= Line truncated
`," Line feed \\n"]]),wRe=new Map([...Xz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function SRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of wRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function e_t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var VK="GRADLE_BUILD_ACTION_SETUP_COMPLETED",t_t="GRADLE_USER_HOME",r_t="DEVELOCITY_CACHE_TOKEN";async function d2e(t,e,r){let n=await h2e(),s=await s_t();if(process.env[VK])return ee("Gradle setup only performed on first gradle/actions step in workflow."),!1;Rn(VK,!0),bA(VK,!0),bA(t_t,s),l2e(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await ZEe(e);return bA(r_t,o??""),await(await MCe(t)).restore(s,n_t(t,i,o)),await u2e(r,Ul(),s),KEe(e),!0}function n_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 s_t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Ul();return WK.resolve(r,t)}let e=WK.resolve(await h2e(),".gradle");if(JK.existsSync(e))return ee(`Gradle User Home already exists at ${e}`),Rn("GRADLE_USER_HOME",e),e;if(u_.platform()==="win32"&&e.startsWith("C:\\")&&JK.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return ee(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Rn("GRADLE_USER_HOME",r),r}return Rn("GRADLE_USER_HOME",e),e}async function h2e(){let t=await ZB("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()."),u_.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}var $2e=Ee(x2e(),1);import*as RI from"fs";import*as J2e from"os";import*as df from"path";import*as KK from"crypto";import*as mm from"fs";var E_t=Ee(uD(),1);import*as P1 from"path";var h_=Ee(uD(),1);import*as R2e from"stream";import*as k2e from"util";import{ok as I_t}from"assert";var D2e=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())})},l_=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 D2e(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 D2e(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var pm=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())})},d_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},y_t=process.platform==="win32",ZTr=process.platform==="darwin",B_t="actions/tool-cache";function v2e(t,e,r,n){return pm(this,void 0,void 0,function*(){e=e||P1.join(M2e(),KK.randomUUID()),yield Cg(P1.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=jK("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=jK("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new l_(s,i,o).execute(()=>pm(this,void 0,void 0,function*(){return yield b_t(t,e||"",r,n)}),c=>!(c instanceof d_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function b_t(t,e,r,n){return pm(this,void 0,void 0,function*(){if(mm.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Kr(B_t,[],{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 d_(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=k2e.promisify(R2e.pipeline),c=jK("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,mm.createWriteStream(e)),G("download complete"),A=!0,e}finally{if(!A){G("download failed");try{yield Mue(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function F2e(t,e){return pm(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' Line truncated
`," Line feed \\n"]]),dke=new Map([...vX,["\\"," Backslash \\"],["/"," Forward slash /"]]);function hke(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of dke)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(wRe.values()).toString()}
Invalid characters include: ${Array.from(dke.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 Zz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Xz)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 FX(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of vX)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(Xz.values()).toString()}
Invalid characters include: ${Array.from(vX.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 RRe=fe(xRe(),1);function YA(){return`@actions/artifact-${RRe.version}`}var iC=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"}},pl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ml=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"}},El=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"}};El.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rp=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"}};rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var np=class extends Error{};np.prototype.name="InvalidTokenError";function yvt(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 Bvt(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 yvt(e)}catch{return atob(e)}}function DRe(t,e){if(typeof t!="string")throw new np("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 np(`Invalid token specified: missing part #${r+1}`);let s;try{s=Bvt(n)}catch(i){throw new np(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new np(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var x_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=N_(),e=DRe(t);if(!e.scp)throw x_;let r=e.scp.split(" ");if(r.length===0)throw x_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw x_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return H(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),H(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw x_}function kRe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ua(r),Ua(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function vRe(t){if(typeof t!="object"||t===null){H("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&kRe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&kRe(t.signed_url)}var R_=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())})},ej=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=N_();this.baseUrl=fRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new Qu(i)])}request(e,r,n,s){return R_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;H(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>R_(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 R_(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(),H(`[Response] - ${a.message.statusCode}`),H(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(vRe(A),H(`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(rp.isUsageErrorMessage(A.msg))throw new rp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&H(`Raw Body: ${s}`),a instanceof rp)throw a;if(El.isNetworkErrorCode(a?.code))throw new El(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?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return R_(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 ej(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new T_(e)}import*as oC from"fs";import{normalize as _Re,resolve as FRe}from"path";function MRe(t){if(!oC.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&&Ve("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: ${J3e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield z3e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,H(`Computed digest: ${l.sha256Digest}`),H(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function $3e(){return eI(this,arguments,void 0,function*(t=gRe()){return(yield ZVt(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield G3e.mkdir(t,{recursive:!0})),t})}var t7t=5,r7t=[400,401,403,404,422];function tI(t,e=t7t,r=r7t){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 H(`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 X3e="6.0.0";function kp(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})})}kp.VERSION=X3e;var t8e=fe(Z3e(),1);var LM=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 n7t="0.0.0-development";async function e8e(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 s7t(t,e,r,n){let s=new t8e.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(i7t.bind(null,t,e,r),n)}async function i7t(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 LM(s.data.errors[0].message,500,{request:n,response:s});return e8e(t,e,i,n)}return s}function vp(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",e8e.bind(null,r,t)),t.hook.wrap("request",s7t.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}vp.VERSION=n7t;var r8e=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 UM(t,e,r,n,s){return r8e(this,void 0,void 0,function*(){var i;let[o,a]=tI(gf),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield Ha(s,c,vp,kp).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 pl(`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 ml(`Artifact not found for name: ${t}
`)}var mke=Ee(pke(),1);function Du(){return`@actions/artifact-${mke.version}`}var MI=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"}},ld=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},dd=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},hf=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"}},hd=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"}};hd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Cm=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"}};Cm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Im=class extends Error{};Im.prototype.name="InvalidTokenError";function K_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 X_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 K_t(e)}catch{return atob(e)}}function Eke(t,e){if(typeof t!="string")throw new Im("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 Im(`Invalid token specified: missing part #${r+1}`);let s;try{s=X_t(n)}catch(i){throw new Im(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Im(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var E_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Ru(){let t=p_(),e=Eke(t);if(!e.scp)throw E_;let r=e.scp.split(" ");if(r.length===0)throw E_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw E_;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 E_}function Cke(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(da(r),da(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function Ike(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"&&Cke(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&Cke(t.signed_url)}var C_=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())})},MX=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=p_();this.baseUrl=tke(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Kr(e,[new gl(i)])}request(e,r,n,s){return C_(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(()=>C_(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 C_(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(),G(`[Response] - ${a.message.statusCode}`),G(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(Ike(A),G(`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(Cm.isUsageErrorMessage(A.msg))throw new Cm;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&G(`Raw Body: ${s}`),a instanceof Cm)throw a;if(hd.isNetworkErrorCode(a?.code))throw new hd(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);ee(`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?[ur.BadGateway,ur.GatewayTimeout,ur.InternalServerError,ur.ServiceUnavailable,ur.TooManyRequests].includes(e):!1}sleep(e){return C_(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 ku(t){let e=new MX(Du(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new m_(e)}import*as _I from"fs";import{normalize as yke,resolve as Bke}from"path";function bke(t){if(!_I.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&&Ye("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: ${z6e(u)}`);try{ee(`Starting download of artifact to: ${r}`);let l=yield j6e(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 Z6e(){return Dy(this,arguments,void 0,function*(t=rke()){return(yield Lzt(t))?G(`Artifact destination folder already exists: ${t}`):(G(`Artifact destination folder does not exist, creating: ${t}`),yield q6e.mkdir(t,{recursive:!0})),t})}var Pzt=5,Ozt=[400,401,403,404,422];function Ry(t,e=Pzt,r=Ozt){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 $6e="6.0.0";function Jm(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})})}Jm.VERSION=$6e;var rHe=Ee(eHe(),1);var Hzt="0.0.0-development";function Gzt(t){return t.request!==void 0}async function tHe(t,e,r,n){if(!Gzt(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 qzt(t,e,r,n){let s=new rHe.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(Yzt.bind(null,t,e,r),n)}async function Yzt(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 ml(s.data.errors[0].message,500,{request:n,response:s});return tHe(t,e,i,n)}return s}function Wm(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",tHe.bind(null,r,n)),t.hook.wrap("request",qzt.bind(null,r,n))),n}Wm.VERSION=Hzt;var nHe=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 SU(t,e,r,n,s){return nHe(this,void 0,void 0,function*(){var i;let[o,a]=Ry(yg),c={log:void 0,userAgent:Du(),previews:void 0,retry:o,request:a},u=yield xc(s,c,Wm,Jm).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 ld(`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 dd(`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],H(`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 n8e(t){return r8e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ml(`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 sHe(t){return nHe(this,void 0,void 0,function*(){var e;let r=ku(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Ru(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Tn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new dd(`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],H(`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?fo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var s8e=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 i8e(t,e,r,n,s){return s8e(this,void 0,void 0,function*(){var i;let[o,a]=tI(gf),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=Ha(s,c,vp,kp),u=yield UM(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 pl(`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 o8e(t){return s8e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ml(`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],H(`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 a8e=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())})},PM=ERe(),OM=100,o7t=Math.ceil(PM/OM);function c8e(t,e,r,n){return a8e(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]=tI(gf),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=Ha(a,d,vp,kp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:OM,page:f}),I=Math.ceil(p.total_count/OM),m=p.total_count;m>PM&&(Ve(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${PM}. Results will be incomplete as only the first ${PM} artifacts will be returned`),I=o7t);for(let C of p.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<=I;f++){H(`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:OM,page:f});for(let y of C.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=u8e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function A8e(){return a8e(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?fo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=u8e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function u8e(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 y1=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())})},a7t=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},_p=class{uploadArtifact(e,r,n,s){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;return a3e(e,r,n,s)}catch(i){throw Ve(`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?Ko.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var iHe=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 oHe(t,e,r,n,s){return iHe(this,void 0,void 0,function*(){var i;let[o,a]=Ry(yg),c={log:void 0,userAgent:Du(),previews:void 0,retry:o,request:a},A=xc(s,c,Wm,Jm),u=yield SU(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 ld(`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 aHe(t){return iHe(this,void 0,void 0,function*(){let e=ku(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Ru(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Tn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new dd(`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 cHe=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())})},NU=ike(),TU=100,Vzt=Math.ceil(NU/TU);function AHe(t,e,r,n){return cHe(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]=Ry(yg),d={log:void 0,userAgent:Du(),previews:void 0,retry:u,request:l},h=xc(a,d,Wm,Jm),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:TU,page:f}),E=Math.ceil(g.total_count/TU),m=g.total_count;m>NU&&(Ye(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${NU}. Results will be incomplete as only the first ${NU} artifacts will be returned`),E=Vzt);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++){G(`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:TU,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=lHe(A)),ee(`Found ${A.length} artifact(s)`),{artifacts:A}})}function uHe(){return cHe(this,arguments,void 0,function*(t=!1){let e=ku(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Ru(),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?Ko.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=lHe(o)),ee(`Found ${o.length} artifact(s)`),{artifacts:o}})}function lHe(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 aN=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())})},Jzt=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},zm=class{uploadArtifact(e,r,n,s){return aN(this,void 0,void 0,function*(){try{if(kI())throw new hf;return c6e(e,r,n,s)}catch(i){throw Ye(`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 y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=a7t(r,["findBy"]);return j3e(e,n,s,i,o)}return K3e(e,r)}catch(n){throw Ve(`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 aN(this,void 0,void 0,function*(){try{if(kI())throw new hf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=Jzt(r,["findBy"]);return K6e(e,n,s,i,o)}return X6e(e,r)}catch(n){throw Ye(`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 y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return c8e(r,n,s,i,e?.latest)}return A8e(e?.latest)}catch(r){throw Ve(`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 aN(this,void 0,void 0,function*(){try{if(kI())throw new hf;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return AHe(r,n,s,i,e?.latest)}return uHe(e?.latest)}catch(r){throw Ye(`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 y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return UM(e,n,s,i,o)}return n8e(e)}catch(n){throw Ve(`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 aN(this,void 0,void 0,function*(){try{if(kI())throw new hf;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return SU(e,n,s,i,o)}return sHe(e)}catch(n){throw Ye(`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 y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return i8e(e,i,n,s,o)}return o8e(e)}catch(n){throw Ve(`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 aN(this,void 0,void 0,function*(){try{if(kI())throw new hf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return oHe(e,i,n,s,o)}return aHe(e)}catch(n){throw Ye(`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 YRr=new _p;import*as HM from"path";import KX from"fs";var d8e="dependency-graph_";async function h8e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await A7t(t);return}$("Enabling dependency graph generation"),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),zs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ri.runId.toString()),zs("GITHUB_DEPENDENCY_GRAPH_REF",ri.ref),zs("GITHUB_DEPENDENCY_GRAPH_SHA",E7t()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Yu()),zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),zs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),zs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),zs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),zs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),zs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),zs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),zs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function zs(t,e){process.env[t]||e!==void 0&&pn(t,e)}async function f8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await l8e(t,!1);return;case"generate-submit-and-upload":await l8e(t,!0);return;case"generate-and-upload":await u7t(t)}}catch(r){p8e(t,e,r)}}async function A7t(t){if(ZX()){$("Dependency graph not supported in the ACT environment.");return}try{await g8e(await l7t(t))}catch(e){p8e(t,"download-and-submit",e)}}async function l8e(t,e){if(ZX()){$("Dependency graph not supported in the ACT environment.");return}let r=await $X();try{await g8e(r)}catch(n){try{await jX(r,t)}catch(s){$(String(s))}throw n}e&&await jX(r,t)}async function u7t(t){if(ZX()){$("Dependency graph not supported in the ACT environment.");return}await jX(await $X(),t)}async function l7t(t){let e=ri.payload.workflow_run?{token:jD(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new _p,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(d8e)),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 $X()}async function $X(){let r=(await(await TG(`${f7t()}/**/*.json`)).glob()).filter(n=>!g7t(n));return r.forEach(p7t),$(`Found dependency graph files: ${r.join(", ")}`),r}async function jX(t,e){if(t.length===0){$("No dependency graph files found to upload.");return}let r=Yu(),n=new _p;for(let s of t){let i=XX(s);$(`Uploading dependency graph file: ${i}`);let o=`${d8e}${HM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function g8e(t){if(t.length===0){$("No dependency graph files found to submit.");return}for(let e of t)try{await h7t(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=d7t(e,r)),r}}function d7t(t,e){let n=`Dependency submission failed for ${XX(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 XFr=new zm;import*as xU from"path";import Fte from"fs";var hHe="dependency-graph_";async function fHe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Rn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){yi("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await zzt(t);return}ee("Enabling dependency graph generation"),Rn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),yi("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),yi("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),yi("GITHUB_DEPENDENCY_GRAPH_JOB_ID",Di.runId.toString()),yi("GITHUB_DEPENDENCY_GRAPH_REF",Di.ref),yi("GITHUB_DEPENDENCY_GRAPH_SHA",njt()),yi("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Ul()),yi("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),yi("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),yi("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),yi("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),yi("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),yi("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),yi("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),yi("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function yi(t,e){process.env[t]||e!==void 0&&Rn(t,e)}async function gHe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await dHe(t,!1);return;case"generate-submit-and-upload":await dHe(t,!0);return;case"generate-and-upload":await jzt(t)}}catch(r){mHe(t,e,r)}}async function zzt(t){if(Lte()){ee("Dependency graph not supported in the ACT environment.");return}try{await pHe(await Kzt(t))}catch(e){mHe(t,"download-and-submit",e)}}async function dHe(t,e){if(Lte()){ee("Dependency graph not supported in the ACT environment.");return}let r=await Mte();try{await pHe(r)}catch(n){try{await vte(r,t)}catch(s){ee(String(s))}throw n}e&&await vte(r,t)}async function jzt(t){if(Lte()){ee("Dependency graph not supported in the ACT environment.");return}await vte(await Mte(),t)}async function Kzt(t){let e=Di.payload.workflow_run?{token:Fk(),workflowRunId:Di.payload.workflow_run.id,repositoryName:Di.repo.repo,repositoryOwner:Di.repo.owner}:void 0,r=new zm,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(hHe)),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 Mte()}async function Mte(){let r=(await(await KY(`${$zt()}/**/*.json`)).glob()).filter(n=>!ejt(n));return r.forEach(tjt),ee(`Found dependency graph files: ${r.join(", ")}`),r}async function vte(t,e){if(t.length===0){ee("No dependency graph files found to upload.");return}let r=Ul(),n=new zm;for(let s of t){let i=_te(s);ee(`Uploading dependency graph file: ${i}`);let o=`${hHe}${xU.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function pHe(t){if(t.length===0){ee("No dependency graph files found to submit.");return}for(let e of t)try{await Zzt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Xzt(e,r)),r}}function Xzt(t,e){let n=`Dependency submission failed for ${_te(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 h7t(t){let e=m7t(),r=KX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=ri.repo.owner,n.repo=ri.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=XX(t);Rce(`Submitted ${i}: ${s.data.message}`)}function f7t(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function g7t(t){let e=`${t}.processed`;return KX.existsSync(e)}function p7t(t){let e=`${t}.processed`;KX.writeFileSync(e,"")}function p8e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new $g(r);Ve(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function m7t(){return Ha(jD())}function XX(t){let e=Yu();return HM.relative(e,t)}function E7t(){let t=ri;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 ZX(){return process.env.ACT!==void 0}function eZ(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(I7t(o[1],o[6],o[0]));while(o!==null);return i}function I7t(){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 y7t(t=process.platform){return t==="win32"?50:0}async function m8e(t=process.platform){let e=y7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function B7t(){try{Qme("gradle/actions/dependency-submission"),await Qxe(new H0,new ec,new JD);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new ab;if(await h8e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new WD,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
`:n}async function Zzt(t){let e=rjt(),r=Fte.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Di.repo.owner,n.repo=Di.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=_te(t);L8(`Submitted ${i}: ${s.data.message}`)}function $zt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function ejt(t){let e=`${t}.processed`;return Fte.existsSync(e)}function tjt(t){let e=`${t}.processed`;Fte.writeFileSync(e,"")}function mHe(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new fm(r);Ye(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function rjt(){return xc(Fk())}function _te(t){let e=Ul();return xU.relative(e,t)}function njt(){let t=Di;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 Lte(){return process.env.ACT!==void 0}function Ute(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(ijt(o[1],o[6],o[0]));while(o!==null);return i}function ijt(){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 ojt(t=process.platform){return t==="win32"?50:0}async function EHe(t=process.platform){let e=ojt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function ajt(){try{jEe("gradle/actions/dependency-submission"),await d2e(new gC,new Oc,new kk);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new YQ;if(await fHe(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new Rk,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=eZ(i);await hRe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await f8e(e),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),yme()}catch(t){yxe(t)}await m8e()}B7t();export{B7t as run};
`,o=Ute(i);await eke(r.getGradleVersion(),r.getBuildRootDirectory(),o),await gHe(e),Rn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),JEe()}catch(t){A2e(t)}await EHe()}ajt();export{ajt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -339,13 +347,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>
@@ -415,12 +416,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": ";s1BAAA,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
}
+166 -148
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var _fe=Object.create;var SS=Object.defineProperty;var Hfe=Object.getOwnPropertyDescriptor;var Gfe=Object.getOwnPropertyNames;var Yfe=Object.getPrototypeOf,qfe=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)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mi=(t,e)=>{for(var r in e)SS(t,r,{get:e[r],enumerable:!0})},Vfe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Gfe(e))!qfe.call(t,n)&&n!==r&&SS(t,n,{get:()=>e[n],enumerable:!(s=Hfe(e,n))||s.enumerable});return t};var Ee=(t,e,r)=>(r=t!=null?_fe(Yfe(t)):{},Vfe(e||!t||!t.__esModule?SS(r,"default",{value:t,enumerable:!0}):r,t));var r5=E(Cd=>{"use strict";var Jit=w("net"),jfe=w("tls"),RS=w("http"),$6=w("https"),Zfe=w("events"),Wit=w("assert"),$fe=w("util");Cd.httpOverHttp=epe;Cd.httpsOverHttp=tpe;Cd.httpOverHttps=rpe;Cd.httpsOverHttps=spe;function epe(t){var e=new fa(t);return e.request=RS.request,e}function tpe(t){var e=new fa(t);return e.request=RS.request,e.createSocket=e5,e.defaultPort=443,e}function rpe(t){var e=new fa(t);return e.request=$6.request,e}function spe(t){var e=new fa(t);return e.request=$6.request,e.createSocket=e5,e.defaultPort=443,e}function fa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||RS.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=t5(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)})}$fe.inherits(fa,Zfe.EventEmitter);fa.prototype.addRequest=function(e,r,s,n){var i=this,o=kS({request:e},i.options,t5(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)}})};fa.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=kS({},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")),QA("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){QA("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){QA("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 QA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),QA(`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)}};fa.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 e5(t,e){var r=this;fa.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=kS({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=jfe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function t5(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function kS(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 QA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?QA=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)}:QA=function(){};Cd.debug=QA});var FS=E((Kit,s5)=>{s5.exports=r5()});var Et=E((Xit,n5)=>{n5.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((jit,x5)=>{"use strict";var i5=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[i5]===!0}[i5]=!0},o5=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),MS=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[o5]===!0}[o5]=!0},a5=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),US=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[a5]===!0}[a5]=!0},A5=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),LS=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[A5]===!0}[A5]=!0},c5=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),vS=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[c5]===!0}[c5]=!0},u5=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),PS=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 C0e(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(s0e.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function I0e(){return"allowed"}function B0e(){return"success"}function y0e(){return"success"}function Q0e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function b0e(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&&xT(t.origin)&&!xT(Yf(t))&&(e=null);break;case"same-origin":MC(t,Yf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function xd(t,e){return t}function w0e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:xd(t.domainLookupStartTime,r),domainLookupEndTime:xd(t.domainLookupEndTime,r),connectionStartTime:xd(t.connectionStartTime,r),connectionEndTime:xd(t.connectionEndTime,r),secureConnectionStartTime:xd(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function N0e(t){return xd(A0e.now(),t)}function S0e(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 YH(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function T0e(t){return{referrerPolicy:t.referrerPolicy}}function x0e(t){let e=t.referrerPolicy;cu(e);let r=null;if(t.referrer==="client"){let a=vH();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=TT(r),n=TT(r,!0);s.toString().length>4096&&(s=n);let i=MC(t,s),o=Gf(s)&&!Gf(t.url);switch(e){case"origin":return n??TT(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=Yf(t);return MC(s,a)?s:Gf(s)&&!Gf(a)?"no-referrer":n}default:return o?"no-referrer":n}}function TT(t,e){return cu(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 Gf(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 D0e(t,e){if(FC===void 0)return!0;let r=qH(e);if(r==="no metadata"||r.length===0)return!0;let s=k0e(r),n=F0e(r,s);for(let i of n){let o=i.algo,a=i.hash,A=FC.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)),M0e(A,a))return!0}return!1}var R0e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function qH(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=R0e.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();OH.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function k0e(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 F0e(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 M0e(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 U0e(t){}function MC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function L0e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function v0e(t){return t.controller.state==="aborted"}function P0e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function O0e(t){return l0e[t.toLowerCase()]??t}function _0e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return cu(typeof e=="string"),e}var H0e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function VH(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function mEe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function EEe(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 CEe(t,e){LC(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&&vC(t,fEe,i)||i.position===t.length-4&&vC(t,pEe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=IEe(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",mEe(u)||(u=""),h=new hEe([d],c,{type:u})):h=AEe(Buffer.from(d)),LC(s9(A)),LC(typeof h=="string"&&s9(h)||uEe(h)),n.push(lEe(A,h,c))}}function IEe(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=Rd(a=>a!==10&&a!==13&&a!==58,t,e);if(o=LT(o,!0,!0,a=>a===9||a===32),!cEe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Rd(a=>a===32||a===9,t,e),aEe(o)){case"content-disposition":{if(r=s=null,!vC(t,gEe,e)||(e.position+=17,r=o9(t,e),r===null))return"failure";if(vC(t,i9,e)){let a=e.position+i9.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=o9(t,e),s===null))return"failure"}break}case"content-type":{let a=Rd(A=>A!==10&&A!==13,t,e);a=LT(a,!1,!0,A=>A===9||A===32),n=n9(a);break}case"content-transfer-encoding":{let a=Rd(A=>A!==10&&A!==13,t,e);a=LT(a,!1,!0,A=>A===9||A===32),i=n9(a);break}default:Rd(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function o9(t,e){LC(t[e.position-1]===34);let r=Rd(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 Rd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function LT(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 vC(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}a9.exports={multipartFormDataParser:CEe,validateBoundary:EEe}});var Md=E((yot,E9)=>{"use strict";var Jf=De(),{ReadableStreamFrom:BEe,isBlobLike:c9,isReadableStreamLike:yEe,readableStreamClose:QEe,createDeferredPromise:bEe,fullyReadBody:wEe,extractMimeType:NEe,utf8DecodeBytes:d9}=_s(),{FormData:u9}=Vf(),{kState:Fd}=bA(),{webidl:SEe}=Tr(),{Blob:TEe}=w("node:buffer"),vT=w("node:assert"),{isErrored:h9,isDisturbed:xEe}=w("node:stream"),{isArrayBuffer:DEe}=w("node:util/types"),{serializeAMimeType:REe}=cs(),{multipartFormDataParser:kEe}=A9(),PT;try{let t=w("node:crypto");PT=e=>t.randomInt(0,e)}catch{PT=t=>Math.floor(Math.random(t))}var PC=new TextEncoder;function FEe(){}var g9=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,f9;g9&&(f9=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!xEe(e)&&!h9(e)&&e.cancel("Response object has been garbage collected").catch(FEe)}));function p9(t,e=!1){let r=null;t instanceof ReadableStream?r=t:c9(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?PC.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>QEe(A))},start(){},type:"bytes"}),vT(yEe(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(DEe(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(Jf.isFormDataLike(t)){let A=`----formdata-undici-0${`${PT(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=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=PC.encode(c+`; name="${u(l(I))}"\r
var oCe=Object.create;var Ix=Object.defineProperty;var aCe=Object.getOwnPropertyDescriptor;var ACe=Object.getOwnPropertyNames;var cCe=Object.getPrototypeOf,uCe=Object.prototype.hasOwnProperty;var N=(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 I=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},zi=(t,e)=>{for(var r in e)Ix(t,r,{get:e[r],enumerable:!0})},lCe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ACe(e))!uCe.call(t,n)&&n!==r&&Ix(t,n,{get:()=>e[n],enumerable:!(s=aCe(e,n))||s.enumerable});return t};var we=(t,e,r)=>(r=t!=null?oCe(cCe(t)):{},lCe(e||!t||!t.__esModule?Ix(r,"default",{value:t,enumerable:!0}):r,t));var YG=I(fh=>{"use strict";var jlt=N("net"),mCe=N("tls"),bx=N("http"),_G=N("https"),ECe=N("events"),Xlt=N("assert"),CCe=N("util");fh.httpOverHttp=ICe;fh.httpsOverHttp=BCe;fh.httpOverHttps=yCe;fh.httpsOverHttps=QCe;function ICe(t){var e=new Ja(t);return e.request=bx.request,e}function BCe(t){var e=new Ja(t);return e.request=bx.request,e.createSocket=HG,e.defaultPort=443,e}function yCe(t){var e=new Ja(t);return e.request=_G.request,e}function QCe(t){var e=new Ja(t);return e.request=_G.request,e.createSocket=HG,e.defaultPort=443,e}function Ja(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||bx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=GG(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)})}CCe.inherits(Ja,ECe.EventEmitter);Ja.prototype.addRequest=function(e,r,s,n){var i=this,o=wx({request:e},i.options,GG(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)}})};Ja.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=wx({},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")),oc("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){oc("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){oc("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 oc("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),oc(`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)}};Ja.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 HG(t,e){var r=this;Ja.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=wx({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=mCe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function GG(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function wx(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 oc;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?oc=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)}:oc=function(){};fh.debug=oc});var Nx=I(($lt,qG)=>{qG.exports=YG()});var xt=I((edt,JG)=>{JG.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var et=I((tdt,p9)=>{"use strict";var VG=Symbol.for("undici.error.UND_ERR"),Dt=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[VG]===!0}[VG]=!0},WG=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),Sx=class extends Dt{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[WG]===!0}[WG]=!0},zG=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),Tx=class extends Dt{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[zG]===!0}[zG]=!0},KG=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),xx=class extends Dt{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[KG]===!0}[KG]=!0},jG=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Dx=class extends Dt{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[jG]===!0}[jG]=!0},XG=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),Rx=class extends Dt{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 OBe(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(QBe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function _Be(){return"allowed"}function HBe(){return"success"}function GBe(){return"success"}function YBe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function qBe(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&&yD(t.origin)&&!yD(tm(t))&&(e=null);break;case"same-origin":AB(t,tm(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function wh(t,e){return t}function JBe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:wh(t.domainLookupStartTime,r),domainLookupEndTime:wh(t.domainLookupEndTime,r),connectionStartTime:wh(t.connectionStartTime,r),connectionEndTime:wh(t.connectionEndTime,r),secureConnectionStartTime:wh(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function VBe(t){return wh(TBe.now(),t)}function WBe(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 DY(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function zBe(t){return{referrerPolicy:t.referrerPolicy}}function KBe(t){let e=t.referrerPolicy;Ju(e);let r=null;if(t.referrer==="client"){let a=bY();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=BD(r),n=BD(r,!0);s.toString().length>4096&&(s=n);let i=AB(t,s),o=em(s)&&!em(t.url);switch(e){case"origin":return n??BD(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=tm(t);return AB(s,a)?s:em(s)&&!em(a)?"no-referrer":n}default:return o?"no-referrer":n}}function BD(t,e){return Ju(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 em(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 jBe(t,e){if(aB===void 0)return!0;let r=RY(e);if(r==="no metadata"||r.length===0)return!0;let s=ZBe(r),n=$Be(r,s);for(let i of n){let o=i.algo,a=i.hash,A=aB.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)),eye(A,a))return!0}return!1}var XBe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function RY(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=XBe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();NY.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function ZBe(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 $Be(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 eye(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 tye(t){}function AB(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function rye(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function sye(t){return t.controller.state==="aborted"}function nye(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function iye(t){return RBe[t.toLowerCase()]??t}function oye(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Ju(typeof e=="string"),e}var aye=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function kY(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function vye(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Pye(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 Oye(t,e){uB(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&&lB(t,Uye,i)||i.position===t.length-4&&lB(t,Lye,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=_ye(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",vye(u)||(u=""),h=new Fye([d],c,{type:u})):h=Tye(Buffer.from(d)),uB(qY(A)),uB(typeof h=="string"&&qY(h)||Dye(h)),n.push(Rye(A,h,c))}}function _ye(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=Sh(a=>a!==10&&a!==13&&a!==58,t,e);if(o=xD(o,!0,!0,a=>a===9||a===32),!xye.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Sh(a=>a===32||a===9,t,e),Sye(o)){case"content-disposition":{if(r=s=null,!lB(t,Mye,e)||(e.position+=17,r=WY(t,e),r===null))return"failure";if(lB(t,VY,e)){let a=e.position+VY.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=WY(t,e),s===null))return"failure"}break}case"content-type":{let a=Sh(A=>A!==10&&A!==13,t,e);a=xD(a,!1,!0,A=>A===9||A===32),n=JY(a);break}case"content-transfer-encoding":{let a=Sh(A=>A!==10&&A!==13,t,e);a=xD(a,!1,!0,A=>A===9||A===32),i=JY(a);break}default:Sh(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function WY(t,e){uB(t[e.position-1]===34);let r=Sh(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 Sh(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function xD(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 lB(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}zY.exports={multipartFormDataParser:Oye,validateBoundary:Pye}});var Dh=I((Ndt,iq)=>{"use strict";var nm=Oe(),{ReadableStreamFrom:Hye,isBlobLike:jY,isReadableStreamLike:Gye,readableStreamClose:Yye,createDeferredPromise:qye,fullyReadBody:Jye,extractMimeType:Vye,utf8DecodeBytes:$Y}=ln(),{FormData:XY}=sm(),{kState:xh}=ac(),{webidl:Wye}=Yr(),{Blob:zye}=N("node:buffer"),DD=N("node:assert"),{isErrored:eq,isDisturbed:Kye}=N("node:stream"),{isArrayBuffer:jye}=N("node:util/types"),{serializeAMimeType:Xye}=ks(),{multipartFormDataParser:Zye}=KY(),RD;try{let t=N("node:crypto");RD=e=>t.randomInt(0,e)}catch{RD=t=>Math.floor(Math.random(t))}var dB=new TextEncoder;function $ye(){}var tq=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,rq;tq&&(rq=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Kye(e)&&!eq(e)&&e.cancel("Response object has been garbage collected").catch($ye)}));function sq(t,e=!1){let r=null;t instanceof ReadableStream?r=t:jY(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?dB.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>Yye(A))},start(){},type:"bytes"}),DD(Gye(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(jye(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(nm.isFormDataLike(t)){let A=`----formdata-undici-0${`${RD(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 C=dB.encode(c+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=PC.encode(`${c}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(C),i+=C.byteLength}else{let C=dB.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,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=PC.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(c9(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(Jf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:BEe(t)}if((typeof n=="string"||Jf.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(!h9(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 MEe(t,e=!1){return t instanceof ReadableStream&&(vT(!Jf.isDisturbed(t),"The body has already been consumed."),vT(!t.locked,"The stream is locked.")),p9(t,e)}function UEe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function LEe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function vEe(t){return{blob(){return kd(this,r=>{let s=l9(this);return s===null?s="":s&&(s=REe(s)),new TEe([r],{type:s})},t)},arrayBuffer(){return kd(this,r=>new Uint8Array(r).buffer,t)},text(){return kd(this,d9,t)},json(){return kd(this,OEe,t)},formData(){return kd(this,r=>{let s=l9(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=kEe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new u9;return i[Fd]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new u9;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 kd(this,r=>new Uint8Array(r),t)}}}function PEe(t){Object.assign(t.prototype,vEe(t))}async function kd(t,e,r){if(SEe.brandCheck(t,r),m9(t))throw new TypeError("Body is unusable: Body has already been read");LEe(t[Fd]);let s=bEe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Fd].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await wEe(t[Fd].body,i,n),s.promise)}function m9(t){let e=t[Fd].body;return e!=null&&(e.stream.locked||Jf.isDisturbed(e.stream))}function OEe(t){return JSON.parse(d9(t))}function l9(t){let e=t[Fd].headersList,r=NEe(e);return r==="failure"?null:r}E9.exports={extractBody:p9,safelyExtractBody:MEe,cloneBody:UEe,mixinBody:PEe,streamRegistry:f9,hasFinalizationRegistry:g9,bodyUnusable:m9}});var x9=E((Qot,T9)=>{"use strict";var ue=w("node:assert"),Ce=De(),{channels:C9}=Bd(),OT=IT(),{RequestContentLengthMismatchError:uu,ResponseContentLengthMismatchError:_Ee,RequestAbortedError:w9,HeadersTimeoutError:HEe,HeadersOverflowError:GEe,SocketError:qC,InformationalError:Ud,BodyTimeoutError:YEe,HTTPParserError:qEe,ResponseExceededMaxSizeError:VEe}=qe(),{kUrl:N9,kReset:us,kClient:YT,kParser:Tt,kBlocking:Kf,kRunning:Mr,kPending:JEe,kSize:I9,kWriting:NA,kQueue:Ei,kNoRef:Wf,kKeepAliveDefaultTimeout:WEe,kHostHeader:zEe,kPendingIdx:KEe,kRunningIdx:wn,kError:Nn,kPipelining:GC,kSocket:Ld,kKeepAliveTimeoutValue:VC,kMaxHeadersSize:_T,kKeepAliveMaxTimeout:XEe,kKeepAliveTimeoutThreshold:jEe,kHeadersTimeout:ZEe,kBodyTimeout:$Ee,kStrictContentLength:qT,kMaxRequests:B9,kCounter:eCe,kMaxResponseSize:tCe,kOnError:rCe,kResume:wA,kHTTPContext:S9}=Et(),so=fH(),sCe=Buffer.alloc(0),OC=Buffer[Symbol.species],_C=Ce.addListener,nCe=Ce.removeAllListeners,HT;async function iCe(){let t=process.env.JEST_WORKER_ID?QT():void 0,e;try{e=await WebAssembly.compile(EH())}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)=>{ue(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onStatus(new OC(no.buffer,i,n))||0},wasm_on_message_begin:r=>(ue(nr.ptr===r),nr.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ue(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onHeaderField(new OC(no.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ue(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onHeaderValue(new OC(no.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ue(nr.ptr===r),nr.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ue(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onBody(new OC(no.buffer,i,n))||0},wasm_on_message_complete:r=>(ue(nr.ptr===r),nr.onMessageComplete()||0)}})}var GT=null,VT=iCe();VT.catch();var nr=null,no=null,HC=0,io=null,oCe=0,zf=1,vd=2|zf,YC=4|zf,JT=8|oCe,WT=class{constructor(e,r,{exports:s}){ue(Number.isFinite(e[_T])&&e[_T]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(so.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.header Line truncated
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=dB.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(jY(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(nm.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Hye(t)}if((typeof n=="string"||nm.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(!eq(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 eQe(t,e=!1){return t instanceof ReadableStream&&(DD(!nm.isDisturbed(t),"The body has already been consumed."),DD(!t.locked,"The stream is locked.")),sq(t,e)}function tQe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function rQe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function sQe(t){return{blob(){return Th(this,r=>{let s=ZY(this);return s===null?s="":s&&(s=Xye(s)),new zye([r],{type:s})},t)},arrayBuffer(){return Th(this,r=>new Uint8Array(r).buffer,t)},text(){return Th(this,$Y,t)},json(){return Th(this,iQe,t)},formData(){return Th(this,r=>{let s=ZY(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Zye(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new XY;return i[xh]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new XY;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 Th(this,r=>new Uint8Array(r),t)}}}function nQe(t){Object.assign(t.prototype,sQe(t))}async function Th(t,e,r){if(Wye.brandCheck(t,r),nq(t))throw new TypeError("Body is unusable: Body has already been read");rQe(t[xh]);let s=qye(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[xh].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Jye(t[xh].body,i,n),s.promise)}function nq(t){let e=t[xh].body;return e!=null&&(e.stream.locked||nm.isDisturbed(e.stream))}function iQe(t){return JSON.parse($Y(t))}function ZY(t){let e=t[xh].headersList,r=Vye(e);return r==="failure"?null:r}iq.exports={extractBody:sq,safelyExtractBody:eQe,cloneBody:tQe,mixinBody:nQe,streamRegistry:rq,hasFinalizationRegistry:tq,bodyUnusable:nq}});var Bq=I((Sdt,Iq)=>{"use strict";var ce=N("node:assert"),de=Oe(),{channels:oq}=mh(),kD=hD(),{RequestContentLengthMismatchError:Vu,ResponseContentLengthMismatchError:aq,RequestAbortedError:fq,InvalidArgumentError:oQe,HeadersTimeoutError:aQe,HeadersOverflowError:AQe,SocketError:Rh,InformationalError:kh,BodyTimeoutError:cQe,HTTPParserError:uQe,ResponseExceededMaxSizeError:lQe}=et(),{kUrl:pq,kReset:Fs,kClient:pB,kParser:yt,kBlocking:am,kRunning:lr,kPending:mq,kSize:Aq,kWriting:Ac,kQueue:Ki,kNoRef:im,kKeepAliveDefaultTimeout:dQe,kHostHeader:hQe,kPendingIdx:gQe,kRunningIdx:ei,kError:us,kPipelining:mB,kSocket:Wu,kKeepAliveTimeoutValue:CB,kMaxHeadersSize:FD,kKeepAliveMaxTimeout:fQe,kKeepAliveTimeoutThreshold:pQe,kHeadersTimeout:mQe,kBodyTimeout:EQe,kStrictContentLength:LD,kMaxRequests:cq,kCounter:CQe,kMaxResponseSize:IQe,kOnError:uq,kResume:Xa,kHTTPContext:Eq}=xt(),dn=rY(),lq=Buffer.alloc(0),hB=Buffer[Symbol.species],gB=de.addListener,BQe=de.removeAllListeners,zu=Symbol("kIdleSocketValidation"),Fh=Symbol("kIdleSocketValidationTimeout"),_D=Symbol("kSocketUsed"),MD;async function yQe(){let t=process.env.JEST_WORKER_ID?pD():void 0,e;try{e=await WebAssembly.compile(iY())}catch{e=await WebAssembly.compile(t||pD())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ce(Ht.ptr===r);let i=s-Fo+ko.byteOffset;return Ht.onStatus(new hB(ko.buffer,i,n))||0},wasm_on_message_begin:r=>(ce(Ht.ptr===r),Ht.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ce(Ht.ptr===r);let i=s-Fo+ko.byteOffset;return Ht.onHeaderField(new hB(ko.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ce(Ht.ptr===r);let i=s-Fo+ko.byteOffset;return Ht.onHeaderValue(new hB(ko.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ce(Ht.ptr===r),Ht.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ce(Ht.ptr===r);let i=s-Fo+ko.byteOffset;return Ht.onBody(new hB(ko.buffer,i,n))||0},wasm_on_message_complete:r=>(ce(Ht.ptr===r),Ht.onMessageComplete()||0)}})}var UD=null,vD=yQe();vD.catch();var Ht=null,ko=null,fB=0,Fo=null,QQe=0,om=1,Mh=2|om,EB=4|om,PD=8|QQe,OD=class{constructor(e,r,{exports:s}){ce(Number.isFinite(e[FD])&&e[FD]>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[zEe],i?p+=`connection: upgrade\r
`:p+=t[hQe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[GC]&&!h[us]?p+=`connection: keep-alive\r
`:t[mB]&&!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
`,Array.isArray(c))for(let E=0;E<c.length;E+=2){let m=c[E+0],C=c[E+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)p+=`${m}: ${C[w]}\r
`;else p+=`${m}: ${C}\r
`}return C9.sendHeaders.hasSubscribers&&C9.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Q9(f,null,t,e,h,u,p,l):Ce.isBuffer(A)?Q9(f,A,t,e,h,u,p,l):Ce.isBlobLike(A)?typeof A.stream=="function"?b9(f,A.stream(),t,e,h,u,p,l):dCe(f,A,t,e,h,u,p,l):Ce.isStream(A)?lCe(f,A,t,e,h,u,p,l):Ce.isIterable(A)?b9(f,A,t,e,h,u,p,l):ue(!1),!0}function lCe(t,e,r,s,n,i,o,a){ue(i!==0||r[Mr]===0,"stream body cannot be pipelined");let A=!1,c=new JC({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",h)}),!A){let f=new w9;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ue(n.destroyed||n[NA]&&r[Mr]<=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")?Ce.destroy(e,f):Ce.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 Q9(t,e,r,s,n,i,o,a){try{e?Ce.isBuffer(e)&&(ue(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`}return oq.sendHeaders.hasSubscribers&&oq.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?hq(f,null,t,e,h,u,p,l):de.isBuffer(A)?hq(f,A,t,e,h,u,p,l):de.isBlobLike(A)?typeof A.stream=="function"?gq(f,A.stream(),t,e,h,u,p,l):DQe(f,A,t,e,h,u,p,l):de.isStream(A)?xQe(f,A,t,e,h,u,p,l):de.isIterable(A)?gq(f,A,t,e,h,u,p,l):ce(!1),!0}function xQe(t,e,r,s,n,i,o,a){ce(i!==0||r[lr]===0,"stream body cannot be pipelined");let A=!1,c=new IB({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 fq;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ce(n.destroyed||n[Ac]&&r[lr]<=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 hq(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[us]=!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"):(ue(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[wA]()}catch(A){t(A)}}async function dCe(t,e,r,s,n,i,o,a){ue(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new uu;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[Xa]()}catch(A){t(A)}}async function DQe(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 Vu;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[us]=!0),r[wA]()}catch(A){t(A)}}async function b9(t,e,r,s,n,i,o,a){ue(i!==0||r[Mr]===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)=>{ue(A===null),n[Nn]?h(n[Nn]):A=d});n.on("close",c).on("drain",c);let l=new JC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[Nn])throw n[Nn];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var JC=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[NA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Nn])throw r[Nn];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[qT])throw new uu;process.emitWarning(new uu)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[us]=!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[Xa]()}catch(A){t(A)}}async function gq(t,e,r,s,n,i,o,a){ce(i!==0||r[lr]===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 IB({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 IB=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[Ac]=!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[LD])throw new Vu;process.emitWarning(new Vu)}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[Tt].timeout&&r[Tt].timeoutType===vd&&r[Tt].timeout.refresh&&r[Tt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[NA]=!1,e[Nn])throw e[Nn];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===Mh&&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[Ac]=!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[qT])throw new uu;process.emitWarning(new uu)}e[Tt].timeout&&e[Tt].timeoutType===vd&&e[Tt].timeout.refresh&&e[Tt].timeout.refresh(),s[wA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[NA]=!1,e&&(ue(s[Mr]<=1,"pipeline should only contain this request"),n(e))}};T9.exports=aCe});var v9=E((bot,L9)=>{"use strict";var Sn=w("node:assert"),{pipeline:hCe}=w("node:stream"),Fe=De(),{RequestContentLengthMismatchError:zT,RequestAbortedError:D9,SocketError:Xf,InformationalError:KT}=qe(),{kUrl:WC,kReset:KC,kClient:Pd,kRunning:XC,kPending:gCe,kQueue:SA,kPendingIdx:XT,kRunningIdx:Ci,kError:Bi,kSocket:hr,kStrictContentLength:fCe,kOnError:jT,kMaxConcurrentStreams:U9,kHTTP2Session:Ii,kResume:TA,kSize:pCe,kHTTPContext:mCe}=Et(),Ba=Symbol("open streams"),R9,k9=!1,zC;try{zC=w("node:http2")}catch{zC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:ECe,HTTP2_HEADER_METHOD:CCe,HTTP2_HEADER_PATH:ICe,HTTP2_HEADER_SCHEME:BCe,HTTP2_HEADER_CONTENT_LENGTH:yCe,HTTP2_HEADER_EXPECT:QCe,HTTP2_HEADER_STATUS:bCe}}=zC;function wCe(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 NCe(t,e){t[hr]=e,k9||(k9=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zC.connect(t[WC],{createConnection:()=>e,peerMaxConcurrentStreams:t[U9]});r[Ba]=0,r[Pd]=t,r[hr]=e,Fe.addListener(r,"error",TCe),Fe.addListener(r,"frameError",xCe),Fe.addListener(r,"end",DCe),Fe.addListener(r,"goaway",RCe),Fe.addListener(r,"close",function(){let{[Pd]:n}=this,{[hr]:i}=n,o=this[hr][Bi]||this[Bi]||new Xf("closed",Fe.getSocketInfo(i));if(n[Ii]=null,n.destroyed){Sn(n[gCe]===0);let a=n[SA].splice(n[Ci]);for(let A=0;A<a.length;A++){let c=a[A];Fe.errorRequest(n,c,o)}}}),r.unref(),t[Ii]=r,e[Ii]=r,Fe.addListener(e,"error",function(n){Sn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bi]=n,this[Pd][jT](n)}),Fe.addListener(e,"end",function(){Fe.destroy(this,new Xf("other side closed",Fe.getSocketInfo(this)))}),Fe.addListener(e,"close",function(){let n=this[Bi]||new Xf("closed",Fe.getSocketInfo(this));t[hr]=null,this[Ii]!=null&&this[Ii].destroy(n),t[XT]=t[Ci],Sn(t[XC]===0),t.emit("disconnect",t[WC],[t],n),t[TA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return FCe(t,...n)},resume(){SCe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function SCe(t){let e=t[hr];e?.destroyed===!1&&(t[pCe]===0&&t[U9]===0?(e.unref(),t[Ii].unref()):(e.ref(),t[Ii].ref()))}function TCe(t){Sn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hr][Bi]=t,this[Pd][jT](t)}function xCe(t,e,r){if(r===0){let s=new KT(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[hr][Bi]=s,this[Pd][jT](s)}}function DCe(){let t=new Xf("other side closed",Fe.getSocketInfo(this[hr]));this.destroy(t),Fe.destroy(this[hr],t)}function RCe(t){let e=this[Bi]||new Xf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Fe.getSocketInfo(this)),r=this[Pd];if(r[hr]=null,r[mCe]=null,this[Ii]!=null&&(this[Ii].destroy(e),this[Ii]=null),Fe.destroy(this[hr],e),r[Ci]<r[SA].length){let s=r[SA][r[Ci]];r[SA][r[Ci]++]=null,Fe.errorRequest(r,s,e),r[XT]=r[Ci]}Sn(r[XC]===0),r.emit("disconnect",r[WC],[r],e),r[TA]()}function kCe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function FCe(t,e){let r=t[Ii],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Fe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let T=0;T<c.length;T+=2){let R=c[T+0],M=c[T+1];if(Array.isArray(M))for(let F=0;F<M.length;F++)l[R]?l[R]+=`,${M[F]}`:l[R]=M[F];else l[R]=M}let d,{hostname:h,port:f}=t[WC];l[ECe]=i||`${h}${f?`:${f}`:""}`,l[CCe]=s;let p=T=>{e.aborted||e.completed||(T=T||new D9,Fe.errorRequest(t,e,T),d!=null&&Fe.destroy(d,T),Fe.destroy(u,T),t[SA][t[Ci]++]=null,t[TA]())};try{e.onConnect(p)}catch(T){Fe.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[Ba],t[SA][t[Ci]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Ba],t[SA][t[Ci]++]=null}),d.once("close",()=>{r[Ba]-=1,r[Ba]===0&&r.unref()}),!0;l[ICe]=n,l[BCe]="https";let I=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Fe.bodyLength(u);if(Fe.isFormDataLike(u)){R9??=Md().extractBody;let[T,R]=R9(u);l["content-type"]=R,u=T.stream,m=T.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),kCe(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[fCe])return Fe.errorRequest(t,e,new zT),!1;process.emitWarning(new zT)}m!=null&&(Sn(u,"no body must not have content length"),l[yCe]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[QCe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",b)):(d=r Line truncated
`,this[iIe]=A??3e5,this[nIe]=n??3e5,this[oIe]=C??!0,this[aIe]=T,this[tx]=M,this[DA]=null,this[dIe]=_>-1?_:-1,this[gIe]=at??100,this[Gt]=null,this[yi]=[],this[Qa]=0,this[Qi]=0,this[ep]=xe=>sx(this,xe),this[hIe]=xe=>K9(this,xe)}get pipelining(){return this[eI]}set pipelining(e){this[eI]=e,this[ep](!0)}get[sp](){return this[yi].length-this[Qi]}get[rp](){return this[Qi]-this[Qa]}get[tp](){return this[yi].length-this[Qa]}get[jCe](){return!!this[Gt]&&!this[_d]&&!this[Gt].destroyed}get[ex](){return!!(this[Gt]?.busy(null)||this[tp]>=(z9(this)||1)||this[sp]>0)}[XCe](e){X9(this),this.once("connect",e)}[lIe](e,r){let s=e.origin||this[ao].origin,n=new qCe(s,e,r);return this[yi].push(n),this[du]||(lu.bodyLength(n.body)==null&&lu.isIterable(n.body)?(this[du]=1,queueMicrotask(()=>sx(this))):this[ep](!0)),this[du]&&this[RA]!==2&&this[ex]&&(this[RA]=2),this[RA]<2}async[cIe](){return new Promise(e=>{this[tp]?this[DA]=e:e(null)})}async[uIe](e){return new Promise(r=>{let s=this[yi].splice(this[Qi]);for(let i=0;i<s.length;i++){let o=s[i];lu.errorRequest(this,o,e)}let n=()=>{this[DA]&&(this[DA](),this[DA]=null),r(null)};this[Gt]?(this[Gt].destroy(e,n),this[Gt]=null):queueMicrotask(n),this[ep]()})}},mIe=$C();function K9(t,e){if(t[rp]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ya(t[Qi]===t[Qa]);let r=t[yi].splice(t[Qa]);for(let s=0;s<r.length;s++){let n=r[s];lu.errorRequest(t,n,e)}ya(t[tp]===0)}}async function X9(t){ya(!t[_d]),ya(!t[Gt]);let{host:e,hostname:r,protocol:s,port:n}=t[ao];if(r[0]==="["){let i=r.indexOf("]");ya(i!==-1);let o=r.substring(1,i);ya(W9.isIP(o)),r=o}t[_d]=!0,Od.beforeConnect.hasSubscribers&&Od.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[xA],localAddress:t[$f]},connector:t[Zf]});try{let i=await new Promise((o,a)=>{t[Zf]({host:e,hostname:r,protocol:s,port:n,servername:t[xA],localAddress:t[$f]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){lu.destroy(i.on("error",V9),new WCe);return}ya(i);try{t[Gt]=i.alpnProtocol==="h2"?await pIe(t,i):await fIe(t,i)}catch(o){throw i.destroy().on("error",V9),o}t[_d]=!1,i[AIe]=0,i[tx]=t[tx],i[KCe]=t,i[$Ce]=null,Od.connected.hasSubscribers&&Od.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[xA],localAddress:t[$f]},connector:t[Zf],socket:i}),t.emit("connect",t[ao],[t])}catch(i){if(t.destroyed)return;if(t[_d]=!1,Od.connectError.hasSubscribers&&Od.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[xA],localAddress:t[$f]},connector:t[Zf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ya(t[rp]===0);t[sp]>0&&t[yi][t[Qi]].servername===t[xA];){let o=t[yi][t[Qi]++];lu.errorRequest(t,o,i)}else K9(t,i);t.emit("connectionError",t[ao],[t],i)}t[ep]()}function J9(t){t[RA]=0,t.emit("drain",t[ao],[t])}function sx(t,e){t[du]!==2&&(t[du]=2,EIe(t,e),t[du]=0,t[Qa]>256&&(t[yi].splice(0,t[Qa]),t[Qi]-=t[Qa],t[Qa]=0))}function EIe(t,e){for(;;){if(t.destroyed){ya(t[sp]===0);return}if(t[DA]&&!t[tp]){t[DA](),t[DA]=null;return}if(t[Gt]&&t[Gt].resume(),t[ex])t[RA]=2;else if(t[RA]===2){e?(t[RA]=1,queueMicrotask(()=>J9(t))):J9(t);continue}if(t[sp]===0||t[rp]>=(z9(t)||1))return;let r=t[yi][t[Qi]];if(t[ao].protocol==="https:"&&t[xA]!==r.servername){if(t[rp]>0)return;t[xA]=r.servername,t[Gt]?.destroy(new JCe("servername changed"),()=>{t[Gt]=null,sx(t)})}if(t[_d])return;if(!t[Gt]){X9(t);return}if(t[Gt].destroyed||t[Gt].busy(r))return;!r.aborted&&t[Gt].write(r)?t[Qi]++:t[yi].splice(t[Qi],1)}}j9.exports=rx});var nx=E((xot,Z9)=>{"use strict";var tI=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)}};Z9.exports=class{constructor(){this.head=this.tail=new tI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tI),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var eG=E((Dot,$9)=>{var{kFree:CIe,kConnected:IIe,kPending:BIe,kQueued:yIe,kRunning:QIe,kSize:bIe}=Et(),hu=Symbol("pool"),ix=class{constructor(e){this[hu]=e}get connected(){return this[hu][IIe]}get free(){return this[hu][CIe]}get pending(){return this[hu][BIe]}get queued(){return this[hu][yIe]}get running(){return this[hu][QIe]}get size(){return this[hu][bIe]}};$9.exports=ix});var lx=E((Rot,uG)=>{"use strict";var wIe=wd(),NIe=nx(),{kConnected:ox,kSize:tG,kRunning:rG,kPending:sG,kQueued:np,kBusy:SIe,kFree:TIe,kUrl:xIe,kClose:DIe,kDestroy:RIe,kDispatch:kIe}=Et(),FIe=eG(),ls=Symbol("clients"),Jr=Symbol("needDrain"),ip=Symbol("queue"),ax=Symbol("closed resolve"),Ax=Symbol("onDrain"),nG=Symbol("onConnect"),iG=Symbol("onDisconnect"),oG=Symbol("onConnectionError"),cx=Symbol(" Line truncated
`,"latin1"),r!==null&&n!==r){if(s[LD])throw new Vu;process.emitWarning(new Vu)}e[yt].timeout&&e[yt].timeoutType===Mh&&e[yt].timeout.refresh&&e[yt].timeout.refresh(),s[Xa]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Ac]=!1,e&&(ce(s[lr]<=1,"pipeline should only contain this request"),n(e))}};Iq.exports=bQe});var xq=I((Tdt,Tq)=>{"use strict";var ti=N("node:assert"),{pipeline:RQe}=N("node:stream"),qe=Oe(),{RequestContentLengthMismatchError:HD,RequestAbortedError:yq,SocketError:Am,InformationalError:GD}=et(),{kUrl:BB,kReset:QB,kClient:Uh,kRunning:bB,kPending:kQe,kQueue:cc,kPendingIdx:YD,kRunningIdx:ji,kError:Zi,kSocket:Tr,kStrictContentLength:FQe,kOnError:qD,kMaxConcurrentStreams:Sq,kHTTP2Session:Xi,kResume:uc,kSize:MQe,kHTTPContext:UQe}=xt(),Za=Symbol("open streams"),Qq,bq=!1,yB;try{yB=N("node:http2")}catch{yB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:LQe,HTTP2_HEADER_METHOD:vQe,HTTP2_HEADER_PATH:PQe,HTTP2_HEADER_SCHEME:OQe,HTTP2_HEADER_CONTENT_LENGTH:_Qe,HTTP2_HEADER_EXPECT:HQe,HTTP2_HEADER_STATUS:GQe}}=yB;function YQe(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 qQe(t,e){t[Tr]=e,bq||(bq=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=yB.connect(t[BB],{createConnection:()=>e,peerMaxConcurrentStreams:t[Sq]});r[Za]=0,r[Uh]=t,r[Tr]=e,qe.addListener(r,"error",VQe),qe.addListener(r,"frameError",WQe),qe.addListener(r,"end",zQe),qe.addListener(r,"goaway",KQe),qe.addListener(r,"close",function(){let{[Uh]:n}=this,{[Tr]:i}=n,o=this[Tr][Zi]||this[Zi]||new Am("closed",qe.getSocketInfo(i));if(n[Xi]=null,n.destroyed){ti(n[kQe]===0);let a=n[cc].splice(n[ji]);for(let A=0;A<a.length;A++){let c=a[A];qe.errorRequest(n,c,o)}}}),r.unref(),t[Xi]=r,e[Xi]=r,qe.addListener(e,"error",function(n){ti(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Zi]=n,this[Uh][qD](n)}),qe.addListener(e,"end",function(){qe.destroy(this,new Am("other side closed",qe.getSocketInfo(this)))}),qe.addListener(e,"close",function(){let n=this[Zi]||new Am("closed",qe.getSocketInfo(this));t[Tr]=null,this[Xi]!=null&&this[Xi].destroy(n),t[YD]=t[ji],ti(t[bB]===0),t.emit("disconnect",t[BB],[t],n),t[uc]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return XQe(t,...n)},resume(){JQe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function JQe(t){let e=t[Tr];e?.destroyed===!1&&(t[MQe]===0&&t[Sq]===0?(e.unref(),t[Xi].unref()):(e.ref(),t[Xi].ref()))}function VQe(t){ti(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Tr][Zi]=t,this[Uh][qD](t)}function WQe(t,e,r){if(r===0){let s=new GD(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Tr][Zi]=s,this[Uh][qD](s)}}function zQe(){let t=new Am("other side closed",qe.getSocketInfo(this[Tr]));this.destroy(t),qe.destroy(this[Tr],t)}function KQe(t){let e=this[Zi]||new Am(`HTTP/2: "GOAWAY" frame received with code ${t}`,qe.getSocketInfo(this)),r=this[Uh];if(r[Tr]=null,r[UQe]=null,this[Xi]!=null&&(this[Xi].destroy(e),this[Xi]=null),qe.destroy(this[Tr],e),r[ji]<r[cc].length){let s=r[cc][r[ji]];r[cc][r[ji]++]=null,qe.errorRequest(r,s,e),r[YD]=r[ji]}ti(r[bB]===0),r.emit("disconnect",r[BB],[r],e),r[uc]()}function jQe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function XQe(t,e){let r=t[Xi],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return qe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let T=0;T<c.length;T+=2){let k=c[T+0],M=c[T+1];if(Array.isArray(M))for(let q=0;q<M.length;q++)l[k]?l[k]+=`,${M[q]}`:l[k]=M[q];else l[k]=M}let d,{hostname:h,port:f}=t[BB];l[LQe]=i||`${h}${f?`:${f}`:""}`,l[vQe]=s;let p=T=>{e.aborted||e.completed||(T=T||new yq,qe.errorRequest(t,e,T),d!=null&&qe.destroy(d,T),qe.destroy(u,T),t[cc][t[ji]++]=null,t[uc]())};try{e.onConnect(p)}catch(T){qe.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[Za],t[cc][t[ji]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Za],t[cc][t[ji]++]=null}),d.once("close",()=>{r[Za]-=1,r[Za]===0&&r.unref()}),!0;l[PQe]=n,l[OQe]="https";let E=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=qe.bodyLength(u);if(qe.isFormDataLike(u)){Qq??=Dh().extractBody;let[T,k]=Qq(u);l["content-type"]=k,u=T.stream,m=T.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),jQe(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[FQe])return qe.errorRequest(t,e,new HD),!1;process.emitWarning(new HD)}m!=null&&(ti(u,"no body must not have content length"),l[_Qe]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[HQe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",w)):(d=r Line truncated
`,this[Qbe]=A??3e5,this[ybe]=n??3e5,this[bbe]=C??!0,this[wbe]=T,this[zD]=M,this[dc]=null,this[Dbe]=v>-1?v:-1,this[kbe]=Re??100,this[tr]=null,this[$i]=[],this[eA]=0,this[eo]=0,this[dm]=ke=>jD(this,ke),this[Rbe]=ke=>Hq(this,ke)}get pipelining(){return this[TB]}set pipelining(e){this[TB]=e,this[dm](!0)}get[fm](){return this[$i].length-this[eo]}get[gm](){return this[eo]-this[eA]}get[hm](){return this[$i].length-this[eA]}get[fbe](){return!!this[tr]&&!this[vh]&&!this[tr].destroyed}get[WD](){return!!(this[tr]?.busy(null)||this[hm]>=(_q(this)||1)||this[fm]>0)}[gbe](e){Gq(this),this.once("connect",e)}[xbe](e,r){let s=e.origin||this[Uo].origin,n=new Abe(s,e,r);return this[$i].push(n),this[ju]||(Ku.bodyLength(n.body)==null&&Ku.isIterable(n.body)?(this[ju]=1,queueMicrotask(()=>jD(this))):this[dm](!0)),this[ju]&&this[hc]!==2&&this[WD]&&(this[hc]=2),this[hc]<2}async[Sbe](){return new Promise(e=>{this[hm]?this[dc]=e:e(null)})}async[Tbe](e){return new Promise(r=>{let s=this[$i].splice(this[eo]);for(let i=0;i<s.length;i++){let o=s[i];Ku.errorRequest(this,o,e)}let n=()=>{this[dc]&&(this[dc](),this[dc]=null),r(null)};this[tr]?(this[tr].destroy(e,n),this[tr]=null):queueMicrotask(n),this[dm]()})}},Ube=SB();function Hq(t,e){if(t[gm]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){$a(t[eo]===t[eA]);let r=t[$i].splice(t[eA]);for(let s=0;s<r.length;s++){let n=r[s];Ku.errorRequest(t,n,e)}$a(t[hm]===0)}}async function Gq(t){$a(!t[vh]),$a(!t[tr]);let{host:e,hostname:r,protocol:s,port:n}=t[Uo];if(r[0]==="["){let i=r.indexOf("]");$a(i!==-1);let o=r.substring(1,i);$a(Oq.isIP(o)),r=o}t[vh]=!0,Lh.beforeConnect.hasSubscribers&&Lh.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[tr]?.version,servername:t[lc],localAddress:t[lm]},connector:t[um]});try{let i=await new Promise((o,a)=>{t[um]({host:e,hostname:r,protocol:s,port:n,servername:t[lc],localAddress:t[lm]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Ku.destroy(i.on("error",vq),new lbe);return}$a(i);try{t[tr]=i.alpnProtocol==="h2"?await Mbe(t,i):await Fbe(t,i)}catch(o){throw i.destroy().on("error",vq),o}t[vh]=!1,i[Nbe]=0,i[zD]=t[zD],i[hbe]=t,i[mbe]=null,Lh.connected.hasSubscribers&&Lh.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[tr]?.version,servername:t[lc],localAddress:t[lm]},connector:t[um],socket:i}),t.emit("connect",t[Uo],[t])}catch(i){if(t.destroyed)return;if(t[vh]=!1,Lh.connectError.hasSubscribers&&Lh.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[tr]?.version,servername:t[lc],localAddress:t[lm]},connector:t[um],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for($a(t[gm]===0);t[fm]>0&&t[$i][t[eo]].servername===t[lc];){let o=t[$i][t[eo]++];Ku.errorRequest(t,o,i)}else Hq(t,i);t.emit("connectionError",t[Uo],[t],i)}t[dm]()}function Pq(t){t[hc]=0,t.emit("drain",t[Uo],[t])}function jD(t,e){t[ju]!==2&&(t[ju]=2,Lbe(t,e),t[ju]=0,t[eA]>256&&(t[$i].splice(0,t[eA]),t[eo]-=t[eA],t[eA]=0))}function Lbe(t,e){for(;;){if(t.destroyed){$a(t[fm]===0);return}if(t[dc]&&!t[hm]){t[dc](),t[dc]=null;return}if(t[tr]&&t[tr].resume(),t[WD])t[hc]=2;else if(t[hc]===2){e?(t[hc]=1,queueMicrotask(()=>Pq(t))):Pq(t);continue}if(t[fm]===0||t[gm]>=(_q(t)||1))return;let r=t[$i][t[eo]];if(t[Uo].protocol==="https:"&&t[lc]!==r.servername){if(t[gm]>0)return;t[lc]=r.servername,t[tr]?.destroy(new ube("servername changed"),()=>{t[tr]=null,jD(t)})}if(t[vh])return;if(!t[tr]){Gq(t);return}if(t[tr].destroyed||t[tr].busy(r))return;!r.aborted&&t[tr].write(r)?t[eo]++:t[$i].splice(t[eo],1)}}Yq.exports=KD});var XD=I((Fdt,qq)=>{"use strict";var xB=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)}};qq.exports=class{constructor(){this.head=this.tail=new xB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new xB),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Vq=I((Mdt,Jq)=>{var{kFree:vbe,kConnected:Pbe,kPending:Obe,kQueued:_be,kRunning:Hbe,kSize:Gbe}=xt(),Xu=Symbol("pool"),ZD=class{constructor(e){this[Xu]=e}get connected(){return this[Xu][Pbe]}get free(){return this[Xu][vbe]}get pending(){return this[Xu][Obe]}get queued(){return this[Xu][_be]}get running(){return this[Xu][Hbe]}get size(){return this[Xu][Gbe]}};Jq.exports=ZD});var n2=I((Udt,rJ)=>{"use strict";var Ybe=Bh(),qbe=XD(),{kConnected:$D,kSize:Wq,kRunning:zq,kPending:Kq,kQueued:pm,kBusy:Jbe,kFree:Vbe,kUrl:Wbe,kClose:zbe,kDestroy:Kbe,kDispatch:jbe}=xt(),Xbe=Vq(),Ms=Symbol("clients"),ls=Symbol("needDrain"),mm=Symbol("queue"),e2=Symbol("closed resolve"),t2=Symbol("onDrain"),jq=Symbol("onConnect"),Xq=Symbol("onDisconnect"),Zq=Symbol("onConnectionError"),r2=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};pq.exports=l2});var CI=E((iat,Bq)=>{"use strict";var Eq=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:iQe}=qe(),oQe=Yd();Iq()===void 0&&Cq(new oQe);function Cq(t){if(!t||typeof t.dispatch!="function")throw new iQe("Argument agent must implement Agent");Object.defineProperty(globalThis,Eq,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Iq(){return globalThis[Eq]}Bq.exports={setGlobalDispatcher:Cq,getGlobalDispatcher:Iq}});var II=E((aat,yq)=>{"use strict";yq.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 bq=E((Aat,Qq)=>{"use strict";var aQe=ZC();Qq.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 aQe(r,o,n,i);return r(a,A)}}});var Nq=E((cat,wq)=>{"use strict";var AQe=cI();wq.exports=t=>e=>function(s,n){return e(s,new AQe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var Tq=E((uat,Sq)=>{"use strict";var cQe=De(),{InvalidArgumentError:uQe,RequestAbortedError:lQe}=qe(),dQe=II(),d2=class extends dQe{#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new uQe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let o=cQe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new lQe(`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.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function hQe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new d2({maxSize:i},n);return e(s,o)}}Sq.exports=hQe});var Rq=E((lat,Dq)=>{"use strict";var{isIP:gQe}=w("node:net"),{lookup:fQe}=w("node:dns"),pQe=II(),{InvalidArgumentError:$d,InformationalError:mQe}=qe(),xq=Math.pow(2,31)-1,h2=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.#n}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 mQe("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){fQe(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())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===xq?(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===xq?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 g2(this,e,r)}},g2=class extends pQe{#e=null;#t=null;#s=null;#r=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=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.#n,this.#t,(r,s)=>{if(r)return this.#r.onError(r);le Line truncated
${i}`;break;case"retry":u7(i)&&(r[n]=i);break;case"id":l7(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&u7(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&l7(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}}};d7.exports={EventSourceStream:$2}});var B7=E((Gat,I7)=>{"use strict";var{pipeline:SNe}=w("node:stream"),{fetching:TNe}=Ep(),{makeRequest:xNe}=rh(),{webidl:Ta}=Tr(),{EventSourceStream:DNe}=h7(),{parseMIMEType:RNe}=cs(),{createFastMessageEvent:kNe}=Ah(),{isNetworkError:g7}=pp(),{delay:FNe}=j2(),{kEnumerableProperty:Tu}=De(),{environmentSettingsObject:f7}=_s(),p7=!1,m7=3e3,Rp=0,E7=1,kp=2,MNe="anonymous",UNe="use-credentials",hh=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Rp;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Ta.util.markAsUncloneable(this);let s="EventSource constructor";Ta.argumentLengthCheck(arguments,1,s),p7||(p7=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ta.converters.USVString(e,s,"url"),r=Ta.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:m7};let n=f7,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=MNe;r.withCredentials&&(o=UNe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=f7.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=xNe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===kp)return;this.#r=Rp;let e={request:this.#n,dispatcher:this.#a},r=s=>{g7(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(g7(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?RNe(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=E7,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new DNe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(kNe(A.type,A.options))}});SNe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=TNe(e)}async#c(){this.#r!==kp&&(this.#r=Rp,this.dispatchEvent(new Event("error")),await FNe(this.#o.reconnectionTime),this.#r===Rp&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ta.brandCheck(this,t),this.#r!==kp&&(this.#r=kp,this.#i.abort(),this.#n=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}},C7={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Rp,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:E7,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:kp,writable:!1}};Object.defineProperties(hh,C7);Object.defineProperties(hh.prototype,C7);Object.defineProperties(hh.prototype,{close:Tu,onerror:Tu,onmessage:Tu,onopen:Tu,readyState:Tu,url:Tu,withCredentials:Tu});Ta.converters.EventSourceInitDict=Ta.dictionaryConverter([{key:"withCredentials",converter:Ta.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ta.converters.any}]);I7.exports={EventSource:hh,defaultReconnectionTime:m7}});var AB=E((Yat,de)=>{"use strict";var LNe=Hd(),y7=Lf(),vNe=Gd(),PNe=CG(),ONe=Yd(),_Ne=bx(),HNe=YG(),GNe=KG(),Q7=qe(),aB=De(),{InvalidArgumentError:oB}=Q7,gh=UY(),YNe=Pf(),qNe=i2(),VNe=mq(),JNe=A2(),WNe=Jx(),zNe=cI(),{getGlobalDispatcher:b7,setGlobalDispatcher:KNe}=CI(),XNe=II(),jNe=ZC(),ZNe=$C();Object.assign(y7.prototype,gh);de.exports.Dispatcher=y7;de.exports.Client=LNe;de.exports.Pool=vNe;de.exports.BalancedPool=PNe;de.exports.Agent=ONe;de.exports.ProxyAgent=_Ne;de.exports.EnvHttpProxyAgent=HNe;de.exports.RetryAgent=GNe;de.exports.RetryHandle Line truncated
%s`,R,R,C,s);var M=C.type==="*"?qD:C.type==="?"?YD:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+M+"\\("+R}f(),i&&(s+="\\\\");var F=!1;switch(s.charAt(0)){case"[":case".":case"(":F=!0}for(var _=a.length-1;_>-1;_--){var H=a[_],Ye=s.slice(0,H.reStart),at=s.slice(H.reStart,H.reEnd-8),Be=s.slice(H.reEnd-8,H.reEnd),xe=s.slice(H.reEnd);Be+=xe;var Ue=Ye.split("(").length-1,_t=xe;for(p=0;p<Ue;p++)_t=_t.replace(/\)[+*?]?/,"");xe=_t;var Qn="";xe===""&&e!==TB&&(Qn="$");var nu=Ye+at+xe+Qn+Be;s=nu}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=d+s),e===TB)return[s,n];if(!n)return vxe(t);var iu=r.nocase?"i":"";try{var wS=new RegExp("^"+s+"$",iu)}catch{return new RegExp("$.")}return wS._glob=t,wS._src=s,wS}js.makeRe=function(t,e){return new er(t,e||{}).makeRe()};er.prototype.makeRe=Lxe;function Lxe(){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?qD:e.dot?Txe:xxe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Pu?r:typeof o=="string"?Pxe(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}js.match=function(t,e,r){r=r||{};var s=new er(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};er.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;Yp.sep!=="/"&&(e=e.split(Yp.sep).join("/")),e=e.split(dz),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};er.prototype.matchOne=function(t,e,r){return e.indexOf(Pu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};er.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Pu){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Pu){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 h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,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],T=0;T<c.length;T++){var R=c[T];R===Pu?(b.push(C),m=[[],0],I.push(m)):(m[0].push(R),C++)}for(var M=I.length-1,F=t.length-d,_=0;_<I.length;_++)I[_][1]=F-(b[M--]+I[_][0].length);return!!this._matchGlobStarBodySections(t,I,s,0,r,0,!!d)};er.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 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};er.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===Pu)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 vxe(t){return t.replace(/\\(.)/g,"$1")}function Pxe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Qh=E((Vct,Cz)=>{"use strict";var Jxe="2.0.0",Wxe=Number.MAX_SAFE_INTEGER||9007199254740991,zxe=16,Kxe=250,Xxe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Cz.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:zxe,MAX_SAFE_BUILD_LENGTH:Kxe,MAX_SAFE_INTEGER:Wxe,RELEASE_TYPES:Xxe,SEMVER_SPEC_VERSION:Jxe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Wp=E((Jct,Iz)=>{"use strict";var jxe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Iz.exports=jxe});var bh=E((go,Bz)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:JD,MAX_SAFE_BUILD_LENGTH:Zxe,MAX_LENGTH:$xe}=Qh(),e2e=Wp();go=Bz.exports={};var t2e=go.re=[],r2e=go.safeRe=[],z=go.src=[],s2e=go.safeSrc=[],K=go.t={},n2e=0,WD="[a-zA-Z0-9-]",i2e=[["\\s",1],["\\d",$xe],[WD,Zxe]],o2e=t=>{for(let[e,r]of i2e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`.trim())}};c7.exports=nR});var WB=I((cht,g7)=>{"use strict";var l7=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:QNe}=et(),bNe=_h();h7()===void 0&&d7(new bNe);function d7(t){if(!t||typeof t.dispatch!="function")throw new QNe("Argument agent must implement Agent");Object.defineProperty(globalThis,l7,{value:t,writable:!0,enumerable:!1,configurable:!1})}function h7(){return globalThis[l7]}g7.exports={setGlobalDispatcher:d7,getGlobalDispatcher:h7}});var zB=I((lht,f7)=>{"use strict";f7.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 m7=I((dht,p7)=>{"use strict";var wNe=NB();p7.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 wNe(r,o,n,i);return r(a,A)}}});var C7=I((hht,E7)=>{"use strict";var NNe=vB();E7.exports=t=>e=>function(s,n){return e(s,new NNe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var B7=I((ght,I7)=>{"use strict";var SNe=Oe(),{InvalidArgumentError:TNe,RequestAbortedError:xNe}=et(),DNe=zB(),iR=class extends DNe{#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 TNe("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=SNe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new xNe(`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 RNe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new iR({maxSize:i},n);return e(s,o)}}I7.exports=RNe});var b7=I((fht,Q7)=>{"use strict";var{isIP:kNe}=N("node:net"),{lookup:FNe}=N("node:dns"),MNe=zB(),{InvalidArgumentError:Kh,InformationalError:UNe}=et(),y7=Math.pow(2,31)-1,oR=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 UNe("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){FNe(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===y7?(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===y7?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 aR(this,e,r)}},aR=class extends MNe{#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(My(e,n,zDe)){KDe(e,i)&&(r.retry=e.toString("utf8",i));return}if(My(e,n,WDe)){jDe(e,i)&&(r.id=e.toString("utf8",i));return}if(My(e,n,VDe)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&HDe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&GDe(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===cg[0]||(this.checkBOM=!1),!0):s===void 0?e===cg[0]&&r===cg[1]?!0:(this.checkBOM=!1,!1):(e===cg[0]&&r===cg[1]&&s===cg[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};rK.exports={EventSourceStream:jR}});var lK=I((Vht,uK)=>{"use strict";var{pipeline:XDe}=N("node:stream"),{fetching:ZDe}=Dm(),{makeRequest:$De}=Zh(),{webidl:nA}=Yr(),{EventSourceStream:e2e}=sK(),{parseMIMEType:t2e}=ks(),{createFastMessageEvent:r2e}=ng(),{isNetworkError:nK}=Tm(),{delay:s2e}=zR(),{kEnumerableProperty:hl}=Oe(),{environmentSettingsObject:iK}=ln(),oK=!1,aK=3e3,qm=0,AK=1,Jm=2,n2e="anonymous",i2e="use-credentials",ug=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=qm;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),nA.util.markAsUncloneable(this);let s="EventSource constructor";nA.argumentLengthCheck(arguments,1,s),oK||(oK=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=nA.converters.USVString(e,s,"url"),r=nA.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:aK};let n=iK,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=n2e;r.withCredentials&&(o=i2e,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=iK.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=$De(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===Jm)return;this.#r=qm;let e={request:this.#i,dispatcher:this.#a},r=s=>{nK(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(nK(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?t2e(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=AK,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new e2e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(r2e(A.type,A.options))}});XDe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=ZDe(e)}async#c(){this.#r!==Jm&&(this.#r=qm,this.dispatchEvent(new Event("error") Line truncated
%s`,k,k,C,s);var M=C.type==="*"?qk:C.type==="?"?Yk:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+M+"\\("+k}f(),i&&(s+="\\\\");var q=!1;switch(s.charAt(0)){case"[":case".":case"(":q=!0}for(var v=a.length-1;v>-1;v--){var O=a[v],ye=s.slice(0,O.reStart),Re=s.slice(O.reStart,O.reEnd-8),Ce=s.slice(O.reEnd-8,O.reEnd),me=s.slice(O.reEnd);Ce+=me;var ke=ye.split("(").length-1,Lt=me;for(p=0;p<ke;p++)Lt=Lt.replace(/\)[+*?]?/,"");me=Lt;var _t="";me===""&&e!==sQ&&(_t="$");var Vi=ye+Re+me+_t+Ce;s=Vi}if(s!==""&&n&&(s="(?=.)"+s),q&&(s=d+s),e===sQ)return[s,n];if(!n)return iFe(t);var Wi=r.nocase?"i":"";try{var Pp=new RegExp("^"+s+"$",Wi)}catch{return new RegExp("$.")}return Pp._glob=t,Pp._src=s,Pp}yn.makeRe=function(t,e){return new gr(t,e||{}).makeRe()};gr.prototype.makeRe=nFe;function nFe(){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?qk:e.dot?jke:Xke,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Bl?r:typeof o=="string"?oFe(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}yn.match=function(t,e,r){r=r||{};var s=new gr(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};gr.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;sE.sep!=="/"&&(e=e.split(sE.sep).join("/")),e=e.split(iX),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};gr.prototype.matchOne=function(t,e,r){return e.indexOf(Bl)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};gr.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Bl){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Bl){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 h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,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 E=[[[],0]],m=E[0],C=0,w=[0],T=0;T<c.length;T++){var k=c[T];k===Bl?(w.push(C),m=[[],0],E.push(m)):(m[0].push(k),C++)}for(var M=E.length-1,q=t.length-d,v=0;v<E.length;v++)E[v][1]=q-(w[M--]+E[v][0].length);return!!this._matchGlobStarBodySections(t,E,s,0,r,0,!!d)};gr.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 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};gr.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===Bl)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 iFe(t){return t.replace(/\\(.)/g,"$1")}function oFe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Cg=I((jft,dX)=>{"use strict";var gFe="2.0.0",fFe=Number.MAX_SAFE_INTEGER||9007199254740991,pFe=16,mFe=250,EFe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];dX.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:pFe,MAX_SAFE_BUILD_LENGTH:mFe,MAX_SAFE_INTEGER:fFe,RELEASE_TYPES:EFe,SEMVER_SPEC_VERSION:gFe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var aE=I((Xft,hX)=>{"use strict";var CFe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};hX.exports=CFe});var Ig=I((Ho,gX)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Vk,MAX_SAFE_BUILD_LENGTH:IFe,MAX_LENGTH:BFe}=Cg(),yFe=aE();Ho=gX.exports={};var QFe=Ho.re=[],bFe=Ho.safeRe=[],X=Ho.src=[],wFe=Ho.safeSrc=[],Z=Ho.t={},NFe=0,Wk="[a-zA-Z0-9-]",SFe=[["\\s",1],["\\d",BFe],[Wk,IFe]],TFe=t=>{for(let[e,r]of SFe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+i),t.push(n+"m+"+hy.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Jke()+e+" "+t[0]}function Jke(){return fr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Wke(...t){return process.stderr.write(dy.formatWithOptions(fr.inspectOpts,...t)+`
`)}function zke(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Kke(){return process.env.DEBUG}function Xke(t){t.inspectOpts={};let e=Object.keys(fr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=fr.inspectOpts[e[r]]}hy.exports=LR()(fr);var{formatters:XX}=hy.exports;XX.o=function(t){return this.inspectOpts.colors=this.useColors,dy.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};XX.O=function(t){return this.inspectOpts.colors=this.useColors,dy.inspect(t,this.inspectOpts)}});var gy=E((ydt,OR)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?OR.exports=qX():OR.exports=jX()});var ej=E(Es=>{"use strict";var jke=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]})),Zke=Es&&Es.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZX=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)&&jke(e,t,r);return Zke(e,t),e};Object.defineProperty(Es,"__esModule",{value:!0});Es.req=Es.json=Es.toBuffer=void 0;var $ke=ZX(w("http")),eFe=ZX(w("https"));async function $X(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Es.toBuffer=$X;async function tFe(t){let r=(await $X(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Es.json=tFe;function rFe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?eFe:$ke).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Es.req=rFe});var HR=E(en=>{"use strict";var rj=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]})),sFe=en&&en.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sj=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)&&rj(e,t,r);return sFe(e,t),e},nFe=en&&en.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&rj(e,t,r)};Object.defineProperty(en,"__esModule",{value:!0});en.Agent=void 0;var iFe=sj(w("net")),tj=sj(w("http")),oFe=w("https");nFe(ej(),en);var mo=Symbol("AgentBaseInternalState"),_R=class extends tj.Agent{constructor(e){super(e),this[mo]={}}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 iFe.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)?oFe.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 tj.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[mo].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[mo].currentSocket;if(this[mo].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[mo].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[mo]&&(this[mo].defaultPort=e)}get protocol(){return this[mo].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[mo]&&(this[mo].protocol=e)}};en.Agent=_R});var nj=E(Fh=>{"use strict";var aFe=Fh&&Fh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fh,"__esModule",{value:!0});Fh.parseProxyResponse=void 0;var AFe=aFe(gy()),fy=(0,AFe.default)("https-proxy-agent:parse-proxy-response");function cFe(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+"+qQ.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=fve()+e+" "+t[0]}function fve(){return Dr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function pve(...t){return process.stderr.write(YQ.formatWithOptions(Dr.inspectOpts,...t)+`
`)}function mve(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Eve(){return process.env.DEBUG}function Cve(t){t.inspectOpts={};let e=Object.keys(Dr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Dr.inspectOpts[e[r]]}qQ.exports=LF()(Dr);var{formatters:Y$}=qQ.exports;Y$.o=function(t){return this.inspectOpts.colors=this.useColors,YQ.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Y$.O=function(t){return this.inspectOpts.colors=this.useColors,YQ.inspect(t,this.inspectOpts)}});var JQ=I((SEt,OF)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?OF.exports=v$():OF.exports=q$()});var W$=I(_s=>{"use strict";var Ive=_s&&_s.__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]})),Bve=_s&&_s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),J$=_s&&_s.__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)&&Ive(e,t,r);return Bve(e,t),e};Object.defineProperty(_s,"__esModule",{value:!0});_s.req=_s.json=_s.toBuffer=void 0;var yve=J$(N("http")),Qve=J$(N("https"));async function V$(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}_s.toBuffer=V$;async function bve(t){let r=(await V$(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}_s.json=bve;function wve(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Qve:yve).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}_s.req=wve});var HF=I(wn=>{"use strict";var K$=wn&&wn.__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]})),Nve=wn&&wn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),j$=wn&&wn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&K$(e,t,r);return Nve(e,t),e},Sve=wn&&wn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&K$(e,t,r)};Object.defineProperty(wn,"__esModule",{value:!0});wn.Agent=void 0;var Tve=j$(N("net")),z$=j$(N("http")),xve=N("https");Sve(W$(),wn);var qo=Symbol("AgentBaseInternalState"),_F=class extends z$.Agent{constructor(e){super(e),this[qo]={}}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 Tve.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)?xve.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 z$.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[qo].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[qo].currentSocket;if(this[qo].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[qo].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[qo]&&(this[qo].defaultPort=e)}get protocol(){return this[qo].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[qo]&&(this[qo].protocol=e)}};wn.Agent=_F});var X$=I(xg=>{"use strict";var Dve=xg&&xg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xg,"__esModule",{value:!0});xg.parseProxyResponse=void 0;var Rve=Dve(JQ()),VQ=(0,Rve.default)("https-proxy-agent:parse-proxy-response");function kve(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(),VQ("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),VQ("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 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(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let b of h){if(!b)continue;let T=b.indexOf(":");if(T===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${b}"`));let R=b.slice(0,T).toLowerCase(),M=b.slice(T+1).trimStart(),F=C[R];typeof F=="string"?C[R]=[F,M]:Array.isArray(F)?F.push(M):C[R]=M}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()})}Fh.parseProxyResponse=cFe});var uj=E(Un=>{"use strict";var uFe=Un&&Un.__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]})),lFe=Un&&Un.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Aj=Un&&Un.__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)&&uFe(e,t,r);return lFe(e,t),e},cj=Un&&Un.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Un,"__esModule",{value:!0});Un.HttpsProxyAgent=void 0;var py=Aj(w("net")),ij=Aj(w("tls")),dFe=cj(w("assert")),hFe=cj(gy()),gFe=HR(),fFe=w("url"),pFe=nj(),am=(0,hFe.default)("https-proxy-agent"),oj=t=>t.servername===void 0&&t.host&&!py.isIP(t.host)?{...t,servername:t.host}:t,my=class extends gFe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new fFe.URL(e):e,this.proxyHeaders=r?.headers??{},am("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?aj(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:"?(am("Creating `tls.Socket`: %o",this.connectOpts),n=ij.connect(oj(this.connectOpts))):(am("Creating `net.Socket`: %o",this.connectOpts),n=py.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=py.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){VQ("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(" "),C={};for(let w of h){if(!w)continue;let T=w.indexOf(":");if(T===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let k=w.slice(0,T).toLowerCase(),M=w.slice(T+1).trimStart(),q=C[k];typeof q=="string"?C[k]=[q,M]:Array.isArray(q)?q.push(M):C[k]=M}VQ("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:E,statusText:m,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}xg.parseProxyResponse=kve});var see=I(ci=>{"use strict";var Fve=ci&&ci.__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]})),Mve=ci&&ci.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tee=ci&&ci.__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)&&Fve(e,t,r);return Mve(e,t),e},ree=ci&&ci.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ci,"__esModule",{value:!0});ci.HttpsProxyAgent=void 0;var WQ=tee(N("net")),Z$=tee(N("tls")),Uve=ree(N("assert")),Lve=ree(JQ()),vve=HF(),Pve=N("url"),Ove=X$(),BE=(0,Lve.default)("https-proxy-agent"),$$=t=>t.servername===void 0&&t.host&&!WQ.isIP(t.host)?{...t,servername:t.host}:t,zQ=class extends vve.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Pve.URL(e):e,this.proxyHeaders=r?.headers??{},BE("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?eee(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:"?(BE("Creating `tls.Socket`: %o",this.connectOpts),n=Z$.connect($$(this.connectOpts))):(BE("Creating `net.Socket`: %o",this.connectOpts),n=WQ.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=WQ.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,pFe.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",mFe),r.secureEndpoint?(am("Upgrading socket connection to TLS"),ij.connect({...aj(oj(r),"host","path","port"),socket:n})):n;n.destroy();let l=new py.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{am("Replaying proxy buffer for failed request"),(0,dFe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};my.protocols=["http","https"];Un.HttpsProxyAgent=my;function mFe(t){t.resume()}function aj(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var hj=E(Ln=>{"use strict";var EFe=Ln&&Ln.__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]})),CFe=Ln&&Ln.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dj=Ln&&Ln.__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)&&EFe(e,t,r);return CFe(e,t),e},IFe=Ln&&Ln.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ln,"__esModule",{value:!0});Ln.HttpProxyAgent=void 0;var BFe=dj(w("net")),yFe=dj(w("tls")),QFe=IFe(gy()),bFe=w("events"),wFe=HR(),lj=w("url"),Mh=(0,QFe.default)("http-proxy-agent"),Ey=class extends wFe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new lj.URL(e):e,this.proxyHeaders=r?.headers??{},Mh("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?NFe(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 lj.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;Mh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Mh("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let A=(0,Ove.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",_ve),r.secureEndpoint?(BE("Upgrading socket connection to TLS"),Z$.connect({...eee($$(r),"host","path","port"),socket:n})):n;n.destroy();let l=new WQ.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{BE("Replaying proxy buffer for failed request"),(0,Uve.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};zQ.protocols=["http","https"];ci.HttpsProxyAgent=zQ;function _ve(t){t.resume()}function eee(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var oee=I(ui=>{"use strict";var Hve=ui&&ui.__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]})),Gve=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iee=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)&&Hve(e,t,r);return Gve(e,t),e},Yve=ui&&ui.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ui,"__esModule",{value:!0});ui.HttpProxyAgent=void 0;var qve=iee(N("net")),Jve=iee(N("tls")),Vve=Yve(JQ()),Wve=N("events"),zve=HF(),nee=N("url"),Dg=(0,Vve.default)("http-proxy-agent"),KQ=class extends zve.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new nee.URL(e):e,this.proxyHeaders=r?.headers??{},Dg("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Kve(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 nee.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;Dg("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Dg("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Mh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Mh("Creating `tls.Socket`: %o",this.connectOpts),i=yFe.connect(this.connectOpts)):(Mh("Creating `net.Socket`: %o",this.connectOpts),i=BFe.connect(this.connectOpts)),await(0,bFe.once)(i,"connect"),i}};Ey.protocols=["http","https"];Ln.HttpProxyAgent=Ey;function NFe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var vj=E(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.state=void 0;Dy.state={instrumenterImplementation:void 0}});var eZ=E(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.state=void 0;Uy.state={operationRequestMap:new WeakMap}});var Mee=E((BSt,M3e)=>{M3e.exports={name:"@actions/cache",version:"6.0.1",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 Lee=E((ySt,Uee)=>{var U3e=Mee();Uee.exports={version:U3e.version}});var hb=E(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.isJsonObject=ng.typeofJsonValue=void 0;function q3e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}ng.typeofJsonValue=q3e;function V3e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}ng.isJsonObject=V3e});var fb=E(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.base64encode=ig.base64decode=void 0;var za="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),gb=[];for(let t=0;t<za.length;t++)gb[za[t].charCodeAt(0)]=t;gb[45]=za.indexOf("+");gb[95]=za.indexOf("/");function J3e(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=gb[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)}ig.base64decode=J3e;function W3e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=za[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=za[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=za[n|s>>6],e+=za[s&63],r=0;break}return r&&(e+=za[n],e+="=",r==1&&(e+="=")),e}ig.base64encode=W3e});var Hee=E(pb=>{"use strict";Object.defineProperty(pb,"__esModule",{value:!0});pb.utf8read=void 0;var kL=t=>String.fromCharCode.apply(String,t);function z3e(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(kL(s)),n=0);return r.length?(n&&r.push(kL(s.slice(0,n))),r.join("")):kL(s.slice(0,n))}pb.utf8read=z3e});var s0=E(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.WireType=Go.mergeBinaryOptions=Go.UnknownFieldHandler=void 0;var K3e;(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])})(K3e=Go.UnknownFieldHandler||(Go.UnknownFieldHandler={}));function X3e(t,e){return Object.assign(Object.assign({},t),e)}Go.mergeBinaryOptions=X3e;var j3e;(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"})(j3e=Go.WireType||(Go.WireType={}))});var Eb=E(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.varint32read=ws.varint32write=ws.int64toString=ws.int64fromString=ws.varint64write=ws.varint64read=void 0;function Z3e(){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")}ws.varint64read=Z3e;function $3e(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)}}ws.varint64write=$3e;var mb=65536*65536;function e8e(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>=mb&&(n=n+(s/mb|0),s=s%mb)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}ws.int64fromString=e8e;function t8e(t,e){if(e>>>0<=2097151)return""+(mb*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)}ws.int64toString=t8e;function r8e(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)}}ws.varint32write=r8e;function s8e(){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}ws.varint32read=s8e});var dc=E(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PbLong=lc.PbULong=lc.detectBi=void 0;var n0=Eb(),it;function Gee(){let t=new DataView(new ArrayBuffer(8));it=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}lc.detectBi=Gee;Gee();function Yee(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var qee=/^-?[0-9]+$/,Ib=4294967296,Cb=2147483648,Bb=c Line truncated
`)}};Vb.RpcError=iv});var av=E(Wb=>{"use strict";Object.defineProperty(Wb,"__esModule",{value:!0});Wb.mergeRpcOptions=void 0;var Ite=Kt();function w4e(t,e){if(!e)return t;let r={};Jb(t,r),Jb(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Ite.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Ite.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Jb(t.meta,r.meta),Jb(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}Wb.mergeRpcOptions=w4e;function Jb(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 cv=E(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.Deferred=pl.DeferredState=void 0;var Vo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vo=pl.DeferredState||(pl.DeferredState={}));var Av=class{constructor(e=!0){this._state=Vo.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!==Vo.PENDING)throw new Error(`cannot resolve ${Vo[this.state].toLowerCase()}`);this._resolve(e),this._state=Vo.RESOLVED}reject(e){if(this.state!==Vo.PENDING)throw new Error(`cannot reject ${Vo[this.state].toLowerCase()}`);this._reject(e),this._state=Vo.REJECTED}resolvePending(e){this._state===Vo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vo.PENDING&&this.reject(e)}};pl.Deferred=Av});var lv=E(zb=>{"use strict";Object.defineProperty(zb,"__esModule",{value:!0});zb.RpcOutputStreamController=void 0;var Bte=cv(),ml=Kt(),uv=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){ml.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){ml.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){ml.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(){ml.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;ml.assert(e,"bad state"),ml.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 Bte.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;ml.assert(s.state==Bte.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};zb.RpcOutputStreamController=uv});var hv=E(dg=>{"use strict";var N4e=dg&&dg.__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(dg,"__esModule",{value:!0});dg.UnaryCall=void 0;var dv=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 N4e(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}})}};dg.UnaryCall=dv});var fv=E(hg=>{"use strict";var S4e=hg&&hg.__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(hg,"__esModule",{value:!0});hg.ServerStreamingCall=void 0;var gv=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),Dg("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Dg("Creating `tls.Socket`: %o",this.connectOpts),i=Jve.connect(this.connectOpts)):(Dg("Creating `net.Socket`: %o",this.connectOpts),i=qve.connect(this.connectOpts)),await(0,Wve.once)(i,"connect"),i}};KQ.protocols=["http","https"];ui.HttpProxyAgent=KQ;function Kve(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Dee=I(ab=>{"use strict";Object.defineProperty(ab,"__esModule",{value:!0});ab.state=void 0;ab.state={instrumenterImplementation:void 0}});var Wee=I(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});db.state=void 0;db.state={operationRequestMap:new WeakMap}});var Fse=I((xFt,D_e)=>{D_e.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 Use=I((DFt,Mse)=>{var R_e=Fse();Mse.exports={version:R_e.version}});var Yw=I(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.isJsonObject=af.typeofJsonValue=void 0;function __e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}af.typeofJsonValue=__e;function H_e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}af.isJsonObject=H_e});var Jw=I(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.base64encode=Af.base64decode=void 0;var SA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),qw=[];for(let t=0;t<SA.length;t++)qw[SA[t].charCodeAt(0)]=t;qw[45]=SA.indexOf("+");qw[95]=SA.indexOf("/");function G_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=qw[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)}Af.base64decode=G_e;function Y_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+=SA[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=SA[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=SA[n|s>>6],e+=SA[s&63],r=0;break}return r&&(e+=SA[n],e+="=",r==1&&(e+="=")),e}Af.base64encode=Y_e});var _se=I(Vw=>{"use strict";Object.defineProperty(Vw,"__esModule",{value:!0});Vw.utf8read=void 0;var JP=t=>String.fromCharCode.apply(String,t);function q_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(JP(s)),n=0);return r.length?(n&&r.push(JP(s.slice(0,n))),r.join("")):JP(s.slice(0,n))}Vw.utf8read=q_e});var b0=I(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.WireType=ga.mergeBinaryOptions=ga.UnknownFieldHandler=void 0;var J_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])})(J_e=ga.UnknownFieldHandler||(ga.UnknownFieldHandler={}));function V_e(t,e){return Object.assign(Object.assign({},t),e)}ga.mergeBinaryOptions=V_e;var W_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"})(W_e=ga.WireType||(ga.WireType={}))});var zw=I(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.varint32read=Ks.varint32write=Ks.int64toString=Ks.int64fromString=Ks.varint64write=Ks.varint64read=void 0;function z_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=z_e;function K_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=K_e;var Ww=65536*65536;function j_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>=Ww&&(n=n+(s/Ww|0),s=s%Ww)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ks.int64fromString=j_e;function X_e(t,e){if(e>>>0<=2097151)return""+(Ww*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=X_e;function Z_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=Z_e;function $_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=$_e});var Kc=I(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.PbLong=zc.PbULong=zc.detectBi=void 0;var w0=zw(),ft;function Hse(){let t=new DataView(new ArrayBuffer(8));ft=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}zc.detectBi=Hse;Hse();function Gse(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Yse=/^-?[0-9]+$/,jw=4294967296,Kw=2147483648,Xw=c Line truncated
`)}};B1.RpcError=E3});var I3=I(Q1=>{"use strict";Object.defineProperty(Q1,"__esModule",{value:!0});Q1.mergeRpcOptions=void 0;var Cne=Ar();function B5e(t,e){if(!e)return t;let r={};y1(t,r),y1(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Cne.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Cne.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},y1(t.meta,r.meta),y1(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}Q1.mergeRpcOptions=B5e;function y1(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 y3=I($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.Deferred=$l.DeferredState=void 0;var ma;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ma=$l.DeferredState||($l.DeferredState={}));var B3=class{constructor(e=!0){this._state=ma.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!==ma.PENDING)throw new Error(`cannot resolve ${ma[this.state].toLowerCase()}`);this._resolve(e),this._state=ma.RESOLVED}reject(e){if(this.state!==ma.PENDING)throw new Error(`cannot reject ${ma[this.state].toLowerCase()}`);this._reject(e),this._state=ma.REJECTED}resolvePending(e){this._state===ma.PENDING&&this.resolve(e)}rejectPending(e){this._state===ma.PENDING&&this.reject(e)}};$l.Deferred=B3});var b3=I(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});b1.RpcOutputStreamController=void 0;var Ine=y3(),ed=Ar(),Q3=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){ed.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){ed.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){ed.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(){ed.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;ed.assert(e,"bad state"),ed.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 Ine.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;ed.assert(s.state==Ine.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};b1.RpcOutputStreamController=Q3});var N3=I(ff=>{"use strict";var y5e=ff&&ff.__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(ff,"__esModule",{value:!0});ff.UnaryCall=void 0;var w3=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 y5e(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}})}};ff.UnaryCall=w3});var T3=I(pf=>{"use strict";var Q5e=pf&&pf.__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(pf,"__esModule",{value:!0});pf.ServerStreamingCall=void 0;var S3=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 Mie=E(Fie=>{"use strict";var d8=oA().Buffer;Fie._dbcs=aA;var Rr=-1,kie=-2,ii=-10,is=-1e3,Vg=new Array(256),rE=-1;for(Iw=0;Iw<256;Iw++)Vg[Iw]=Rr;var Iw;function aA(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]=Vg.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(Vg.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Vg.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[is-o[s]],A=48;A<=57;A++){if(a[A]===Rr)a[A]=is-n;else if(a[A]>is)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[is-a[A]],u=129;u<=254;u++){if(c[u]===Rr)c[u]=is-i;else{if(c[u]===is-i)continue;if(c[u]>is)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[is-c[u]],d=48;d<=57;d++)l[d]===Rr&&(l[d]=kie)}}}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 HJe(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(NJe.has(n)){r=n;break}}return r}function GJe(t,e){let r=HJe(e);r!==""&&(t.referrerPolicy=r)}function YJe(){return"allowed"}function qJe(){return"success"}function VJe(){return"success"}function JJe(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&&D4(t.origin)&&!D4(Jl(t))&&(e=null);break;case"same-origin":lE(t,Jl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Xg(t,e){return t}function zJe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Xg(t.domainLookupStartTime,r),domainLookupEndTime:Xg(t.domainLookupEndTime,r),connectionStartTime:Xg(t.connectionStartTime,r),connectionEndTime:Xg(t.connectionEndTime,r),secureConnectionStartTime:Xg(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function KJe(t){return Xg(DJe.now(),t)}function XJe(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 uAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function jJe(t){return{referrerPolicy:t.referrerPolicy}}function ZJe(t){let e=t.referrerPolicy;dE(e);let r=null;if(t.referrer==="client"){let i=iAe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Uc.is.URL(t.referrer)&&(r=t.referrer);let s=x4(r),n=x4(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??x4(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Jl(t);return Vl(s)&&!Vl(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Jl(t);return lE(s,i)?s:Vl(s)&&!Vl(i)?"no-referrer":n}case"same-origin":return lE(t,s)?s:"no-referrer";case"origin-when-cross-origin":return lE(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Jl(t);return Vl(s)&&!Vl(i)?"no-referrer":s}}}function x4(t,e=!1){return dE(Uc.is.URL(t)),t=new URL(t),gAe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var $Je=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)$/),e7e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function lAe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),e7e(t)):$Je(t)}function t7e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||lAe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Vl(t){return Uc.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:t7e(t.origin):!1}function r7e(t){}function lE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function s7e(t){return t.controller.state==="aborted"}function n7e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function i7e(t){return kJe[t.toLowerCase()]??t}var o7e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function dAe(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,o7e),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 a7e(t,e,r,s=0,n=1){let i=dAe(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Uc.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Uc.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ai(a=>O4(a)&&a!==59,t,e);i=v4.decode(o)}return{name:s,value:i}}function R7e(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 Fs("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Ai(a=>a!==10&&a!==13&&a!==58,t,e);if(o=P4(o,!0,!0,a=>a===9||a===32),!Q7e.test(o.toString()))throw Fs("header name does not match the field-name token production");if(t[e.position]!==58)throw Fs("expected :");switch(e.position++,Ai(a=>a===32||a===9,t,e),y7e(o)){case"content-disposition":{if(r=s=null,Ai(A=>O4(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Fs("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=D7e(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Fs("name attribute is required in content-disposition header");break}case"content-type":{let a=Ai(A=>A!==10&&A!==13,t,e);a=P4(a,!1,!0,A=>A===9||A===32),n=IAe(a);break}case"content-transfer-encoding":{let a=Ai(A=>A!==10&&A!==13,t,e);a=P4(a,!1,!0,A=>A===9||A===32),i=IAe(a);break}default:Ai(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Fs("expected CRLF");e.position+=2}}function Ai(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function P4(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 k7e(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 Fs(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function F7e(t){return t<=31||t===127}function M7e(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 O4(t){return t<=127&&t!==32&&t!==9&&!F7e(t)&&!M7e(t)}BAe.exports={multipartFormDataParser:x7e,validateBoundary:T7e}});var hE=E((SMt,QAe)=>{"use strict";function U7e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}QAe.exports={createDeferredPromise:U7e}});var $g=E((TMt,TAe)=>{"use strict";var G4=Ie(),{ReadableStreamFrom:L7e,readableStreamClose:v7e,fullyReadBody:P7e,extractMimeType:O7e}=hn(),{FormData:bAe,setFormDataState:_7e}=Vw(),{webidl:Wi}=kr(),_4=w("node:assert"),{isErrored:H4,isDisturbed:H7e}=w("node:stream"),{isUint8Array:G7e}=w("node:util/types"),{serializeAMimeType:Y7e}=ai(),{multipartFormDataParser:q7e}=yAe(),{createDeferredPromise:V7e}=hE(),{parseJSONFromBytes:J7e}=uA(),{utf8DecodeBytes:W7e}=Ow(),{runtimeFeatures:z7e}=lA(),K7e=z7e.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Jw=new TextEncoder;function X7e(){}var j7e=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!H7e(e)&&!H4(e)&&e.cancel("Response object has been garbage collected").catch(X7e)});function NAe(t,e=!1){let r=null,s=null;Wi.is.ReadableStream(t)?r=t:Wi.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),_4(Wi.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(Wi.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Wi.is.BufferSource(t))i=Wi.util.getCopyOfBytesHeldByBufferSource(t);else if(Wi.is.FormData(t)){let c=`----formdata-undici-0${`${K7e(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 YAe=I(GAe=>{"use strict";var NO=OA().Buffer;GAe._dbcs=_A;var zr=-1,HAe=-2,Ui=-10,ws=-1e3,Wf=new Array(256),wC=-1;for(tS=0;tS<256;tS++)Wf[tS]=zr;var tS;function _A(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]=Wf.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(Wf.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Wf.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]===zr)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]===zr)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]===zr&&(l[d]=HAe)}}}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 Vje(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(Rje.has(n)){r=n;break}}return r}function Wje(t,e){let r=Vje(e);r!==""&&(t.referrerPolicy=r)}function zje(){return"allowed"}function Kje(){return"success"}function jje(){return"success"}function Xje(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Zje(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&&J6(t.origin)&&!J6(Rd(t))&&(e=null);break;case"same-origin":UC(t,Rd(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Zf(t,e){return t}function $je(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Zf(t.domainLookupStartTime,r),domainLookupEndTime:Zf(t.domainLookupEndTime,r),connectionStartTime:Zf(t.connectionStartTime,r),connectionEndTime:Zf(t.connectionEndTime,r),secureConnectionStartTime:Zf(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function eXe(t){return Zf(Uje.now(),t)}function tXe(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 Ele(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function rXe(t){return{referrerPolicy:t.referrerPolicy}}function sXe(t){let e=t.referrerPolicy;LC(e);let r=null;if(t.referrer==="client"){let i=hle();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Eu.is.URL(t.referrer)&&(r=t.referrer);let s=q6(r),n=q6(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??q6(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Rd(t);return Dd(s)&&!Dd(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Rd(t);return UC(s,i)?s:Dd(s)&&!Dd(i)?"no-referrer":n}case"same-origin":return UC(t,s)?s:"no-referrer";case"origin-when-cross-origin":return UC(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Rd(t);return Dd(s)&&!Dd(i)?"no-referrer":s}}}function q6(t,e=!1){return LC(Eu.is.URL(t)),t=new URL(t),yle(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var nXe=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)$/),iXe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Cle(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),iXe(t)):nXe(t)}function oXe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Cle(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Dd(t){return Eu.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:oXe(t.origin):!1}function aXe(t){}function UC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function AXe(t){return t.controller.state==="aborted"}function cXe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function uXe(t){return vje[t.toLowerCase()]??t}var lXe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ile(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,lXe),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 dXe(t,e,r,s=0,n=1){let i=Ile(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Eu.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Eu.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Pi(a=>e_(a)&&a!==59,t,e);i=Z6.decode(o)}return{name:s,value:i,extended:n}}function LXe(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=Pi(a=>a!==10&&a!==13&&a!==58,t,e);if(o=$6(o,!0,!0,a=>a===9||a===32),!TXe.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++,Pi(a=>a===32||a===9,t,e),SXe(o)){case"content-disposition":{r=s=null;let a=!1;if(Pi(c=>e_(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=UXe(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=Pi(A=>A!==10&&A!==13,t,e);a=$6(a,!1,!0,A=>A===9||A===32),n=Tle(a);break}case"content-transfer-encoding":{let a=Pi(A=>A!==10&&A!==13,t,e);a=$6(a,!1,!0,A=>A===9||A===32),i=Tle(a);break}default:Pi(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 Pi(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function $6(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 vXe(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 PXe(t){return t<=31||t===127}function OXe(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 e_(t){return t<=127&&t!==32&&t!==9&&!PXe(t)&&!OXe(t)}xle.exports={multipartFormDataParser:MXe,validateBoundary:FXe}});var vC=I((H4t,Rle)=>{"use strict";function _Xe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}Rle.exports={createDeferredPromise:_Xe}});var tp=I((G4t,Lle)=>{"use strict";var s_=Ne(),{ReadableStreamFrom:HXe,readableStreamClose:GXe,fullyReadBody:YXe,extractMimeType:qXe}=Hn(),{FormData:kle,setFormDataState:JXe}=NS(),{webidl:Qo}=Kr(),t_=N("node:assert"),{isErrored:r_,isDisturbed:VXe}=N("node:stream"),{isUint8Array:WXe}=N("node:util/types"),{serializeAMimeType:zXe}=vi(),{multipartFormDataParser:KXe}=Dle(),{createDeferredPromise:jXe}=vC(),{parseJSONFromBytes:XXe}=YA(),{utf8DecodeBytes:ZXe}=IS(),{runtimeFeatures:$Xe}=qA(),eZe=$Xe.has("crypto")?N("node:crypto").randomInt:t=>Math.floor(Math.random()*t),SS=new TextEncoder;function tZe(){}var rZe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!VXe(e)&&!r_(e)&&e.cancel("Response object has been garbage collected").catch(tZe)});function Mle(t,e=!1){let r=null,s=null;Qo.is.ReadableStream(t)?r=t:Qo.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),t_(Qo.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(Qo.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Qo.is.BufferSource(t))i=Qo.util.getCopyOfBytesHeldByBufferSource(t);else if(Qo.is.FormData(t)){let c=`----formdata-undici-0${`${eZe(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
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let b=Jw.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let w=SS.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(b),o+=b.byteLength}else{let b=Jw.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
`);h.push(w),o+=w.byteLength}else{let w=SS.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(b,C,f),typeof C.size=="number"?o+=b.byteLength+C.size+f.byteLength:p=!0}let I=Jw.encode(`--${c}--\r
`);h.push(I),o+=I.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(Wi.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(G4.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Wi.is.ReadableStream(t)?t:L7e(t)}return(typeof i=="string"||G7e(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(H4(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!H4(r)&&s.enqueue(typeof c=="string"?Jw.encode(c):new Uint8Array(c));queueMicrotask(()=>v7e(s))})(),[{stream:r,source:i,length:o},a]}function Z7e(t,e=!1){return Wi.is.ReadableStream(t)&&(_4(!G4.isDisturbed(t),"The body has already been consumed."),_4(!t.locked,"The stream is locked.")),NAe(t,e)}function $7e(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function eWe(t,e){return{blob(){return Zg(this,s=>{let n=wAe(e(this));return n===null?n="":n&&(n=Y7e(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Zg(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Zg(this,W7e,t,e)},json(){return Zg(this,J7e,t,e)},formData(){return Zg(this,s=>{let n=wAe(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=q7e(s,n),o=new bAe;return _7e(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new bAe;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 Zg(this,s=>new Uint8Array(s),t,e)}}}function tWe(t,e){Object.assign(t.prototype,eWe(t,e))}function Zg(t,e,r,s){try{Wi.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),SAe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=V7e(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(P7e(t.body,o,i),n.promise)}function SAe(t){let e=t.body;return e!=null&&(e.stream.locked||G4.isDisturbed(e.stream))}function wAe(t){let e=t.headersList,r=O7e(e);return r==="failure"?null:r}TAe.exports={extractBody:NAe,safelyExtractBody:Z7e,cloneBody:$7e,mixinBody:tWe,streamRegistry:j7e,bodyUnusable:SAe}});var OAe=E((xMt,PAe)=>{"use strict";var he=w("node:assert"),ge=Ie(),{channels:xAe}=Fc(),Y4=b8(),{RequestContentLengthMismatchError:Wl,ResponseContentLengthMismatchError:rWe,RequestAbortedError:UAe,HeadersTimeoutError:sWe,HeadersOverflowError:nWe,SocketError:pE,InformationalError:ef,BodyTimeoutError:iWe,HTTPParserError:oWe,ResponseExceededMaxSizeError:aWe}=me(),{kUrl:LAe,kReset:Ms,kClient:X4,kParser:Pt,kBlocking:mE,kRunning:Yr,kPending:AWe,kSize:DAe,kWriting:vc,kQueue:zi,kNoRef:gE,kKeepAliveDefaultTimeout:cWe,kHostHeader:uWe,kPendingIdx:lWe,kRunningIdx:ci,kError:ui,kPipelining:Kw,kSocket:tf,kKeepAliveTimeoutValue:jw,kMaxHeadersSize:dWe,kKeepAliveMaxTimeout:hWe,kKeepAliveTimeoutThreshold:gWe,kHeadersTimeout:fWe,kBodyTimeout:pWe,kStrictContentLength:J4,kMaxRequests:RAe,kCounter:mWe,kMaxResponseSize:EWe,kOnError:CWe,kResume:Lc,kHTTPContext:vAe,kClosed:W4}=$e(),ea=Tae(),IWe=Buffer.alloc(0),Ww=Buffer[Symbol.species],BWe=ge.removeAllListeners,q4;function yWe(){let t=process.env.JEST_WORKER_ID?p4():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(Rae())}catch{}return e||(e=new WebAssembly.Module(t||p4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onStatus(new Ww(ta.buffer,o,i))},wasm_on_message_begin:s=>(he(lr.ptr===s),lr.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onHeaderField(new Ww(ta.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onHeaderValue(new Ww(ta.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(he(lr.ptr===s),lr.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onBody(new Ww(ta.buffer,o,i))},wasm_on_message_complete:s=>(he(lr.ptr===s),lr.onMessageComplete())}})}var V4=null,lr=null,ta=null,zw=0,ra=null,QWe=0,fE=1,rf=2|fE,Xw=4|fE,z4=8|QWe,K4=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(ea.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[dWe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[EWe]}setTi Line truncated
`);h.push(w,C,f),typeof C.size=="number"?o+=w.byteLength+C.size+f.byteLength:p=!0}let E=SS.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(Qo.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(s_.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Qo.is.ReadableStream(t)?t:HXe(t)}return(typeof i=="string"||WXe(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(r_(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!r_(r)&&s.enqueue(typeof c=="string"?SS.encode(c):new Uint8Array(c));queueMicrotask(()=>GXe(s))})(),[{stream:r,source:i,length:o},a]}function sZe(t,e=!1){return Qo.is.ReadableStream(t)&&(t_(!s_.isDisturbed(t),"The body has already been consumed."),t_(!t.locked,"The stream is locked.")),Mle(t,e)}function nZe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function iZe(t,e){return{blob(){return ep(this,s=>{let n=Fle(e(this));return n===null?n="":n&&(n=zXe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return ep(this,s=>new Uint8Array(s).buffer,t,e)},text(){return ep(this,ZXe,t,e)},json(){return ep(this,XXe,t,e)},formData(){return ep(this,s=>{let n=Fle(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=KXe(s,n),o=new kle;return JXe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new kle;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 ep(this,s=>new Uint8Array(s),t,e)}}}function oZe(t,e){Object.assign(t.prototype,iZe(t,e))}function ep(t,e,r,s){try{Qo.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),Ule(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=jXe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(YXe(t.body,o,i),n.promise)}function Ule(t){let e=t.body;return e!=null&&(e.stream.locked||s_.isDisturbed(e.stream))}function Fle(t){let e=t.headersList,r=qXe(e);return r==="failure"?null:r}Lle.exports={extractBody:Mle,safelyExtractBody:sZe,cloneBody:nZe,mixinBody:oZe,streamRegistry:rZe,bodyUnusable:Ule}});var Xle=I((Y4t,jle)=>{"use strict";var ge=N("node:assert"),oe=Ne(),{channels:vle}=pu(),n_=PO(),{RequestContentLengthMismatchError:kd,ResponseContentLengthMismatchError:Ple,RequestAbortedError:Vle,InvalidArgumentError:aZe,HeadersTimeoutError:AZe,HeadersOverflowError:cZe,SocketError:Fd,InformationalError:rp,BodyTimeoutError:uZe,HTTPParserError:lZe,ResponseExceededMaxSizeError:dZe}=Be(),{kUrl:Wle,kReset:nn,kClient:kS,kParser:St,kBlocking:_C,kRunning:mr,kPending:l_,kSize:Ole,kWriting:Cu,kQueue:bo,kNoRef:PC,kKeepAliveDefaultTimeout:hZe,kHostHeader:gZe,kPendingIdx:fZe,kRunningIdx:Oi,kError:Ns,kPipelining:DS,kSocket:Md,kKeepAliveTimeoutValue:FS,kMaxHeadersSize:pZe,kKeepAliveMaxTimeout:mZe,kKeepAliveTimeoutThreshold:EZe,kHeadersTimeout:CZe,kBodyTimeout:IZe,kStrictContentLength:a_,kMaxRequests:_le,kCounter:BZe,kMaxResponseSize:yZe,kOnError:Hle,kResume:VA,kHTTPContext:zle,kClosed:A_}=At(),Gn=Lue(),Gle=Buffer.alloc(0),TS=Buffer[Symbol.species],QZe=oe.removeAllListeners,Ud=Symbol("kIdleSocketValidation"),sp=Symbol("kIdleSocketValidationTimeout"),d_=Symbol("kSocketUsed"),i_;function bZe(){let t=process.env.JEST_WORKER_ID?R6():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(Oue())}catch{}return e||(e=new WebAssembly.Module(t||R6())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{ge(Xt.ptr===s);let o=n-Sa+Na.byteOffset;return Xt.onStatus(new TS(Na.buffer,o,i))},wasm_on_message_begin:s=>(ge(Xt.ptr===s),Xt.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{ge(Xt.ptr===s);let o=n-Sa+Na.byteOffset;return Xt.onHeaderField(new TS(Na.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{ge(Xt.ptr===s);let o=n-Sa+Na.byteOffset;return Xt.onHeaderValue(new TS(Na.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(ge(Xt.ptr===s),Xt.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{ge(Xt.ptr===s);let o=n-Sa+Na.byteOffset;return Xt.onBody(new TS(Na.buffer,o,i))},wasm_on_message_complete:s=>(ge(Xt.ptr===s),Xt.onMessageComplete())}})}var o_=null,Xt=null,Na=null,xS=0,Sa=null,wZe=0,OC=1,np=2|OC,RS=4|OC,c_=8|wZe,u_=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Gn.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[pZe],this.shouldKeepAliv Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[uWe],i?p+=`connection: upgrade\r
`:p+=t[gZe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Kw]&&!h[Ms]?p+=`connection: keep-alive\r
`:t[DS]&&!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
`,Array.isArray(c))for(let E=0;E<c.length;E+=2){let m=c[E+0],C=c[E+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)p+=`${m}: ${C[w]}\r
`;else p+=`${m}: ${C}\r
`}return xAe.sendHeaders.hasSubscribers&&xAe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?FAe(f,null,t,e,h,u,p,l):ge.isBuffer(A)?FAe(f,A,t,e,h,u,p,l):ge.isBlobLike(A)?typeof A.stream=="function"?MAe(f,A.stream(),t,e,h,u,p,l):MWe(f,A,t,e,h,u,p,l):ge.isStream(A)?FWe(f,A,t,e,h,u,p,l):ge.isIterable(A)?MAe(f,A,t,e,h,u,p,l):he(!1),!0}function FWe(t,e,r,s,n,i,o,a){he(i!==0||r[Yr]===0,"stream body cannot be pipelined");let A=!1,c=new Zw({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){ge.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new UAe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,he(n.destroyed||n[vc]&&r[Yr]<=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")?ge.destroy(e,f):ge.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 FAe(t,e,r,s,n,i,o,a){try{e?ge.isBuffer(e)&&(he(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`}return vle.sendHeaders.hasSubscribers&&vle.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?qle(f,null,t,e,h,u,p,l):oe.isBuffer(A)?qle(f,A,t,e,h,u,p,l):oe.isBlobLike(A)?typeof A.stream=="function"?Jle(f,A.stream(),t,e,h,u,p,l):vZe(f,A,t,e,h,u,p,l):oe.isStream(A)?LZe(f,A,t,e,h,u,p,l):oe.isIterable(A)?Jle(f,A,t,e,h,u,p,l):ge(!1),!0}function LZe(t,e,r,s,n,i,o,a){ge(i!==0||r[mr]===0,"stream body cannot be pipelined");let A=!1,c=new MS({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 Vle;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ge(n.destroyed||n[Cu]&&r[mr]<=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 qle(t,e,r,s,n,i,o,a){try{e?oe.isBuffer(e)&&(ge(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[Ms]=!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"):(he(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Lc]()}catch(A){t(A)}}async function MWe(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 Wl;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(ge(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[VA]()}catch(A){t(A)}}async function vZe(t,e,r,s,n,i,o,a){ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new kd;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[Ms]=!0),r[Lc]()}catch(A){t(A)}}async function MAe(t,e,r,s,n,i,o,a){he(i!==0||r[Yr]===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[ui]?h(n[ui]):A=d});n.on("close",c).on("drain",c);let l=new Zw({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ui])throw n[ui];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var Zw=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[vc]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ui])throw r[ui];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[J4])throw new Wl;process.emitWarning(new Wl)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ms]=!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[VA]()}catch(A){t(A)}}async function Jle(t,e,r,s,n,i,o,a){ge(i!==0||r[mr]===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)=>{ge(A===null),n[Ns]?h(n[Ns]):A=d});n.on("close",c).on("drain",c);let l=new MS({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 MS=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[Cu]=!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[a_])throw new kd;process.emitWarning(new kd)}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[Pt].timeout&&r[Pt].timeoutType===rf&&r[Pt].timeout.refresh&&r[Pt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[vc]=!1,e[ui])throw e[ui];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[St].timeout&&r[St].timeoutType===np&&r[St].timeout.refresh&&r[St].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Cu]=!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[J4])throw new Wl;process.emitWarning(new Wl)}e[Pt].timeout&&e[Pt].timeoutType===rf&&e[Pt].timeout.refresh&&e[Pt].timeout.refresh(),s[Lc]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[vc]=!1,e&&(he(s[Yr]<=1,"pipeline should only contain this request"),n(e))}};PAe.exports=bWe});var zAe=E((DMt,WAe)=>{"use strict";var di=w("node:assert"),{pipeline:UWe}=w("node:stream"),Te=Ie(),{RequestContentLengthMismatchError:eO,RequestAbortedError:LWe,SocketError:BE,InformationalError:Pc,InvalidArgumentError:vWe}=me(),{kUrl:IE,kReset:rN,kClient:gn,kRunning:yE,kPending:PWe,kQueue:Oc,kPendingIdx:rO,kRunningIdx:Ki,kError:fn,kSocket:St,kStrictContentLength:OWe,kOnError:sf,kMaxConcurrentStreams:eN,kPingInterval:_Ae,kHTTP2Session:hA,kHTTP2InitialWindowSize:_We,kHTTP2ConnectionWindowSize:HWe,kResume:sa,kSize:GWe,kHTTPContext:sO,kClosed:tO,kBodyTimeout:YWe,kEnableConnectProtocol:EE,kRemoteSettings:CE,kHTTP2Stream:$w,kHTTP2SessionState:nO}=$e(),{channels:HAe}=Fc(),li=Symbol("open streams"),GAe,tN;try{tN=w("node:http2")}catch{tN={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:qWe,HTTP2_HEADER_METHOD:YAe,HTTP2_HEADER_PATH:qAe,HTTP2_HEADER_SCHEME:j4,HTTP2_HEADER_CONTENT_LENGTH:VWe,HTTP2_HEADER_EXPECT:JWe,HTTP2_HEADER_STATUS:Z4,HTTP2_HEADER_PROTOCOL:WWe,NGHTTP2_REFUSED_STREAM:zWe,NGHTTP2_CANCEL:KWe}}=tN;function $4(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 XWe(t,e){t[St]=e;let r=t[_We],s=t[HWe],n=tN.connect(t[IE],{createConnection:()=>e,peerMaxConcurrentStreams:t[eN],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[St]=e,n[li]=0,n[gn]=t,n[St]=e,n[nO]={ping:{interval:t[_Ae]===0?null:setInterval(eze,t[_Ae],n).unref()}},n[EE]=!1,n[CE]=!1,s&&Te.addListener(n,"connect",ZWe.bind(n,s)),Te.addListener(n,"error",tze),Te.addListener(n,"frameError",rze),Te.addListener(n,"end",sze),Te.addListener(n,"goaway",nze),Te.addListener(n,"close",ize),Te.addListener(n,"remoteSettings",$We),n.unref(),t[hA]=n,e[hA]=n,Te.addListener(e,"error",aze),Te.addListener(e,"end",Aze),Te.addListener(e,"close",oze),e[tO]=!1,e.on("close",cze),{version:"h2",defaultPipelining:1/0,write(i){return lze(t,i)},resume(){jWe(t)},destroy(i,o){e[tO]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[yE]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[CE]===!1||Te.bodyLength(i.body)!==0&&(Te.isStream(i.body)||Te.isAsyncIterable(i.body)||Te.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[CE]===!1;return!1}}}function jWe(t){let e=t[St];e?.destroyed===!1&&(t[GWe]===0||t[eN]===0?(e.unref(),t[hA].unref()):(e.ref(),t[hA].ref()))}function ZWe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function $We(t){if(this[gn][eN]=t.maxConcurrentStreams??this[gn][eN],this[CE]===!0&&this[EE]===!0&&t.enableConnectProtocol===!1){let e=new Pc("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[St][fn]=e,this[gn][sf](e);return}this[EE]=t.enableConnectProtocol??this[EE],this[CE]=!0,this[gn][sa]()}function eze(t){let e=t[nO];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[gn],o=this[gn];if(s!=null){let a=new Pc(`HTTP/2: "PING" errored - type ${s.message}`);o[fn]=a,i[sf](a)}else i.emit("ping",n)}}function tze(t){di(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[St][fn]=t,this[gn][sf](t)}function rze(t,e,r){if(r===0){let s=new Pc(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[St][fn]=s,this[gn][sf](s)}}function sze(){let t=new BE("other side closed",Te.getSocketInfo(this[St]));this.destroy(t),Te.destroy(this[St],t)}function nze(t){let e=this[fn]||new BE(`HTTP/2: "GOAWAY" frame received with code ${t}`,Te.getSocketInfo(this[St])),r=this[gn];if(r[St]=null,r[sO]=null,this.close(),this[hA]=null,Te.destroy(this[St],e),r[Ki]<r[Oc].length){let s=r[Oc][r[Ki]];r[Oc][r[Ki]++]=null,Te.errorRequest(r,s,e),r[rO]=r[Ki]}di(r[yE]===0),r.emit("disconnect",r[IE],[r],e),r.emit("connectionError",r[IE],[r],e),r[sa]()}function ize(){let{[gn]:t,[nO]:e}=this,{[St]:r}=t,s=this[St][fn]||this[fn]||new BE("closed",Te.getSocketInfo(r));if(t[St]=null,t[sO]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){di(t[PWe]===0);let n=t[Oc].splice(t[Ki]);for(let i=0;i<n.length;i++){let o=n[i];Te.errorRequest(t,o,s)}}}function oze(){let t=this[fn]||new BE("closed",Te.getSocketInfo(this)),e=this[hA][gn];e[St]=null,e[sO]=null,this[hA]!==null&&this[hA].destroy(t),e[rO]=e[Ki],di(e[yE]===0),e.emit("disconnect",e[IE],[e],t),e[sa]()}function aze(t){di(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fn]=t,this[gn][sf](t)}function Aze(){Te.destroy(this,new BE("other side closed",Te.getSocketInfo(this)))}func Line truncated
`;HAe.sendHeaders.publish({request:e,headers:F,socket:s[St]})}let T=n==="GET"||n==="HEAD"||d===null;A?(h[JWe]="100-continue",f=s.request(h,{endStream:T,signal:c}),f[$w]=!0,f.once("continue",M)):(f=s.request(h,{endStream:T,signal:c}),f[$w]=!0,M()),++s[li],f.setTimeout(r);let R=!1;return f.once("response",F=>{let{[Z4]:_,...H}=F;if(e.onResponseStarted(),R=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(_),$4(H),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ye=>{e.aborted||e.completed||e.onData(Ye)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),R?(!e.aborted&&!e.completed&&e.onComplete({}),t[Oc][t[Ki]++]=null,t[sa]()):(m(new Pc("HTTP/2: stream half-closed (remote)")),t[Oc][t[Ki]++]=null,t[rO]=t[Ki],t[sa]())}),f.once("close",()=>{f.removeAllListeners("data"),s[li]-=1,s[li]===0&&s.unref()}),f.once("error",function(F){f.removeAllListeners("data"),m(F)}),f.once("frameError",(F,_)=>{f.removeAllListeners("data"),m(new Pc(`HTTP/2: "frameError" received - type ${F}, code ${_}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let F=new Pc(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[li]-=1,s[li]===0&&s.unref(),m(F)}),f.once("trailers",F=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(F))}),!0;function M(){!d||b===0?VAe(m,f,null,t,e,t[St],b,C):Te.isBuffer(d)?VAe(m,f,d,t,e,t[St],b,C):Te.isBlobLike(d)?typeof d.stream=="function"?JAe(m,f,d.stream(),t,e,t[St],b,C):hze(m,f,d,t,e,t[St],b,C):Te.isStream(d)?dze(m,t[St],C,f,d,t,e,b):Te.isIterable(d)?JAe(m,f,d,t,e,t[St],b,C):di(!1)}}function VAe(t,e,r,s,n,i,o,a){try{r!=null&&Te.isBuffer(r)&&(di(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[rN]=!0),n.onRequestSent(),s[sa]()}catch(A){t(A)}}function dze(t,e,r,s,n,i,o,a){di(a!==0||i[yE]===0,"stream body cannot be pipelined");let A=UWe(n,s,u=>{u?(Te.destroy(A,u),t(u)):(Te.removeAllListeners(A),o.onRequestSent(),r||(e[rN]=!0),i[sa]())});Te.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function hze(t,e,r,s,n,i,o,a){di(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new eO;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[rN]=!0),s[sa]()}catch(A){t(A)}}async function JAe(t,e,r,s,n,i,o,a){di(o!==0||s[yE]===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)=>{di(A===null),i[fn]?d(i[fn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[fn])throw i[fn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[rN]=!0),s[sa]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}WAe.exports=XWe});var qc=E((RMt,sce)=>{"use strict";var gA=w("node:assert"),$Ae=w("node:net"),QE=w("node:http"),zl=Ie(),{ClientStats:gze}=$8(),{channels:nf}=Fc(),fze=pae(),pze=Gl(),{InvalidArgumentError:mt,InformationalError:mze,ClientDestroyedError:Eze}=me(),Cze=Yl(),{kUrl:na,kServerName:Yc,kClient:Ize,kBusy:iO,kConnect:Bze,kResuming:Kl,kRunning:SE,kPending:TE,kSize:bE,kQueue:Xi,kConnected:yze,kConnecting:of,kNeedDrain:Hc,kKeepAliveDefaultTimeout:KAe,kHostHeader:Qze,kPendingIdx:ji,kRunningIdx:fA,kError:bze,kPipelining:sN,kKeepAliveTimeoutValue:wze,kMaxHeadersSize:Nze,kKeepAliveMaxTimeout:Sze,kKeepAliveTimeoutThreshold:Tze,kHeadersTimeout:xze,kBodyTimeout:Dze,kStrictContentLength:Rze,kConnector:wE,kMaxRequests:oO,kCounter:kze,kClose:Fze,kDestroy:Mze,kDispatch:Uze,kLocalAddress:NE,kMaxResponseSize:Lze,kOnError:vze,kHTTPContext:jt,kMaxConcurrentStreams:Pze,kHTTP2InitialWindowSize:Oze,kHTTP2ConnectionWindowSize:_ze,kResume:Gc,kPingInterval:Hze}=$e(),Gze=OAe(),Yze=zAe(),_c=Symbol("kClosedResolve"),qze=QE&&QE.maxHeaderSize&&Number.isInteger(QE.maxHeaderSize)&&QE.maxHeaderSize>0?()=>QE.maxHeaderSize:()=>{throw new mt("http module not available or http.maxHeaderSize invalid")},XAe=()=>{};function ece(t){return t[sN]??t[jt]?.defaultPipelining??1}var aO=class extends pze{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:I,strictContentLength:m,maxCachedSessions:C,connect:b,maxRequestsPerClient:T,localAddress:R,maxResponseSize:M,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:_,maxConcurrentStreams:H,allowH2:Ye,useH2c:at,initialWindowSize:Be,connectionWindowSize:xe,pingInterval:Ue}={}){if(c!==void 0)throw new mt("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new mt("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mt("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new mt("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new mt(" Line truncated
`,this[Dze]=a??3e5,this[xze]=s??3e5,this[Rze]=m??!0,this[oO]=T,this[_c]=null,this[Lze]=M>-1?M:-1,this[jt]=null,this[Pze]=H??100,this[Oze]=Be??262144,this[_ze]=xe??524288,this[Hze]=Ue??6e4,this[Xi]=[],this[fA]=0,this[ji]=0,this[Gc]=_t=>AO(this,_t),this[vze]=_t=>tce(this,_t)}get pipelining(){return this[sN]}set pipelining(e){this[sN]=e,this[Gc](!0)}get stats(){return new gze(this)}get[TE](){return this[Xi].length-this[ji]}get[SE](){return this[ji]-this[fA]}get[bE](){return this[Xi].length-this[fA]}get[yze](){return!!this[jt]&&!this[of]&&!this[jt].destroyed}get[iO](){return!!(this[jt]?.busy(null)||this[bE]>=(ece(this)||1)||this[TE]>0)}[Bze](e){rce(this),this.once("connect",e)}[Uze](e,r){let s=new fze(this[na].origin,e,r);return this[Xi].push(s),this[Kl]||(zl.bodyLength(s.body)==null&&zl.isIterable(s.body)?(this[Kl]=1,queueMicrotask(()=>AO(this))):this[Gc](!0)),this[Kl]&&this[Hc]!==2&&this[iO]&&(this[Hc]=2),this[Hc]<2}[Fze](){return new Promise(e=>{this[bE]?this[_c]=e:e(null)})}[Mze](e){return new Promise(r=>{let s=this[Xi].splice(this[ji]);for(let i=0;i<s.length;i++){let o=s[i];zl.errorRequest(this,o,e)}let n=()=>{this[_c]&&(this[_c](),this[_c]=null),r(null)};this[jt]?(this[jt].destroy(e,n),this[jt]=null):queueMicrotask(n),this[Gc]()})}};function tce(t,e){if(t[SE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){gA(t[ji]===t[fA]);let r=t[Xi].splice(t[fA]);for(let s=0;s<r.length;s++){let n=r[s];zl.errorRequest(t,n,e)}gA(t[bE]===0)}}function rce(t){gA(!t[of]),gA(!t[jt]);let{host:e,hostname:r,protocol:s,port:n}=t[na];if(r[0]==="["){let i=r.indexOf("]");gA(i!==-1);let o=r.substring(1,i);gA($Ae.isIPv6(o)),r=o}t[of]=!0,nf.beforeConnect.hasSubscribers&&nf.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[jt]?.version,servername:t[Yc],localAddress:t[NE]},connector:t[wE]}),t[wE]({host:e,hostname:r,protocol:s,port:n,servername:t[Yc],localAddress:t[NE]},(i,o)=>{if(i){jAe(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Gc]();return}if(t.destroyed){zl.destroy(o.on("error",XAe),new Eze),t[Gc]();return}gA(o);try{t[jt]=o.alpnProtocol==="h2"?Yze(t,o):Gze(t,o)}catch(a){o.destroy().on("error",XAe),jAe(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Gc]();return}t[of]=!1,o[kze]=0,o[oO]=t[oO],o[Ize]=t,o[bze]=null,nf.connected.hasSubscribers&&nf.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[jt]?.version,servername:t[Yc],localAddress:t[NE]},connector:t[wE],socket:o}),t.emit("connect",t[na],[t]),t[Gc]()})}function jAe(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[of]=!1,nf.connectError.hasSubscribers&&nf.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[jt]?.version,servername:t[Yc],localAddress:t[NE]},connector:t[wE],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(gA(t[SE]===0);t[TE]>0&&t[Xi][t[ji]].servername===t[Yc];){let o=t[Xi][t[ji]++];zl.errorRequest(t,o,e)}else tce(t,e);t.emit("connectionError",t[na],[t],e)}}function ZAe(t){t[Hc]=0,t.emit("drain",t[na],[t])}function AO(t,e){t[Kl]!==2&&(t[Kl]=2,Vze(t,e),t[Kl]=0,t[fA]>256&&(t[Xi].splice(0,t[fA]),t[ji]-=t[fA],t[fA]=0))}function Vze(t,e){for(;;){if(t.destroyed){gA(t[TE]===0);return}if(t[_c]&&!t[bE]){t[_c](),t[_c]=null;return}if(t[jt]&&t[jt].resume(),t[iO])t[Hc]=2;else if(t[Hc]===2){e?(t[Hc]=1,queueMicrotask(()=>ZAe(t))):ZAe(t);continue}if(t[TE]===0||t[SE]>=(ece(t)||1))return;let r=t[Xi][t[ji]];if(r===null)return;if(t[na].protocol==="https:"&&t[Yc]!==r.servername){if(t[SE]>0)return;t[Yc]=r.servername,t[jt]?.destroy(new mze("servername changed"),()=>{t[jt]=null,AO(t)})}if(t[of])return;if(!t[jt]){rce(t);return}if(t[jt].destroyed||t[jt].busy(r))return;!r.aborted&&t[jt].write(r)?t[ji]++:t[Xi].splice(t[ji],1)}}sce.exports=aO});var cO=E((FMt,nce)=>{"use strict";var nN=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)}};nce.exports=class{constructor(){this.head=this.tail=new nN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new nN),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 iN=E((MMt,hce)=>{"use strict";var{PoolStats:Jze}=$8(),Wze=Gl(),zze=cO(),{kConnected:uO,kSize:ice,kRunning:oce,kPending:ace,kQueued:xE,kBusy:Kze,kFree:Xze,kUrl:jze,kClose:Zze,kDestroy:$ze,kDispatch:eKe}=$e(),Sr=Symbol("clients"),os=Symbol("needDrain"),DE=Symbol("queue"),lO=Symbol("closed resolve"),dO=Symbol("onDrain"),Ace=Symbol("onConnect"),cce=Symbol("onDisconnect"),uce=Symbol("onConnectionError"),hO=Symbol("get dispatcher"),lce=Symbol("add client"),dce=Symbol("remove client"),gO=class extends Wze{[DE]=new zze;[xE]=0;[Sr]=[];[os]=!1;[dO](e,r,s){let n=this[DE],i=!1;for(;!i;){let o=n.shi Line truncated
`,"latin1"),r!==null&&n!==r){if(s[a_])throw new kd;process.emitWarning(new kd)}e[St].timeout&&e[St].timeoutType===np&&e[St].timeout.refresh&&e[St].timeout.refresh(),s[VA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Cu]=!1,e&&(ge(s[mr]<=1,"pipeline should only contain this request"),n(e))}};jle.exports=NZe});var ode=I((q4t,ide)=>{"use strict";var Hi=N("node:assert"),{pipeline:PZe}=N("node:stream"),Le=Ne(),{RequestContentLengthMismatchError:p_,RequestAbortedError:OZe,SocketError:VC,InformationalError:Iu,InvalidArgumentError:_Ze,HeadersTimeoutError:HZe,BodyTimeoutError:GZe}=Be(),{kUrl:JC,kReset:vS,kClient:Yn,kRunning:WC,kPending:YZe,kQueue:GC,kPendingIdx:Ld,kRunningIdx:Ta,kError:qn,kSocket:Ot,kStrictContentLength:qZe,kOnError:ip,kMaxConcurrentStreams:m_,kPingInterval:Zle,kHTTP2Session:WA,kHTTP2InitialWindowSize:JZe,kHTTP2ConnectionWindowSize:VZe,kResume:xa,kSize:WZe,kHTTPContext:C_,kClosed:E_,kBodyTimeout:zZe,kHeadersTimeout:KZe,kEnableConnectProtocol:YC,kRemoteSettings:qC,kHTTP2Stream:US,kHTTP2SessionState:I_}=At(),{channels:$le}=pu(),_i=Symbol("open streams"),ede,LS;try{LS=N("node:http2")}catch{LS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:jZe,HTTP2_HEADER_METHOD:tde,HTTP2_HEADER_PATH:rde,HTTP2_HEADER_SCHEME:h_,HTTP2_HEADER_CONTENT_LENGTH:XZe,HTTP2_HEADER_EXPECT:ZZe,HTTP2_HEADER_STATUS:g_,HTTP2_HEADER_PROTOCOL:$Ze,NGHTTP2_REFUSED_STREAM:e$e,NGHTTP2_CANCEL:t$e}}=LS;function f_(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 r$e(t,e){t[Ot]=e;let r=t[JZe],s=t[VZe],n=LS.connect(t[JC],{createConnection:()=>e,peerMaxConcurrentStreams:t[m_],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Ot]=e,n[_i]=0,n[Yn]=t,n[Ot]=e,n[I_]={ping:{interval:t[Zle]===0?null:setInterval(o$e,t[Zle],n).unref()}},n[YC]=!1,n[qC]=!1,s&&Le.addListener(n,"connect",n$e.bind(n,s)),Le.addListener(n,"error",a$e),Le.addListener(n,"frameError",A$e),Le.addListener(n,"end",c$e),Le.addListener(n,"goaway",u$e),Le.addListener(n,"close",l$e),Le.addListener(n,"remoteSettings",i$e),n.unref(),t[WA]=n,e[WA]=n,Le.addListener(e,"error",h$e),Le.addListener(e,"end",g$e),Le.addListener(e,"close",d$e),e[E_]=!1,e.on("close",f$e),{version:"h2",defaultPipelining:1/0,write(i){return m$e(t,i)},resume(){s$e(t)},destroy(i,o){e[E_]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[WC]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[qC]===!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[qC]===!1;return!1}}}function s$e(t){let e=t[Ot];e?.destroyed===!1&&(t[WZe]===0?(e.unref(),t[WA].unref()):(e.ref(),t[WA].ref()))}function n$e(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function i$e(t){if(this[Yn][m_]=t.maxConcurrentStreams??this[Yn][m_],this[qC]===!0&&this[YC]===!0&&t.enableConnectProtocol===!1){let e=new Iu("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Ot][qn]=e,this[Yn][ip](e);return}this[YC]=t.enableConnectProtocol??this[YC],this[qC]=!0,this[Yn][xa]()}function o$e(t){let e=t[I_];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[Yn],o=this[Yn];if(s!=null){let a=new Iu(`HTTP/2: "PING" errored - type ${s.message}`);o[qn]=a,i[ip](a)}else i.emit("ping",n)}}function a$e(t){Hi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ot][qn]=t,this[Yn][ip](t)}function A$e(t,e,r){if(r===0){let s=new Iu(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ot][qn]=s,this[Yn][ip](s)}}function c$e(){let t=new VC("other side closed",Le.getSocketInfo(this[Ot]));this.destroy(t),Le.destroy(this[Ot],t)}function HC(t,e,r=!1){let s=t[GC],n=t[Ta];if(n<t[Ld]&&s[n]===e){s[n]=null,t[Ta]=n+1;return}let i=s.indexOf(e,n);i===-1||i>=t[Ld]||(s.splice(i,1),t[Ld]--,r&&t[Ld]<t[Ta]&&(t[Ld]=t[Ta]))}function u$e(t){let e=this[qn]||new VC(`HTTP/2: "GOAWAY" frame received with code ${t}`,Le.getSocketInfo(this[Ot])),r=this[Yn];if(r[Ot]=null,r[C_]=null,this.close(),this[WA]=null,Le.destroy(this[Ot],e),r[Ta]<r[GC].length){let s=r[GC][r[Ta]];r[GC][r[Ta]++]=null,s!=null&&Le.errorRequest(r,s,e),r[Ld]=r[Ta]}Hi(r[WC]===0),r.emit("disconnect",r[JC],[r],e),r.emit("connectionError",r[JC],[r],e),r[xa]()}function l$e(){let{[Yn]:t,[I_]:e}=this,{[Ot]:r}=t,s=this[Ot][qn]||this[qn]||new VC("closed",Le.getSocketInfo(r));if(t[Ot]=null,t[C_]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Hi(t[YZe]===0);let n=t[GC].splice(t[Ta]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&Le.errorRequest(t,o,s)}}}function d$e(){let t=this[qn]||new VC("closed",Le.getSocketInfo(this)),e=this[WA][Yn];e[Ot]=null,e[C_]=null,this[WA]!==null&&this[ Line truncated
`;$le.sendHeaders.publish({request:e,headers:v,socket:n[Ot]})}let k=i==="GET"||i==="HEAD"||h===null;c?(f[ZZe]="100-continue",p=n.request(f,{endStream:k,signal:u}),p[US]=!0,p.once("continue",q)):(p=n.request(f,{endStream:k,signal:u}),p[US]=!0,q()),++n[_i],p.setTimeout(r);let M=!1;return p.once("response",v=>{let{[g_]:O,...ye}=v;if(e.onResponseStarted(),M=!0,p.setTimeout(s),e.aborted){p.removeAllListeners("data");return}e.onHeaders(Number(O),f_(ye),p.resume.bind(p),"")===!1&&p.pause(),p.on("data",Re=>{e.aborted||e.completed||e.onData(Re)===!1&&p.pause()})}),p.once("end",()=>{p.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),HC(t,e),t[xa]()):(C(new Iu("HTTP/2: stream half-closed (remote)")),HC(t,e,!0),t[xa]())}),p.once("close",()=>{p.removeAllListeners("data"),n[_i]-=1,n[_i]===0&&n.unref(),!e.aborted&&!e.completed&&C(new Iu("HTTP/2: stream closed before the response was complete"))}),p.once("error",function(v){p.removeAllListeners("data"),C(v)}),p.once("frameError",(v,O)=>{p.removeAllListeners("data"),C(new Iu(`HTTP/2: "frameError" received - type ${v}, code ${O}`))}),p.on("aborted",()=>{p.removeAllListeners("data")}),p.on("timeout",()=>{let v=M?new GZe(`HTTP/2: "body timeout after ${s}"`):new HZe(`HTTP/2: "headers timeout after ${r}"`);p.removeAllListeners("data"),n[_i]-=1,n[_i]===0&&n.unref(),C(v)}),p.once("trailers",v=>{e.aborted||e.completed||(p.removeAllListeners("data"),e.onComplete(v))}),!0;function q(){!h||T===0?sde(C,p,null,t,e,t[Ot],T,w):Le.isBuffer(h)?sde(C,p,h,t,e,t[Ot],T,w):Le.isBlobLike(h)?typeof h.stream=="function"?nde(C,p,h.stream(),t,e,t[Ot],T,w):C$e(C,p,h,t,e,t[Ot],T,w):Le.isStream(h)?E$e(C,t[Ot],w,p,h,t,e,T):Le.isIterable(h)?nde(C,p,h,t,e,t[Ot],T,w):Hi(!1)}}function sde(t,e,r,s,n,i,o,a){try{r!=null&&Le.isBuffer(r)&&(Hi(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[vS]=!0),n.onRequestSent(),s[xa]()}catch(A){t(A)}}function E$e(t,e,r,s,n,i,o,a){Hi(a!==0||i[WC]===0,"stream body cannot be pipelined");let A=PZe(n,s,u=>{u?(Le.destroy(A,u),t(u)):(Le.removeAllListeners(A),o.onRequestSent(),r||(e[vS]=!0),i[xa]())});Le.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function C$e(t,e,r,s,n,i,o,a){Hi(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new p_;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[vS]=!0),s[xa]()}catch(A){t(A)}}async function nde(t,e,r,s,n,i,o,a){Hi(o!==0||s[WC]===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)=>{Hi(A===null),i[qn]?d(i[qn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[qn])throw i[qn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[vS]=!0),s[xa]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}ide.exports=r$e});var bu=I((J4t,gde)=>{"use strict";var zA=N("node:assert"),ude=N("node:net"),zC=N("node:http"),vd=Ne(),{ClientStats:I$e}=h6(),{channels:op}=pu(),B$e=bue(),y$e=Sd(),{InvalidArgumentError:Tt,InformationalError:Q$e,ClientDestroyedError:b$e}=Be(),w$e=Td(),{kUrl:Da,kServerName:Qu,kClient:N$e,kBusy:y_,kConnect:S$e,kResuming:Pd,kRunning:ZC,kPending:$C,kSize:KC,kQueue:wo,kConnected:T$e,kConnecting:ap,kNeedDrain:yu,kKeepAliveDefaultTimeout:ade,kHostHeader:x$e,kPendingIdx:No,kRunningIdx:jA,kError:D$e,kPipelining:PS,kKeepAliveTimeoutValue:R$e,kMaxHeadersSize:k$e,kKeepAliveMaxTimeout:F$e,kKeepAliveTimeoutThreshold:M$e,kHeadersTimeout:U$e,kBodyTimeout:L$e,kStrictContentLength:v$e,kConnector:jC,kMaxRequests:Q_,kCounter:P$e,kClose:O$e,kDestroy:_$e,kDispatch:H$e,kLocalAddress:XC,kMaxResponseSize:G$e,kOnError:Y$e,kHTTPContext:ur,kMaxConcurrentStreams:q$e,kHTTP2InitialWindowSize:J$e,kHTTP2ConnectionWindowSize:V$e,kResume:KA,kPingInterval:W$e}=At(),z$e=Xle(),K$e=ode(),Bu=Symbol("kClosedResolve"),j$e=zC&&zC.maxHeaderSize&&Number.isInteger(zC.maxHeaderSize)&&zC.maxHeaderSize>0?()=>zC.maxHeaderSize:()=>{throw new Tt("http module not available or http.maxHeaderSize invalid")},Ade=()=>{};function lde(t){return t[PS]??t[ur]?.defaultPipelining??1}var b_=class extends y$e{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:C,connect:w,maxRequestsPerClient:T,localAddress:k,maxResponseSize:M,autoSelectFamily:q,autoSelectFamilyAttemptTimeout:v,maxConcurrentStreams:O,allowH2:ye,useH2c:Re,initialWindowSize:Ce,connectionWindowSize:me,pingInterval:ke,webSocket:Lt}={}){if(c!==void 0)throw new Tt("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Tt("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Tt("unsupported requestTimeout, use headersTim Line truncated
`,this[L$e]=a??3e5,this[U$e]=s??3e5,this[v$e]=m??!0,this[Q_]=T,this[Bu]=null,this[G$e]=M>-1?M:-1,this[ur]=null,this[q$e]=O??100,this[J$e]=Ce??262144,this[V$e]=me??524288,this[W$e]=ke??6e4,this[wo]=[],this[jA]=0,this[No]=0,this[KA]=_t=>w_(this,_t),this[Y$e]=_t=>dde(this,_t)}get pipelining(){return this[PS]}set pipelining(e){this[PS]=e,this[KA](!0)}get stats(){return new I$e(this)}get[$C](){return this[wo].length-this[No]}get[ZC](){return this[No]-this[jA]}get[KC](){return this[wo].length-this[jA]}get[T$e](){return!!this[ur]&&!this[ap]&&!this[ur].destroyed}get[y_](){return!!(this[ur]?.busy(null)||this[KC]>=(lde(this)||1)||this[$C]>0)}[S$e](e){hde(this),this.once("connect",e)}[H$e](e,r){let s=new B$e(this[Da].origin,e,r);return this[wo].push(s),this[Pd]||(vd.bodyLength(s.body)==null&&vd.isIterable(s.body)?(this[Pd]=1,queueMicrotask(()=>w_(this))):this[KA](!0)),this[Pd]&&this[yu]!==2&&this[y_]&&(this[yu]=2),this[yu]<2}[O$e](){return new Promise(e=>{this[KC]?this[Bu]=e:e(null)})}[_$e](e){return new Promise(r=>{let s=this[wo].splice(this[No]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&vd.errorRequest(this,o,e)}let n=()=>{this[Bu]&&(this[Bu](),this[Bu]=null),r(null)};this[ur]?(this[ur].destroy(e,n),this[ur]=null):queueMicrotask(n),this[KA]()})}};function dde(t,e){if(t[ZC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){zA(t[No]===t[jA]);let r=t[wo].splice(t[jA]);for(let s=0;s<r.length;s++){let n=r[s];n!=null&&vd.errorRequest(t,n,e)}zA(t[KC]===0)}}function hde(t){zA(!t[ap]),zA(!t[ur]);let{host:e,hostname:r,protocol:s,port:n}=t[Da];if(r[0]==="["){let i=r.indexOf("]");zA(i!==-1);let o=r.substring(1,i);zA(ude.isIPv6(o)),r=o}t[ap]=!0,op.beforeConnect.hasSubscribers&&op.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ur]?.version,servername:t[Qu],localAddress:t[XC]},connector:t[jC]});try{t[jC]({host:e,hostname:r,protocol:s,port:n,servername:t[Qu],localAddress:t[XC]},(i,o)=>{if(i){B_(t,i,{host:e,hostname:r,protocol:s,port:n}),t[KA]();return}if(t.destroyed){vd.destroy(o.on("error",Ade),new b$e),t[KA]();return}zA(o);try{t[ur]=o.alpnProtocol==="h2"?K$e(t,o):z$e(t,o)}catch(a){o.destroy().on("error",Ade),B_(t,a,{host:e,hostname:r,protocol:s,port:n}),t[KA]();return}t[ap]=!1,o[P$e]=0,o[Q_]=t[Q_],o[N$e]=t,o[D$e]=null,op.connected.hasSubscribers&&op.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ur]?.version,servername:t[Qu],localAddress:t[XC]},connector:t[jC],socket:o}),t.emit("connect",t[Da],[t]),t[KA]()})}catch(i){B_(t,i,{host:e,hostname:r,protocol:s,port:n}),t[KA]()}}function B_(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[ap]=!1,op.connectError.hasSubscribers&&op.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[ur]?.version,servername:t[Qu],localAddress:t[XC]},connector:t[jC],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(zA(t[ZC]===0);t[$C]>0&&t[wo][t[No]].servername===t[Qu];){let o=t[wo][t[No]++];vd.errorRequest(t,o,e)}else dde(t,e);t.emit("connectionError",t[Da],[t],e)}}function cde(t){t[yu]=0,t.emit("drain",t[Da],[t])}function w_(t,e){t[Pd]!==2&&(t[Pd]=2,X$e(t,e),t[Pd]=0,t[jA]>256&&(t[wo].splice(0,t[jA]),t[No]-=t[jA],t[jA]=0))}function X$e(t,e){for(;;){if(t.destroyed){zA(t[$C]===0);return}if(t[Bu]&&!t[KC]){t[Bu](),t[Bu]=null;return}if(t[ur]&&t[ur].resume(),t[y_])t[yu]=2;else if(t[yu]===2){e?(t[yu]=1,queueMicrotask(()=>cde(t))):cde(t);continue}if(t[$C]===0||t[ZC]>=(lde(t)||1))return;let r=t[wo][t[No]];if(r===null)return;if(t[Da].protocol==="https:"&&t[Qu]!==r.servername){if(t[ZC]>0)return;t[Qu]=r.servername,t[ur]?.destroy(new Q$e("servername changed"),()=>{t[ur]=null,w_(t)})}if(t[ap])return;if(!t[ur]){hde(t);return}if(t[ur].destroyed||t[ur].busy(r))return;!r.aborted&&t[ur].write(r)?t[No]++:t[wo].splice(t[No],1)}}gde.exports=b_});var N_=I((W4t,fde)=>{"use strict";var OS=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)}};fde.exports=class{constructor(){this.head=this.tail=new OS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new OS),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 _S=I((z4t,bde)=>{"use strict";var{PoolStats:Z$e}=h6(),$$e=Sd(),eet=N_(),{kConnected:S_,kSize:pde,kRunning:mde,kPending:Ede,kQueued:eI,kBusy:tet,kFree:ret,kUrl:set,kClose:net,kDestroy:iet,kDispatch:oet}=At(),Gr=Symbol("clients"),Ss=Symbol("needDrain"),tI=Symbol("queue"),T_=Symbol("closed resolve"),x_=Symbol("onDrain"),Cde=Symbol("onConnect"),Ide=Symbol("onDisconnect"),Bde=Symbol("onConnectionError"),D_=Symbol("get dispatcher"),yde=Symbol("add client"),Qde=Symbol("remove client"),R_=class extends $$e{[tI]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};Ule.exports=x_});var R_=E((lUt,Ole)=>{"use strict";var{InvalidArgumentError:jje}=me(),{runtimeFeatures:Zje}=lA();function $je(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 Lle=Zje.has("crypto")?w("node:crypto"):null,eZe=Lle?.hash?t=>Lle.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Ple(t){return Array.isArray(t)&&(t.length&1)===0}function tZe(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 rZe(t){let e={};if(!t)return e;if(Ple(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 vle=["record","playback","update"];function sZe(t){if(!vle.includes(t))throw new jje(`Invalid snapshot mode: ${t}. Must be one of: ${vle.join(", ")}`)}Ole.exports={createHeaderFilters:$je,hashId:eZe,isUndiciHeaders:Ple,normalizeHeaders:rZe,isUrlExcludedFactory:tZe,validateSnapshotMode:sZe}});var zle=E((dUt,Wle)=>{"use strict";var{writeFile:nZe,readFile:iZe,mkdir:oZe}=w("node:fs/promises"),{dirname:aZe,resolve:_le}=w("node:path"),{setTimeout:AZe,clearTimeout:Hle}=w("node:timers"),{InvalidArgumentError:Gle,UndiciError:cZe}=me(),{hashId:uZe,isUrlExcludedFactory:lZe,normalizeHeaders:Yle,createHeaderFilters:qle}=R_();function qE(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||Yle(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:Vle(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Vle(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 Jle(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 VE(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 uZe(r)}var k_=class{#e;#t;#s=new Map;#r;#n=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#n=e.maxSnapshots||1/0,this.#i=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=qle(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=lZe(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=qE(e,this.#a,this.matchOptions),n=VE(s),i=Yle(r.headers),o={statusCode:r.statusCode,headers:Jle(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.#n&&!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.#i&&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=qE(e,this.#a,this.matchOptions),s=VE(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 Gle("Snapshot path is required");try{let s=await iZe(_le(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 cZe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Gle("Snapshot path is required");let s=_le(r);await oZe(aZe(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await nZe(s,JSON.s Line truncated
${e.format(r)}`.trim())}};Kge.exports=KH});var XH=I((wOt,$ge)=>{"use strict";var{InvalidArgumentError:nst}=Be(),{runtimeFeatures:ist}=qA();function ost(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 jge=ist.has("crypto")?N("node:crypto"):null,ast=jge?.hash?t=>jge.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Zge(t){return Array.isArray(t)&&(t.length&1)===0}function Ast(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 cst(t){let e={};if(!t)return e;if(Zge(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 Xge=["record","playback","update"];function ust(t){if(!Xge.includes(t))throw new nst(`Invalid snapshot mode: ${t}. Must be one of: ${Xge.join(", ")}`)}$ge.exports={createHeaderFilters:ost,hashId:ast,isUndiciHeaders:Zge,normalizeHeaders:cst,isUrlExcludedFactory:Ast,validateSnapshotMode:ust}});var Afe=I((NOt,afe)=>{"use strict";var{writeFile:lst,readFile:dst,mkdir:hst}=N("node:fs/promises"),{dirname:gst,resolve:efe}=N("node:path"),{setTimeout:fst,clearTimeout:tfe}=N("node:timers"),{InvalidArgumentError:rfe,UndiciError:pst}=Be(),{hashId:mst,isUrlExcludedFactory:Est,normalizeHeaders:sfe,createHeaderFilters:nfe}=XH();function gI(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||sfe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:ife(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function ife(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 ofe(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 fI(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 mst(r)}var ZH=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=nfe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Est(e.excludeUrls),this.#n&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=gI(e,this.#a,this.matchOptions),n=fI(s),i=sfe(r.headers),o={statusCode:r.statusCode,headers:ofe(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=gI(e,this.#a,this.matchOptions),s=fI(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 rfe("Snapshot path is required");try{let s=await dst(efe(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 pst(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new rfe("Snapshot path is required");let s=efe(r);await hst(gst(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await lst(s,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${En} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Vn} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};Ule.exports=x_});var R_=E((lUt,Ole)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${En}_getValuesQuery ON cacheInterceptorV${En}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${En}_deleteByUrlQuery ON cacheInterceptorV${En}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Vn}_getValuesQuery ON cacheInterceptorV${Vn}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Vn}_deleteByUrlQuery ON cacheInterceptorV${Vn}(deleteAt);
`),this.#r=this.#s.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};Ule.exports=x_});var R_=E((lUt,Ole)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${En}
FROM cacheInterceptorV${Vn}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#n=this.#s.prepare(`
UPDATE cacheInterceptorV${En} SET
`),this.#i=this.#s.prepare(`
UPDATE cacheInterceptorV${Vn} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};Ule.exports=x_});var R_=E((lUt,Ole)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#i=this.#s.prepare(`
INSERT INTO cacheInterceptorV${En} (
`),this.#n=this.#s.prepare(`
INSERT INTO cacheInterceptorV${Vn} (
url,
method,
body,
@@ -182,116 +182,132 @@ ${e.format(r)}`.trim())}};Ule.exports=x_});var R_=E((lUt,Ole)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${En} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${En}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${En} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${En}
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${Vn} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Vn}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${Vn} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${Vn}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${En}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${Vn}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#s.close()}get(e){e6(e);let r=this.#l(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){e6(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(e,!0);o?this.#n.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.#d(),this.#i.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))}createWriteStream(e,r){e6(e),j$e(r);let s=0,n=[],i=this;return new X$e({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.#u(e))}#d(){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}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(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)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Z$e(n[l],u[l])){c=!1;break}}if(c)return A}}};function Z$e(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var cd=E((MUt,the)=>{"use strict";var{kConstruct:$$e}=$e(),{kEnumerableProperty:Bf}=Ie(),{iteratorMixin:eet,isValidHeaderName:KE,isValidHeaderValue:Xde}=hn(),{webidl:Pe}=kr(),r6=w("node:assert"),LN=w("node:util");function Kde(t){return t===10||t===13||t===9||t===32}function jde(t){let e=0,r=t.length;for(;r>e&&Kde(t.charCodeAt(r-1));)--r;for(;r>e&&Kde(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Zde(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Pe.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});s6(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)s6(t,r[s],e[r[s]])}else throw Pe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function s6(t,e,r){if(r=jde(r),KE(e)){if(!Xde(r))throw Pe.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pe.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(ehe(t)==="immutable")throw new TypeError("immutable");return PN(t).append(e,r,!1)}function tet(t){let e=PN(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 $de(t,e){return t[0]<e[0]?-1:1}var vN=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.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":Afe(i)&&(r[n]=i);break;case"id":cfe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Afe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&cfe(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}}};ufe.exports={EventSourceStream:_6}});var Cfe=E((iLt,Efe)=>{"use strict";var{pipeline:Int}=w("node:stream"),{fetching:Bnt}=eC(),{makeRequest:ynt}=Qf(),{webidl:As}=kr(),{EventSourceStream:Qnt}=lfe(),{parseMIMEType:bnt}=ai(),{createFastMessageEvent:wnt}=cS(),{isNetworkError:dfe}=jE(),{kEnumerableProperty:md}=Ie(),{environmentSettingsObject:hfe}=hn(),gfe=!1,ffe=3e3,aC=0,pfe=1,AC=2,Nnt="anonymous",Snt="use-credentials",Ff=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=aC;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),As.util.markAsUncloneable(this);let s="EventSource constructor";As.argumentLengthCheck(arguments,1,s),gfe||(gfe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=As.converters.USVString(e),r=As.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=hfe,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=Nnt;r.withCredentials===!0&&(o=Snt,this.#s=!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.#n=ynt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===AC)return;this.#r=aC;let e={request:this.#n,dispatcher:this.#a},r=s=>{if(!dfe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(dfe(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?bnt(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=pfe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new Qnt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(wnt(A.type,A.options))}});Int(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Bnt(e)}#c(){this.#r!==AC&&(this.#r=aC,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===aC&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){As.brandCheck(this,t),this.#r!==AC&&(this.#r=AC,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=As.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=As.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=As.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},mfe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:aC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:pfe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:AC,writable:!1}};Object.defineProperties(Ff,mfe);Object.defineProperties(Ff.prototype,mfe);Object.defineProperties(Ff.prototype,{close:md,onerror:md,onmessage:md,onopen:md,readyState:md,url:md,withCredentials:md});As.converters.EventSourceInitDict=As.dictionaryConverter([{key:"withCredentials",converter:As.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:As.converters.any},{key:"node",converter:As.dictionaryConverter([{key:"reconnectionTime",converter:As.converters["unsigned long"],defaultValue:()=>ffe},{key:"dispatcher",converter:As.converters.any}]),defaultValue:()=>({})}]);Efe.exports={EventSource:Ff,defaultReconnectionTime:ffe}});var wfe=E((oLt,W)=>{"use strict";var Tnt=qc(),Bfe=oE(),xnt=Xl(),Dnt=Bce(),Rnt=wce(),knt=$l(),Fnt=MO(),Mnt=DO(),Unt=Aue(),Lnt=gue(),vnt=mue(),yfe=me(),yS=Ie(),{InvalidArgumentError:BS}=yfe,Mf=Zue(),Pnt=Yl(),Ont=E_(),{MockCallHistory:_nt Line truncated
`)}close(){this.#s.close()}get(e){S5(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){S5(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){S5(e),yit(r);let s=0,n=[],i=this;return new Bit({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(!Qit(n[l],u[l])){c=!1;break}}if(c)return A}}};function Qit(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 nh=I((zOt,kpe)=>{"use strict";var{kConstruct:bit}=At(),{kEnumerableProperty:Qp}=Ne(),{iteratorMixin:wit,isValidHeaderName:II,isValidHeaderValue:Spe}=Hn(),{webidl:Ke}=Kr(),x5=N("node:assert"),ET=N("node:util");function Npe(t){return t===10||t===13||t===9||t===32}function Tpe(t){let e=0,r=t.length;for(;r>e&&Npe(t.charCodeAt(r-1));)--r;for(;r>e&&Npe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function xpe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Ke.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});D5(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)D5(t,r[s],e[r[s]])}else throw Ke.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function D5(t,e,r){if(r=Tpe(r),II(e)){if(!Spe(r))throw Ke.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Ke.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Rpe(t)==="immutable")throw new TypeError("immutable");return IT(t).append(e,r,!1)}function Nit(t){let e=IT(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 Dpe(t,e){return t[0]<e[0]?-1:1}var CT=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(sx(e,n,Wct)){zct(e,i)&&(r.retry=e.toString("utf8",i));return}if(sx(e,n,Vct)){Kct(e,i)&&(r.id=e.toString("utf8",i));return}if(sx(e,n,Jct)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&_ct(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Hct(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===Up[0]||(this.checkBOM=!1),!0):s===void 0?e===Up[0]&&r===Up[1]?!0:(this.checkBOM=!1,!1):(e===Up[0]&&r===Up[1]&&s===Up[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};vEe.exports={EventSourceStream:pG}});var VEe=I((C6t,JEe)=>{"use strict";var{pipeline:jct}=N("node:stream"),{fetching:Xct}=wI(),{makeRequest:Zct}=wp(),{webidl:xs}=Kr(),{EventSourceStream:$ct}=PEe(),{parseMIMEType:eut}=vi(),{createFastMessageEvent:tut}=JT(),{isNetworkError:OEe}=yI(),{kEnumerableProperty:dh}=Ne(),{environmentSettingsObject:_Ee}=Hn(),HEe=!1,GEe=3e3,kI=0,YEe=1,FI=2,rut="anonymous",sut="use-credentials",Lp=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=kI;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),xs.util.markAsUncloneable(this);let s="EventSource constructor";xs.argumentLengthCheck(arguments,1,s),HEe||(HEe=!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=_Ee,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=rut;r.withCredentials===!0&&(o=sut,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=_Ee.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=Zct(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===FI)return;this.#r=kI;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!OEe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(OEe(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?eut(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=YEe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new $ct({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(tut(A.type,A.options))}});jct(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Xct(e)}#c(){this.#r!==FI&&(this.#r=kI,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 jnt(e,r).catch(s=>{throw Ife?bfe(s,Ife):s&&typeof s=="object"&&Error.captureStackTrace(s,W.exports.fetch),s})};W.exports.Headers=cd().Headers;W.exports.Response=jE().Response;W.exports.Request=Qf().Request;W.exports.FormData=Vw().FormData;var{setGlobalOrigin:Znt,getGlobalOrigin:$nt}=C4();W.exports.setGlobalOrigin=Znt;W.exports.getGlobalOrigin=$nt;var{CacheStorage:eit}=nge(),{kConstruct:tit}=$e();W.exports.caches=new eit(tit);var{deleteCookie:rit,getCookies:sit,getSetCookies:nit,setCookie:iit,parseCookie:oit}=mge();W.exports.deleteCookie=rit;W.exports.getCookies=sit;W.exports.getSetCookies=nit;W.exports.setCookie=iit;W.exports.parseCookie=oit;var{parseMIMEType:ait,serializeAMimeType:Ait}=ai();W.exports.parseMIMEType=ait;W.exports.serializeAMimeType=Ait;var{CloseEvent:cit,ErrorEvent:uit,MessageEvent:lit}=cS(),{WebSocket:dit,ping:hit}=jge();W.exports.WebSocket=dit;W.exports.CloseEvent=cit;W.exports.ErrorEvent=uit;W.exports.MessageEvent=lit;W.exports.ping=hit;W.exports.WebSocketStream=ife().WebSocketStream;W.exports.WebSocketError=U6().WebSocketError;W.exports.request=cC(Mf.request);W.exports.stream=cC(Mf.stream);W.exports.pipeline=cC(Mf.pipeline);W.exports.connect=cC(Mf.connect);W.exports.upgrade=cC(Mf.upgrade);W.exports.MockClient=Ont;W.exports.MockCallHistory=_nt;W.exports.MockCallHistoryLog=Hnt;W.exports.MockPool=Ynt;W.exports.MockAgent=Gnt;W.exports.SnapshotAgent=qnt;W.exports.mockErrors=Vnt;var{EventSource:git}=Cfe();W.exports.EventSource=git;function fit(){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=fit});var uC=E(su=>{"use strict";su.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");su.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");su.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";su.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);su.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);su.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());su.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 Sfe=E((cLt,Nfe)=>{"use strict";var{asciiLowercase:QS,solelyContainsHTTPTokenCodePoints:pit,soleyContainsHTTPQuotedStringTokenCodePoints:mit}=uC();Nfe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=QS(String(e)),this._map.get(e)}has(e){return e=QS(String(e)),this._map.has(e)}set(e,r){if(e=QS(String(e)),r=String(r),!pit(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!mit(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=QS(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=E((uLt,xfe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Eit,removeTrailingHTTPWhitespace:Tfe,isHTTPWhitespaceChar:Cit,solelyContainsHTTPTokenCodePoints:H6,soleyContainsHTTPQuotedStringTokenCodePoints:Iit,asciiLowercase:G6,collectAnHTTPQuotedString:Bit}=uC();xfe.exports=t=>{t=Eit(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!H6(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Tfe(s),s.length===0||!H6(s))return null;let n={type:G6(r),subtype:G6(s),parameters:new Map};for(;e<t.length;){for(++e;Cit(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=G6(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Bit(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Tfe(o),o==="")continue}i.length>0&&H6(i)&&Iit(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var kfe=E((lLt,Rfe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:yit}=uC();Rfe.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+="=",(!yit(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var Lfe=E((hLt,Ufe)=>{"use strict";var Qit=Sfe(),bit=Dfe(),wit=kfe(),{asciiLowercase:Ffe,solelyContainsHTTPTokenCodePoints:Mfe}=uC();Ufe.exports=class{constructor(e){e=String(e);let r=bit(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 Qit(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=Ffe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Mfe(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=Ffe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Mfe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return wit(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 K6 from"os";function yA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function TS(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 Ed(t,e,r){let s=new xS(t,e,r);process.stdout.write(s.toString()+K6.EOL)}var z6="::",xS=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=z6+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnPropertyLine truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function hD(t){process.exitCode=lD.Failure,Fu(t)}function qA(){return process.env.RUNNER_DEBUG==="1"}function U(t){Ed("debug",{},t)}function Fu(t,e={}){Ed("error",TS(e),t instanceof Error?t.toString():t)}function ht(t,e={}){Ed("warning",TS(e),t instanceof Error?t.toString():t)}function ae(t){process.stdout.write(t+O7.EOL)}function vp(t,e){if(process.env.GITHUB_STATE||"")return j6("STATE",Z6(t,e));Ed("save-state",{name:t},yA(e))}function Mu(t){return process.env[`STATE_${t}`]||""}import{readFileSync as HSe,existsSync as GSe}from"fs";import{EOL as YSe}from"os";var fh=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(GSe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(HSe(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${YSe}`)}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 mD=Ee(q7(),1),V7=Ee(AB(),1),rTe=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 J7(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 W7(t){return new mD.HttpClient().getAgent(t)}function sTe(t){return new mD.HttpClient().getAgentDispatcher(t)}function z7(t){let e=sTe(t);return(s,n)=>rTe(this,void 0,void 0,function*(){return(0,V7.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function K7(){return process.env.GITHUB_API_URL||"https://api.github.com"}function ED(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 VA(){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 yB(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)=>yB.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 X7(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 j7(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 Z7=Function.bind,$7=Z7.bind(Z7);function eW(t,e,r){let s=$7(j7,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]=$7(X7,null).apply(null,i)})}function iTe(){let t=Symbol("Singular"),e={registry:{}},r=yB.bind(null,e,t);return eW(r,e,t),r}function oTe(){let t={registry:{}},e=yB.bind(null,t);return eW(e,t),e}var tW={Singular:iTe,Collection:oTe};var aTe="0.0.0-development",ATe=`octokit-endpoint.js/${aTe} ${VA()}`,cTe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":ATe},mediaType:{format:""}};function uTe(t){return t?Object.keys(t).redu Line truncated
${i}`:n.stack}j.exports.fetch=function(e,r=void 0){return Sut(e,r).catch(s=>{throw WEe?XEe(s,WEe):s&&typeof s=="object"&&Error.captureStackTrace(s,j.exports.fetch),s})};j.exports.Headers=nh().Headers;j.exports.Response=yI().Response;j.exports.Request=wp().Request;j.exports.FormData=NS().FormData;var{setGlobalOrigin:Tut,getGlobalOrigin:xut}=M6();j.exports.setGlobalOrigin=Tut;j.exports.getGlobalOrigin=xut;var{CacheStorage:Dut}=Ume(),{kConstruct:Rut}=At();j.exports.caches=new Dut(Rut);var{deleteCookie:kut,getCookies:Fut,getSetCookies:Mut,setCookie:Uut,parseCookie:Lut}=Wme();j.exports.deleteCookie=kut;j.exports.getCookies=Fut;j.exports.getSetCookies=Mut;j.exports.setCookie=Uut;j.exports.parseCookie=Lut;var{parseMIMEType:vut,serializeAMimeType:Put}=vi();j.exports.parseMIMEType=vut;j.exports.serializeAMimeType=Put;var{CloseEvent:Out,ErrorEvent:_ut,MessageEvent:Hut}=JT(),{WebSocket:Gut,ping:Yut}=NEe();j.exports.WebSocket=Gut;j.exports.CloseEvent=Out;j.exports.ErrorEvent=_ut;j.exports.MessageEvent=Hut;j.exports.ping=Yut;j.exports.WebSocketStream=MEe().WebSocketStream;j.exports.WebSocketError=lG().WebSocketError;j.exports.request=MI(vp.request);j.exports.stream=MI(vp.stream);j.exports.pipeline=MI(vp.pipeline);j.exports.connect=MI(vp.connect);j.exports.upgrade=MI(vp.upgrade);j.exports.MockClient=fut;j.exports.MockCallHistory=put;j.exports.MockCallHistoryLog=mut;j.exports.MockPool=Cut;j.exports.MockAgent=Eut;j.exports.SnapshotAgent=Iut;j.exports.mockErrors=But;var{EventSource:qut}=VEe();j.exports.EventSource=qut;function Jut(){globalThis.fetch=j.exports.fetch,globalThis.Headers=j.exports.Headers,globalThis.Response=j.exports.Response,globalThis.Request=j.exports.Request,globalThis.FormData=j.exports.FormData,globalThis.WebSocket=j.exports.WebSocket,globalThis.CloseEvent=j.exports.CloseEvent,globalThis.ErrorEvent=j.exports.ErrorEvent,globalThis.MessageEvent=j.exports.MessageEvent,globalThis.EventSource=j.exports.EventSource}j.exports.install=Jut});var UI=I(vu=>{"use strict";vu.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");vu.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");vu.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";vu.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);vu.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);vu.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());vu.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 e0e=I((Q6t,$Ee)=>{"use strict";var{asciiLowercase:ox,solelyContainsHTTPTokenCodePoints:Vut,soleyContainsHTTPQuotedStringTokenCodePoints:Wut}=UI();$Ee.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=ox(String(e)),this._map.get(e)}has(e){return e=ox(String(e)),this._map.has(e)}set(e,r){if(e=ox(String(e)),r=String(r),!Vut(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Wut(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=ox(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 s0e=I((b6t,r0e)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:zut,removeTrailingHTTPWhitespace:t0e,isHTTPWhitespaceChar:Kut,solelyContainsHTTPTokenCodePoints:mG,soleyContainsHTTPQuotedStringTokenCodePoints:jut,asciiLowercase:EG,collectAnHTTPQuotedString:Xut}=UI();r0e.exports=t=>{t=zut(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!mG(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=t0e(s),s.length===0||!mG(s))return null;let n={type:EG(r),subtype:EG(s),parameters:new Map};for(;e<t.length;){for(++e;Kut(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=EG(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Xut(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=t0e(o),o==="")continue}i.length>0&&mG(i)&&jut(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var i0e=I((w6t,n0e)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Zut}=UI();n0e.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+="=",(!Zut(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var c0e=I((S6t,A0e)=>{"use strict";var $ut=e0e(),elt=s0e(),tlt=i0e(),{asciiLowercase:o0e,solelyContainsHTTPTokenCodePoints:a0e}=UI();A0e.exports=class{constructor(e){e=String(e);let r=elt(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 $ut(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=o0e(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!a0e(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=o0e(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!a0e(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return tlt(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 LG from"os";function nc(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function PI(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 ic(t,e,r){let s=new Bx(t,e,r);process.stdout.write(s.toString()+LG.EOL)}function yx(t,e=""){ic(t,{},e)}var UG="::",Bx=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=UG+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 uk(t){process.exitCode=Ak.Failure,ml(t)}function Nc(){return process.env.RUNNER_DEBUG==="1"}function L(t){ic("debug",{},t)}function ml(t,e={}){ic("error",PI(e),t instanceof Error?t.toString():t)}function at(t,e={}){ic("warning",PI(e),t instanceof Error?t.toString():t)}function DK(t,e={}){ic("notice",PI(e),t instanceof Error?t.toString():t)}function pe(t){process.stdout.write(t+xK.EOL)}function RK(t){yx("group",t)}function kK(){yx("endgroup")}function jm(t,e){if(process.env.GITHUB_STATE||"")return PG("STATE",OG(t,e));ic("save-state",{name:t},nc(e))}function Sc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as lRe,existsSync as dRe}from"fs";import{EOL as hRe}from"os";var dg=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(dRe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(lRe(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${hRe}`)}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 gk=we(vK(),1),PK=we(vy(),1),NRe=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 OK(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 _K(t){return new gk.HttpClient().getAgent(t)}function SRe(t){return new gk.HttpClient().getAgentDispatcher(t)}function HK(t){let e=SRe(t);return(s,n)=>NRe(this,void 0,void 0,function*(){return(0,PK.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function GK(){return process.env.GITHUB_API_URL||"https://api.github.com"}function fk(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 Tc(){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 Xy(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)=>Xy.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 YK(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 qK(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 JK=Function.bind,VK=JK.bind(JK);function WK(t,e,r){let s=VK(qK,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]=VK(YK,null).apply(null,i)})}function xRe(){let t=Symbol("Singular"),e={registry:{}},r=Xy.bind(null,e,t);return WK(r,e,t),r}function DRe(){let t={registry:{}},e=Xy.bind(null,t);return WK(e,t),e}var zK={Singular:xRe,Collection:DRe};var RRe="0.0.0-development",kRe=`octokit-endpoint.js/${RRe} ${Tc()}`,FRe={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(yk(m))u.push("null"),f.first=!1,f.index++;else{let C=m!==null&&typeof m=="object",w=Qk(m);if(C&&!w){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(xc(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 w=f.val[m],T=o(f.val,m,w);if(yk(T))continue;f.first||u.push(","),s?u.push(`
`+s.repeat(l)+xc(m)+": "):u.push(xc(m)+":");let k=T!==null&&typeof T=="object",M=Qk(T);if(k&&!M){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(xc(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("")},hj=(t,e,r)=>{try{return"rawJSON"in JSON?xc(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?xc(t,(a,A)=>typeof A=="string"&&$y.test(A)||typeof A=="bigint"?A.toString()+"n":typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r).replace(Aj,"$1$2$3").replace(cj,"$1$2$3"):xc(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(Aj,"$1$2$3").replace(cj,"$1$2$3")}throw s}},Zy=new Map,jRe=()=>{let t=JSON.parse.toString();if(Zy.has(t))return Zy.get(t);try{let e=JSON.parse("1",(r,s,n)=>!!n?.source&&n.source==="1");return Zy.set(t,e),e}catch{return Zy.set(t,!1),!1}},XRe=(t,e,r,s)=>typeof e=="string"&&dj.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&$y.test(e)?e.slice(0,-1):typeof s=="function"?s(t,e,r):e,ZRe=(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&&zRe.test(n.source);return a&&A?BigInt(n.source):typeof e=="function"?e(r,s,n):s}),gj=Number.MAX_SAFE_INTEGER.toString(),uj=gj.length,$Re=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,eke=/^"-?\d+n+"$/,tke=(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"&&(dj.test(a)?a=BigInt(a.slice(0,-1)):$y.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[""]},lj=t=>t.replace($Re,(e,r,s,n)=>{let i=e[0]==='"';if(i&&eke.test(e))return e.substring(0,e.length-1)+'n"';let a=s||n,A=r&&(r.length<uj||r.length===uj&&r<=gj);return i||a||A?e:'"'+e+'n"'}),fj=(t,e)=>{if(!t)return Bk(t,e);try{if(jRe())return ZRe(t,e);let r=lj(t);return Bk(r,(s,n,i)=>XRe(s,n,i,e))}catch(r){if(r instanceof RangeError){let s=lj(t),n=Bk(s);return tke(n,e)}throw r}};var El=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 rke="10.0.16",ske={headers:{"user-agent":`octokit-request.js/${rke} ${Tc()}`}};function nke(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 pj=()=>"";async function mj(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=nke(t.body)||Array.isArray(t.body)?hj(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 El(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 El(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await bk(o),new El("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await bk(o),new El(oke(u.data),a,{response:u,request:t});return u.data=s?await bk(o):o.body,u}async function bk(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(pj);let r=nj(e);if(ike(r)){let s="";try{return s=await t.text(),fj(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 VTe=class extends Error{constructor(t,e,r){super(qTe(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},JTe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],WTe=["query","method","url"],wW=/\/api\/v3\/?$/;function zTe(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(WTe.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)=>JTe.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 wW.test(i)&&(n.url=i.replace(wW,"/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 VTe(n,a,o.data)}return o.data.data})}function SD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>zTe(r,n,i),{defaults:SD.bind(null,r),endpoint:r.endpoint})}var JAt=SD(_p,{headers:{"user-agent":`octokit-graphql.js/${YTe} ${VA()}`},method:"POST",url:"/graphql"});function NW(t){return SD(t,{method:"POST",url:"/graphql"})}var TD="(?:[a-zA-Z0-9_-]+)",SW="\\.",TW=new RegExp(`^${TD}${SW}${TD}${SW}${TD}$`),KTe=TW.test.bind(TW);async function XTe(t){let e=KTe(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 jTe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function ZTe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=jTe(t),e(n)}var xW=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(XTe.bind(null,e),{hook:ZTe.bind(null,e)})};var xD="7.0.6";var DW=()=>{},$Te=console.warn.bind(console),exe=console.error.bind(console);function txe(t={}){return typeof t.debug!="function"&&(t.debug=DW),typeof t.info!="function"&&(t.info=DW),typeof t.warn!="function"&&(t.warn=$Te),typeof t.error!="function"&&(t.error=exe),t}var RW=`octokit-core.js/${xD} ${VA()}`,wB=class{static VERSION=xD;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 tW.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} ${RW}`:RW,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=NW(this.request).defaults(s),this.log=txe(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=xW(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 DD="17.0.0";var rxe={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 cke=class extends Error{constructor(t,e,r){super(Ake(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},uke=["method","baseUrl","url","headers","request","query","mediaType","operationName"],lke=["query","method","url"],Ej=/\/api\/v3\/?$/;function dke(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(lke.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)=>uke.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 Ej.test(i)&&(n.url=i.replace(Ej,"/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 cke(n,a,o.data)}return o.data.data})}function Nk(t,e){let r=t.defaults(e);return Object.assign((n,i)=>dke(r,n,i),{defaults:Nk.bind(null,r),endpoint:r.endpoint})}var jgt=Nk($m,{headers:{"user-agent":`octokit-graphql.js/${ake} ${Tc()}`},method:"POST",url:"/graphql"});function Cj(t){return Nk(t,{method:"POST",url:"/graphql"})}var Sk="(?:[a-zA-Z0-9_-]+)",Ij="\\.",Bj=new RegExp(`^${Sk}${Ij}${Sk}${Ij}${Sk}$`),hke=Bj.test.bind(Bj);async function gke(t){let e=hke(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 fke(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function pke(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=fke(t),e(n)}var yj=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(gke.bind(null,e),{hook:pke.bind(null,e)})};var Tk="7.0.8";var Qj=()=>{},mke=console.warn.bind(console),Eke=console.error.bind(console);function Cke(t={}){return typeof t.debug!="function"&&(t.debug=Qj),typeof t.info!="function"&&(t.info=Qj),typeof t.warn!="function"&&(t.warn=mke),typeof t.error!="function"&&(t.error=Eke),t}var bj=`octokit-core.js/${Tk} ${Tc()}`,eQ=class{static VERSION=Tk;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 zK.Collection,s={baseUrl:$m.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} ${bj}`:bj,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=$m.defaults(s),this.graphql=Cj(this.request).defaults(s),this.log=Cke(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=yj(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 xk="17.0.0";var Ike={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
`)}
`:`${PW(t.status,e)}
`:`${Rj(t.status,e)}
${vD[t.status]}
`}function qW(t){return t==="enabled"||t==="read-only"||t==="write-only"}function PW(t,e){if(!qW(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 lxe(t){return t?uxe[t]:void 0}function dxe(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Xs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${cxe}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Xs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Xs}#enhanced-caching)** provider.`}function hxe(t){let e=t.entries,r=e.filter(c=>c.restoredKey).length,s=e.filter(c=>c.savedKey).length,n=VW(e)?`Entries: ${r} restored (${NB(e,c=>c.restoredSize)}Mb), ${s} saved (${NB(e,c=>c.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${s} saved - Expand for more details`,i=t.status==="enabled"?lxe(t.cleanup):void 0,o=gxe(t.entries),a=`<pre>
${fxe(t.entries)}</pre>`,A=[vD[t.status],i,o,a].filter(Boolean).join(`
${Lk[t.status]}
`}function vj(t){return t==="enabled"||t==="read-only"||t==="write-only"}function Rj(t,e){if(!vj(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 Dke(t){return t?Tke[t]:void 0}function Rke(t){return t?xke[t]:void 0}function kke(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${gs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${Ske}) for terms of use and opt-out instructions.`:`**[Basic Caching](${gs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${gs}#enhanced-caching)** provider.`}function Fke(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,s=e.filter(u=>u.savedKey).length,n=Pj(e)?`Entries: ${r} restored (${tQ(e,u=>u.restoredSize)}Mb), ${s} saved (${tQ(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${s} saved - Expand for more details`,i=t.status==="enabled"?Dke(t.cleanup):void 0,o=Rke(t.projectCache),a=Mke(t.entries),A=`<pre>
${Uke(t.entries)}</pre>`,c=[Lk[t.status],i,o,a,A].filter(Boolean).join(`
`);return`<details>
<summary>${n}</summary>
${A}
</details>`}function VW(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function gxe(t){return VW(t)?`<table>
${c}
</details>`}function Pj(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function Mke(t){return Pj(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>${OW(t,e=>e.restoredSize)}</td>
<td>${NB(t,e=>e.restoredSize)}</td>
<td>${_W(t,e=>e.restoredTime)}</td>
<td>${kj(t,e=>e.restoredSize)}</td>
<td>${tQ(t,e=>e.restoredSize)}</td>
<td>${Fj(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${OW(t,e=>e.savedSize)}</td>
<td>${NB(t,e=>e.savedSize)}</td>
<td>${_W(t,e=>e.savedTime)}</td>
<td>${kj(t,e=>e.savedSize)}</td>
<td>${tQ(t,e=>e.savedSize)}</td>
<td>${Fj(t,e=>e.savedTime)}</td>
</tr>
</table>`:""}function fxe(t){return t.map(e=>`Entry: ${e.entryName}
</table>`:""}function Uke(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${HW(e.restoredSize)}
Time: ${GW(e.restoredTime)}
Size: ${Mj(e.restoredSize)}
Time: ${Uj(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${HW(e.savedSize)}
Time: ${GW(e.savedTime)}
Size: ${Mj(e.savedSize)}
Time: ${Uj(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function OW(t,e){return t.filter(r=>e(r)).length}function NB(t,e){let r=t.map(s=>e(s)??0).reduce((s,n)=>s+n,0);return Math.round(r/(1024*1024))}function _W(t,e){return t.map(r=>e(r)??0).reduce((r,s)=>r+s,0)}function HW(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function GW(t){return t===void 0||t===0?"":`${t} ms`}import*as E0 from"path";import*as yh from"fs";function PD(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,U(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,U(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,U(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,U(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,U(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as RB from"path";import*as Ch from"path";import vu from"assert";var JA=process.platform==="win32";function Fa(t){if(t=ka(t),JA&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Ch.dirname(t);return JA&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ka(e)),e}function SB(t,e){if(vu(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),vu(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Hp(e))return e;if(JA){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return vu(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(Ti(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return vu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return vu(Hp(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||JA&&t.endsWith("\\")||(t+=Ch.sep),t+e}function Hp(t){return vu(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ti(t),JA?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Gp(t){return vu(t,"isRooted parameter 'itemPath' must not be empty"),t=Ti(t),JA?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Ti(t){return t=t||"",JA?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ka(t){return t?(t=Ti(t),!t.endsWith(Ch.sep)||t===Ch.sep||JA&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var xi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(xi||(xi={}));var JW=process.platform==="win32";function _D(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=JW?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=JW?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Fa(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Fa(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function WW(t,e){let r=xi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function zW(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as pz from"os";import*as Bh from"path";var mz=Ee(fz(),1);import Hu from"assert";import*as Ou from"path";import qp from"assert";var Oxe=process.platform==="win32",_u=class{constructor(e){if(this.segments=[],typeof e=="string")if(qp(e,"Parameter 'itemPath' must not be empty"),e=ka(e),!Gp(e))this.segments=e.split(Ou.sep);else{let r=e,s=Fa(r);for(;s!==r;){let n=Ou.basename(r);this.segments.unshift(n),r=s,s=Fa(r)}this.segments.unshift(r)}else{qp(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let s=e[r];qp(s,"Parameter 'itemPath' must not contain any empty segments"),s=Ti(e[r]),r===0&&Gp(s)?(s=ka(s),qp(s===Fa(s),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(s)):(qp(!s.includes(Ou.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(s))}}}toString(){let e=this.segments[0],r=e.endsWith(Ou.sep)||Oxe&&/^[A-Z]:$/i.test(e);for(let s=1;s<this.segments.length;s++)r?r=!1:e+=Ou.sep,e+=this.segments[s];return e}};var{Minimatch:_xe}=mz.default,Ma=process.platform==="win32",Vp=class t{constructor(e,r=!1,s,n){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{s=s||[],Hu(s.length,"Parameter 'segments' must not empty");let c=t.getLiteral(s[0]);Hu(c&&Hp(c),"Parameter 'segments' first element must be a root path"),i=new _u(s).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!" Line truncated
`)}function kj(t,e){return t.filter(r=>e(r)).length}function tQ(t,e){let r=t.map(s=>e(s)??0).reduce((s,n)=>s+n,0);return Math.round(r/(1024*1024))}function Fj(t,e){return t.map(r=>e(r)??0).reduce((r,s)=>r+s,0)}function Mj(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Uj(t){return t===void 0||t===0?"":`${t} ms`}import*as O0 from"path";import*as Eg from"fs";function vk(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,L(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,L(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,L(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,L(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,L(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as oQ from"path";import*as pg from"path";import Il from"assert";var Dc=process.platform==="win32";function uA(t){if(t=cA(t),Dc&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=pg.dirname(t);return Dc&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=cA(e)),e}function rQ(t,e){if(Il(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Il(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),eE(e))return e;if(Dc){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Il(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(io(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Il(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Il(eE(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Dc&&t.endsWith("\\")||(t+=pg.sep),t+e}function eE(t){return Il(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=io(t),Dc?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function tE(t){return Il(t,"isRooted parameter 'itemPath' must not be empty"),t=io(t),Dc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function io(t){return t=t||"",Dc?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function cA(t){return t?(t=io(t),!t.endsWith(pg.sep)||t===pg.sep||Dc&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var oo;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(oo||(oo={}));var Oj=process.platform==="win32";function Ok(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=Oj?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=Oj?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 _j(t,e){let r=oo.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function Hj(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as cX from"os";import*as mg from"path";var uX=we(AX(),1);import bl from"assert";import*as yl from"path";import nE from"assert";var aFe=process.platform==="win32",Ql=class{constructor(e){if(this.segments=[],typeof e=="string")if(nE(e,"Parameter 'itemPath' must not be empty"),e=cA(e),!tE(e))this.segments=e.split(yl.sep);else{let r=e,s=uA(r);for(;s!==r;){let n=yl.basename(r);this.segments.unshift(n),r=s,s=uA(r)}this.segments.unshift(r)}else{nE(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let s=e[r];nE(s,"Parameter 'itemPath' must not contain any empty segments"),s=io(e[r]),r===0&&tE(s)?(s=cA(s),nE(s===uA(s),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(s)):(nE(!s.includes(yl.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(s))}}}toString(){let e=this.segments[0],r=e.endsWith(yl.sep)||aFe&&/^[A-Z]:$/i.test(e);for(let s=1;s<this.segments.length;s++)r?r=!1:e+=yl.sep,e+=this.segments[s];return e}};var{Minimatch:AFe}=uX.default,lA=process.platform==="win32",iE=class t{constructor(e,r=!1,s,n){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{s=s||[],bl(s.length,"Parameter 'segments' must not empty");let c=t.getLiteral(s[0]);bl(c&&eE(c),"Parameter 'segments' first element must be a root path"),i=new Ql(s).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!" 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 Vp(i));return s.searchPaths.push(..._D(s.patterns)),s})}static stat(e,r,s){return VD(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield yh.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){U(`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 yh.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield yh.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){U(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var qxe=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 Ez(t,e){return qxe(this,void 0,void 0,function*(){return yield DB.create(t,e)})}var lX=Ee(cX(),1);import*as JB from"crypto";import*as Nh from"fs";import*as Gu from"path";import*as dX from"util";var Zp;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zp||(Zp={}));var jr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(jr||(jr={}));var Zs;(function(t){t.GNU="gnu",t.BSD="bsd"})(Zs||(Zs={}));var qB=2,VB=5e3,dR=5e3,hR=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uX=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,$p="cache.tar",gR="manifest.txt",Lut=10*Math.pow(1024,3);var wh=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())})},ZRe=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)}},$Re="1.0";function em(){return wh(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=Gu.join(s,"actions","temp")}let r=Gu.join(e,JB.randomUUID());return yield dB(r),r})}function fo(t){return Nh.statSync(t).size}function fR(t){return wh(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 Ez(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=ZRe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=Gu.relative(a,n).replace(new RegExp(`\\${Gu.sep}`,"g"),"/");U(`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 tm(t){return wh(this,void 0,void 0,function*(){return dX.promisify(Nh.unlink)(t)})}function hX(t){return wh(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),U(`Checking ${e} ${r.join(" ")}`);try{yield fB(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){U(n.message)}return s=s.trim(),U(s),s})}function rm(){return wh(this,void 0,void 0,function*(){let t=yield hX("zstd",["--quiet"]),e=lX.clean(t);return U(`zstd version: ${e}`),t===""?jr.Gzip:jr.ZstdWithoutLong})}function XA(t){return t===jr.Gzip?Zp.Gzip:Zp.Zstd}function gX(){return wh(this,void 0,void 0,function*(){return Nh.existsSync(hR)?hR:(yield hX("tar")).toLowerCase().includes("gnu tar")?Da("tar"):""})}function pR(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Sh(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push($Re),JB.createHash("sha256").update(s.join("|")).digest("hex")}function fX(){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 sg from"fs";import{URL as L3e}from"url";var po=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as eke}from"node:os";import tke from"node:util";import rke from"node:process";function pX(t,...e){rke.stderr.write(`${tke.format(t,...e)}${eke}`)}import sm from"node:process";function zB(t){return sm.env[t]}var mX=typeof sm.versions.deno=="string"&&sm.versions.deno.length>0,EX=typeof sm.versions.bun=="string"&&sm.versions.bun.length>0,KB=!0;var CX=zB("DEBUG"),BX,mR=[],ER=[],XB=[];CX&&CR(CX);var yX=Object.assign(t=>QX(t),{enable:CR,enabled:IR,disable:ske,log:pX});function CR(t){BX=t,mR=[],ER=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?ER.push(r.substring(1)):mR.push(r);for(let r of XB)r.enabled=IR(r.namespace)}function IR(t){if(t.endsWith("*"))return!0;for(let e of ER)if(IX(t,e))return!1;for(let e of mR)if(IX(t,e))return!0;return!1}function IX(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 ske(){let t=BX||"";return CR(""),t}function QX(t){let e=Object.assign(r,{enabled:IR(t),destroy:nke,log:yX.log,namespace:t,extend:ike});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return XB.push(e),e}function nke(){let t=XB.indexOf(this);return t>=0?(XB.splice(t,1),!0):!1}function ike(t){let e=QX(`${this.namespace}:${t}`);return e.log=this.log,e}var Th=yX;var BR=["verbose","info","warning","error"],bX={verbose:400,info:300,warning:200,error:100};function wX(t,e){e.log=(...r)=>{t.log(...r)}}function NX(t){return BR.includes(t)}function jB(t){let e=new Set,r=zB(t.logLevelEnvVarName),s,n=Th(t.namespace);n.log=(...u)=>{Th.log(...u)};function i(u){if(u&&!NX(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${BR.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Th.enable(l.join(","))}r&&(NX(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${BR.join(", ")}.`));function o(u){return!!(s&&bX[u.level]<=bX[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(wX(u,d),o(d)){let h=Th.disable();Th.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return wX(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 SX=jB({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),oke=SX.logger;function nm(t){return SX.createClientLogger(t)}function ZB(t){return t.toLowerCase()}function ake(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Ake(t){for(let e of t.values())yield[e.name,e.value]}var yR=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(ZB(e),{name:e,value:ake(r)})}get(e){return this._headersMap.get(ZB(e))?.value}has(e){return this._headersMap.has(ZB(e))}delete(e){this._ Line truncated
${dke.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function xh(t){return t instanceof Zr?!0:qu(t)&&t.name==="RestError"}function fs(t,e){return Buffer.from(t,e)}import NR from"node:http";import SR from"node:https";import DX from"node:zlib";import{Transform as hke}from"node:stream";var ps=nm("ts-http-runtime");var gke={};function im(t){return t&&typeof t.pipe=="function"}function RX(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 kX(t){return t&&typeof t.byteLength=="number"}var ty=class extends hke{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}},TR=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new po("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 Di;ps.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=Eke(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new ty(f);p.on("error",I=>{ps.error("Error in upload progress",I)}),im(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=fke(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?pke(c,u):c;let h=e.onDownloadProgress;if(h){let f=new ty(h);f.on("error",p=>{ps.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 mke(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();im(a)&&(c=RX(a));let u=Promise.resolve();im(A)&&(u=RX(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{ps.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?NR.request(a,A):SR.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 po("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&im(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):kX(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(ps.error("Unrecognized body type",s),c(new Zr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?NR.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new NR.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return SR.globalAgent;let n=e.tlsSettings??gke,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ps.info("No cached TLS Agent exist, creating a new Agent"),i=new SR.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function fke(t){let e=$s();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 pke(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=DX.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=DX.createInflate();return t.pipe(s),s}return t}function mke(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 Eke(t){return t?Buffer.isBuffer(t)?t.length:im(t)?null:kX(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function FX(){return new TR}function ry(){return FX()}var xR="logPolicy";function sy(t={}){let e=t.logger??ps.info,r=new Di({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:xR,async sendRequ Line truncated
`;return e}function OFe(t){return t instanceof Uint8Array?t.byteLength:Am(t)?t.size===-1?void 0:t.size:void 0}function _Fe(t){let e=0;for(let r of t){let s=OFe(r);if(s===void 0)return;e+=s}return e}async function HFe(t,e,r){let s=[fs(`--${r}`,"utf-8"),...e.flatMap(i=>[fs(`\r
`,"utf-8"),fs(PFe(i.headers),"utf-8"),fs(`\r
`,"utf-8"),i.body,fs(`\r
--${r}`,"utf-8")]),fs(`--\r
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new iE(i));return s.searchPaths.push(...Ok(s.patterns)),s})}static stat(e,r,s){return Jk(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Eg.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){L(`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 Eg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Eg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){L(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var dFe=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 lX(t,e){return dFe(this,void 0,void 0,function*(){return yield iQ.create(t,e)})}var n$=we(r$(),1);import*as yQ from"crypto";import*as yg from"fs";import*as wl from"path";import*as i$ from"util";var dE;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(dE||(dE={}));var ps;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ps||(ps={}));var Qn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Qn||(Qn={}));var CQ=2,IQ=5e3,dF=5e3,hF=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,s$=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,hE="cache.tar",gF="manifest.txt",Hpt=10*Math.pow(1024,3),BQ="cache read denied:";var Bg=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())})},BLe=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)}},yLe="1.0";function gE(){return Bg(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=wl.join(s,"actions","temp")}let r=wl.join(e,yQ.randomUUID());return yield Hy(r),r})}function Go(t){return yg.statSync(t).size}function fF(t){return Bg(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 lX(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=BLe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=wl.relative(a,n).replace(new RegExp(`\\${wl.sep}`,"g"),"/");L(`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 fE(t){return Bg(this,void 0,void 0,function*(){return i$.promisify(yg.unlink)(t)})}function o$(t){return Bg(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),L(`Checking ${e} ${r.join(" ")}`);try{yield qy(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){L(n.message)}return s=s.trim(),L(s),s})}function pE(){return Bg(this,void 0,void 0,function*(){let t=yield o$("zstd",["--quiet"]),e=n$.clean(t);return L(`zstd version: ${e}`),t===""?ps.Gzip:ps.ZstdWithoutLong})}function Mc(t){return t===ps.Gzip?dE.Gzip:dE.Zstd}function a$(){return Bg(this,void 0,void 0,function*(){return yg.existsSync(hF)?hF:(yield o$("tar")).toLowerCase().includes("gnu tar")?aA("tar"):""})}function pF(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Qg(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(yLe),yQ.createHash("sha256").update(s.join("|")).digest("hex")}function A$(){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 of from"fs";import{URL as k_e}from"url";var Yo=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as QLe}from"node:os";import bLe from"node:util";import wLe from"node:process";function c$(t,...e){wLe.stderr.write(`${bLe.format(t,...e)}${QLe}`)}import mE from"node:process";function bQ(t){return mE.env[t]}var u$=typeof mE.versions.deno=="string"&&mE.versions.deno.length>0,l$=typeof mE.versions.bun=="string"&&mE.versions.bun.length>0,wQ=!0;var d$=bQ("DEBUG"),g$,mF=[],EF=[],NQ=[];d$&&CF(d$);var f$=Object.assign(t=>p$(t),{enable:CF,enabled:IF,disable:NLe,log:c$});function CF(t){g$=t,mF=[],EF=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?EF.push(r.substring(1)):mF.push(r);for(let r of NQ)r.enabled=IF(r.namespace)}function IF(t){if(t.endsWith("*"))return!0;for(let e of EF)if(h$(t,e))return!1;for(let e of mF)if(h$(t,e))return!0;return!1}function h$(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 NLe(){let t=g$||"";return CF(""),t}function p$(t){let e=Object.assign(r,{enabled:IF(t),destroy:SLe,log:f$.log,namespace:t,extend:TLe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return NQ.push(e),e}function SLe(){let t=NQ.indexOf(this);return t>=0?(NQ.splice(t,1),!0):!1}function TLe(t){let e=p$(`${this.namespace}:${t}`);return e.log=this.log,e}var bg=f$;var BF=["verbose","info","warning","error"],m$={verbose:400,info:300,warning:200,error:100};function E$(t,e){e.log=(...r)=>{t.log(...r)}}function C$(t){return BF.includes(t)}function SQ(t){let e=new Set,r=bQ(t.logLevelEnvVarName),s,n=bg(t.namespace);n.log=(...u)=>{bg.log(...u)};function i(u){if(u&&!C$(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${BF.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);bg.enable(l.join(","))}r&&(C$(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${BF.join(", ")}.`));function o(u){return!!(s&&m$[u.level]<=m$[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(E$(u,d),o(d)){let h=bg.disable();bg.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return E$(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 I$=SQ({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),xLe=I$.logger;function EE(t){return I$.createClientLogger(t)}function TQ(t){return t.toLowerCase()}function DLe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*RLe(t){for(let e of t.values())yield[e.name,e.value]}var yF=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(TQ(e),{name:e,value:DLe(r)})}get(e){return this._headersMap.get(TQ(e))?.value}has(e){return this._headersMap.has(TQ(e))}delete(e){this._ Line truncated
${ULe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function wg(t){return t instanceof ms?!0:Sl(t)&&t.name==="RestError"}function CE(t,e){return Buffer.from(t).toString(e)}function Es(t,e){return Buffer.from(t,e)}import NF from"node:http";import SF from"node:https";import Q$ from"node:zlib";import{Transform as LLe}from"node:stream";var Ps=EE("ts-http-runtime");var vLe={};function IE(t){return t&&typeof t.pipe=="function"}function b$(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 w$(t){return t&&typeof t.byteLength=="number"}var RQ=class extends LLe{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}},TF=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Yo("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 ao;Ps.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=HLe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new RQ(f);p.on("error",E=>{Ps.error("Error in upload progress",E)}),IE(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a),u=PLe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?OLe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new RQ(h);f.on("error",p=>{Ps.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 _Le(A),d}finally{if(n!==void 0&&clearTimeout(n),e.abortSignal&&s){let c=Promise.resolve();IE(a)&&(c=b$(a));let u=Promise.resolve();IE(A)&&(u=b$(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{Ps.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?NF.request(a,A):SF.request(a,A);u.once("error",l=>{c(new ms(l.message,{code:l.code??ms.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Yo("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&IE(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):w$(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(Ps.error("Unrecognized body type",s),c(new ms("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?NF.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new NF.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return SF.globalAgent;let n=e.tlsSettings??vLe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Ps.info("No cached TLS Agent exist, creating a new Agent"),i=new SF.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function PLe(t){let e=bn();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 OLe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=Q$.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=Q$.createInflate();return t.pipe(s),s}return t}function _Le(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 ms(`Error reading response as text: ${n.message}`,{code:ms.PARSE_ERROR}))})})}function HLe(t){return t?Buffer.isBuffer(t)?t.length:IE(t)?null:w$(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function N$(){return new TF}function kQ(){return N$()}var xF="logPolicy";function FQ(t={}){let e=t.logger??Ps.info,r=new ao({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowed Line truncated
`;return e}function APe(t){return t instanceof Uint8Array?t.byteLength:yE(t)?t.size===-1?void 0:t.size:void 0}function cPe(t){let e=0;for(let r of t){let s=APe(r);if(s===void 0)return;e+=s}return e}async function uPe(t,e,r){let s=[Es(`--${r}`,"utf-8"),...e.flatMap(i=>[Es(`\r
`,"utf-8"),Es(aPe(i.headers),"utf-8"),Es(`\r
`,"utf-8"),i.body,Es(`\r
--${r}`,"utf-8")]),Es(`--\r
\r
`,"utf-8")],n=_Fe(s);n&&t.headers.set("Content-Length",n),t.body=await wj(s)}var cm="multipartPolicy",GFe=70,YFe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function qFe(t){if(t.length>GFe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!YFe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function wy(){return{name:cm,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?qFe(r):r=vFe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await HFe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Ny(){return ey()}var Nj=jB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Pgt=Nj.logger;function vn(t){return Nj.createClientLogger(t)}var Eo=vn("core-rest-pipeline");function WR(t={}){return sy({logger:Eo.info,...t})}var zR=Qy;function KR(t={}){return by(t)}import XR from"node:os";import $A from"node:process";function Sj(){return"User-Agent"}async function Tj(t){if($A&&$A.versions){let e=`${XR.type()} ${XR.release()}; ${XR.arch()}`;$A.versions.bun?t.set("Bun",`${$A.versions.bun} (${e})`):$A.versions.deno?t.set("Deno",`${$A.versions.deno} (${e})`):$A.versions.node&&t.set("Node",`${$A.versions.node} (${e})`)}}var Sy="1.24.0";function ZFe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function xj(){return Sj()}async function Ty(t){let e=new Map;e.set("core-rest-pipeline",Sy),await Tj(e);let r=ZFe(e);return t?`${t} ${r}`:r}var Dj=xj(),Rj="userAgentPolicy";function jR(t={}){let e=Ty(t.userAgentPrefix);return{name:Rj,async sendRequest(r,s){return r.headers.has(Dj)||r.headers.set(Dj,await e),s(r)}}}var kj=Symbol("rawContent");function ZR(t){return typeof t[kj]=="function"}function Fj(t){return ZR(t)?t[kj]():t}var xy=cm;function $R(){let t=wy();return{name:xy,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)ZR(s.body)&&(s.body=Fj(s.body));return t.sendRequest(e,r)}}}var ek=By;function tk(){return yy()}function rk(t={}){return oy(t)}function sk(){return ay()}var um=class extends Error{constructor(e){super(e),this.name="AbortError"}};function nk(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new um(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 aMe="The delay was aborted.";function Uh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return nk(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??aMe})}function ec(t){if(qu(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 Mj(t){return qu(t)}function Lh(){return Yu()}var Xe=KB;function tc(t){return YR(t)}function ok(t,e){return Iy(t,e)}var Uj="setClientRequestIdPolicy";function ak(t="x-ms-client-request-id"){return{name:Uj,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function Ak(t){return Ay(t)}function ck(t){return cy(t)}var vh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Lj(t={}){let e=new uk(t.parentContext);return t.span&&(e=e.setValue(vh.span,t.span)),t.namespace&&(e=e.setValue(vh.namespace,t.namespace)),e}var uk=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 Pj=Ee(vj(),1),Ry=Pj.state;function AMe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function cMe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:AMe(),tracingContext:Lj({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function lm(){return Ry.instrumenterImplementation||(Ry.instrumenterImplementation=cMe()),Ry.instrumenterImplementation}function dm(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(c,u,l){let d=lm().startSpan(c,{...l,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(vh.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--),!RUe(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Jt("InvalidTag",l,$r(t,i))}let c=NUe(t,i);if(c===!1)return Jt("InvalidAttr","Attributes for '"+A+"' have open quote.",$r(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=CZ(u,e);if(d===!0)s=!0;else return Jt(d.err.code,d.err.msg,$r(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Jt("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",$r(t,o));if(r.length===0)return Jt("InvalidTag","Closing tag '"+A+"' has not been opened.",$r(t,o));{let l=r.pop();if(A!==l.tagName){let d=$r(t,l.tagStartPos);return Jt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",$r(t,o))}r.length==0&&(n=!0)}}else return Jt("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",$r(t,i));else{let l=CZ(u,e);if(l!==!0)return Jt(l.err.code,l.err.msg,$r(t,i-u.length+l.err.line));if(n===!0)return Jt("InvalidXml","Multiple possible root nodes found.",$r(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=EZ(t,i);continue}else if(t[i+1]==="?"){if(i=mZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=xUe(t,i);if(l==-1)return Jt("InvalidChar","char '&' is not expected.",$r(t,i));i=l}else if(n===!0&&!pZ(t[i]))return Jt("InvalidXml","Extra text at the end",$r(t,i));t[i]==="<"&&i--}}else{if(pZ(t[i]))continue;return Jt("InvalidChar","char '"+t[i]+"' is not expected.",$r(t,i))}if(s){if(r.length==1)return Jt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",$r(t,r[0].tagStartPos));if(r.length>0)return Jt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Jt("InvalidXml","Start tag expected.",1);return!0}function pZ(t){return t===" "||t===" "||t===`
`||t==="\r"}function mZ(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 Jt("InvalidXml","XML declaration allowed only at the start of the document.",$r(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function EZ(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 bUe='"',wUe="'";function NUe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===bUe||t[e]===wUe)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 SUe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function CZ(t,e){let r=_y(t,SUe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Jt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",ym(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Jt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",ym(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Jt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",ym(r[n]));let i=r[n][2];if(!DUe(i))return Jt("InvalidAttr","Attribute '"+i+"' is an invalid name.",ym(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Jt("InvalidAttr","Attribute '"+i+"' is repeated.",ym(r[n]))}return!0}function TUe(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 xUe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,TUe(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 Jt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function DUe(t){return Tk(t)}function RUe(t){return Tk(t)}function $r(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function ym(t){return t.startIndex+t[1].length}var IZ={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"},BZ={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"},yZ={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 Is("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new wm(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=Yh(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=Lk(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=vk(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 Is(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=Yh(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=Yh(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=vk(t,a,n.removeNSPrefix);if(!u){let M=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${M}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=Lk(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 I=r;I&&n.unpairedTagsSet.has(I.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 C=null,b={},T;T=sLe(d),l!==e.tagname&&this.matcher.push(l,{},T),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(b=rLe(C,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let R=a;if(this.isCurrentNodeStopNode){let M="";if(m)a=u.closeIndex;else if(n.unpairedTagsSet.has(l))a=u.closeIndex;else{let _=this.readStopNodeData(t,d,p+1);if(!_)throw new Error(`Unexpected end of ${d}`);a=_.i,M=_.tagContent}let F=new Is(l);C&&(F[":@"]=C),F.add(n.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,R)}else{if(m){({tagName:l,tagExp:h}=Lk(n.transformTagName,l,h,n));let M=new Is(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let M=new Is(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let M=new Is(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),r=M}s="",a=p}}}else s+=t[a];return e.child};function cLe(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 uLe(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 lLe(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 dLe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function hLe(t,e,r=">"){Line truncated
`;function BLe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Yk(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function zZ(t,e,r,s,n){return!r.sanitizeName||ju(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function Gk(t,e){let r="";e.format&&(r=ILe);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 sn(a)):a instanceof sn&&s.push(a)}let n=BLe(t,e),i=new Bo;return KZ(t,e,r,i,s,n)}function KZ(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=Hk(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=Yk(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:zZ(u,!1,e,s,i),h=yLe(c[":@"],e);s.push(d,h);let f=bLe(s,n);if(d===e.textNodeName){let b=c[u];f||(b=e.tagValueProcessor(d,b),b=Hk(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],T=jy(b);o+=`<![CDATA[${T}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let b=c[u][0][e.textNodeName],T=Xy(b);o+=r+`<!--${T}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let b=WZ(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=WZ(c[":@"],e,f,s,i),m=r+`<${d}${I}`,C;f?C=XZ(c[u],e):C=KZ(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 yLe(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]=nc(t[n]),s=!0}return s?r:null}function XZ(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=Yk(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=QLe(n[":@"],e),a=XZ(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function QLe(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)}="${nc(n)}"`}return r}function Yk(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 WZ(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:zZ(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=Hk(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${nc(c)}"`}return i}function bLe(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 Hk(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 qk(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 wLe={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 ys(t){if(this.options=Object.assign({},wLe,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 sn(r)):r instanceof sn&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,"utf-8")],n=cPe(s);n&&t.headers.set("Content-Length",n),t.body=await Eee(s)}var QE="multipartPolicy",lPe=70,dPe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function hPe(t){if(t.length>lPe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!dPe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function rb(){return{name:QE,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?hPe(r):r=oPe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await uPe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function sb(){return DQ()}var Cee=SQ({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),YCt=Cee.logger;function li(t){return Cee.createClientLogger(t)}var Jo=li("core-rest-pipeline");function VF(t={}){return FQ({logger:Jo.info,...t})}var WF=eb;function zF(t={}){return tb(t)}import KF from"node:os";import vc from"node:process";function Iee(){return"User-Agent"}async function Bee(t){if(vc&&vc.versions){let e=`${KF.type()} ${KF.release()}; ${KF.arch()}`;vc.versions.bun?t.set("Bun",`${vc.versions.bun} (${e})`):vc.versions.deno?t.set("Deno",`${vc.versions.deno} (${e})`):vc.versions.node&&t.set("Node",`${vc.versions.node} (${e})`)}}var nb="1.25.0";function BPe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function yee(){return Iee()}async function ib(t){let e=new Map;e.set("core-rest-pipeline",nb),await Bee(e);let r=BPe(e);return t?`${t} ${r}`:r}var Qee=yee(),bee="userAgentPolicy";function jF(t={}){let e=ib(t.userAgentPrefix);return{name:bee,async sendRequest(r,s){return r.headers.has(Qee)||r.headers.set(Qee,await e),s(r)}}}var wee=Symbol("rawContent");function XF(t){return typeof t[wee]=="function"}function Nee(t){return XF(t)?t[wee]():t}var ob=QE;function ZF(){let t=rb();return{name:ob,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)XF(s.body)&&(s.body=Nee(s.body));return t.sendRequest(e,r)}}}var $F=ZQ;function eM(){return $Q()}function tM(t={}){return vQ(t)}function rM(){return PQ()}var Vr=class extends Error{constructor(e){super(e),this.name="AbortError"}};function sM(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Vr(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 DPe="The delay was aborted.";function Rg(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return sM(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??DPe})}function Pc(t){if(Sl(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 See(t){return Sl(t)}function kg(){return Nl()}var wt=wQ;function iM(t,e){return CE(t,e)}function oM(t,e){return Es(t,e)}function Oc(t){return YF(t)}function aM(t,e){return XQ(t,e)}var Tee="setClientRequestIdPolicy";function AM(t="x-ms-client-request-id"){return{name:Tee,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function cM(t){return OQ(t)}function uM(t){return _Q(t)}var Fg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function xee(t={}){let e=new lM(t.parentContext);return t.span&&(e=e.setValue(Fg.span,t.span)),t.namespace&&(e=e.setValue(Fg.namespace,t.namespace)),e}var lM=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 Ree=we(Dee(),1),Ab=Ree.state;function RPe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function kPe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:RPe(),tracingContext:xee({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function bE(){return Ab.instrumenterImplementation||(Ab.instrumenterImplementation=kPe()),Ab.instrumenterImplementation}function wE(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(c,u,l){let d=bE().startSpan(c,{...l,packageName:r,packageVersion:s,tracingContext 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--),!t8e(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",ir("InvalidTag",l,Cs(t,i))}let c=j3e(t,i);if(c===!1)return ir("InvalidAttr","Attributes for '"+A+"' have open quote.",Cs(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=dte(u,e);if(d===!0)s=!0;else return ir(d.err.code,d.err.msg,Cs(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return ir("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Cs(t,o));if(r.length===0)return ir("InvalidTag","Closing tag '"+A+"' has not been opened.",Cs(t,o));{let l=r.pop();if(A!==l.tagName){let d=Cs(t,l.tagStartPos);return ir("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Cs(t,o))}r.length==0&&(n=!0)}}else return ir("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Cs(t,i));else{let l=dte(u,e);if(l!==!0)return ir(l.err.code,l.err.msg,Cs(t,i-u.length+l.err.line));if(n===!0)return ir("InvalidXml","Multiple possible root nodes found.",Cs(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=lte(t,i);continue}else if(t[i+1]==="?"){if(i=ute(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=$3e(t,i);if(l==-1)return ir("InvalidChar","char '&' is not expected.",Cs(t,i));i=l}else if(n===!0&&!Lg(t[i]))return ir("InvalidXml","Extra text at the end",Cs(t,i));t[i]==="<"&&i--}}else{if(Lg(t[i]))continue;return ir("InvalidChar","char '"+t[i]+"' is not expected.",Cs(t,i))}if(s){if(r.length==1)return ir("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Cs(t,r[0].tagStartPos));if(r.length>0)return ir("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ir("InvalidXml","Start tag expected.",1);return!0}function Lg(t){return t===" "||t===" "||t===`
`||t==="\r"}function ute(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 ir("InvalidXml","XML declaration allowed only at the start of the document.",Cs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function lte(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 z3e='"',K3e="'";function j3e(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===z3e||t[e]===K3e)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 X3e(t){let e=[],r=t.length,s=0;for(;s<r;){let n=s;for(;s<r&&Lg(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&&!Lg(t[s])&&t[s]!=="=";)s++;let a=t.slice(o,s),A,c=s;for(;c<r&&Lg(t[c]);)c++;c<r&&t[c]==="="&&(A=t.slice(s,c+1),s=c+1);let u,l,d=s;for(;d<r&&Lg(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 dte(t,e){let r=X3e(t),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return ir("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",LE(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return ir("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",LE(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return ir("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",LE(r[n]));let i=r[n][2];if(!e8e(i))return ir("InvalidAttr","Attribute '"+i+"' is an invalid name.",LE(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return ir("InvalidAttr","Attribute '"+i+"' is repeated.",LE(r[n]))}return!0}function Z3e(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 $3e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Z3e(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 ir(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function e8e(t){return xM(t)}function t8e(t){return xM(t)}function Cs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function LE(t){return t.startIndex+t[1].length}var DM={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 vE={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},RM={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 vg=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),r8e=new Set("!?\\\\/[]$%{}^&*()<>|+");function hte(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(r8e.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function PE(...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 Fl="external",Eb="base",kM="all";function s8e(t){return!t||t===Fl?new Set([Fl]):t===kM?new Set([kM]):t===Eb?new Set([Eb]):Array.isArray(t)?new Set(t):new Set([Fl])}var Hs=Object.freeze({allow:0,leave:1,remove:2,throw:3}),n8e=new Set([9,10,13]);function i8e(t){if(!t)return{xmlVersion:1,onLevel:Hs.allow,nullLevel:Hs.remove};let e=t.xmlVersion===1.1?1.1:1,r=Hs[t.onNCR]??Hs.allow,s=Hs[t.nullNCR]??Hs.remove,n=Math.max(s,Hs.remove);return{xmlVersion:e,onLevel:r,nullLevel:n}}var Pg=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=s8e(this._limit.applyLimitsTo??Fl),this._numericAllowed=e.numericAllowed??!0,this._baseMap=PE(vE,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 Gs("!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 _E(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=Yg(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=JM(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=VM(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 Gs(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=Yg(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=Yg(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=VM(t,a,n.removeNSPrefix);if(!u){let M=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${M}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=JM(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 C=null,w={},T;T=H8e(d),l!==e.tagname&&this.matcher.push(l,{},T),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(w=_8e(C,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let k=a;if(this.isCurrentNodeStopNode){let M="";if(m)a=u.closeIndex;else if(n.unpairedTagsSet.has(l))a=u.closeIndex;else{let v=this.readStopNodeData(t,d,p+1);if(!v)throw new Error(`Unexpected end of ${d}`);a=v.i,M=v.tagContent}let q=new Gs(l);C&&(q[":@"]=C),q.add(n.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,q,this.readonlyMatcher,k),n.captureMetaData&&r.addEndIndex(a+1)}else{if(m){({tagName:l,tagExp:h}=JM(n.transformTagName,l,h,n));let M=new Gs(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,k),n.captureMetaData&&r.addEndIndex(p+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let M=new Gs(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,k),n.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let M=new Gs(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,k),r=M}s="",a=p}}}else s+=t[a];return e.child};function W8e(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 z8e(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 K8e(t,e,Line truncated
`;function i4e(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(ZM(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function kte(t,e,r,s,n){return!r.sanitizeName||n(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function XM(t,e){let r="";e.format&&(r=n4e);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 Tn(A)):A instanceof Tn&&s.push(A)}let n=i4e(t,e),i=Cb("qName",{xmlVersion:n}),o=new zo;return Fte(t,e,r,o,s,i)}function Fte(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=Wr(t);return A=jM(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=ZM(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:kte(u,!1,e,s,i),h=o4e(c[":@"],e);s.push(d,h);let f=A4e(s,n);if(d===e.textNodeName){let w=c[u];f||(w=e.tagValueProcessor(d,w),w=jM(w,e)),w=Wr(w),a&&(o+=r),o+=w,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let w=c[u][0][e.textNodeName],T=bb(w);o+=`<![CDATA[${T}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let w=c[u][0][e.textNodeName],T=YE(w);o+=r+`<!--${T}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let w=Rte(c[":@"],e,f,s,i);o+=(d==="?xml"?"":r)+`<${d}${w}?>`,a=!0,s.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let E=Rte(c[":@"],e,f,s,i),m=r+`<${d}${E}`,C;f?C=Mte(c[u],e):C=Fte(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 o4e(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]=Ko(t[n]),s=!0}return s?r:null}function Mte(t,e){if(!Array.isArray(t))return t!=null?Wr(t):"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=ZM(n);if(i===e.textNodeName)r+=Wr(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=a4e(n[":@"],e),a=Mte(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function a4e(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)}="${Ko(n)}"`}return r}function ZM(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 Rte(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:kte(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=jM(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${Ko(c)}"`}return i}function A4e(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 jM(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 $M(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 c4e={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 qs(t){if(this.options=Object.assign({},c4e,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 Tn(r)):r instanceof Tn&&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 NLe(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 Vk(t,e,r,s,n){return!r.sanitizeName||ju(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}ys.prototype.build=function(t){if(this.options.preserveOrder)return Gk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Bo,r=NLe(t,this.options);return this.j2x(t,0,e,r).val}};ys.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:Vk(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=Vk(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 h=""+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 I=this.j2x(p,e+1,r,s);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=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,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=Vk(l[h],!0,this.options,r,s);n+=this.buildAttrPairStr(f,""+t[A][l[h]],a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,s)}return{attrStr:n,val:i}};ys.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+'="'+nc(e)+'"'};function SLe(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)}ys.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]=nc(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]=nc(t[s]),r=!0)}return r?e:null};ys.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 u4e(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 eU(t,e,r,s,n){return!r.sanitizeName||n(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}qs.prototype.build=function(t){if(this.options.preserveOrder)return XM(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new zo,r=u4e(t,this.options),s=Cb("qName",{xmlVersion:r});return this.j2x(t,0,e,s).val}};qs.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:eU(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=eU(l,!0,this.options,r,s);n+=this.buildAttrPairStr(d,Wr(t[A]),a)}else if(!l)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,Wr(t[A]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=Wr(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=Wr(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=Wr(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=eU(l[h],!0,this.options,r,s);n+=this.buildAttrPairStr(f,Wr(t[A][l[h]]),a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,s)}return{attrStr:n,val:i}};qs.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,Wr(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Ko(e)+'"'};function l4e(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)}qs.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]=Ko(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]=Ko(t[s]),r=!0)}return r?e:null};qs.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(pe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===pe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(pe.PREFIX_FOR_STORAGE));r.sort((n,i)=>AQ(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=iQ(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=oQ(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 Dt=class extends el{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Dm(e,r,this)}computeHMACSHA256(e){return OLe("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var tl=class extends Error{constructor(e){super(e),this.name="AbortError"}};var or=vn("storage-common");var Pn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Pn||(Pn={}));var oc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},_Le=new tl("The operation was aborted."),Rm=class extends yo{retryOptions;constructor(e,r,s=oc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:oc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):oc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:oc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:oc.maxRetryDelayInMs):oc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:oc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:oc.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=nQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=ic(n.url,Pa.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(or.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(or.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 or.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 or.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 or.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return or.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(pe.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')?(or.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 Pn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Pn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return or.info(`RetryPolicy: Delay for ${n}ms`),aQ(n,s,_Le)}};var km=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Rm(e,r,this.retryOptions)}};var HLe="storageBrowserPolicy";function t$(){return{name:HLe,async sendRequest(t,e){return Xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=ic(t.url,Pa.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(pe.COOKIE),t.headers.delete(pe.CONTENT_LENGTH)),e(t)}}}var GLe="StorageCorrectContentLengthPolicy";function r$(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(pe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:GLe,async sendRequest(e,r){return t(e),r(e)}}}var YLe="storageRetryPolicy",Vh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qLe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],VLe=new tl("The operation was aborted.");function s$(t={}){let e=t.retryPolicyType??Vh.retryPolicyType,r=t.maxTries??Vh.maxTries,s=t.retryDelayInMs??Vh.retryDelayInMs,n=t.maxRetryDelayInMs??Vh.maxRetryDelayInMs,i=t.secondaryHost??Vh.secondaryHost,o=t.tryTimeoutInMs??Vh.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return or.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of qLe)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().inclu Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(Me.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===Me.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(Me.PREFIX_FOR_STORAGE));r.sort((n,i)=>Pb(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=Ub(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=Lb(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 Yt=class extends vl{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new jE(e,r,this)}computeHMACSHA256(e){return R4e("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var yr=li("storage-common");var di;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(di||(di={}));var Yc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:di.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},k4e=new Vr("The operation was aborted."),XE=class extends jo{retryOptions;constructor(e,r,s=Yc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Yc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Yc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Yc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Yc.maxRetryDelayInMs):Yc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Yc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Yc.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=Mb(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Fb(n.url,KE.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(yr.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(yr.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 yr.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 yr.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 yr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return yr.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Me.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')?(yr.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 di.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case di.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return yr.info(`RetryPolicy: Delay for ${n}ms`),vb(n,s,k4e)}};var ZE=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new XE(e,r,this.retryOptions)}};var F4e="storageBrowserPolicy";function Wte(){return{name:F4e,async sendRequest(t,e){return e(t)}}}var M4e="StorageCorrectContentLengthPolicy";function zte(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Me.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:M4e,async sendRequest(e,r){return t(e),r(e)}}}var U4e="storageRetryPolicy",Vg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:di.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},L4e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],v4e=new Vr("The operation was aborted.");function Kte(t={}){let e=t.retryPolicyType??Vg.retryPolicyType,r=t.maxTries??Vg.maxTries,s=t.retryDelayInMs??Vg.retryDelayInMs,n=t.maxRetryDelayInMs??Vg.maxRetryDelayInMs,i=t.secondaryHost??Vg.secondaryHost,o=t.tryTimeoutInMs??Vg.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return yr.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of L4e)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return yr.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return yr.info("RetryPolicy: Incomplete XML response likely Line truncated
`)+`
`+s(i)+n(i),a=JLe("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(pe.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===pe.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(pe.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>AQ(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=iQ(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=oQ(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:WLe,async sendRequest(i,o){return e(i),o(i)}}}var zLe="storageRequestFailureDetailsParserPolicy";function n$(){return{name:zLe,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 KLe}from"node:crypto";var cQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return KLe("sha256",this.key).update(e,"utf8").digest("base64")}};var uQ="12.31.0",lQ="2026-02-06";var dQ="https://storage.azure.com/.default",Oa={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ri="",jk="*",XLe=1*1024*1024;var jLe=4*XLe;var i$="AES256",o$="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",a$=["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"],A$=["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"],c$="BlobUsesCustomerSpecifiedEncryption",u$="BlobDoesNotUseCustomerSpecifiedEncryption",l$=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _a(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Fm=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Wt(t,e={}){t||(t=new yt);let r=new Fm([],e);return r._credential=t,r}function ZLe(t){let e=[$Le,d$,eve,tve,rve,sve,ive];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>nve(n));return{wrappedPolicies:Nk(r),afterRetry:s}}}}function Zk(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?Sk(e):Kk(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${uQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=fm({...r,loggingOptions:{additionalAllowedHeaderNames:a$,additionalAllowedQueryParameters:A$,logger:$y.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Zy,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Wk,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:ek}),n.addPolicy(r$()),n.addPolicy(s$(r.retryOptions),{phase:"Retry"}),n.addPolicy(n$()),n.addPolicy(t$());let a=ZLe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=$k(t);tn(A)?n.addPolicy(Ph({credential:A,scopes:r.audience??dQ,challengeCa Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Li(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 $Pe(t,e){if(t=ul(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(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 Li(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 e3e(t,e){if(t=ul(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(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 Li(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 t3e(t,e){if(t=ul(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ui(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 Li(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 r3e(t,e){if(t=ul(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(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 Li(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 s3e(t,e){if(t=ul(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(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 Li(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 n3e(t,e){if(t=ul(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=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ui(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 Li(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 cl(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function ul(t){let e=t.version?t.version:lQ;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 Vm=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=Lh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ri||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ri||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 j.withSpan("BlobLeaseClient-acquireLease",r,async s=>ne(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!==Ri||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ri||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 j.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ne(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!==Ri||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ri||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 j.withSpan("BlobLeaseClient-releaseLease",e,async r=>ne(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!==Ri||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ri||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 j.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"}};tg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var hl=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"}};hl.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var $m=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var S3e=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())})},NL=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);ae(`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 wee(t,e,r){return S3e(this,void 0,void 0,function*(){var s;let n=new Wa(t),i=n.getBlockBlobClient(),o=new NL((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(),U(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new ob(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw ht(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as See from"buffer";import*as Ho from"fs";import*as Tee from"stream";import*as xee from"util";var ab=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 Ab(t){return t?t>=200&&t<300:!1}function T3e(t){return t?t>=500:!0}function x3e(t){return t?[xt.BadGateway,xt.ServiceUnavailable,xt.GatewayTimeout].includes(t):!1}function D3e(t){return ab(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Nee(t,e,r){return ab(this,arguments,void 0,function*(s,n,i,o=qB,a=VB,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),!T3e(d)))return l;if(d&&(h=x3e(d),c=`Cache service responded with ${d}`),U(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!h){U(`${s} - Error is not retryable`);break}yield D3e(a),u++}throw Error(`${s} failed: ${c}`)})}function e0(t,e){return ab(this,arguments,void 0,function*(r,s,n=qB,i=VB){return yield Nee(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof lo)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function rg(t,e){return ab(this,arguments,void 0,function*(r,s,n=qB,i=VB){return yield Nee(r,s,o=>o.message.statusCode,n,i)})}var Yn=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 R3e(t,e){return Yn(this,void 0,void 0,function*(){yield xee.promisify(Tee.pipeline)(t.message,e)})}var cb=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,U(`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);ae(`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||[])U(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function DL(t,e,r){return bs(this,void 0,void 0,function*(){let s=new L3e(t),n=Fee(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Ree(t,e,n):n.concurrentBlobDownloads?yield Dee(t,e,n):yield ub(t,e):yield ub(t,e)})}function _ee(t,e,r){return bs(this,void 0,void 0,function*(){let s=xL(),n=Sh(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield e0("reserveCache",()=>bs(this,void 0,void 0,function*(){return s.postJson(r0("caches"),i)}))})}function Pee(t,e){return`bytes ${t}-${e}/*`}function _3e(t,e,r,s,n){return bs(this,void 0,void 0,function*(){U(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${Pee(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Pee(s,n)},o=yield rg(`uploadChunk (start: ${s}, end: ${n})`,()=>bs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Ab(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function H3e(t,e,r,s){return bs(this,void 0,void 0,function*(){let n=fo(r),i=r0(`caches/${e.toString()}`),o=sg.openSync(r,"r"),a=SL(s),A=pR("uploadConcurrency",a.uploadConcurrency),c=pR("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];U("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>bs(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 _3e(t,i,()=>sg.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{sg.closeSync(o)}})}function G3e(t,e,r){return bs(this,void 0,void 0,function*(){let s={size:r};return yield e0("commitCache",()=>bs(this,void 0,void 0,function*(){return t.postJson(r0(`caches/${e.toString()}`),s)}))})}function RL(t,e,r,s){return bs(this,void 0,void 0,function*(){if(SL(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield wee(r,e,s)}else{let i=xL();U("Upload cache"),yield H3e(i,t,e,s),U("Commiting cache");let o=fo(e);ae(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield G3e(i,t,o);if(!Ab(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ae("Cache saved successfully")}})}var Mte=Ee(Ste(),1),Xt=Ee(Kt(),1),an=Ee(Kt(),1),El=Ee(Kt(),1),Cl=Ee(Kt(),1),Il=Ee(Kt(),1);var wv=Ee(Kt(),1),Nv=Ee(Kt(),1),Rte=Ee(Kt(),1),kte=Ee(Kt(),1),Fte=Ee(Kt(),1);var yv=Ee(Kt(),1),Qv=Ee(Kt(),1),Tte=Ee(Kt(),1),xte=Ee(Kt(),1),Dte=Ee(Kt(),1),bv=class extends Dte.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,xte.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Tte.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?Qv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,yv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,yv.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Qv.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},jb=new bv;var Sv=class extends Fte.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:()=>jb}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,kte.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Rte.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(jb.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?Nv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,wv.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)jb.internalBinaryWrite(e.scope[i],r.tag(2,wv.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Nv.UnknownFieldHandler.onWrit Line truncated
`));let s=yield Gv(r,"create");yield Yv(s,t)})}var Ig=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())})},Oi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Cg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},e1=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Pte(t){if(!t||t.length===0)throw new Oi("Path Validation Error: At least one directory or file path is required")}function Jv(t){if(t.length>512)throw new Oi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Oi(`Key Validation Error: ${t} cannot contain commas.`)}function Ote(){return t0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function _te(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=t0();return U(`Cache service version: ${c}`),Pte(n),c==="v2"?yield iOe(n,i,o,a,A):yield nOe(n,i,o,a,A)})}function nOe(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){o=o||[];let c=[i,...o];if(U("Resolved Keys:"),U(JSON.stringify(c)),c.length>10)throw new Oi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)Jv(d);let u=yield rm(),l="";try{let d=yield Oee(c,n,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return ae("Lookup only - skipping download"),d.cacheKey;l=E0.join(yield em(),XA(u)),U(`Archive Path: ${l}`),yield DL(d.archiveLocation,l,a),qA()&&(yield m0(l,u));let h=fo(l);return ae(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield qv(l,u),ae("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Oi.name)throw d;h instanceof lo&&typeof h.statusCode=="number"&&h.statusCode>=500?Fu(`Failed to restore: ${d.message}`):ht(`Failed to restore: ${d.message}`)}finally{try{yield tm(l)}catch(d){U(`Failed to delete archive: ${d}`)}}})}function iOe(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(U("Resolved Keys:"),U(JSON.stringify(c)),c.length>10)throw new Oi("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)Jv(l);let u="";try{let l=Hv(),d=yield rm(),h={key:i,restoreKeys:o,version:Sh(n,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){U(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?ae(`Cache hit for restore-key: ${f.matchedKey}`):ae(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return ae("Lookup only - skipping download"),f.matchedKey;u=E0.join(yield em(),XA(d)),U(`Archive path: ${u}`),U(`Starting download of archive to: ${u}`),yield DL(f.signedDownloadUrl,u,a);let I=fo(u);return ae(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),qA()&&(yield m0(u,d)),yield qv(u,d),ae("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Oi.name)throw l;d instanceof lo&&typeof d.statusCode=="number"&&d.statusCode>=500?Fu(`Failed to restore: ${l.message}`):ht(`Failed to restore: ${l.message}`)}finally{try{u&&(yield tm(u))}catch(l){U(`Failed to delete archive: ${l}`)}}})}function Hte(t,e,r){return Ig(this,arguments,void 0,function*(s,n,i,o=!1){let a=t0();return U(`Cache service version: ${a}`),Pte(s),Jv(n),a==="v2"?yield aOe(s,n,i,o):yield oOe(s,n,i,o)})}function oOe(t,e,r){return Ig(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l;let d=yield rm(),h=-1,f=yield fR(s);if(U("Cache Paths:"),U(`${JSON.stringify(f)}`),f.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 p=yield em(),I=E0.join(p,XA(d));U(`Archive Path: ${I}`);try{yield Vv(p,f,d),qA()&&(yield m0(I,d));let m=10*1024*1024*1024,C=fo(I);if(U(`File Size: ${C}`),C>m&&!TL())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);U("Reserving Cache");let b=yield _ee(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=b?.result)===null||a===void 0)&&a.cacheId)h=(A=b?.result)===null||A===void 0?void 0:A.cacheId;else throw b?.statusCode===400?new Error((u=(c=b?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Cg(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(l=b?.error)===null||l===void 0?void 0:l.message}`);U(`Saving Cache (ID: ${h})`),yield RL(h,I,"",i)}catch(m){let C=m;if(C.name===Oi.name)throw m;C.name 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=P4e("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Me.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Me.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(Me.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>Pb(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=Ub(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=Lb(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:O4e,async sendRequest(i,o){return e(i),o(i)}}}var _4e="storageRequestFailureDetailsParserPolicy";function jte(){return{name:_4e,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 _b="12.33.0",Hb="2026-06-06";var Gb="https://storage.azure.com/.default",fA={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ao="",cU="*",G4e=1*1024*1024;var Y4e=4*G4e;var Xte="AES256",Zte="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",$te=["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"],ere=["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"],tre="BlobUsesCustomerSpecifiedEncryption",rre="BlobDoesNotUseCustomerSpecifiedEncryption",sre=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pA(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 $E=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function or(t,e={}){t||(t=new Ft);let r=new $E([],e);return r._credential=t,r}function q4e(t){let e=[J4e,nre,V4e,W4e,z4e,K4e,X4e];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>j4e(n));return{wrappedPolicies:SM(r),afterRetry:s}}}}function uU(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?TM(e):aU(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${_b}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=TE({...r,loggingOptions:{additionalAllowedHeaderNames:$te,additionalAllowedQueryParameters:ere,logger:Nb.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:wb,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:rU,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:$F}),n.addPolicy(zte()),n.addPolicy(Kte(r.retryOptions),{phase:"Retry"}),n.addPolicy(jte()),n.addPolicy(Wte());let a=q4e(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=lU(t);Nn(A)?n.addPolicy(Mg({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Fn(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 J6e(t,e){if(t=bA(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=mi.parse(t.permissions.toString()).toString():n=Ei.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?kn(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 Fn(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 V6e(t,e){if(t=bA(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,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?kn(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(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Fn(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,n),stringToSign:o}}function W6e(t,e){if(t=bA(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,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?kn(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(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Fn(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,n),stringToSign:o}}function z6e(t,e){if(t=bA(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=mi.parse(t.permissions.toString()).toString():n=Ei.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ge(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ge(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?kn(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 Fn(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 K6e(t,e){if(t=bA(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,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ge(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ge(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Fn(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,n),stringToSign:o}}function j6e(t,e){if(t=bA(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,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ge(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ge(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Fn(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,n),stringToSign:o}}function X6e(t,e){if(t=bA(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,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ge(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ge(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Fn(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,n),stringToSign:o}}function Z6e(t,e){if(t=bA(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,n;t.blobName&&(t.isDirectory===!0?(r="d",n=tf(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId)));let i;t.permissions&&(t.blobName?i=mi.parse(t.permissions.toString()).toString():i=Ei.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Ge(t.startsOn,!1):"",t.expiresOn?Ge(t.expiresOn,!1):"",QA(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ge(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ge(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,$6e(t.requestHeaders),e_e(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Fn(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,use(t.requestHeaders),use(t.requestQueryParameters),n),stringToSign:o}}function $6e(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function e_e(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function use(t){if(t===void 0)return;let e="",r=0;return Object.keys(t).forEach(function(s){r!==0&&(e=e+","),e=e+s,++r}),e}function QA(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function bA(t){let e=t.version?t.version:Hb;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 tf(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var d0=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=kg()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ao||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ao||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!==Ao||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ao||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!==Ao||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ao||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!==Ao||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ao||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.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing 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"}};sf.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jl=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"}};jl.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var I0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Q_e=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())})},PP=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);pe(`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 Bse(t,e,r){return Q_e(this,void 0,void 0,function*(){var s;let n=new NA(t),i=n.getBlockBlobClient(),o=new PP((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(),L(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Lw(`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 Qse from"buffer";import*as ha from"fs";import*as bse from"stream";import*as wse from"util";var vw=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 Pw(t){return t?t>=200&&t<300:!1}function b_e(t){return t?t>=500:!0}function w_e(t){return t?[Gt.BadGateway,Gt.ServiceUnavailable,Gt.GatewayTimeout].includes(t):!1}function N_e(t){return vw(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function yse(t,e,r){return vw(this,arguments,void 0,function*(s,n,i,o=CQ,a=IQ,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),!b_e(d)))return l;if(d&&(h=w_e(d),c=`Cache service responded with ${d}`),L(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!h){L(`${s} - Error is not retryable`);break}yield N_e(a),u++}throw Error(`${s} failed: ${c}`)})}function B0(t,e){return vw(this,arguments,void 0,function*(r,s,n=CQ,i=IQ){return yield yse(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof Oo)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function nf(t,e){return vw(this,arguments,void 0,function*(r,s,n=CQ,i=IQ){return yield yse(r,s,o=>o.message.statusCode,n,i)})}var Ci=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 S_e(t,e){return Ci(this,void 0,void 0,function*(){yield wse.promisify(bse.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,L(`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);pe(`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||[])L(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function YP(t,e,r){return zs(this,void 0,void 0,function*(){let s=new k_e(t),n=xse(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Sse(t,e,n):n.concurrentBlobDownloads?yield Nse(t,e,n):yield _w(t,e):yield _w(t,e)})}function Ose(t,e,r){return zs(this,void 0,void 0,function*(){let s=GP(),n=Qg(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield B0("reserveCache",()=>zs(this,void 0,void 0,function*(){return s.postJson(Q0("caches"),i)}))})}function vse(t,e){return`bytes ${t}-${e}/*`}function L_e(t,e,r,s,n){return zs(this,void 0,void 0,function*(){L(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${vse(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":vse(s,n)},o=yield nf(`uploadChunk (start: ${s}, end: ${n})`,()=>zs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Pw(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function v_e(t,e,r,s){return zs(this,void 0,void 0,function*(){let n=Go(r),i=Q0(`caches/${e.toString()}`),o=of.openSync(r,"r"),a=OP(s),A=pF("uploadConcurrency",a.uploadConcurrency),c=pF("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];L("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 L_e(t,i,()=>of.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{of.closeSync(o)}})}function P_e(t,e,r){return zs(this,void 0,void 0,function*(){let s={size:r};return yield B0("commitCache",()=>zs(this,void 0,void 0,function*(){return t.postJson(Q0(`caches/${e.toString()}`),s)}))})}function qP(t,e,r,s){return zs(this,void 0,void 0,function*(){if(OP(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Bse(r,e,s)}else{let i=GP();L("Upload cache"),yield v_e(i,t,e,s),L("Commiting cache");let o=Go(e);pe(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield P_e(i,t,o);if(!Pw(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);pe("Cache saved successfully")}})}var Fne=we(Nne(),1),cr=we(Ar(),1),Un=we(Ar(),1),td=we(Ar(),1),rd=we(Ar(),1),sd=we(Ar(),1);var P3=we(Ar(),1),O3=we(Ar(),1),Dne=we(Ar(),1),Rne=we(Ar(),1),kne=we(Ar(),1);var U3=we(Ar(),1),L3=we(Ar(),1),Sne=we(Ar(),1),Tne=we(Ar(),1),xne=we(Ar(),1),v3=class extends xne.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,Tne.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Sne.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?L3.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,U3.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,U3.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?L3.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},S1=new v3;var _3=class extends kne.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:()=>S1}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Rne.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Dne.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(S1.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?O3.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,P3.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)S1.internalBinaryWrite(e.scope[i],r.tag(2,P3.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?O3.UnknownFieldHandler.onWrit Line truncated
`));let s=yield t8(r,"create");yield r8(s,t)})}var yf=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())})},fo=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},nd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},i8="cache write denied:",D1=class t extends nd{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},vne=BQ,R1=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},k1=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Pne(t){if(!t||t.length===0)throw new fo("Path Validation Error: At least one directory or file path is required")}function o8(t){if(t.length>512)throw new fo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new fo(`Key Validation Error: ${t} cannot contain commas.`)}function One(){return y0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function _ne(t,e,r,s){return yf(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=y0();L(`Cache service version: ${c}`),Pne(n);let u=HP();if(!Rse(u)){pe(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),L(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return c==="v2"?yield tGe(n,i,o,a,A):yield eGe(n,i,o,a,A)})}function eGe(t,e,r,s){return yf(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;o=o||[];let u=[i,...o];if(L("Resolved Keys:"),L(JSON.stringify(u)),u.length>10)throw new fo("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)o8(h);let l=yield pE(),d="";try{let h;try{h=yield Pse(u,n,{compressionMethod:l,enableCrossOsArchive:A})}catch(p){let E=(c=p?.message)!==null&&c!==void 0?c:"";throw E.includes(vne)?new R1(E):p}if(!h?.archiveLocation)return;if(a?.lookupOnly)return pe("Lookup only - skipping download"),h.cacheKey;d=O0.join(yield gE(),Mc(l)),L(`Archive Path: ${d}`),yield YP(h.archiveLocation,d,a),Nc()&&(yield P0(d,l));let f=Go(d);return pe(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield s8(d,l),pe("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===fo.name)throw h;f instanceof Oo&&typeof f.statusCode=="number"&&f.statusCode>=500?ml(`Failed to restore: ${h.message}`):at(`Failed to restore: ${h.message}`)}finally{try{yield fE(d)}catch(h){L(`Failed to delete archive: ${h}`)}}})}function tGe(t,e,r,s){return yf(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(L("Resolved Keys:"),L(JSON.stringify(u)),u.length>10)throw new fo("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)o8(d);let l="";try{let d=e8(),h=yield pE(),f={key:i,restoreKeys:o,version:Qg(n,h,A)},p;try{p=yield d.GetCacheEntryDownloadURL(f)}catch(C){let w=(c=C?.message)!==null&&c!==void 0?c:"";throw w.includes(vne)?new R1(w):C}if(!p.ok){L(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==p.matchedKey?pe(`Cache hit for restore-key: ${p.matchedKey}`):pe(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return pe("Lookup only - skipping download"),p.matchedKey;l=O0.join(yield gE(),Mc(h)),L(`Archive path: ${l}`),L(`Starting download of archive to: ${l}`),yield YP(p.signedDownloadUrl,l,a);let m=Go(l);return pe(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Nc()&&(yield P0(l,h)),yield s8(l,h),pe("Cache restored successfully"),p.matchedKey}catch(d){let h=d;if(h.name===fo.name)throw d;h instanceof Oo&&typeof h.statusCode=="number"&&h.statusCode>=500?ml(`Failed to restore: ${d.message}`):at(`Failed to restore: ${d.message}`)}finally{try{l&&(yield fE(l))}catch(d){L(`Failed to delete archive: ${d}`)}}})}function Hne(t,e,r){return yf(this,arguments,void 0,function*(s,n,i,o=!1){let a=y0();L(`Cache service version: ${a}`),Pne(s),o8(n);let A=HP();return kse(A)?a==="v2"?yield sGe(s,n,i,o):yield rGe(s,n,i,o):(pe(`Cache save skipped: the effective cache-mode '${A}' does not permit writes.`),L(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}function rGe(t,e,r){return yf(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l,d;let h=yield pE(),f=-1,p=yield fF(s);if(L("Cache Paths:"),L(`${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 gE(),m=O0.join(E,Mc(h));L(`Archive Path: ${m}`);try{yield n8(E,p,h),Nc()&&(yield P0(m,h));let C=10*1024*1024*1024 Line truncated
${r.join(`
`)}
`:""}function hGe(t){return`<details>
<summary>${h8.eol} ${Kne(t)}</summary>
<p>${jne(t)}</p>
<p>If you cannot upgrade, see the <a href="${Wne}">Gradle Security Subscription</a> for options.</p>
</details>`}async function rie(t,e,r,s){RK("Generating Job Summary");let n=sie(),i=mGe();if(i){oA.addRaw(n),oA.addRaw(i),await oA.write();return}let o=pGe(t),a=Lj(e,r),A=BGe(t);pe(o),pe("============================"),pe(a),s.shouldGenerateJobSummary(A)&&(oA.addRaw(n),oA.addRaw(o),oA.addRaw(a),await oA.write()),kK(),s.canAddPRComment()&&await NGe(),s.shouldAddPRComment(A)&&await gGe(o)}async function gGe(t){let e=fg;if(e.payload.pull_request==null){pe("No pull_request trigger detected: not adding PR comment");return}let r=e.payload.pull_request.number;pe(`Adding Job Summary as comment to PR #${r}.`);let s=`${nie(e)}
${sie()}<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=$v(),i=LD(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")ht(fOe(o));else throw o}}function fOe(t){let e=`Failed to generate PR comment.
${t}`,n=l8(),i=Uk(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")at(fGe(o));else throw o}}function fGe(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 pOe(t){return`${EOe()}
${IOe(t)}`}function mOe(){let t=qte();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function EOe(){let t=Yte();return t.length===0?"":`
`:e}function pGe(t){return`${EGe()}
${IGe(t)}
${eie(t.map(e=>e.gradleVersion))}`}function sie(){let t=F1();return`<h3>Gradle Builds${t?` <sub><em>captured by ${t}</em></sub>`:""}</h3>
`}function mGe(){let t=qne();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function EGe(){let t=Yne();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${Xv()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${F1()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${COe(e)}</li>`).join("")}
${t.map(e=>`<li>${CGe(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function COe(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function IOe(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function CGe(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function IGe(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -299,16 +315,15 @@ This job uses deprecated functionality from the <code>${Xv()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>yOe(e)).join("")}
</table>
`}function BOe(t){return t.some(e=>e.buildFailed)}function yOe(t){return`
</tr>${t.map(e=>yGe(e)).join("")}
</table>`}function BGe(t){return t.some(e=>e.buildFailed)}function yGe(t){return`
<tr>
<td>${Wte(t.rootProjectName,30)}</td>
<td>${Wte(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${QOe(t)}</td>
<td>${bOe(t)}</td>
</tr>`}function QOe(t){return t.buildFailed?":x:":":white_check_mark:"}function bOe(t){return t.buildScanFailed?eP({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?eP({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):eP({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function eP({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 Wte(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function wOe(){let t=Eh;if(t.payload.pull_request==null){ae("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;ae(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=Kte(t),s=LD($v()),{owner:n,repo:i}=t.repo,o=`
<td>${tie(t.rootProjectName,30)}</td>
<td>${tie(t.requestedTasks,60)}</td>
<td align='center'>${QGe(t.gradleVersion)}</td>
<td align='center'>${bGe(t)}</td>
<td>${wGe(t)}</td>
</tr>`}function QGe(t){let e=Zne(t);return e?`${t} ${e}`:t}function bGe(t){return t.buildFailed?":x:":":white_check_mark:"}function wGe(t){return t.buildScanFailed?f8({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?f8({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):f8({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function f8({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 tie(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function NGe(){let t=fg;if(t.payload.pull_request==null){pe("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;pe(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=nie(t),s=Uk(l8()),{owner:n,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
@@ -318,24 +333,24 @@ This job uses deprecated functionality from the <code>${Xv()}</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 ht(`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(()=>ae(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>ht(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function Kte(t){return`<!-- gradle-job-summary: ${t1.constructJobCorrelator(t.workflow,t.job,Zv())} -->`}var Xte=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 Wn from"fs";import*as Xa from"path";function jte(){return $te().map(e=>{let r=Wn.readFileSync(e,"utf8"),s=JSON.parse(r);return TOe(e,s),s})}function Zte(){$te().forEach(DOe)}function $te(){let t=Xa.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Wn.existsSync(t)?Wn.readdirSync(t).map(e=>Xa.resolve(t,e)).filter(e=>Xa.extname(e)===".json"&&!xOe(e)):[]}function TOe(t,e){let r=Xa.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Wn.existsSync(r))return;let s=Xa.resolve(r,Xa.basename(t));if(Wn.existsSync(s)){let n=Wn.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function xOe(t){let e=`${t}.processed`;return Wn.existsSync(e)}function DOe(t){let e=`${t}.processed`;Wn.writeFileSync(e,"")}import*as Fre from"fs";import*as Mre from"path";import{pathToFileURL as z_e}from"url";import*as Qg 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,U(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,U(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,U(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,U(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,U(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as c1 from"path";import*as Bg from"path";import yl from"assert";var pc=process.platform==="win32";function Za(t){if(t=ja(t),pc&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Bg.dirname(t);return pc&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ja(e)),e}function o1(t,e){if(yl(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),yl(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),I0(e))return e;if(pc){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return yl(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(_i(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return yl(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return yl(I0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||pc&&t.endsWith("\\")||(t+=Bg.sep),t+e}function I0(t){return yl(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=_i(t),pc?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function B0(t){return yl(t,"isRooted parameter 'itemPath' must not be empty"),t=_i(t),pc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function _i(t){return t=t||"",pc?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ja(t){return t?(t=_i(t),!t.endsWith(Bg.sep)||t===Bg.sep||pc&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Hi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Hi||(Hi={}));var ere=process.platform==="win32";function sP(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=ere?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=ere?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Za(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Za(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function tre(t,e){let r=Hi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function rre(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as yre from"os";import*as Line truncated
`,c=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>s.graphql(A,{id:u.id}).then(()=>pe(`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 nie(t){return`<!-- gradle-job-summary: ${M1.constructJobCorrelator(t.workflow,t.job,u8())} -->`}var iie=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 Qi from"fs";import*as xA from"path";function oie(){return Aie().map(e=>{let r=Qi.readFileSync(e,"utf8"),s=JSON.parse(r);return xGe(e,s),s})}function aie(){Aie().forEach(RGe)}function Aie(){let t=xA.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Qi.existsSync(t)?Qi.readdirSync(t).map(e=>xA.resolve(t,e)).filter(e=>xA.extname(e)===".json"&&!DGe(e)):[]}function xGe(t,e){let r=xA.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Qi.existsSync(r))return;let s=xA.resolve(r,xA.basename(t));if(Qi.existsSync(s)){let n=Qi.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function DGe(t){let e=`${t}.processed`;return Qi.existsSync(e)}function RGe(t){let e=`${t}.processed`;Qi.writeFileSync(e,"")}import*as Gie from"fs";import*as Yie from"path";import{pathToFileURL as X9e}from"url";import*as wf from"fs";function p8(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,L(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,L(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,L(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,L(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,L(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as Y1 from"path";import*as Qf from"path";import ad from"assert";var $c=process.platform==="win32";function RA(t){if(t=DA(t),$c&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Qf.dirname(t);return $c&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=DA(e)),e}function _1(t,e){if(ad(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),ad(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),G0(e))return e;if($c){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return ad(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(po(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return ad(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return ad(G0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||$c&&t.endsWith("\\")||(t+=Qf.sep),t+e}function G0(t){return ad(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=po(t),$c?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Y0(t){return ad(t,"isRooted parameter 'itemPath' must not be empty"),t=po(t),$c?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function po(t){return t=t||"",$c?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function DA(t){return t?(t=po(t),!t.endsWith(Qf.sep)||t===Qf.sep||$c&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var mo;(function(t){t[t.None=0]=" 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 N0(i));return s.searchPaths.push(...sP(s.patterns)),s})}static stat(e,r,s){return uP(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Qg.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){U(`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 Qg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Qg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){U(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as lP from"crypto";import*as u1 from"fs";import*as Qre from"stream";import*as bre from"util";import*as wre from"path";var H_e=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())})},G_e=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 Nre(t,e){return H_e(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?ae:U,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=lP.createHash("sha256"),f=0;try{for(var p=!0,I=G_e(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}${wre.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(u1.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let b=lP.createHash("sha256");yield bre.promisify(Qre.pipeline)(u1.createReadStream(C),b),h.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 h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Sre=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 Y_e(t,e){return Sre(this,void 0,void 0,function*(){return yield A1.create(t,e)})}function Tre(t){return Sre(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield Y_e(e,{followSymbolicLinks:i});return Nre(o,r,n)})}import*as dP from"path";var V_e="Gradle User Home",xre="BASIC_CACHE_PRIMARY_KEY",Dre="BASIC_CACHE_RESTORED_KEY",J_e="setup-java",Rre=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],d1=class{async restore(e,r){let s=kre(e),n=await W_e();vp(xre,n);try{let i=await _te(s,n);i?(vp(Dre,i),ae(`Basic caching restored from cache key: ${i}`)):ae("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ht(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){let n=Mu(xre),i=Mu(Dre);if(s.readOnly)return{status:"read-only",entries:[l1({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 ae(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),{status:"enabled",entries:[l1({primaryKey:n,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=kre(e);try{return await Hte(o,n),ae(`Basic caching saved entry with key: ${n}`),{status:"enabled",entries:[l1({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 ht(`Basic caching failed to save entry with key \`${n}\`: ${a}`),{status:"enabled",entries:[l1({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function l1(t){return{entryName:V_e,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Rre}], make sure you have checked out the target repository`);return`${J_e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var K_e="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.",X_e="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 Ure(t){return t.isCacheDisabled()?(hP("Cache is disabled: will not restore state from previous builds."),new gP):t.getCacheProvider()==="basic"?(hP(X_e),new d1):(hP(K_e),j_e())}function Lre(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function j_e(){let t=Z_e();return await import(z_e(t).href)}function Z_e(){let t=import.meta.dirname,e=Mre.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Fre.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function hP(t){console.info(t)}import*as Hre from"util";var i6e=Ee(_re(),1);import*as fP from"fs";var n2t=Hre.promisify(fP.readdir);var a6e={_useHtmlParser2:!1};function bg(t,e){if(!t)return e??a6e;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 OP={};mi(OP,{contains:()=>S1,extract:()=>t5e,html:()=>j6e,merge:()=>use,parseHTML:()=>$6e,root:()=>e5e,text:()=>kl,xml:()=>Z6e});var Qc={};mi(Qc,{DocumentPosition:()=>jn,append:()=>F6e,appendChild:()=>k6e,compareDocumentPosition:()=>ose,existsOne:()=>nse,filter:()=>xg,find:()=>Q1,findAll:()=>v6e,findOne:()=>b1,findOneChild:()=>L6e,getAttributeValue:()=>T6e,getChildren:()=>Tg,getElementById:()=>H6e,getElements:()=>_6e,getElementsByClassName:()=>G6e,getElementsByTagName:()=>Rl,getElementsByTagType:()=>Y6e,getFeed:()=>PP,getInnerHTML:()=>S6e,getName:()=>D6e,getOuterHTML:()=>rse,getParent:()=>sse,getSiblings:()=>LP,getText:()=>I1,hasAttrib:()=>x6e,hasChildren:()=>st,innerText:()=>k0,isCDATA:()=>wg,isComment:()=>Dl,isDocument:()=>Xn,isTag:()=>Z,isText:()=>Ts,nextElementSibling:()=>B1,prepend:()=>U6e,prependChild:()=>M6e,prevElementSibling:()=>y1,removeElement:()=>rA,removeSubsets:()=>q6e,replaceElement:()=>R6e,testElement:()=>O6e,textContent:()=>tA,uniqueSort:()=>Bc});var Kn={};mi(Kn,{CDATA:()=>bP,Comment:()=>IP,Directive:()=>CP,Doctype:()=>wP,ElementType:()=>Le,Root:()=>mP,Script:()=>BP,Style:()=>yP,Tag:()=>QP,Text:()=>EP,isTag:()=>pP});var Le;(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"})(Le||(Le={}));function pP(t){return t.type===Le.Tag||t.type===Le.Script||t.type===Le.Style}var mP=Le.Root,EP=Le.Text,CP=Le.Directive,IP=Le.Comment,BP=Le.Script,yP=Le.Style,QP=Le.Tag,bP=Le.CDATA,wP=Le.Doctype;var h1=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 Ng(this,e)}},T0=class extends h1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Wo=class extends T0{constructor(){super(...arguments),this.type=Le.Text}get nodeType(){return 3}},Sl=class extends T0{constructor(){super(...arguments),this.type=Le.Comment}get nodeType(){return 8}},Tl=class extends T0{constructor(e,r){super(r),this.name=e,this.type=Le.Directive}get nodeType(){return 1}},x0=class extends h1{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}},D0=class extends x0{constructor(){super(...arguments),this.type=Le.CDATA}get nodeType(){return 4}},cn=class extends x0{constructor(){super(...arguments),this.type=Le.Root}get nodeType(){return 9}},xl=class extends x0{constructor(e,r,s=[],n=e==="script"?Le.Script:e==="style"?Le.Style:Le.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
`:I1(t.children):wg(t)?I1(t.children):Ts(t)?t.data:""}function tA(t){return Array.isArray(t)?t.map(tA).join(""):st(t)&&!Dl(t)?tA(t.children):Ts(t)?t.data:""}function k0(t){return Array.isArray(t)?t.map(k0).join(""):st(t)&&(t.type===Le.Tag||wg(t))?k0(t.children):Ts(t)?t.data:""}function Tg(t){return st(t)?t.children:[]}function sse(t){return t.parent||null}function LP(t){let e=sse(t);if(e!=null)return Tg(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 T6e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function x6e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function D6e(t){return t.name}function B1(t){let{next:e}=t;for(;e!==null&&!Z(e);)({next:e}=e);return e}function y1(t){let{prev:e}=t;for(;e!==null&&!Z(e);)({prev:e}=e);return e}function rA(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 R6e(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 k6e(t,e){if(rA(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 F6e(t,e){rA(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 M6e(t,e){if(rA(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 U6e(t,e){rA(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 xg(t,e,r=!0,s=1/0){return Q1(t,Array.isArray(e)?e:[e],r,s)}function Q1(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&&st(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function L6e(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(Z(i)&&t(i))return i;if(r&&st(i)&&i.children.length>0){let o=b1(t,i.children,!0);if(o)return o}}return null}function nse(t,e){return(Array.isArray(e)?e:[e]).some(r=>Z(r)&&t(r)||st(r)&&nse(t,r.children))}function v6e(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),st(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var w1={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=>Ts(e)&&t(e.data):e=>Ts(e)&&e.data===t}};function vP(t,e){return typeof e=="function"?r=>Z(r)&&e(r.attribs[t]):r=>Z(r)&&r.attribs[t]===e}function P6e(t,e){return r=>t(r)||e(r)}function ise(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(w1,r)?w1[r](s):vP(r,s)});return e.length===0?null:e.reduce(P6e)}function O6e(t,e){let r=ise(t);return r?r(e):!0}function _6e(t,e,r,s=1/0){let n=ise(t);return n?xg(n,e,r,s):[]}function H6e(t,e,r=!0){return Array.isArray(e)||(e=[e]),b1(vP("id",t),e,r)}function Rl(t,e,r=!0,s=1/0){return xg(w1.tag_name(t),e,r,s)}function G6e(t,e,r=!0,s=1/0){return xg(vP("class",t),e,r,s)}function Y6e(t,e,r=!0,s=1/0){return xg(w1.tag_type(t),e,r,s)}function q6e(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 jn;(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"})(jn||(jn={}));function ose(t,e){let r=[],s=[];if(t===e)return 0;let n=st(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=st(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 jn.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?jn.FOLLOWING|jn.CONTAINED_BY:jn.FOLLOWING:a===t?jn.PRECEDING|jn.CONTAINS:jn.PRECEDING}function Bc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=ose(e,r);return s&jn.PRECEDING?-1:s&jn.FOLLOWING?1:0}),t}function PP(t){let e=N1(K6e,t);return e?e.name==="feed"?V6e(e):J6e(e):null}function V6e(t){var e;let r=t.children,s={type:"atom",items:Rl("entry",r).map(o=>{var a;let{children:A}=o,c={media:ase(A)};xs(c,"id","id",A),xs(c,"title","title",A);let u=(a=N1("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=yc("summary",A)||yc("content",A);l&&( Line truncated
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new z0(i));return s.searchPaths.push(...E8(s.patterns)),s})}static stat(e,r,s){return N8(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield wf.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){L(`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 wf.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield wf.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){L(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as S8 from"crypto";import*as q1 from"fs";import*as kie from"stream";import*as Fie from"util";import*as Mie from"path";var q9e=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())})},J9e=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 Uie(t,e){return q9e(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?pe:L,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=S8.createHash("sha256"),f=0;try{for(var p=!0,E=J9e(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${Mie.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(q1.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let w=S8.createHash("sha256");yield Fie.promisify(kie.pipeline)(q1.createReadStream(C),w),h.write(w.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}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 Lie=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 V9e(t,e){return Lie(this,void 0,void 0,function*(){return yield G1.create(t,e)})}function vie(t){return Lie(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield V9e(e,{followSymbolicLinks:i});return Uie(o,r,n)})}import*as T8 from"path";var z9e="Gradle User Home",Pie="BASIC_CACHE_PRIMARY_KEY",Oie="BASIC_CACHE_RESTORED_KEY",K9e="setup-java",_ie=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],J1=class{async restore(e,r){let s=Hie(e),n=await j9e();jm(Pie,n);try{let i=await _ne(s,n);i?(jm(Oie,i),pe(`Basic caching restored from cache key: ${i}`)):pe("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=Sc(Pie),i=Sc(Oie);if(s.readOnly)return{status:"read-only",entries:[j0({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 pe(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),{status:"enabled",entries:[j0({primaryKey:n,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=Hie(e);try{return await Hne(o,n)===-1?(at(`Basic caching failed to save entry with key \`${n}\`. See preceding log output for the cause.`),{status:"enabled",entries:[j0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(pe(`Basic caching saved entry with key: ${n}`),{status:"enabled",entries:[j0({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:[j0({primaryKey:n,restoredKey:i,restoredOutcome:i?"Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${_ie}], make sure you have checked out the target repository`);return`${K9e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Z9e="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.",$9e="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.",eYe="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",W1=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,s){return{status:this.status,entries:[]}}};async function qie(t){return t.getCacheProvider()==="external"?(V1(eYe),new W1("external")):t.isCacheDisabled()?(V1("Cache is disabled: will not restore state from previous builds."),new W1("disabled")):t.getCacheProvider()==="basic"?(V1($9e),new J1):(V1(Z9e),tYe())}function Jie(t){if(!(t.isCacheDisabled()||t.getCacheProvider()==="external"))return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function tYe(){let t=rYe();return await import(X9e(t).href)}function rYe(){let t=import.meta.dirname,e=Yie.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Gie.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function V1(t){console.info(t)}import*as jie from"util";var cYe=we(Kie(),1);import*as x8 from"fs";var ELt=jie.promisify(x8.readdir);var lYe={_useHtmlParser2:!1};function Nf(t,e){if(!t)return e??lYe;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 $8={};zi($8,{contains:()=>AN,extract:()=>iqe,html:()=>tqe,merge:()=>Coe,parseHTML:()=>sqe,root:()=>nqe,text:()=>md,xml:()=>rqe});var ou={};zi(ou,{DocumentPosition:()=>Si,append:()=>vYe,appendChild:()=>LYe,compareDocumentPosition:()=>foe,existsOne:()=>hoe,filter:()=>Rf,find:()=>nN,findAll:()=>HYe,findOne:()=>iN,findOneChild:()=>_Ye,getAttributeValue:()=>kYe,getChildren:()=>Df,getElementById:()=>JYe,getElements:()=>qYe,getElementsByClassName:()=>VYe,getElementsByTagName:()=>pd,getElementsByTagType:()=>WYe,getFeed:()=>Z8,getInnerHTML:()=>RYe,getName:()=>MYe,getOuterHTML:()=>loe,getParent:()=>doe,getSiblings:()=>j8,getText:()=>tN,hasAttrib:()=>FYe,hasChildren:()=>ht,innerText:()=>tC,isCDATA:()=>Sf,isComment:()=>fd,isDocument:()=>Ni,isTag:()=>te,isText:()=>Zs,nextElementSibling:()=>rN,prepend:()=>OYe,prependChild:()=>PYe,prevElementSibling:()=>sN,removeElement:()=>UA,removeSubsets:()=>zYe,replaceElement:()=>UYe,testElement:()=>YYe,textContent:()=>MA,uniqueSort:()=>nu});var wi={};zi(wi,{CDATA:()=>P8,Comment:()=>M8,Directive:()=>F8,Doctype:()=>O8,ElementType:()=>We,Root:()=>R8,Script:()=>U8,Style:()=>L8,Tag:()=>v8,Text:()=>k8,isTag:()=>D8});var We;(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"})(We||(We={}));function D8(t){return t.type===We.Tag||t.type===We.Script||t.type===We.Style}var R8=We.Root,k8=We.Text,F8=We.Directive,M8=We.Comment,U8=We.Script,L8=We.Style,v8=We.Tag,P8=We.CDATA,O8=We.Doctype;var z1=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 Tf(this,e)}},X0=class extends z1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Ca=class extends X0{constructor(){super(...arguments),this.type=We.Text}get nodeType(){return 3}},dd=class extends X0{constructor(){super(...arguments),this.type=We.Comment}get nodeType(){return 8}},hd=class extends X0{constructor(e,r){super(r),this.name=e,this.type=We.Directive}get nodeType(){return 1}},Z0=class extends z1{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}},$0=class extends Z0{constructor(){super(...arguments),this.type=We.CDATA}get nodeType(){return 4}},vn=class extends Z0{constructor(){super(...arguments),this.type=We.Root}get nodeType(){return 9}},gd=class extends Z0{constructor(e,r,s=[],n=e==="script"?We.Script:e==="style"?We.Style:We.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){ret Line truncated
`:tN(t.children):Sf(t)?tN(t.children):Zs(t)?t.data:""}function MA(t){return Array.isArray(t)?t.map(MA).join(""):ht(t)&&!fd(t)?MA(t.children):Zs(t)?t.data:""}function tC(t){return Array.isArray(t)?t.map(tC).join(""):ht(t)&&(t.type===We.Tag||Sf(t))?tC(t.children):Zs(t)?t.data:""}function Df(t){return ht(t)?t.children:[]}function doe(t){return t.parent||null}function j8(t){let e=doe(t);if(e!=null)return Df(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 kYe(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function FYe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function MYe(t){return t.name}function rN(t){let{next:e}=t;for(;e!==null&&!te(e);)({next:e}=e);return e}function sN(t){let{prev:e}=t;for(;e!==null&&!te(e);)({prev:e}=e);return e}function UA(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 UYe(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 LYe(t,e){if(UA(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 vYe(t,e){UA(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 PYe(t,e){if(UA(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 OYe(t,e){UA(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 Rf(t,e,r=!0,s=1/0){return nN(t,Array.isArray(e)?e:[e],r,s)}function nN(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&&ht(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function _Ye(t,e){return e.find(t)}function iN(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&&ht(i)&&i.children.length>0){let o=iN(t,i.children,!0);if(o)return o}}return null}function hoe(t,e){return(Array.isArray(e)?e:[e]).some(r=>te(r)&&t(r)||ht(r)&&hoe(t,r.children))}function HYe(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),ht(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var oN={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 X8(t,e){return typeof e=="function"?r=>te(r)&&e(r.attribs[t]):r=>te(r)&&r.attribs[t]===e}function GYe(t,e){return r=>t(r)||e(r)}function goe(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(oN,r)?oN[r](s):X8(r,s)});return e.length===0?null:e.reduce(GYe)}function YYe(t,e){let r=goe(t);return r?r(e):!0}function qYe(t,e,r,s=1/0){let n=goe(t);return n?Rf(n,e,r,s):[]}function JYe(t,e,r=!0){return Array.isArray(e)||(e=[e]),iN(X8("id",t),e,r)}function pd(t,e,r=!0,s=1/0){return Rf(oN.tag_name(t),e,r,s)}function VYe(t,e,r=!0,s=1/0){return Rf(X8("class",t),e,r,s)}function WYe(t,e,r=!0,s=1/0){return Rf(oN.tag_type(t),e,r,s)}function zYe(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 Si;(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"})(Si||(Si={}));function foe(t,e){let r=[],s=[];if(t===e)return 0;let n=ht(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=ht(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 Si.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Si.FOLLOWING|Si.CONTAINED_BY:Si.FOLLOWING:a===t?Si.PRECEDING|Si.CONTAINS:Si.PRECEDING}function nu(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=foe(e,r);return s&Si.PRECEDING?-1:s&Si.FOLLOWING?1:0}),t}function Z8(t){let e=aN($Ye,t);return e?e.name==="feed"?KYe(e):jYe(e):null}function KYe(t){var e;let r=t.children,s={type:"atom",items:pd("entry",r).map(o=>{var a;let{children:A}=o,c={media:poe(A)};$s(c,"id","id",A),$s(c,"title","title",A);let u=(a=aN("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=iu("summary",A)||iu("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 ei=Ee(bc(),1);var t3={};function r3(t,e){return t===ei.default.falseFunc?ei.default.falseFunc:r=>e.isTag(r)&&t(r)}function s3(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 e3(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 $P=(t,e,r,s,n)=>{let i=n(e,e3(r),s);return i===ei.default.trueFunc?t:i===ei.default.falseFunc?ei.default.falseFunc:o=>i(o)&&t(o)},O1={is:$P,matches:$P,where:$P,not(t,e,r,s,n){let i=n(e,e3(r),s);return i===ei.default.falseFunc?t:i===ei.default.trueFunc?ei.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=e3(r);o.relativeSelector=!0;let a=e.some(u=>u.some(O0))?[t3]:void 0,A=n(e,o,a);if(A===ei.default.falseFunc)return ei.default.falseFunc;let c=r3(A,i);if(a&&A!==ei.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,...s3(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Kse(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in O1))throw new Error(`Unknown pseudo-class :${o}(${a})`);return O1[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:P1[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,zse.parse)(c);return O1.is(t,u,r,s,n)}if(typeof A=="function")return ZP(A,o,a,1),u=>A(u,a)&&t(u);if(o in Pg)return Pg[o](t,a,r,s);if(o in H0){let u=H0[o];return ZP(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ti=Ee(Lg(),1);function n3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function Xse(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ti.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ti.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ti.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()),qse[e.action](t,e,r)}case ti.SelectorType.Pseudo:return Kse(t,e,r,s,n);case ti.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 ti.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=n3(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=n3(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=n3(c,i));return!1};case ti.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ti.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ti.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 ti.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 ti.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function jse(t,e,r){let s=_1(t,e,r);return r3(s,e.adapter)}function _1(t,e,r){let s=typeof t=="string"?(0,Yi.parse)(t):t;return H1(s,e,r)}function Zse(t){return t.type===Yi.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Zse)))}var _5e={type:Yi.SelectorType.Descendant},H5e={type:"_flexibleDescendant"},G5e={type:Yi.SelectorType.Pseudo,name:"scope",data:null};function Y5e(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===t3||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(gne,`\r
`)}}).toArray()}var I3={};mi(I3,{extract:()=>n9e});function s9e(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 n9e(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=s9e(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 Sc=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}}};Sc.prototype.cheerio="[cheerio object]";Sc.prototype.splice=Array.prototype.splice;Sc.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Sc.prototype,WP,p3,m3,E3,C3,I3);function fne(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=bg(n),a=t(s,o,i,null);class A extends Sc{_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&&Zn(u))return u;let f=bg(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Zn(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&F0(u)?t(u,f,!1,null).children:i9e(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,T=l?typeof l=="string"?F0(l)?new A([t(l,f,!1,null)],I,f):(b=`${l} ${b}`,I):Zn(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return T?T.find(b):C}return Object.assign(c,OP,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function i9e(t){return!!t.name||t.type===Kn.Root||t.type===Kn.Text||t.type===Kn.Comment}var o9e=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]),lt="\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 ns={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function W1(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 z1(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function K1(t){return t>=64976&&t<=65007||o9e.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-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 Di=we(au(),1);var f4={};function p4(t,e){return t===Di.default.falseFunc?Di.default.falseFunc:r=>e.isTag(r)&&t(r)}function m4(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 g4(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 h4=(t,e,r,s,n)=>{let i=n(e,g4(r),s);return i===Di.default.trueFunc?t:i===Di.default.falseFunc?Di.default.falseFunc:o=>i(o)&&t(o)},IN={is:h4,matches:h4,where:h4,not(t,e,r,s,n){let i=n(e,g4(r),s);return i===Di.default.falseFunc?t:i===Di.default.trueFunc?Di.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=g4(r);o.relativeSelector=!0;let a=e.some(u=>u.some(AC))?[f4]:void 0,A=n(e,o,a);if(A===Di.default.falseFunc)return Di.default.falseFunc;let c=p4(A,i);if(a&&A!==Di.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,...m4(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function nae(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in IN))throw new Error(`Unknown pseudo-class :${o}(${a})`);return IN[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:CN[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,sae.parse)(c);return IN.is(t,u,r,s,n)}if(typeof A=="function")return d4(A,o,a,1),u=>A(u,a)&&t(u);if(o in _f)return _f[o](t,a,r,s);if(o in uC){let u=uC[o];return d4(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Ri=we(Pf(),1);function E4(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function iae(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Ri.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ri.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ri.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()),$oe[e.action](t,e,r)}case Ri.SelectorType.Pseudo:return nae(t,e,r,s,n);case Ri.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 Ri.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=E4(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=E4(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=E4(c,i));return!1};case Ri.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Ri.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Ri.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 Ri.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 Ri.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function oae(t,e,r){let s=BN(t,e,r);return p4(s,e.adapter)}function BN(t,e,r){let s=typeof t=="string"?(0,Co.parse)(t):t;return yN(s,e,r)}function aae(t){return t.type===Co.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(aae)))}var qqe={type:Co.SelectorType.Descendant},Jqe={type:"_flexibleDescendant"},Vqe={type:Co.SelectorType.Pseudo,name:"scope",data:null};function Wqe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===f4||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(Qae,`\r
`)}}).toArray()}var M4={};zi(M4,{extract:()=>AVe});function aVe(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 AVe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=aVe(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 uu=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}}};uu.prototype.cheerio="[cheerio object]";uu.prototype.splice=Array.prototype.splice;uu.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(uu.prototype,a4,D4,R4,k4,F4,M4);function bae(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Nf(n),a=t(s,o,i,null);class A extends uu{_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&&Ti(u))return u;let f=Nf(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=Ti(p)?p:new A(p,null,f);if(E._root=E,!u)return new A(void 0,E,f);let m=typeof u=="string"&&rC(u)?t(u,f,!1,null).children:cVe(u)?[u]:Array.isArray(u)?u:void 0,C=new A(m,E,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let w=u,T=l?typeof l=="string"?rC(l)?new A([t(l,f,!1,null)],E,f):(w=`${l} ${w}`,E):Ti(l)?l:new A(Array.isArray(l)?l:[l],E,f):E;return T?T.find(w):C}return Object.assign(c,$8,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function cVe(t){return!!t.name||t.type===wi.Root||t.type===wi.Text||t.type===wi.Comment}var uVe=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 TN(t){return t>=55296&&t<=57343}function wae(t){return t>=56320&&t<=57343}function Nae(t,e){return(t-55296)*1024+9216+e}function xN(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function DN(t){return t>=64976&&t<=65007||uVe.has(t)}var F;(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 +374,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": ";s1BAAA,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
}
+163 -154
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var F8e=Object.create;var $M=Object.defineProperty;var M8e=Object.getOwnPropertyDescriptor;var L8e=Object.getOwnPropertyNames;var U8e=Object.getPrototypeOf,P8e=Object.prototype.hasOwnProperty;var b=(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)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Sa=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},O8e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of L8e(e))!P8e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=M8e(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?F8e(U8e(t)):{},O8e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var MZ=E(Op=>{"use strict";var d7t=b("net"),W8e=b("tls"),tL=b("http"),vZ=b("https"),J8e=b("events"),h7t=b("assert"),z8e=b("util");Op.httpOverHttp=j8e;Op.httpsOverHttp=K8e;Op.httpOverHttps=$8e;Op.httpsOverHttps=X8e;function j8e(t){var e=new Au(t);return e.request=tL.request,e}function K8e(t){var e=new Au(t);return e.request=tL.request,e.createSocket=_Z,e.defaultPort=443,e}function $8e(t){var e=new Au(t);return e.request=vZ.request,e}function X8e(t){var e=new Au(t);return e.request=vZ.request,e.createSocket=_Z,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||tL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=FZ(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)})}z8e.inherits(Au,J8e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,FZ(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=rL({},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")),xl("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){xl("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){xl("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 xl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),xl(`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 _Z(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=rL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=W8e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function FZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function rL(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 xl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?xl=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)}:xl=function(){};Op.debug=xl});var nL=E((g7t,LZ)=>{LZ.exports=MZ()});var yr=E((p7t,UZ)=>{UZ.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 Lt=E((m7t,Aee)=>{"use strict";var PZ=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[PZ]===!0}[PZ]=!0},OZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),sL=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[OZ]===!0}[OZ]=!0},HZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iL=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[HZ]===!0}[HZ]=!0},GZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),oL=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[GZ]===!0}[GZ]=!0},qZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aL=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[qZ]===!0}[qZ]=!0},YZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),cL=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 f5e(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(X6e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function g5e(){return"allowed"}function p5e(){return"success"}function m5e(){return"success"}function E5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function C5e(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&&ZL(t.origin)&&!ZL(NI(t))&&(e=null);break;case"same-origin":mS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Kp(t,e){return t}function I5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Kp(t.domainLookupStartTime,r),domainLookupEndTime:Kp(t.domainLookupEndTime,r),connectionStartTime:Kp(t.connectionStartTime,r),connectionEndTime:Kp(t.connectionEndTime,r),secureConnectionStartTime:Kp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function y5e(t){return Kp(n5e.now(),t)}function B5e(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 bte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function b5e(t){return{referrerPolicy:t.referrerPolicy}}function Q5e(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let a=mte();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=XL(r),s=XL(r,!0);n.toString().length>4096&&(n=s);let i=mS(t,n),o=SI(n)&&!SI(t.url);switch(e){case"origin":return s??XL(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 mS(n,a)?n:SI(n)&&!SI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function XL(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 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 w5e(t,e){if(pS===void 0)return!0;let r=Qte(e);if(r==="no metadata"||r.length===0)return!0;let n=N5e(r),s=T5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=pS.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)),x5e(c,a))return!0}return!1}var S5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Qte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=S5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Cte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function N5e(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 T5e(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 x5e(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 R5e(t){}function mS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function D5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function k5e(t){return t.controller.state==="aborted"}function v5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function _5e(t){return o5e[t.toLowerCase()]??t}function F5e(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 M5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function wte(t,e,r=0,n=1){class s{ Line truncated
`);function dHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function hHe(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 fHe(t,e){CS(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&&IS(t,uHe,i)||i.position===t.length-4&&IS(t,lHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=gHe(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",dHe(u)||(u=""),h=new cHe([d],A,{type:u})):h=nHe(Buffer.from(d)),CS(Lte(c)),CS(typeof h=="string"&&Lte(h)||iHe(h)),s.push(oHe(c,h,A))}}function gHe(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=Xp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=oU(o,!0,!0,a=>a===9||a===32),!sHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Xp(a=>a===32||a===9,t,e),rHe(o)){case"content-disposition":{if(r=n=null,!IS(t,AHe,e)||(e.position+=17,r=Ote(t,e),r===null))return"failure";if(IS(t,Pte,e)){let a=e.position+Pte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Ote(t,e),n===null))return"failure"}break}case"content-type":{let a=Xp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=Ute(a);break}case"content-transfer-encoding":{let a=Xp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=Ute(a);break}default:Xp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Ote(t,e){CS(t[e.position-1]===34);let r=Xp(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 Xp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function oU(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 IS(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}Hte.exports={multipartFormDataParser:fHe,validateBoundary:hHe}});var tm=E((G7t,Xte)=>{"use strict";var RI=dt(),{ReadableStreamFrom:pHe,isBlobLike:qte,isReadableStreamLike:mHe,readableStreamClose:EHe,createDeferredPromise:CHe,fullyReadBody:IHe,extractMimeType:yHe,utf8DecodeBytes:Wte}=xi(),{FormData:Yte}=xI(),{kState:em}=Rl(),{webidl:BHe}=jn(),{Blob:bHe}=b("node:buffer"),aU=b("node:assert"),{isErrored:Jte,isDisturbed:QHe}=b("node:stream"),{isArrayBuffer:wHe}=b("node:util/types"),{serializeAMimeType:SHe}=Ks(),{multipartFormDataParser:NHe}=Gte(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var yS=new TextEncoder;function THe(){}var zte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,jte;zte&&(jte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!QHe(e)&&!Jte(e)&&e.cancel("Response object has been garbage collected").catch(THe)}));function Kte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:qte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?yS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>EHe(c))},start(){},type:"bytes"}),aU(mHe(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(wHe(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${`${cU(1e11)}`.padStart(11,"0")}`,A=`--${c}\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=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=yS.encode(A+`; name="${u(l(I))}"\r
var sHe=Object.create;var jU=Object.defineProperty;var iHe=Object.getOwnPropertyDescriptor;var oHe=Object.getOwnPropertyNames;var aHe=Object.getPrototypeOf,cHe=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}},gc=(t,e)=>{for(var r in e)jU(t,r,{get:e[r],enumerable:!0})},AHe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of oHe(e))!cHe.call(t,s)&&s!==r&&jU(t,s,{get:()=>e[s],enumerable:!(n=iHe(e,s))||n.enumerable});return t};var Ee=(t,e,r)=>(r=t!=null?sHe(aHe(t)):{},AHe(e||!t||!t.__esModule?jU(r,"default",{value:t,enumerable:!0}):r,t));var jte=C(c0=>{"use strict";var Xzt=Q("net"),gHe=Q("tls"),$U=Q("http"),Jte=Q("https"),pHe=Q("events"),Zzt=Q("assert"),mHe=Q("util");c0.httpOverHttp=EHe;c0.httpsOverHttp=CHe;c0.httpOverHttps=IHe;c0.httpsOverHttps=yHe;function EHe(t){var e=new el(t);return e.request=$U.request,e}function CHe(t){var e=new el(t);return e.request=$U.request,e.createSocket=Wte,e.defaultPort=443,e}function IHe(t){var e=new el(t);return e.request=Jte.request,e}function yHe(t){var e=new el(t);return e.request=Jte.request,e.createSocket=Wte,e.defaultPort=443,e}function el(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$U.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=zte(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)})}mHe.inherits(el,pHe.EventEmitter);el.prototype.addRequest=function(e,r,n,s){var i=this,o=eP({request:e},i.options,zte(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)}})};el.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eP({},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")),kd("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){kd("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){kd("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 kd("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),kd(`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)}};el.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 Wte(t,e){var r=this;el.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eP({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=gHe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function zte(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eP(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 kd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?kd=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)}:kd=function(){};c0.debug=kd});var tP=C((ejt,Kte)=>{Kte.exports=jte()});var vr=C((tjt,Xte)=>{Xte.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 Vt=C((rjt,Bre)=>{"use strict";var Zte=Symbol.for("undici.error.UND_ERR"),Fr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Zte]===!0}[Zte]=!0},$te=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),rP=class extends Fr{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[$te]===!0}[$te]=!0},ere=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),nP=class extends Fr{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[ere]===!0}[ere]=!0},tre=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),sP=class extends Fr{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[tre]===!0}[tre]=!0},rre=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),iP=class extends Fr{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[rre]===!0}[rre]=!0},nre=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),oP=class extends Fr{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 LGe(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(yGe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function UGe(){return"allowed"}function PGe(){return"success"}function OGe(){return"success"}function HGe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function GGe(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&&XP(t.origin)&&!XP(rB(t))&&(e=null);break;case"same-origin":ZN(t,rB(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function E0(t,e){return t}function qGe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:E0(t.domainLookupStartTime,r),domainLookupEndTime:E0(t.domainLookupEndTime,r),connectionStartTime:E0(t.connectionStartTime,r),connectionEndTime:E0(t.connectionEndTime,r),secureConnectionStartTime:E0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function YGe(t){return E0(SGe.now(),t)}function VGe(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 _ne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function JGe(t){return{referrerPolicy:t.referrerPolicy}}function WGe(t){let e=t.referrerPolicy;jf(e);let r=null;if(t.referrer==="client"){let a=Rne();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=KP(r),s=KP(r,!0);n.toString().length>4096&&(n=s);let i=ZN(t,n),o=tB(n)&&!tB(t.url);switch(e){case"origin":return s??KP(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=rB(t);return ZN(n,a)?n:tB(n)&&!tB(a)?"no-referrer":s}default:return o?"no-referrer":s}}function KP(t,e){return jf(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 tB(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 zGe(t,e){if(XN===void 0)return!0;let r=Lne(e);if(r==="no metadata"||r.length===0)return!0;let n=KGe(r),s=XGe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=XN.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)),ZGe(c,a))return!0}return!1}var jGe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Lne(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=jGe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();kne.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function KGe(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 XGe(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 ZGe(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 $Ge(t){}function ZN(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function e9e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function t9e(t){return t.controller.state==="aborted"}function r9e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function n9e(t){return xGe[t.toLowerCase()]??t}function s9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return jf(typeof e=="string"),e}var i9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Une(t,e,r=0,n=1){class s{ Line truncated
`);function M9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function _9e(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 L9e(t,e){eT(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&&tT(t,v9e,i)||i.position===t.length-4&&tT(t,F9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=U9e(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",M9e(u)||(u=""),h=new D9e([d],A,{type:u})):h=S9e(Buffer.from(d)),eT(Kne(c)),eT(typeof h=="string"&&Kne(h)||T9e(h)),s.push(x9e(c,h,A))}}function U9e(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=I0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=sO(o,!0,!0,a=>a===9||a===32),!N9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,I0(a=>a===32||a===9,t,e),w9e(o)){case"content-disposition":{if(r=n=null,!tT(t,k9e,e)||(e.position+=17,r=$ne(t,e),r===null))return"failure";if(tT(t,Zne,e)){let a=e.position+Zne.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=$ne(t,e),n===null))return"failure"}break}case"content-type":{let a=I0(c=>c!==10&&c!==13,t,e);a=sO(a,!1,!0,c=>c===9||c===32),s=Xne(a);break}case"content-transfer-encoding":{let a=I0(c=>c!==10&&c!==13,t,e);a=sO(a,!1,!0,c=>c===9||c===32),i=Xne(a);break}default:I0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function $ne(t,e){eT(t[e.position-1]===34);let r=I0(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 I0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function sO(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 tT(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}ese.exports={multipartFormDataParser:L9e,validateBoundary:_9e}});var b0=C((Njt,lse)=>{"use strict";var iB=Ct(),{ReadableStreamFrom:P9e,isBlobLike:rse,isReadableStreamLike:O9e,readableStreamClose:H9e,createDeferredPromise:G9e,fullyReadBody:q9e,extractMimeType:Y9e,utf8DecodeBytes:ise}=ao(),{FormData:nse}=sB(),{kState:B0}=vd(),{webidl:V9e}=fs(),{Blob:J9e}=Q("node:buffer"),iO=Q("node:assert"),{isErrored:ose,isDisturbed:W9e}=Q("node:stream"),{isArrayBuffer:z9e}=Q("node:util/types"),{serializeAMimeType:j9e}=Qi(),{multipartFormDataParser:K9e}=tse(),oO;try{let t=Q("node:crypto");oO=e=>t.randomInt(0,e)}catch{oO=t=>Math.floor(Math.random(t))}var rT=new TextEncoder;function X9e(){}var ase=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,cse;ase&&(cse=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!W9e(e)&&!ose(e)&&e.cancel("Response object has been garbage collected").catch(X9e)}));function Ase(t,e=!1){let r=null;t instanceof ReadableStream?r=t:rse(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?rT.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>H9e(c))},start(){},type:"bytes"}),iO(O9e(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(z9e(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(iB.isFormDataLike(t)){let c=`----formdata-undici-0${`${oO(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=rT.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=yS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=rT.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=yS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(qte(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:pHe(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(!Jte(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 xHe(t,e=!1){return t instanceof ReadableStream&&(aU(!RI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),Kte(t,e)}function RHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function DHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function kHe(t){return{blob(){return Zp(this,r=>{let n=Vte(this);return n===null?n="":n&&(n=SHe(n)),new bHe([r],{type:n})},t)},arrayBuffer(){return Zp(this,r=>new Uint8Array(r).buffer,t)},text(){return Zp(this,Wte,t)},json(){return Zp(this,_He,t)},formData(){return Zp(this,r=>{let n=Vte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=NHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Yte;return i[em]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Yte;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 Zp(this,r=>new Uint8Array(r),t)}}}function vHe(t){Object.assign(t.prototype,kHe(t))}async function Zp(t,e,r){if(BHe.brandCheck(t,r),$te(t))throw new TypeError("Body is unusable: Body has already been read");DHe(t[em]);let n=CHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[em].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await IHe(t[em].body,i,s),n.promise)}function $te(t){let e=t[em].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function _He(t){return JSON.parse(Wte(t))}function Vte(t){let e=t[em].headersList,r=yHe(e);return r==="failure"?null:r}Xte.exports={extractBody:Kte,safelyExtractBody:xHe,cloneBody:RHe,mixinBody:vHe,streamRegistry:jte,hasFinalizationRegistry:zte,bodyUnusable:$te}});var Are=E((q7t,cre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:Zte}=Gp(),AU=YL(),{RequestContentLengthMismatchError:Vh,ResponseContentLengthMismatchError:FHe,RequestAbortedError:ire,HeadersTimeoutError:MHe,HeadersOverflowError:LHe,SocketError:NS,InformationalError:rm,BodyTimeoutError:UHe,HTTPParserError:PHe,ResponseExceededMaxSizeError:OHe}=Lt(),{kUrl:ore,kReset:$s,kClient:hU,kParser:Mr,kBlocking:vI,kRunning:cs,kPending:HHe,kSize:ere,kWriting:kl,kQueue:Ta,kNoRef:DI,kKeepAliveDefaultTimeout:GHe,kHostHeader:qHe,kPendingIdx:YHe,kRunningIdx:Qo,kError:wo,kPipelining:wS,kSocket:nm,kKeepAliveTimeoutValue:TS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:VHe,kKeepAliveTimeoutThreshold:WHe,kHeadersTimeout:JHe,kBodyTimeout:zHe,kStrictContentLength:fU,kMaxRequests:tre,kCounter:jHe,kMaxResponseSize:KHe,kOnError:$He,kResume:Dl,kHTTPContext:are}=yr(),wc=jee(),XHe=Buffer.alloc(0),BS=Buffer[Symbol.species],bS=Xe.addListener,ZHe=Xe.removeAllListeners,lU;async function e9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(Xee())}catch{e=await WebAssembly.compile(t||JL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onStatus(new BS(Sc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(gn.ptr===r),gn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onHeaderField(new BS(Sc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onHeaderValue(new BS(Sc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(gn.ptr===r),gn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onBody(new BS(Sc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=e9e();gU.catch();var gn=null,Sc=null,QS=0,Nc=null,t9e=0,kI=1,sm=2|kI,SS=4|kI,pU=8|t9e,mU=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[uU])&&e[uU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(wc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[qHe],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=rT.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(rse(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(iB.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:P9e(t)}if((typeof s=="string"||iB.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(!ose(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&&(iO(!iB.isDisturbed(t),"The body has already been consumed."),iO(!t.locked,"The stream is locked.")),Ase(t,e)}function $9e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function eqe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function tqe(t){return{blob(){return y0(this,r=>{let n=sse(this);return n===null?n="":n&&(n=j9e(n)),new J9e([r],{type:n})},t)},arrayBuffer(){return y0(this,r=>new Uint8Array(r).buffer,t)},text(){return y0(this,ise,t)},json(){return y0(this,nqe,t)},formData(){return y0(this,r=>{let n=sse(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=K9e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new nse;return i[B0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new nse;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 y0(this,r=>new Uint8Array(r),t)}}}function rqe(t){Object.assign(t.prototype,tqe(t))}async function y0(t,e,r){if(V9e.brandCheck(t,r),use(t))throw new TypeError("Body is unusable: Body has already been read");eqe(t[B0]);let n=G9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[B0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await q9e(t[B0].body,i,s),n.promise)}function use(t){let e=t[B0].body;return e!=null&&(e.stream.locked||iB.isDisturbed(e.stream))}function nqe(t){return JSON.parse(ise(t))}function sse(t){let e=t[B0].headersList,r=Y9e(e);return r==="failure"?null:r}lse.exports={extractBody:Ase,safelyExtractBody:Z9e,cloneBody:$9e,mixinBody:rqe,streamRegistry:cse,hasFinalizationRegistry:ase,bodyUnusable:use}});var Nse=C((Tjt,Sse)=>{"use strict";var Pe=Q("node:assert"),qe=Ct(),{channels:dse}=u0(),aO=GP(),{RequestContentLengthMismatchError:Kf,ResponseContentLengthMismatchError:hse,RequestAbortedError:yse,InvalidArgumentError:sqe,HeadersTimeoutError:iqe,HeadersOverflowError:oqe,SocketError:Q0,InformationalError:w0,BodyTimeoutError:aqe,HTTPParserError:cqe,ResponseExceededMaxSizeError:Aqe}=Vt(),{kUrl:Bse,kReset:wi,kClient:oT,kParser:Ir,kBlocking:cB,kRunning:In,kPending:bse,kSize:fse,kWriting:Fd,kQueue:mc,kNoRef:oB,kKeepAliveDefaultTimeout:uqe,kHostHeader:lqe,kPendingIdx:dqe,kRunningIdx:aa,kError:Ks,kPipelining:aT,kSocket:Xf,kKeepAliveTimeoutValue:AT,kMaxHeadersSize:cO,kKeepAliveMaxTimeout:hqe,kKeepAliveTimeoutThreshold:fqe,kHeadersTimeout:gqe,kBodyTimeout:pqe,kStrictContentLength:lO,kMaxRequests:gse,kCounter:mqe,kMaxResponseSize:Eqe,kOnError:pse,kResume:ol,kHTTPContext:Qse}=vr(),co=cne(),mse=Buffer.alloc(0),nT=Buffer[Symbol.species],sT=qe.addListener,Cqe=qe.removeAllListeners,Zf=Symbol("kIdleSocketValidation"),S0=Symbol("kIdleSocketValidationTimeout"),gO=Symbol("kSocketUsed"),AO;async function Iqe(){let t=process.env.JEST_WORKER_ID?VP():void 0,e;try{e=await WebAssembly.compile(lne())}catch{e=await WebAssembly.compile(t||VP())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Pe(jr.ptr===r);let i=n-fA+hA.byteOffset;return jr.onStatus(new nT(hA.buffer,i,s))||0},wasm_on_message_begin:r=>(Pe(jr.ptr===r),jr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Pe(jr.ptr===r);let i=n-fA+hA.byteOffset;return jr.onHeaderField(new nT(hA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Pe(jr.ptr===r);let i=n-fA+hA.byteOffset;return jr.onHeaderValue(new nT(hA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Pe(jr.ptr===r),jr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Pe(jr.ptr===r);let i=n-fA+hA.byteOffset;return jr.onBody(new nT(hA.buffer,i,s))||0},wasm_on_message_complete:r=>(Pe(jr.ptr===r),jr.onMessageComplete()||0)}})}var uO=null,dO=Iqe();dO.catch();var jr=null,hA=null,iT=0,fA=null,yqe=0,aB=1,N0=2|aB,cT=4|aB,hO=8|yqe,fO=class{constructor(e,r,{exports:n}){Pe(Number.isFinite(e[cO])&&e[cO]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[lqe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[wS]&&!h[$s]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return Zte.sendHeaders.hasSubscribers&&Zte.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?nre(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?nre(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?sre(f,c.stream(),t,e,h,u,p,l):a9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?o9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?sre(f,c,t,e,h,u,p,l):Ge(!1),!0}function o9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new xS({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(p){Xe.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new ire;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[kl]&&r[cs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}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 nre(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[aT]&&!h[wi]?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 dse.sendHeaders.hasSubscribers&&dse.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Cse(f,null,t,e,h,u,g,l):qe.isBuffer(c)?Cse(f,c,t,e,h,u,g,l):qe.isBlobLike(c)?typeof c.stream=="function"?Ise(f,c.stream(),t,e,h,u,g,l):Tqe(f,c,t,e,h,u,g,l):qe.isStream(c)?Nqe(f,c,t,e,h,u,g,l):qe.isIterable(c)?Ise(f,c,t,e,h,u,g,l):Pe(!1),!0}function Nqe(t,e,r,n,s,i,o,a){Pe(i!==0||r[In]===0,"stream body cannot be pipelined");let c=!1,A=new uT({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){qe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new yse;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Pe(s.destroyed||s[Fd]&&r[In]<=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")?qe.destroy(e,f):qe.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 Cse(t,e,r,n,s,i,o,a){try{e?qe.isBuffer(e)&&(Pe(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[$s]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[wi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Dl]()}catch(c){t(c)}}async function a9e(t,e,r,n,s,i,o,a){Ge(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"):(Pe(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[ol]()}catch(c){t(c)}}async function Tqe(t,e,r,n,s,i,o,a){Pe(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Kf;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[$s]=!0),r[Dl]()}catch(c){t(c)}}async function sre(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===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)=>{Ge(c===null),s[wo]?h(s[wo]):c=d});s.on("close",A).on("drain",A);let l=new xS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[wo])throw s[wo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var xS=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[kl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[wo])throw r[wo];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[fU])throw new Vh;process.emitWarning(new Vh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!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[wi]=!0),r[ol]()}catch(c){t(c)}}async function Ise(t,e,r,n,s,i,o,a){Pe(i!==0||r[In]===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)=>{Pe(c===null),s[Ks]?h(s[Ks]):c=d});s.on("close",A).on("drain",A);let l=new uT({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ks])throw s[Ks];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var uT=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[Fd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ks])throw r[Ks];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[lO])throw new Kf;process.emitWarning(new Kf)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[wi]=!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[Mr].timeout&&r[Mr].timeoutType===sm&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[kl]=!1,e[wo])throw e[wo];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[Ir].timeout&&r[Ir].timeoutType===N0&&r[Ir].timeout.refresh&&r[Ir].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Fd]=!1,e[Ks])throw e[Ks];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[fU])throw new Vh;process.emitWarning(new Vh)}e[Mr].timeout&&e[Mr].timeoutType===sm&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Dl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[kl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};cre.exports=r9e});var mre=E((Y7t,pre)=>{"use strict";var So=b("node:assert"),{pipeline:c9e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:ure,SocketError:_I,InformationalError:CU}=Lt(),{kUrl:RS,kReset:kS,kClient:im,kRunning:vS,kPending:A9e,kQueue:vl,kPendingIdx:IU,kRunningIdx:xa,kError:Da,kSocket:Rn,kStrictContentLength:u9e,kOnError:yU,kMaxConcurrentStreams:gre,kHTTP2Session:Ra,kResume:_l,kSize:l9e,kHTTPContext:d9e}=yr(),gu=Symbol("open streams"),lre,dre=!1,DS;try{DS=b("node:http2")}catch{DS={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}}=DS;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[Rn]=e,dre||(dre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=DS.connect(t[RS],{createConnection:()=>e,peerMaxConcurrentStreams:t[gre]});r[gu]=0,r[im]=t,r[Rn]=e,Et.addListener(r,"error",b9e),Et.addListener(r,"frameError",Q9e),Et.addListener(r,"end",w9e),Et.addListener(r,"goaway",S9e),Et.addListener(r,"close",function(){let{[im]:s}=this,{[Rn]:i}=s,o=this[Rn][Da]||this[Da]||new _I("closed",Et.getSocketInfo(i));if(s[Ra]=null,s.destroyed){So(s[A9e]===0);let a=s[vl].splice(s[xa]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Ra]=r,e[Ra]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Da]=s,this[im][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new _I("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[Da]||new _I("closed",Et.getSocketInfo(this));t[Rn]=null,this[Ra]!=null&&this[Ra].destroy(s),t[IU]=t[xa],So(t[vS]===0),t.emit("disconnect",t[RS],[t],s),t[_l]()});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[Rn];e?.destroyed===!1&&(t[l9e]===0&&t[gre]===0?(e.unref(),t[Ra].unref()):(e.ref(),t[Ra].ref()))}function b9e(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn][Da]=t,this[im][yU](t)}function Q9e(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rn][Da]=n,this[im][yU](n)}}function w9e(){let t=new _I("other side closed",Et.getSocketInfo(this[Rn]));this.destroy(t),Et.destroy(this[Rn],t)}function S9e(t){let e=this[Da]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[im];if(r[Rn]=null,r[d9e]=null,this[Ra]!=null&&(this[Ra].destroy(e),this[Ra]=null),Et.destroy(this[Rn],e),r[xa]<r[vl].length){let n=r[vl][r[xa]];r[vl][r[xa]++]=null,Et.errorRequest(r,n,e),r[IU]=r[xa]}So(r[vS]===0),r.emit("disconnect",r[RS],[r],e),r[_l]()}function N9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function T9e(t,e){let r=t[Ra],{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 N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[RS];l[h9e]=i||`${h}${f?`:${f}`:""}`,l[f9e]=n;let p=N=>{e.aborted||e.completed||(N=N||new ure,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[vl][t[xa]++]=null,t[_l]())};try{e.onConnect(p)}catch(N){Et.errorRequest(t,e,N)}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[gu],t[vl][t[xa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[gu],t[vl][t[xa]++]=null}),d.once("close",()=>{r[gu]-=1,r[gu]===0&&r.unref()}),!0;l[g9e]=s,l[p9e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){lre??=tm().extractBody;let[N,M]=lre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),N9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[u9e])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[m9e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[E9e]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[eGe]=c??3e5,this[Z9e]=s??3e5,this[tGe]=C??!0,this[rGe]=N,this[wU]=O,this[Ml]=null,this[aGe]=P>-1?P:-1,this[AGe]=ee??100,this[Kr]=null,this[ka]=[],this[mu]=0,this[va]=0,this[UI]=ce=>NU(this,ce),this[cGe]=ce=>xre(this,ce)}get pipelining(){return this[LS]}set pipelining(e){this[LS]=e,this[UI](!0)}get[HI](){return this[ka].length-this[va]}get[OI](){return this[va]-this[mu]}get[PI](){return this[ka].length-this[mu]}get[W9e](){return!!this[Kr]&&!this[am]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[PI]>=(Tre(this)||1)||this[HI]>0)}[V9e](e){Rre(this),this.once("connect",e)}[oGe](e,r){let n=e.origin||this[xc].origin,s=new P9e(n,e,r);return this[ka].push(s),this[Jh]||(Wh.bodyLength(s.body)==null&&Wh.isIterable(s.body)?(this[Jh]=1,queueMicrotask(()=>NU(this))):this[UI](!0)),this[Jh]&&this[Ll]!==2&&this[QU]&&(this[Ll]=2),this[Ll]<2}async[sGe](){return new Promise(e=>{this[PI]?this[Ml]=e:e(null)})}async[iGe](e){return new Promise(r=>{let n=this[ka].splice(this[va]);for(let i=0;i<n.length;i++){let o=n[i];Wh.errorRequest(this,o,e)}let s=()=>{this[Ml]&&(this[Ml](),this[Ml]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},dGe=MS();function xre(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){pu(t[va]===t[mu]);let r=t[ka].splice(t[mu]);for(let n=0;n<r.length;n++){let s=r[n];Wh.errorRequest(t,s,e)}pu(t[PI]===0)}}async function Rre(t){pu(!t[am]),pu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[xc];if(r[0]==="["){let i=r.indexOf("]");pu(i!==-1);let o=r.substring(1,i);pu(Nre.isIP(o)),r=o}t[am]=!0,om.beforeConnect.hasSubscribers&&om.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],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[Fl],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Wh.destroy(i.on("error",wre),new G9e);return}pu(i);try{t[Kr]=i.alpnProtocol==="h2"?await lGe(t,i):await uGe(t,i)}catch(o){throw i.destroy().on("error",wre),o}t[am]=!1,i[nGe]=0,i[wU]=t[wU],i[Y9e]=t,i[z9e]=null,om.connected.hasSubscribers&&om.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[xc],[t])}catch(i){if(t.destroyed)return;if(t[am]=!1,om.connectError.hasSubscribers&&om.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(pu(t[OI]===0);t[HI]>0&&t[ka][t[va]].servername===t[Fl];){let o=t[ka][t[va]++];Wh.errorRequest(t,o,i)}else xre(t,i);t.emit("connectionError",t[xc],[t],i)}t[UI]()}function Sre(t){t[Ll]=0,t.emit("drain",t[xc],[t])}function NU(t,e){t[Jh]!==2&&(t[Jh]=2,hGe(t,e),t[Jh]=0,t[mu]>256&&(t[ka].splice(0,t[mu]),t[va]-=t[mu],t[mu]=0))}function hGe(t,e){for(;;){if(t.destroyed){pu(t[HI]===0);return}if(t[Ml]&&!t[PI]){t[Ml](),t[Ml]=null;return}if(t[Kr]&&t[Kr].resume(),t[QU])t[Ll]=2;else if(t[Ll]===2){e?(t[Ll]=1,queueMicrotask(()=>Sre(t))):Sre(t);continue}if(t[HI]===0||t[OI]>=(Tre(t)||1))return;let r=t[ka][t[va]];if(t[xc].protocol==="https:"&&t[Fl]!==r.servername){if(t[OI]>0)return;t[Fl]=r.servername,t[Kr]?.destroy(new H9e("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[am])return;if(!t[Kr]){Rre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[va]++:t[ka].splice(t[va],1)}}Dre.exports=SU});var TU=E((j7t,kre)=>{"use strict";var US=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)}};kre.exports=class{constructor(){this.head=this.tail=new US}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new US),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var _re=E((K7t,vre)=>{var{kFree:fGe,kConnected:gGe,kPending:pGe,kQueued:mGe,kRunning:EGe,kSize:CGe}=yr(),zh=Symbol("pool"),xU=class{constructor(e){this[zh]=e}get connected(){return this[zh][gGe]}get free(){return this[zh][fGe]}get pending(){return this[zh][pGe]}get queued(){return this[zh][mGe]}get running(){return this[zh][EGe]}get size(){return this[zh][CGe]}};vre.exports=xU});var FU=E(($7t,Yre)=>{"use strict";var IGe=Wp(),yGe=TU(),{kConnected:RU,kSize:Fre,kRunning:Mre,kPending:Lre,kQueued:GI,kBusy:BGe,kFree:bGe,kUrl:QGe,kClose:wGe,kDestroy:SGe,kDispatch:NGe}=yr(),TGe=_re(),Xs=Symbol("clients"),ws=Symbol("needDrain"),qI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),Ure=Symbol("onConnect"),Pre=Symbol("onDisconnect"),Ore=Symbol("onC Line truncated
`,"latin1"),r!==null&&s!==r){if(n[lO])throw new Kf;process.emitWarning(new Kf)}e[Ir].timeout&&e[Ir].timeoutType===N0&&e[Ir].timeout.refresh&&e[Ir].timeout.refresh(),n[ol]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Fd]=!1,e&&(Pe(n[In]<=1,"pipeline should only contain this request"),s(e))}};Sse.exports=Bqe});var Mse=C((xjt,Fse)=>{"use strict";var ca=Q("node:assert"),{pipeline:xqe}=Q("node:stream"),Nt=Ct(),{RequestContentLengthMismatchError:pO,RequestAbortedError:Tse,SocketError:AB,InformationalError:mO}=Vt(),{kUrl:lT,kReset:hT,kClient:T0,kRunning:fT,kPending:Rqe,kQueue:Md,kPendingIdx:EO,kRunningIdx:Ec,kError:Ic,kSocket:Wn,kStrictContentLength:Dqe,kOnError:CO,kMaxConcurrentStreams:vse,kHTTP2Session:Cc,kResume:_d,kSize:kqe,kHTTPContext:vqe}=vr(),al=Symbol("open streams"),xse,Rse=!1,dT;try{dT=Q("node:http2")}catch{dT={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Fqe,HTTP2_HEADER_METHOD:Mqe,HTTP2_HEADER_PATH:_qe,HTTP2_HEADER_SCHEME:Lqe,HTTP2_HEADER_CONTENT_LENGTH:Uqe,HTTP2_HEADER_EXPECT:Pqe,HTTP2_HEADER_STATUS:Oqe}}=dT;function Hqe(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 Gqe(t,e){t[Wn]=e,Rse||(Rse=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=dT.connect(t[lT],{createConnection:()=>e,peerMaxConcurrentStreams:t[vse]});r[al]=0,r[T0]=t,r[Wn]=e,Nt.addListener(r,"error",Yqe),Nt.addListener(r,"frameError",Vqe),Nt.addListener(r,"end",Jqe),Nt.addListener(r,"goaway",Wqe),Nt.addListener(r,"close",function(){let{[T0]:s}=this,{[Wn]:i}=s,o=this[Wn][Ic]||this[Ic]||new AB("closed",Nt.getSocketInfo(i));if(s[Cc]=null,s.destroyed){ca(s[Rqe]===0);let a=s[Md].splice(s[Ec]);for(let c=0;c<a.length;c++){let A=a[c];Nt.errorRequest(s,A,o)}}}),r.unref(),t[Cc]=r,e[Cc]=r,Nt.addListener(e,"error",function(s){ca(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ic]=s,this[T0][CO](s)}),Nt.addListener(e,"end",function(){Nt.destroy(this,new AB("other side closed",Nt.getSocketInfo(this)))}),Nt.addListener(e,"close",function(){let s=this[Ic]||new AB("closed",Nt.getSocketInfo(this));t[Wn]=null,this[Cc]!=null&&this[Cc].destroy(s),t[EO]=t[Ec],ca(t[fT]===0),t.emit("disconnect",t[lT],[t],s),t[_d]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return jqe(t,...s)},resume(){qqe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function qqe(t){let e=t[Wn];e?.destroyed===!1&&(t[kqe]===0&&t[vse]===0?(e.unref(),t[Cc].unref()):(e.ref(),t[Cc].ref()))}function Yqe(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Wn][Ic]=t,this[T0][CO](t)}function Vqe(t,e,r){if(r===0){let n=new mO(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Wn][Ic]=n,this[T0][CO](n)}}function Jqe(){let t=new AB("other side closed",Nt.getSocketInfo(this[Wn]));this.destroy(t),Nt.destroy(this[Wn],t)}function Wqe(t){let e=this[Ic]||new AB(`HTTP/2: "GOAWAY" frame received with code ${t}`,Nt.getSocketInfo(this)),r=this[T0];if(r[Wn]=null,r[vqe]=null,this[Cc]!=null&&(this[Cc].destroy(e),this[Cc]=null),Nt.destroy(this[Wn],e),r[Ec]<r[Md].length){let n=r[Md][r[Ec]];r[Md][r[Ec]++]=null,Nt.errorRequest(r,n,e),r[EO]=r[Ec]}ca(r[fT]===0),r.emit("disconnect",r[lT],[r],e),r[_d]()}function zqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function jqe(t,e){let r=t[Cc],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Nt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let F=A[B+0],V=A[B+1];if(Array.isArray(V))for(let L=0;L<V.length;L++)l[F]?l[F]+=`,${V[L]}`:l[F]=V[L];else l[F]=V}let d,{hostname:h,port:f}=t[lT];l[Fqe]=i||`${h}${f?`:${f}`:""}`,l[Mqe]=n;let g=B=>{e.aborted||e.completed||(B=B||new Tse,Nt.errorRequest(t,e,B),d!=null&&Nt.destroy(d,B),Nt.destroy(u,B),t[Md][t[Ec]++]=null,t[_d]())};try{e.onConnect(g)}catch(B){Nt.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[al],t[Md][t[Ec]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[al],t[Md][t[Ec]++]=null}),d.once("close",()=>{r[al]-=1,r[al]===0&&r.unref()}),!0;l[_qe]=s,l[Lqe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Nt.bodyLength(u);if(Nt.isFormDataLike(u)){xse??=b0().extractBody;let[B,F]=xse(u);l["content-type"]=F,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),zqe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[Dqe])return Nt.errorRequest(t,e,new pO),!1;process.emitWarning(new pO)}m!=null&&(ca(u,"no body must not have content length"),l[Uqe]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[Pqe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[yYe]=c??3e5,this[IYe]=s??3e5,this[BYe]=I??!0,this[bYe]=B,this[bO]=V,this[Ud]=null,this[TYe]=P>-1?P:-1,this[RYe]=Z??100,this[un]=null,this[yc]=[],this[Al]=0,this[Bc]=0,this[hB]=de=>wO(this,de),this[xYe]=de=>Wse(this,de)}get pipelining(){return this[ET]}set pipelining(e){this[ET]=e,this[hB](!0)}get[pB](){return this[yc].length-this[Bc]}get[gB](){return this[Bc]-this[Al]}get[fB](){return this[yc].length-this[Al]}get[hYe](){return!!this[un]&&!this[R0]&&!this[un].destroyed}get[BO](){return!!(this[un]?.busy(null)||this[fB]>=(Jse(this)||1)||this[pB]>0)}[dYe](e){zse(this),this.once("connect",e)}[NYe](e,r){let n=e.origin||this[pA].origin,s=new oYe(n,e,r);return this[yc].push(s),this[eg]||($f.bodyLength(s.body)==null&&$f.isIterable(s.body)?(this[eg]=1,queueMicrotask(()=>wO(this))):this[hB](!0)),this[eg]&&this[Pd]!==2&&this[BO]&&(this[Pd]=2),this[Pd]<2}async[wYe](){return new Promise(e=>{this[fB]?this[Ud]=e:e(null)})}async[SYe](e){return new Promise(r=>{let n=this[yc].splice(this[Bc]);for(let i=0;i<n.length;i++){let o=n[i];$f.errorRequest(this,o,e)}let s=()=>{this[Ud]&&(this[Ud](),this[Ud]=null),r(null)};this[un]?(this[un].destroy(e,s),this[un]=null):queueMicrotask(s),this[hB]()})}},vYe=mT();function Wse(t,e){if(t[gB]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){cl(t[Bc]===t[Al]);let r=t[yc].splice(t[Al]);for(let n=0;n<r.length;n++){let s=r[n];$f.errorRequest(t,s,e)}cl(t[fB]===0)}}async function zse(t){cl(!t[R0]),cl(!t[un]);let{host:e,hostname:r,protocol:n,port:s}=t[pA];if(r[0]==="["){let i=r.indexOf("]");cl(i!==-1);let o=r.substring(1,i);cl(Vse.isIP(o)),r=o}t[R0]=!0,x0.beforeConnect.hasSubscribers&&x0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ld],localAddress:t[dB]},connector:t[lB]});try{let i=await new Promise((o,a)=>{t[lB]({host:e,hostname:r,protocol:n,port:s,servername:t[Ld],localAddress:t[dB]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){$f.destroy(i.on("error",qse),new AYe);return}cl(i);try{t[un]=i.alpnProtocol==="h2"?await kYe(t,i):await DYe(t,i)}catch(o){throw i.destroy().on("error",qse),o}t[R0]=!1,i[QYe]=0,i[bO]=t[bO],i[lYe]=t,i[gYe]=null,x0.connected.hasSubscribers&&x0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ld],localAddress:t[dB]},connector:t[lB],socket:i}),t.emit("connect",t[pA],[t])}catch(i){if(t.destroyed)return;if(t[R0]=!1,x0.connectError.hasSubscribers&&x0.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[un]?.version,servername:t[Ld],localAddress:t[dB]},connector:t[lB],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(cl(t[gB]===0);t[pB]>0&&t[yc][t[Bc]].servername===t[Ld];){let o=t[yc][t[Bc]++];$f.errorRequest(t,o,i)}else Wse(t,i);t.emit("connectionError",t[pA],[t],i)}t[hB]()}function Yse(t){t[Pd]=0,t.emit("drain",t[pA],[t])}function wO(t,e){t[eg]!==2&&(t[eg]=2,FYe(t,e),t[eg]=0,t[Al]>256&&(t[yc].splice(0,t[Al]),t[Bc]-=t[Al],t[Al]=0))}function FYe(t,e){for(;;){if(t.destroyed){cl(t[pB]===0);return}if(t[Ud]&&!t[fB]){t[Ud](),t[Ud]=null;return}if(t[un]&&t[un].resume(),t[BO])t[Pd]=2;else if(t[Pd]===2){e?(t[Pd]=1,queueMicrotask(()=>Yse(t))):Yse(t);continue}if(t[pB]===0||t[gB]>=(Jse(t)||1))return;let r=t[yc][t[Bc]];if(t[pA].protocol==="https:"&&t[Ld]!==r.servername){if(t[gB]>0)return;t[Ld]=r.servername,t[un]?.destroy(new cYe("servername changed"),()=>{t[un]=null,wO(t)})}if(t[R0])return;if(!t[un]){zse(t);return}if(t[un].destroyed||t[un].busy(r))return;!r.aborted&&t[un].write(r)?t[Bc]++:t[yc].splice(t[Bc],1)}}jse.exports=QO});var SO=C((Fjt,Kse)=>{"use strict";var CT=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)}};Kse.exports=class{constructor(){this.head=this.tail=new CT}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new CT),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Zse=C((Mjt,Xse)=>{var{kFree:MYe,kConnected:_Ye,kPending:LYe,kQueued:UYe,kRunning:PYe,kSize:OYe}=vr(),tg=Symbol("pool"),NO=class{constructor(e){this[tg]=e}get connected(){return this[tg][_Ye]}get free(){return this[tg][MYe]}get pending(){return this[tg][LYe]}get queued(){return this[tg][UYe]}get running(){return this[tg][PYe]}get size(){return this[tg][OYe]}};Xse.exports=NO});var vO=C((_jt,cie)=>{"use strict";var HYe=f0(),GYe=SO(),{kConnected:TO,kSize:$se,kRunning:eie,kPending:tie,kQueued:mB,kBusy:qYe,kFree:YYe,kUrl:VYe,kClose:JYe,kDestroy:WYe,kDispatch:zYe}=vr(),jYe=Zse(),Si=Symbol("clients"),Xs=Symbol("needDrain"),EB=Symbol("queue"),xO=Symbol("closed resolve"),RO=Symbol("onDrain"),rie=Symbol("onConnect"),nie=Symbol("onDisconnect"),sie=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Kse.exports=FP});var rN=E((wWt,tie)=>{"use strict";var Xse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:eVe}=Lt(),tVe=um();eie()===void 0&&Zse(new tVe);function Zse(t){if(!t||typeof t.dispatch!="function")throw new eVe("Argument agent must implement Agent");Object.defineProperty(globalThis,Xse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function eie(){return globalThis[Xse]}tie.exports={setGlobalDispatcher:Zse,getGlobalDispatcher:eie}});var nN=E((NWt,rie)=>{"use strict";rie.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 sie=E((TWt,nie)=>{"use strict";var rVe=FS();nie.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 oie=E((xWt,iie)=>{"use strict";var nVe=WS();iie.exports=t=>e=>function(n,s){return e(n,new nVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var cie=E((RWt,aie)=>{"use strict";var sVe=dt(),{InvalidArgumentError:iVe,RequestAbortedError:oVe}=Lt(),aVe=nN(),MP=class extends aVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new iVe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let 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.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function cVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new MP({maxSize:i},s);return e(n,o)}}aie.exports=cVe});var lie=E((DWt,uie)=>{"use strict";var{isIP:AVe}=b("node:net"),{lookup:uVe}=b("node:dns"),lVe=nN(),{InvalidArgumentError:Im,InformationalError:dVe}=Lt(),Aie=Math.pow(2,31)-1,LP=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.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(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())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Aie?(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===Aie?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 UP(this,e,r)}},UP=class extends lVe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=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.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Yae(i)&&(r[s]=i);break;case"id":Vae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Yae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Vae(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}}};Wae.exports={EventSourceStream:bO}});var tce=E((cJt,ece)=>{"use strict";var{pipeline:Bze}=b("node:stream"),{fetching:bze}=ry(),{makeRequest:Qze}=bm(),{webidl:Bu}=jn(),{EventSourceStream:wze}=Jae(),{parseMIMEType:Sze}=Ks(),{createFastMessageEvent:Nze}=xm(),{isNetworkError:zae}=ey(),{delay:Tze}=yO(),{kEnumerableProperty:uf}=dt(),{environmentSettingsObject:jae}=xi(),Kae=!1,$ae=3e3,gy=0,Xae=1,py=2,xze="anonymous",Rze="use-credentials",_m=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Bu.util.markAsUncloneable(this);let n="EventSource constructor";Bu.argumentLengthCheck(arguments,1,n),Kae||(Kae=!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.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:$ae};let s=jae,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=xze;r.withCredentials&&(o=Rze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=Qze(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===py)return;this.#r=gy;let e={request:this.#s,dispatcher:this.#a},r=n=>{zae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(zae(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?Sze(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=Xae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new wze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Nze(c.type,c.options))}});Bze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=bze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await Tze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){Bu.brandCheck(this,t),this.#r!==py&&(this.#r=py,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Zae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Xae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(_m,Zae);Object.defineProperties(_m.prototype,Zae);Object.defineProperties(_m.prototype,{close:uf,onerror:uf,onmessage:uf,onopen:uf,readyState:uf,url:uf,withCredentials:uf});Bu.converters.EventSourceInitDict=Bu.dictionaryConverter([{key:"withCredentials",converter:Bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Bu.converters.any}]);ece.exports={EventSource:_m,defaultReconnectionTime:$ae}});var VN=E((AJt,Ye)=>{"use strict";var Dze=cm(),rce=II(),kze=Am(),vze=Zre(),_ze=um(),Fze=zU(),Mze=bne(),Lze=xne(),nce=Lt(),YN=dt(),{InvalidArgumentError:qN}=nce,Fm=gse(),Uze=BI(),Pze=xP(),Oze=$se(),Hze=kP(),Gze=pP(),qze=WS(),{getGlobalDispatcher:sce,setGlobalDispatcher:Yze}=rN(),Vze=nN(),Wze=FS(),Jze=MS();Object.assign(rce.prototype,Fm);Ye.exports.Dispatcher=rce;Ye.exports.Client=Dze;Ye.exports.Pool=kze;Ye.exports.BalancedPool=vze;Ye.exports.Agent=_ze;Ye.exports.ProxyAgent=Fze;Ye.exports.EnvHttpProxyAgent=Mze;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?A3:C.type==="?"?c3:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+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 D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);te+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var $e="";ce===""&&e!==fT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===fT)return[n,s];if(!s)return Q$e(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Oi.makeRe=function(t,e){return new cn(t,e||{}).makeRe()};cn.prototype.makeRe=b$e;function b$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?A3:e.dot?g$e:p$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===mf?r:typeof o=="string"?w$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}Oi.match=function(t,e,r){r=r||{};var n=new cn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};cn.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;xy.sep!=="/"&&(e=e.split(xy.sep).join("/")),e=e.split(GAe),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};cn.prototype.matchOne=function(t,e,r){return e.indexOf(mf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};cn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===mf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===mf){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 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,y=[0],N=0;N<A.length;N++){var M=A[N];M===mf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};cn.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};cn.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===mf)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 Q$e(t){return t.replace(/\\(.)/g,"$1")}function w$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var qm=E((fjt,jAe)=>{"use strict";var v$e="2.0.0",_$e=Number.MAX_SAFE_INTEGER||9007199254740991,F$e=16,M$e=250,L$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];jAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:F$e,MAX_SAFE_BUILD_LENGTH:M$e,MAX_SAFE_INTEGER:_$e,RELEASE_TYPES:L$e,SEMVER_SPEC_VERSION:v$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var vy=E((gjt,KAe)=>{"use strict";var U$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};KAe.exports=U$e});var Ym=E((Lc,$Ae)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:l3,MAX_SAFE_BUILD_LENGTH:P$e,MAX_LENGTH:O$e}=qm(),H$e=vy();Lc=$Ae.exports={};var G$e=Lc.re=[],q$e=Lc.safeRe=[],me=Lc.src=[],Y$e=Lc.safeSrc=[],Ee=Lc.t={},V$e=0,d3="[a-zA-Z0-9-]",W$e=[["\\s",1],["\\d",O$e],[d3,P$e]],J$e=t=>{for(let[e,r]of W$e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`.trim())}};gae.exports=v3});var LT=C((uKt,Iae)=>{"use strict";var mae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:yWe}=Vt(),BWe=v0();Cae()===void 0&&Eae(new BWe);function Eae(t){if(!t||typeof t.dispatch!="function")throw new yWe("Argument agent must implement Agent");Object.defineProperty(globalThis,mae,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Cae(){return globalThis[mae]}Iae.exports={setGlobalDispatcher:Eae,getGlobalDispatcher:Cae}});var UT=C((dKt,yae)=>{"use strict";yae.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 bae=C((hKt,Bae)=>{"use strict";var bWe=pT();Bae.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 bWe(r,o,s,i);return r(a,c)}}});var wae=C((fKt,Qae)=>{"use strict";var QWe=NT();Qae.exports=t=>e=>function(n,s){return e(n,new QWe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Nae=C((gKt,Sae)=>{"use strict";var wWe=Ct(),{InvalidArgumentError:SWe,RequestAbortedError:NWe}=Vt(),TWe=UT(),F3=class extends TWe{#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 SWe("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=wWe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new NWe(`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 xWe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new F3({maxSize:i},s);return e(n,o)}}Sae.exports=xWe});var Rae=C((pKt,xae)=>{"use strict";var{isIP:RWe}=Q("node:net"),{lookup:DWe}=Q("node:dns"),kWe=UT(),{InvalidArgumentError:G0,InformationalError:vWe}=Vt(),Tae=Math.pow(2,31)-1,M3=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 vWe("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){DWe(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===Tae?(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===Tae?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 _3(this,e,r)}},_3=class extends kWe{#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(Qx(e,s,JKe)){WKe(e,i)&&(r.retry=e.toString("utf8",i));return}if(Qx(e,s,VKe)){zKe(e,i)&&(r.id=e.toString("utf8",i));return}if(Qx(e,s,YKe)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&PKe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&OKe(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===rE[0]||(this.checkBOM=!1),!0):n===void 0?e===rE[0]&&r===rE[1]?!0:(this.checkBOM=!1,!1):(e===rE[0]&&r===rE[1]&&n===rE[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};cue.exports={EventSourceStream:w8}});var mue=C((WKt,pue)=>{"use strict";var{pipeline:jKe}=Q("node:stream"),{fetching:KKe}=DB(),{makeRequest:XKe}=V0(),{webidl:hl}=fs(),{EventSourceStream:ZKe}=Aue(),{parseMIMEType:$Ke}=Qi(),{createFastMessageEvent:eXe}=X0(),{isNetworkError:uue}=xB(),{delay:tXe}=b8(),{kEnumerableProperty:mg}=Ct(),{environmentSettingsObject:lue}=ao(),due=!1,hue=3e3,VB=0,fue=1,JB=2,rXe="anonymous",nXe="use-credentials",nE=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=VB;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),hl.util.markAsUncloneable(this);let n="EventSource constructor";hl.argumentLengthCheck(arguments,1,n),due||(due=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hl.converters.USVString(e,n,"url"),r=hl.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:hue};let s=lue,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=rXe;r.withCredentials&&(o=nXe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=lue.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=XKe(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===JB)return;this.#r=VB;let e={request:this.#i,dispatcher:this.#a},r=n=>{uue(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(uue(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?$Ke(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=fue,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new ZKe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(eXe(c.type,c.options))}});jKe(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=KKe(e)}async#A(){this.#r!==JB&&(this.#r=VB,this.dispatchEvent(n Line truncated
%s`,F,F,I,n);var V=I.type==="*"?g4:I.type==="?"?f4:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+F}f(),i&&(n+="\\\\");var L=!1;switch(n.charAt(0)){case"[":case".":case"(":L=!0}for(var P=a.length-1;P>-1;P--){var k=a[P],j=n.slice(0,k.reStart),Z=n.slice(k.reStart,k.reEnd-8),ne=n.slice(k.reEnd-8,k.reEnd),ce=n.slice(k.reEnd);ne+=ce;var de=j.split("(").length-1,ke=ce;for(g=0;g<de;g++)ke=ke.replace(/\)[+*?]?/,"");ce=ke;var ve="";ce===""&&e!==jx&&(ve="$");var rt=j+Z+ce+ve+ne;n=rt}if(n!==""&&s&&(n="(?=.)"+n),L&&(n=d+n),e===jx)return[n,s];if(!s)return V$e(t);var _t=r.nocase?"i":"";try{var Dt=new RegExp("^"+n+"$",_t)}catch{return new RegExp("$.")}return Dt._glob=t,Dt._src=n,Dt}Io.makeRe=function(t,e){return new bn(t,e||{}).makeRe()};bn.prototype.makeRe=Y$e;function Y$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?g4:e.dot?_$e:L$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===bg?r:typeof o=="string"?J$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}Io.match=function(t,e,r){r=r||{};var n=new bn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};bn.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;ob.sep!=="/"&&(e=e.split(ob.sep).join("/")),e=e.split(ode),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};bn.prototype.matchOne=function(t,e,r){return e.indexOf(bg)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};bn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===bg){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===bg){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 F=A[B];F===bg?(y.push(I),m=[[],0],E.push(m)):(m[0].push(F),I++)}for(var V=E.length-1,L=t.length-d,P=0;P<E.length;P++)E[P][1]=L-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};bn.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};bn.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===bg)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 J$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var lE=C((r$t,hde)=>{"use strict";var eet="2.0.0",tet=Number.MAX_SAFE_INTEGER||9007199254740991,ret=16,net=250,set=["major","premajor","minor","preminor","patch","prepatch","prerelease"];hde.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ret,MAX_SAFE_BUILD_LENGTH:net,MAX_SAFE_INTEGER:tet,RELEASE_TYPES:set,SEMVER_SPEC_VERSION:eet,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ub=C((n$t,fde)=>{"use strict";var iet=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fde.exports=iet});var dE=C((QA,gde)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:m4,MAX_SAFE_BUILD_LENGTH:oet,MAX_LENGTH:aet}=lE(),cet=ub();QA=gde.exports={};var Aet=QA.re=[],uet=QA.safeRe=[],ye=QA.src=[],det=QA.safeSrc=[],Be=QA.t={},het=0,E4="[a-zA-Z0-9-]",fet=[["\\s",1],["\\d",aet],[E4,oet]],get=t=>{for(let[e,r]of fet)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+ZT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ftt()+e+" "+t[0]}function Ftt(){return kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Mtt(...t){return process.stderr.write(XT.formatWithOptions(kn.inspectOpts,...t)+`
`)}function Ltt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Utt(){return process.env.DEBUG}function Ptt(t){t.inspectOpts={};let e=Object.keys(kn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=kn.inspectOpts[e[r]]}ZT.exports=t8()(kn);var{formatters:wde}=ZT.exports;wde.o=function(t){return this.inspectOpts.colors=this.useColors,XT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};wde.O=function(t){return this.inspectOpts.colors=this.useColors,XT.inspect(t,this.inspectOpts)}});var ex=E((V$t,s8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?s8.exports=Cde():s8.exports=Sde()});var xde=E(oi=>{"use strict";var Ott=oi&&oi.__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]})),Htt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Nde=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)&&Ott(e,t,r);return Htt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var Gtt=Nde(b("http")),qtt=Nde(b("https"));async function Tde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=Tde;async function Ytt(t){let r=(await Tde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=Ytt;function Vtt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?qtt:Gtt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}oi.req=Vtt});var o8=E(qi=>{"use strict";var Dde=qi&&qi.__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]})),Wtt=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kde=qi&&qi.__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)&&Dde(e,t,r);return Wtt(e,t),e},Jtt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Dde(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var ztt=kde(b("net")),Rde=kde(b("http")),jtt=b("https");Jtt(xde(),qi);var Oc=Symbol("AgentBaseInternalState"),i8=class extends Rde.Agent{constructor(e){super(e),this[Oc]={}}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 ztt.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)?jtt.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 Rde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Oc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Oc].currentSocket;if(this[Oc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Oc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Oc]&&(this[Oc].defaultPort=e)}get protocol(){return this[Oc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Oc]&&(this[Oc].protocol=e)}};qi.Agent=i8});var vde=E(Zm=>{"use strict";var Ktt=Zm&&Zm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zm,"__esModule",{value:!0});Zm.parseProxyResponse=void 0;var $tt=Ktt(ex()),tx=(0,$tt.default)("https-proxy-agent:parse-proxy-response");function Xtt(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(),tx("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),tx("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+"+LR.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=nst()+e+" "+t[0]}function nst(){return jn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function sst(...t){return process.stderr.write(_R.formatWithOptions(jn.inspectOpts,...t)+`
`)}function ist(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ost(){return process.env.DEBUG}function ast(t){t.inspectOpts={};let e=Object.keys(jn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=jn.inspectOpts[e[r]]}LR.exports=a6()(jn);var{formatters:qfe}=LR.exports;qfe.o=function(t){return this.inspectOpts.colors=this.useColors,_R.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};qfe.O=function(t){return this.inspectOpts.colors=this.useColors,_R.inspect(t,this.inspectOpts)}});var UR=C((vtr,u6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?u6.exports=Lfe():u6.exports=Yfe()});var Wfe=C(vi=>{"use strict";var cst=vi&&vi.__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]})),Ast=vi&&vi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vfe=vi&&vi.__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)&&cst(e,t,r);return Ast(e,t),e};Object.defineProperty(vi,"__esModule",{value:!0});vi.req=vi.json=vi.toBuffer=void 0;var ust=Vfe(Q("http")),lst=Vfe(Q("https"));async function Jfe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}vi.toBuffer=Jfe;async function dst(t){let r=(await Jfe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}vi.json=dst;function hst(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?lst:ust).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}vi.req=hst});var d6=C(bo=>{"use strict";var jfe=bo&&bo.__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]})),fst=bo&&bo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kfe=bo&&bo.__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)&&jfe(e,t,r);return fst(e,t),e},gst=bo&&bo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&jfe(e,t,r)};Object.defineProperty(bo,"__esModule",{value:!0});bo.Agent=void 0;var pst=Kfe(Q("net")),zfe=Kfe(Q("http")),mst=Q("https");gst(Wfe(),bo);var NA=Symbol("AgentBaseInternalState"),l6=class extends zfe.Agent{constructor(e){super(e),this[NA]={}}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 pst.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)?mst.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 zfe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[NA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[NA].currentSocket;if(this[NA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[NA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[NA]&&(this[NA].defaultPort=e)}get protocol(){return this[NA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[NA]&&(this[NA].protocol=e)}};bo.Agent=l6});var Xfe=C(yE=>{"use strict";var Est=yE&&yE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yE,"__esModule",{value:!0});yE.parseProxyResponse=void 0;var Cst=Est(UR()),PR=(0,Cst.default)("https-proxy-agent:parse-proxy-response");function Ist(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(),PR("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),PR("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){tx("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(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}tx("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Zm.parseProxyResponse=Xtt});var Pde=E(_o=>{"use strict";var Ztt=_o&&_o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ert=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lde=_o&&_o.__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)&&Ztt(e,t,r);return ert(e,t),e},Ude=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});_o.HttpsProxyAgent=void 0;var rx=Lde(b("net")),_de=Lde(b("tls")),trt=Ude(b("assert")),rrt=Ude(ex()),nrt=o8(),srt=b("url"),irt=vde(),zy=(0,rrt.default)("https-proxy-agent"),Fde=t=>t.servername===void 0&&t.host&&!rx.isIP(t.host)?{...t,servername:t.host}:t,nx=class extends nrt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new srt.URL(e):e,this.proxyHeaders=r?.headers??{},zy("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?Mde(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:"?(zy("Creating `tls.Socket`: %o",this.connectOpts),s=_de.connect(Fde(this.connectOpts))):(zy("Creating `net.Socket`: %o",this.connectOpts),s=rx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=rx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){PR("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 F=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),L=I[F];typeof L=="string"?I[F]=[L,V]:Array.isArray(L)?L.push(V):I[F]=V}PR("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()})}yE.parseProxyResponse=Ist});var nge=C(Ea=>{"use strict";var yst=Ea&&Ea.__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]})),Bst=Ea&&Ea.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tge=Ea&&Ea.__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)&&yst(e,t,r);return Bst(e,t),e},rge=Ea&&Ea.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ea,"__esModule",{value:!0});Ea.HttpsProxyAgent=void 0;var OR=tge(Q("net")),Zfe=tge(Q("tls")),bst=rge(Q("assert")),Qst=rge(UR()),wst=d6(),Sst=Q("url"),Nst=Xfe(),Qb=(0,Qst.default)("https-proxy-agent"),$fe=t=>t.servername===void 0&&t.host&&!OR.isIP(t.host)?{...t,servername:t.host}:t,HR=class extends wst.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Sst.URL(e):e,this.proxyHeaders=r?.headers??{},Qb("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?ege(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:"?(Qb("Creating `tls.Socket`: %o",this.connectOpts),s=Zfe.connect($fe(this.connectOpts))):(Qb("Creating `net.Socket`: %o",this.connectOpts),s=OR.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=OR.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,irt.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",ort),r.secureEndpoint?(zy("Upgrading socket connection to TLS"),_de.connect({...Mde(Fde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new rx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{zy("Replaying proxy buffer for failed request"),(0,trt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};nx.protocols=["http","https"];_o.HttpsProxyAgent=nx;function ort(t){t.resume()}function Mde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Gde=E(Fo=>{"use strict";var art=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]})),crt=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hde=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)&&art(e,t,r);return crt(e,t),e},Art=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpProxyAgent=void 0;var urt=Hde(b("net")),lrt=Hde(b("tls")),drt=Art(ex()),hrt=b("events"),frt=o8(),Ode=b("url"),e0=(0,drt.default)("http-proxy-agent"),sx=class extends frt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Ode.URL(e):e,this.proxyHeaders=r?.headers??{},e0("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?grt(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 Ode.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;e0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(e0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,Nst.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",Tst),r.secureEndpoint?(Qb("Upgrading socket connection to TLS"),Zfe.connect({...ege($fe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new OR.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Qb("Replaying proxy buffer for failed request"),(0,bst.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};HR.protocols=["http","https"];Ea.HttpsProxyAgent=HR;function Tst(t){t.resume()}function ege(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var oge=C(Ca=>{"use strict";var xst=Ca&&Ca.__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]})),Rst=Ca&&Ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ige=Ca&&Ca.__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)&&xst(e,t,r);return Rst(e,t),e},Dst=Ca&&Ca.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.HttpProxyAgent=void 0;var kst=ige(Q("net")),vst=ige(Q("tls")),Fst=Dst(UR()),Mst=Q("events"),_st=d6(),sge=Q("url"),BE=(0,Fst.default)("http-proxy-agent"),GR=class extends _st.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new sge.URL(e):e,this.proxyHeaders=r?.headers??{},BE("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?Lst(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 sge.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;BE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(BE("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),e0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(e0("Creating `tls.Socket`: %o",this.connectOpts),i=lrt.connect(this.connectOpts)):(e0("Creating `net.Socket`: %o",this.connectOpts),i=urt.connect(this.connectOpts)),await(0,hrt.once)(i,"connect"),i}};sx.protocols=["http","https"];Fo.HttpProxyAgent=sx;function grt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var dhe=E(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});px.state=void 0;px.state={instrumenterImplementation:void 0}});var xhe=E(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.state=void 0;yx.state={operationRequestMap:new WeakMap}});var Ape=E((Wfr,bct)=>{bct.exports={name:"@actions/cache",version:"6.0.1",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 lpe=E((Jfr,upe)=>{var Qct=Ape();upe.exports={version:Qct.version}});var ZR=E(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.isJsonObject=Q0.typeofJsonValue=void 0;function vct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Q0.typeofJsonValue=vct;function _ct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Q0.isJsonObject=_ct});var tD=E(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.base64encode=w0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),eD=[];for(let t=0;t<Gu.length;t++)eD[Gu[t].charCodeAt(0)]=t;eD[45]=Gu.indexOf("+");eD[95]=Gu.indexOf("/");function Fct(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=eD[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)}w0.base64decode=Fct;function Mct(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}w0.base64encode=Mct});var ppe=E(rD=>{"use strict";Object.defineProperty(rD,"__esModule",{value:!0});rD.utf8read=void 0;var $H=t=>String.fromCharCode.apply(String,t);function Lct(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($H(n)),s=0);return r.length?(s&&r.push($H(n.slice(0,s))),r.join("")):$H(n.slice(0,s))}rD.utf8read=Lct});var YB=E(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0});lA.WireType=lA.mergeBinaryOptions=lA.UnknownFieldHandler=void 0;var Uct;(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])})(Uct=lA.UnknownFieldHandler||(lA.UnknownFieldHandler={}));function Pct(t,e){return Object.assign(Object.assign({},t),e)}lA.mergeBinaryOptions=Pct;var Oct;(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"})(Oct=lA.WireType||(lA.WireType={}))});var sD=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function Hct(){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")}hi.varint64read=Hct;function Gct(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)}}hi.varint64write=Gct;var nD=65536*65536;function qct(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>=nD&&(s=s+(n/nD|0),n=n%nD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=qct;function Yct(t,e){if(e>>>0<=2097151)return""+(nD*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)}hi.int64toString=Yct;function Vct(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)}}hi.varint32write=Vct;function Wct(){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}hi.varint32read=Wct});var Ed=E(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.PbLong=md.PbULong=md.detectBi=void 0;var VB=sD(),ir;function mpe(){let t=new DataView(new ArrayBuffer(8));ir=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}md.detectBi=mpe;mpe();function Epe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Cpe=/^-?[0-9]+$/,oD=4294967296,iD=2147483648,aD=c Line truncated
`)}};DD.RpcError=Q9});var S9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.mergeRpcOptions=void 0;var jpe=At();function fut(t,e){if(!e)return t;let r={};kD(t,r),kD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=jpe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=jpe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},kD(t.meta,r.meta),kD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}vD.mergeRpcOptions=fut;function kD(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 T9=E(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.Deferred=jf.DeferredState=void 0;var fA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(fA=jf.DeferredState||(jf.DeferredState={}));var N9=class{constructor(e=!0){this._state=fA.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!==fA.PENDING)throw new Error(`cannot resolve ${fA[this.state].toLowerCase()}`);this._resolve(e),this._state=fA.RESOLVED}reject(e){if(this.state!==fA.PENDING)throw new Error(`cannot reject ${fA[this.state].toLowerCase()}`);this._reject(e),this._state=fA.REJECTED}resolvePending(e){this._state===fA.PENDING&&this.resolve(e)}rejectPending(e){this._state===fA.PENDING&&this.reject(e)}};jf.Deferred=N9});var R9=E(_D=>{"use strict";Object.defineProperty(_D,"__esModule",{value:!0});_D.RpcOutputStreamController=void 0;var Kpe=T9(),Kf=At(),x9=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){Kf.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){Kf.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){Kf.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(){Kf.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;Kf.assert(e,"bad state"),Kf.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 Kpe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Kf.assert(n.state==Kpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};_D.RpcOutputStreamController=x9});var k9=E(k0=>{"use strict";var gut=k0&&k0.__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(k0,"__esModule",{value:!0});k0.UnaryCall=void 0;var D9=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 gut(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}})}};k0.UnaryCall=D9});var _9=E(v0=>{"use strict";var put=v0&&v0.__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(v0,"__esModule",{value:!0});v0.ServerStreamingCall=void 0;var v9=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),BE("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(BE("Creating `tls.Socket`: %o",this.connectOpts),i=vst.connect(this.connectOpts)):(BE("Creating `net.Socket`: %o",this.connectOpts),i=kst.connect(this.connectOpts)),await(0,Mst.once)(i,"connect"),i}};GR.protocols=["http","https"];Ca.HttpProxyAgent=GR;function Lst(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Rge=C(eD=>{"use strict";Object.defineProperty(eD,"__esModule",{value:!0});eD.state=void 0;eD.state={instrumenterImplementation:void 0}});var Wge=C(iD=>{"use strict";Object.defineProperty(iD,"__esModule",{value:!0});iD.state=void 0;iD.state={operationRequestMap:new WeakMap}});var v0e=C((LEr,Elt)=>{Elt.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 M0e=C((UEr,F0e)=>{var Clt=v0e();F0e.exports={version:Clt.version}});var _2=C(ZE=>{"use strict";Object.defineProperty(ZE,"__esModule",{value:!0});ZE.isJsonObject=ZE.typeofJsonValue=void 0;function Tlt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}ZE.typeofJsonValue=Tlt;function xlt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}ZE.isJsonObject=xlt});var U2=C($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.base64encode=$E.base64decode=void 0;var Ml="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),L2=[];for(let t=0;t<Ml.length;t++)L2[Ml[t].charCodeAt(0)]=t;L2[45]=Ml.indexOf("+");L2[95]=Ml.indexOf("/");function Rlt(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=L2[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)}$E.base64decode=Rlt;function Dlt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ml[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ml[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ml[s|n>>6],e+=Ml[n&63],r=0;break}return r&&(e+=Ml[s],e+="=",r==1&&(e+="=")),e}$E.base64encode=Dlt});var O0e=C(P2=>{"use strict";Object.defineProperty(P2,"__esModule",{value:!0});P2.utf8read=void 0;var pq=t=>String.fromCharCode.apply(String,t);function klt(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(pq(n)),s=0);return r.length?(s&&r.push(pq(n.slice(0,s))),r.join("")):pq(n.slice(0,s))}P2.utf8read=klt});var NQ=C(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.WireType=XA.mergeBinaryOptions=XA.UnknownFieldHandler=void 0;var vlt;(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])})(vlt=XA.UnknownFieldHandler||(XA.UnknownFieldHandler={}));function Flt(t,e){return Object.assign(Object.assign({},t),e)}XA.mergeBinaryOptions=Flt;var Mlt;(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"})(Mlt=XA.WireType||(XA.WireType={}))});var H2=C(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.varint32read=Gi.varint32write=Gi.int64toString=Gi.int64fromString=Gi.varint64write=Gi.varint64read=void 0;function _lt(){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")}Gi.varint64read=_lt;function Llt(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)}}Gi.varint64write=Llt;var O2=65536*65536;function Ult(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>=O2&&(s=s+(n/O2|0),n=n%O2)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Gi.int64fromString=Ult;function Plt(t,e){if(e>>>0<=2097151)return""+(O2*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)}Gi.int64toString=Plt;function Olt(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)}}Gi.varint32write=Olt;function Hlt(){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}Gi.varint32read=Hlt});var Ih=C(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.PbLong=Ch.PbULong=Ch.detectBi=void 0;var TQ=H2(),fr;function H0e(){let t=new DataView(new ArrayBuffer(8));fr=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}Ch.detectBi=H0e;H0e();function G0e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var q0e=/^-?[0-9]+$/,q2=4294967296,G2=2147483648,Y2=c Line truncated
`)}};fk.RpcError=qq});var Vq=C(pk=>{"use strict";Object.defineProperty(pk,"__esModule",{value:!0});pk.mergeRpcOptions=void 0;var CEe=gt();function Aht(t,e){if(!e)return t;let r={};gk(t,r),gk(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=CEe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=CEe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},gk(t.meta,r.meta),gk(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}pk.mergeRpcOptions=Aht;function gk(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 Wq=C(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.Deferred=tp.DeferredState=void 0;var eu;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(eu=tp.DeferredState||(tp.DeferredState={}));var Jq=class{constructor(e=!0){this._state=eu.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!==eu.PENDING)throw new Error(`cannot resolve ${eu[this.state].toLowerCase()}`);this._resolve(e),this._state=eu.RESOLVED}reject(e){if(this.state!==eu.PENDING)throw new Error(`cannot reject ${eu[this.state].toLowerCase()}`);this._reject(e),this._state=eu.REJECTED}resolvePending(e){this._state===eu.PENDING&&this.resolve(e)}rejectPending(e){this._state===eu.PENDING&&this.reject(e)}};tp.Deferred=Jq});var jq=C(mk=>{"use strict";Object.defineProperty(mk,"__esModule",{value:!0});mk.RpcOutputStreamController=void 0;var IEe=Wq(),rp=gt(),zq=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){rp.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){rp.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){rp.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(){rp.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;rp.assert(e,"bad state"),rp.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 IEe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;rp.assert(n.state==IEe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};mk.RpcOutputStreamController=zq});var Xq=C(oC=>{"use strict";var uht=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 Kq=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 uht(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=Kq});var $q=C(aC=>{"use strict";var lht=aC&&aC.__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(aC,"__esModule",{value:!0});aC.ServerStreamingCall=void 0;var Zq=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 iIe=E(sIe=>{"use strict";var TY=Zu().Buffer;sIe._dbcs=el;var Zn=-1,nIe=-2,na=-10,Us=-1e3,lE=new Array(256),Vb=-1;for(mk=0;mk<256;mk++)lE[mk]=Zn;var mk;function el(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]=lE.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(lE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(lE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],c=48;c<=57;c++){if(a[c]===Zn)a[c]=Us-s;else if(a[c]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Us-a[c]],u=129;u<=254;u++){if(A[u]===Zn)A[u]=Us-i;else{if(A[u]===Us-i)continue;if(A[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-A[u]],d=48;d<=57;d++)l[d]===Zn&&(l[d]=nIe)}}}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 lIt(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(KCt.has(s)){r=s;break}}return r}function dIt(t,e){let r=lIt(e);r!==""&&(t.referrerPolicy=r)}function hIt(){return"allowed"}function fIt(){return"success"}function gIt(){return"success"}function pIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function mIt(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&&WV(t.origin)&&!WV(wg(t))&&(e=null);break;case"same-origin":eQ(t,wg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function pE(t,e){return t}function EIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:pE(t.domainLookupStartTime,r),domainLookupEndTime:pE(t.domainLookupEndTime,r),connectionStartTime:pE(t.connectionStartTime,r),connectionEndTime:pE(t.connectionEndTime,r),secureConnectionStartTime:pE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function CIt(t){return pE(eIt.now(),t)}function IIt(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 yIt(t){return{referrerPolicy:t.referrerPolicy}}function BIt(t){let e=t.referrerPolicy;tQ(e);let r=null;if(t.referrer==="client"){let i=RBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else qd.is.URL(t.referrer)&&(r=t.referrer);let n=VV(r),s=VV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??VV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=wg(t);return eQ(n,i)?n:Qg(n)&&!Qg(i)?"no-referrer":s}case"same-origin":return eQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return eQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":n}}}function VV(t,e=!1){return tQ(qd.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 bIt=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)$/),QIt=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)),QIt(t)):bIt(t)}function wIt(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 Qg(t){return qd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:wIt(t.origin):!1}function SIt(t){}function eQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function NIt(t){return t.controller.state==="aborted"}function TIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function xIt(t){return rIt[t.toLowerCase()]??t}var RIt=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,RIt),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 DIt(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 qd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return qd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=oa(a=>t7(a)&&a!==59,t,e);i=ZV.decode(o)}return{name:n,value:i}}function tyt(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 yi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=oa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=e7(o,!0,!0,a=>a===9||a===32),!JIt.test(o.toString()))throw yi("header name does not match the field-name token production");if(t[e.position]!==58)throw yi("expected :");switch(e.position++,oa(a=>a===32||a===9,t,e),WIt(o)){case"content-disposition":{if(r=n=null,oa(c=>t7(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw yi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=eyt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw yi("name attribute is required in content-disposition header");break}case"content-type":{let a=oa(c=>c!==10&&c!==13,t,e);a=e7(a,!1,!0,c=>c===9||c===32),s=VBe(a);break}case"content-transfer-encoding":{let a=oa(c=>c!==10&&c!==13,t,e);a=e7(a,!1,!0,c=>c===9||c===32),i=VBe(a);break}default:oa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw yi("expected CRLF");e.position+=2}}function oa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function e7(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 ryt(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 yi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function nyt(t){return t<=31||t===127}function syt(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 t7(t){return t<=127&&t!==32&&t!==9&&!nyt(t)&&!syt(t)}WBe.exports={multipartFormDataParser:ZIt,validateBoundary:XIt}});var rQ=E((eBr,zBe)=>{"use strict";function iyt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}zBe.exports={createDeferredPromise:iyt}});var CE=E((tBr,ZBe)=>{"use strict";var s7=Ze(),{ReadableStreamFrom:oyt,readableStreamClose:ayt,fullyReadBody:cyt,extractMimeType:Ayt}=ro(),{FormData:jBe,setFormDataState:uyt}=Gk(),{webidl:ac}=es(),r7=b("node:assert"),{isErrored:n7,isDisturbed:lyt}=b("node:stream"),{isUint8Array:dyt}=b("node:util/types"),{serializeAMimeType:hyt}=ia(),{multipartFormDataParser:fyt}=JBe(),{createDeferredPromise:gyt}=rQ(),{parseJSONFromBytes:pyt}=nl(),{utf8DecodeBytes:myt}=Mk(),{runtimeFeatures:Eyt}=sl(),Cyt=Eyt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),qk=new TextEncoder;function Iyt(){}var yyt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!lyt(e)&&!n7(e)&&e.cancel("Response object has been garbage collected").catch(Iyt)});function $Be(t,e=!1){let r=null,n=null;ac.is.ReadableStream(t)?r=t:ac.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),r7(ac.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(ac.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(ac.is.BufferSource(t))i=ac.util.getCopyOfBytesHeldByBufferSource(t);else if(ac.is.FormData(t)){let A=`----formdata-undici-0${`${Cyt(1e11)}`.padStart(11,"0")}`,u=`--${A}\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 RBe=C(xBe=>{"use strict";var zJ=Wl().Buffer;xBe._dbcs=zl;var Is=-1,TBe=-2,qa=-10,ui=-1e3,PC=new Array(256),xw=-1;for(sF=0;sF<256;sF++)PC[sF]=Is;var sF;function zl(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]=PC.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(PC.slice(0));var i=this.decodeTables.length;this.decodeTables.push(PC.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[ui-o[n]],c=48;c<=57;c++){if(a[c]===Is)a[c]=ui-s;else if(a[c]>ui)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[ui-a[c]],u=129;u<=254;u++){if(A[u]===Is)A[u]=ui-i;else{if(A[u]===ui-i)continue;if(A[u]>ui)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[ui-A[u]],d=48;d<=57;d++)l[d]===Is&&(l[d]=TBe)}}}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 gbt(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(ebt.has(s)){r=s;break}}return r}function pbt(t,e){let r=gbt(e);r!==""&&(t.referrerPolicy=r)}function mbt(){return"allowed"}function Ebt(){return"success"}function Cbt(){return"success"}function Ibt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ybt(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&&h7(t.origin)&&!h7(kp(t))&&(e=null);break;case"same-origin":Pw(t,kp(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function YC(t,e){return t}function Bbt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:YC(t.domainLookupStartTime,r),domainLookupEndTime:YC(t.domainLookupEndTime,r),connectionStartTime:YC(t.connectionStartTime,r),connectionEndTime:YC(t.connectionEndTime,r),secureConnectionStartTime:YC(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function bbt(t){return YC(sbt.now(),t)}function Qbt(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 iwe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function wbt(t){return{referrerPolicy:t.referrerPolicy}}function Sbt(t){let e=t.referrerPolicy;Ow(e);let r=null;if(t.referrer==="client"){let i=ewe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yh.is.URL(t.referrer)&&(r=t.referrer);let n=d7(r),s=d7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??d7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=kp(t);return Dp(n)&&!Dp(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=kp(t);return Pw(n,i)?n:Dp(n)&&!Dp(i)?"no-referrer":s}case"same-origin":return Pw(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Pw(t,n)?n:s;case"no-referrer-when-downgrade":{let i=kp(t);return Dp(n)&&!Dp(i)?"no-referrer":n}}}function d7(t,e=!1){return Ow(Yh.is.URL(t)),t=new URL(t),Awe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var Nbt=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)$/),Tbt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function owe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Tbt(t)):Nbt(t)}function xbt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||owe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Dp(t){return Yh.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:xbt(t.origin):!1}function Rbt(t){}function Pw(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Dbt(t){return t.controller.state==="aborted"}function kbt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function vbt(t){return obt[t.toLowerCase()]??t}var Fbt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function awe(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,Fbt),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 Mbt(t,e,r,n=0,s=1){let i=awe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yh.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yh.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ja(a=>B7(a)&&a!==59,t,e);i=I7.decode(o)}return{name:n,value:i,extended:s}}function iQt(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 Ki("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ja(a=>a!==10&&a!==13&&a!==58,t,e);if(o=y7(o,!0,!0,a=>a===9||a===32),!Xbt.test(o.toString()))throw Ki("header name does not match the field-name token production");if(t[e.position]!==58)throw Ki("expected :");switch(e.position++,Ja(a=>a===32||a===9,t,e),Kbt(o)){case"content-disposition":{r=n=null;let a=!1;if(Ja(A=>B7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ki("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=sQt(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 Ki("name attribute is required in content-disposition header");break}case"content-type":{let a=Ja(c=>c!==10&&c!==13,t,e);a=y7(a,!1,!0,c=>c===9||c===32),s=gwe(a);break}case"content-transfer-encoding":{let a=Ja(c=>c!==10&&c!==13,t,e);a=y7(a,!1,!0,c=>c===9||c===32),i=gwe(a);break}default:Ja(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Ki("expected CRLF");e.position+=2}}function Ja(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function y7(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 oQt(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 Ki(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function aQt(t){return t<=31||t===127}function cQt(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 B7(t){return t<=127&&t!==32&&t!==9&&!aQt(t)&&!cQt(t)}pwe.exports={multipartFormDataParser:nQt,validateBoundary:rQt}});var Hw=C((rSr,Ewe)=>{"use strict";function AQt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Ewe.exports={createDeferredPromise:AQt}});var WC=C((nSr,bwe)=>{"use strict";var w7=st(),{ReadableStreamFrom:uQt,readableStreamClose:lQt,fullyReadBody:dQt,extractMimeType:hQt}=Oo(),{FormData:Cwe,setFormDataState:fQt}=xF(),{webidl:Wc}=ys(),b7=Q("node:assert"),{isErrored:Q7,isDisturbed:gQt}=Q("node:stream"),{isUint8Array:pQt}=Q("node:util/types"),{serializeAMimeType:mQt}=Va(),{multipartFormDataParser:EQt}=mwe(),{createDeferredPromise:CQt}=Hw(),{parseJSONFromBytes:IQt}=Xl(),{utf8DecodeBytes:yQt}=bF(),{runtimeFeatures:BQt}=Zl(),bQt=BQt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),RF=new TextEncoder;function QQt(){}var wQt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!gQt(e)&&!Q7(e)&&e.cancel("Response object has been garbage collected").catch(QQt)});function ywe(t,e=!1){let r=null,n=null;Wc.is.ReadableStream(t)?r=t:Wc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),b7(Wc.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(Wc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Wc.is.BufferSource(t))i=Wc.util.getCopyOfBytesHeldByBufferSource(t);else if(Wc.is.FormData(t)){let A=`----formdata-undici-0${`${bQt(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 p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=qk.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=RF.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=qk.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(y),o+=y.byteLength}else{let y=RF.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=qk.encode(`--${A}--\r
`);h.push(I),o+=I.byteLength,p&&(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(ac.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(s7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=ac.is.ReadableStream(t)?t:oyt(t)}return(typeof i=="string"||dyt(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(n7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!n7(r)&&n.enqueue(typeof A=="string"?qk.encode(A):new Uint8Array(A));queueMicrotask(()=>ayt(n))})(),[{stream:r,source:i,length:o},a]}function Byt(t,e=!1){return ac.is.ReadableStream(t)&&(r7(!s7.isDisturbed(t),"The body has already been consumed."),r7(!t.locked,"The stream is locked.")),$Be(t,e)}function byt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Qyt(t,e){return{blob(){return EE(this,n=>{let s=KBe(e(this));return s===null?s="":s&&(s=hyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return EE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return EE(this,myt,t,e)},json(){return EE(this,pyt,t,e)},formData(){return EE(this,n=>{let s=KBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=fyt(n,s),o=new jBe;return uyt(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 EE(this,n=>new Uint8Array(n),t,e)}}}function wyt(t,e){Object.assign(t.prototype,Qyt(t,e))}function EE(t,e,r,n){try{ac.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=gyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(cyt(t.body,o,i),s.promise)}function XBe(t){let e=t.body;return e!=null&&(e.stream.locked||s7.isDisturbed(e.stream))}function KBe(t){let e=t.headersList,r=Ayt(e);return r==="failure"?null:r}ZBe.exports={extractBody:$Be,safelyExtractBody:Byt,cloneBody:byt,mixinBody:wyt,streamRegistry:yyt,bodyUnusable:XBe}});var ube=E((rBr,Abe)=>{"use strict";var Ve=b("node:assert"),Je=Ze(),{channels:ebe}=Hd(),i7=OY(),{RequestContentLengthMismatchError:Sg,ResponseContentLengthMismatchError:Syt,RequestAbortedError:obe,HeadersTimeoutError:Nyt,HeadersOverflowError:Tyt,SocketError:iQ,InformationalError:IE,BodyTimeoutError:xyt,HTTPParserError:Ryt,ResponseExceededMaxSizeError:Dyt}=Ke(),{kUrl:abe,kReset:Bi,kClient:d7,kParser:Wr,kBlocking:oQ,kRunning:ms,kPending:kyt,kSize:tbe,kWriting:Vd,kQueue:cc,kNoRef:nQ,kKeepAliveDefaultTimeout:vyt,kHostHeader:_yt,kPendingIdx:Fyt,kRunningIdx:aa,kError:ca,kPipelining:Wk,kSocket:yE,kKeepAliveTimeoutValue:zk,kMaxHeadersSize:Myt,kKeepAliveMaxTimeout:Lyt,kKeepAliveTimeoutThreshold:Uyt,kHeadersTimeout:Pyt,kBodyTimeout:Oyt,kStrictContentLength:c7,kMaxRequests:rbe,kCounter:Hyt,kMaxResponseSize:Gyt,kOnError:qyt,kResume:Yd,kHTTPContext:cbe,kClosed:A7}=Kt(),wA=Zye(),Yyt=Buffer.alloc(0),Yk=Buffer[Symbol.species],Vyt=Je.removeAllListeners,o7;function Wyt(){let t=process.env.JEST_WORKER_ID?kV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(rBe())}catch{}return e||(e=new WebAssembly.Module(t||kV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-NA+SA.byteOffset;return Bn.onStatus(new Yk(SA.buffer,o,i))},wasm_on_message_begin:n=>(Ve(Bn.ptr===n),Bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-NA+SA.byteOffset;return Bn.onHeaderField(new Yk(SA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-NA+SA.byteOffset;return Bn.onHeaderValue(new Yk(SA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(Bn.ptr===n),Bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-NA+SA.byteOffset;return Bn.onBody(new Yk(SA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(Bn.ptr===n),Bn.onMessageComplete())}})}var a7=null,Bn=null,SA=null,Vk=0,NA=null,Jyt=0,sQ=1,BE=2|sQ,Jk=4|sQ,u7=8|Jyt,l7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(wA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Myt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[Gyt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[_yt],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=RF.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(Wc.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(w7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Wc.is.ReadableStream(t)?t:uQt(t)}return(typeof i=="string"||pQt(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(Q7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!Q7(r)&&n.enqueue(typeof A=="string"?RF.encode(A):new Uint8Array(A));queueMicrotask(()=>lQt(n))})(),[{stream:r,source:i,length:o},a]}function SQt(t,e=!1){return Wc.is.ReadableStream(t)&&(b7(!w7.isDisturbed(t),"The body has already been consumed."),b7(!t.locked,"The stream is locked.")),ywe(t,e)}function NQt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function TQt(t,e){return{blob(){return JC(this,n=>{let s=Iwe(e(this));return s===null?s="":s&&(s=mQt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return JC(this,n=>new Uint8Array(n).buffer,t,e)},text(){return JC(this,yQt,t,e)},json(){return JC(this,IQt,t,e)},formData(){return JC(this,n=>{let s=Iwe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=EQt(n,s),o=new Cwe;return fQt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Cwe;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 JC(this,n=>new Uint8Array(n),t,e)}}}function xQt(t,e){Object.assign(t.prototype,TQt(t,e))}function JC(t,e,r,n){try{Wc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Bwe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=CQt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(dQt(t.body,o,i),s.promise)}function Bwe(t){let e=t.body;return e!=null&&(e.stream.locked||w7.isDisturbed(e.stream))}function Iwe(t){let e=t.headersList,r=hQt(e);return r==="failure"?null:r}bwe.exports={extractBody:ywe,safelyExtractBody:SQt,cloneBody:NQt,mixinBody:xQt,streamRegistry:wQt,bodyUnusable:Bwe}});var Uwe=C((sSr,Lwe)=>{"use strict";var Ve=Q("node:assert"),_e=st(),{channels:Qwe}=Gh(),S7=oW(),{RequestContentLengthMismatchError:vp,ResponseContentLengthMismatchError:wwe,RequestAbortedError:vwe,InvalidArgumentError:RQt,HeadersTimeoutError:DQt,HeadersOverflowError:kQt,SocketError:Fp,InformationalError:zC,BodyTimeoutError:vQt,HTTPParserError:FQt,ResponseExceededMaxSizeError:MQt}=et(),{kUrl:Fwe,kReset:Xi,kClient:MF,kParser:Sr,kBlocking:Yw,kRunning:Sn,kPending:v7,kSize:Swe,kWriting:Vh,kQueue:zc,kNoRef:Gw,kKeepAliveDefaultTimeout:_Qt,kHostHeader:LQt,kPendingIdx:UQt,kRunningIdx:Wa,kError:li,kPipelining:vF,kSocket:Mp,kKeepAliveTimeoutValue:_F,kMaxHeadersSize:PQt,kKeepAliveMaxTimeout:OQt,kKeepAliveTimeoutThreshold:HQt,kHeadersTimeout:GQt,kBodyTimeout:qQt,kStrictContentLength:x7,kMaxRequests:Nwe,kCounter:YQt,kMaxResponseSize:VQt,kOnError:Twe,kResume:ed,kHTTPContext:Mwe,kClosed:R7}=sr(),Ho=bQe(),xwe=Buffer.alloc(0),DF=Buffer[Symbol.species],JQt=_e.removeAllListeners,_p=Symbol("kIdleSocketValidation"),jC=Symbol("kIdleSocketValidationTimeout"),F7=Symbol("kSocketUsed"),N7;function WQt(){let t=process.env.JEST_WORKER_ID?$W():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(SQe())}catch{}return e||(e=new WebAssembly.Module(t||$W())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(on.ptr===n);let o=s-du+lu.byteOffset;return on.onStatus(new DF(lu.buffer,o,i))},wasm_on_message_begin:n=>(Ve(on.ptr===n),on.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(on.ptr===n);let o=s-du+lu.byteOffset;return on.onHeaderField(new DF(lu.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(on.ptr===n);let o=s-du+lu.byteOffset;return on.onHeaderValue(new DF(lu.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(on.ptr===n),on.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(on.ptr===n);let o=s-du+lu.byteOffset;return on.onBody(new DF(lu.buffer,o,i))},wasm_on_message_complete:n=>(Ve(on.ptr===n),on.onMessageComplete())}})}var T7=null,on=null,lu=null,kF=0,du=null,zQt=0,qw=1,KC=2|qw,FF=4|qw,D7=8|zQt,k7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Ho.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[PQt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[LQt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Wk]&&!h[Bi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return ebe.sendHeaders.hasSubscribers&&ebe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?sbe(f,null,t,e,h,u,p,l):Je.isBuffer(c)?sbe(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?ibe(f,c.stream(),t,e,h,u,p,l):sBt(f,c,t,e,h,u,p,l):Je.isStream(c)?nBt(f,c,t,e,h,u,p,l):Je.isIterable(c)?ibe(f,c,t,e,h,u,p,l):Ve(!1),!0}function nBt(t,e,r,n,s,i,o,a){Ve(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new jk({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(p){Je.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new obe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[Vd]&&r[ms]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.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 sbe(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[vF]&&!h[Xi]?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 Qwe.sendHeaders.hasSubscribers&&Qwe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Dwe(f,null,t,e,h,u,g,l):_e.isBuffer(c)?Dwe(f,c,t,e,h,u,g,l):_e.isBlobLike(c)?typeof c.stream=="function"?kwe(f,c.stream(),t,e,h,u,g,l):owt(f,c,t,e,h,u,g,l):_e.isStream(c)?iwt(f,c,t,e,h,u,g,l):_e.isIterable(c)?kwe(f,c,t,e,h,u,g,l):Ve(!1),!0}function iwt(t,e,r,n,s,i,o,a){Ve(i!==0||r[Sn]===0,"stream body cannot be pipelined");let c=!1,A=new LF({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){_e.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new vwe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[Vh]&&r[Sn]<=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")?_e.destroy(e,f):_e.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 Dwe(t,e,r,n,s,i,o,a){try{e?_e.isBuffer(e)&&(Ve(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[Xi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Yd]()}catch(c){t(c)}}async function sBt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Sg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[ed]()}catch(c){t(c)}}async function owt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new vp;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[Yd]()}catch(c){t(c)}}async function ibe(t,e,r,n,s,i,o,a){Ve(i!==0||r[ms]===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)=>{Ve(c===null),s[ca]?h(s[ca]):c=d});s.on("close",A).on("drain",A);let l=new jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[ca])throw s[ca];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var jk=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[ca])throw r[ca];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[c7])throw new Sg;process.emitWarning(new Sg)}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[Xi]=!0),r[ed]()}catch(c){t(c)}}async function kwe(t,e,r,n,s,i,o,a){Ve(i!==0||r[Sn]===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)=>{Ve(c===null),s[li]?h(s[li]):c=d});s.on("close",A).on("drain",A);let l=new LF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[li])throw s[li];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var LF=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[Vh]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[li])throw r[li];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[x7])throw new vp;process.emitWarning(new vp)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Xi]=!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[Wr].timeout&&r[Wr].timeoutType===BE&&r[Wr].timeout.refresh&&r[Wr].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[ca])throw e[ca];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[Sr].timeout&&r[Sr].timeoutType===KC&&r[Sr].timeout.refresh&&r[Sr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Vh]=!1,e[li])throw e[li];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[c7])throw new Sg;process.emitWarning(new Sg)}e[Wr].timeout&&e[Wr].timeoutType===BE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Yd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vd]=!1,e&&(Ve(n[ms]<=1,"pipeline should only contain this request"),s(e))}};Abe.exports=zyt});var Cbe=E((nBr,Ebe)=>{"use strict";var ua=b("node:assert"),{pipeline:iBt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:p7,RequestAbortedError:oBt,SocketError:uQ,InformationalError:Wd,InvalidArgumentError:aBt}=Ke(),{kUrl:AQ,kReset:Zk,kClient:no,kRunning:lQ,kPending:cBt,kQueue:Jd,kPendingIdx:E7,kRunningIdx:Ac,kError:so,kSocket:Dr,kStrictContentLength:ABt,kOnError:bE,kMaxConcurrentStreams:$k,kPingInterval:lbe,kHTTP2Session:ol,kHTTP2InitialWindowSize:uBt,kHTTP2ConnectionWindowSize:lBt,kResume:TA,kSize:dBt,kHTTPContext:C7,kClosed:m7,kBodyTimeout:hBt,kEnableConnectProtocol:aQ,kRemoteSettings:cQ,kHTTP2Stream:Kk,kHTTP2SessionState:I7}=Kt(),{channels:dbe}=Hd(),Aa=Symbol("open streams"),hbe,Xk;try{Xk=b("node:http2")}catch{Xk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:fBt,HTTP2_HEADER_METHOD:fbe,HTTP2_HEADER_PATH:gbe,HTTP2_HEADER_SCHEME:h7,HTTP2_HEADER_CONTENT_LENGTH:gBt,HTTP2_HEADER_EXPECT:pBt,HTTP2_HEADER_STATUS:f7,HTTP2_HEADER_PROTOCOL:mBt,NGHTTP2_REFUSED_STREAM:EBt,NGHTTP2_CANCEL:CBt}}=Xk;function g7(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 IBt(t,e){t[Dr]=e;let r=t[uBt],n=t[lBt],s=Xk.connect(t[AQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[$k],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[Aa]=0,s[no]=t,s[Dr]=e,s[I7]={ping:{interval:t[lbe]===0?null:setInterval(QBt,t[lbe],s).unref()}},s[aQ]=!1,s[cQ]=!1,n&&ut.addListener(s,"connect",BBt.bind(s,n)),ut.addListener(s,"error",wBt),ut.addListener(s,"frameError",SBt),ut.addListener(s,"end",NBt),ut.addListener(s,"goaway",TBt),ut.addListener(s,"close",xBt),ut.addListener(s,"remoteSettings",bBt),s.unref(),t[ol]=s,e[ol]=s,ut.addListener(e,"error",DBt),ut.addListener(e,"end",kBt),ut.addListener(e,"close",RBt),e[m7]=!1,e.on("close",vBt),{version:"h2",defaultPipelining:1/0,write(i){return FBt(t,i)},resume(){yBt(t)},destroy(i,o){e[m7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[lQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[cQ]===!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[cQ]===!1;return!1}}}function yBt(t){let e=t[Dr];e?.destroyed===!1&&(t[dBt]===0||t[$k]===0?(e.unref(),t[ol].unref()):(e.ref(),t[ol].ref()))}function BBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function bBt(t){if(this[no][$k]=t.maxConcurrentStreams??this[no][$k],this[cQ]===!0&&this[aQ]===!0&&t.enableConnectProtocol===!1){let e=new Wd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][bE](e);return}this[aQ]=t.enableConnectProtocol??this[aQ],this[cQ]=!0,this[no][TA]()}function QBt(t){let e=t[I7];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[no],o=this[no];if(n!=null){let a=new Wd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[bE](a)}else i.emit("ping",s)}}function wBt(t){ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][bE](t)}function SBt(t,e,r){if(r===0){let n=new Wd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][bE](n)}}function NBt(){let t=new uQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function TBt(t){let e=this[so]||new uQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[no];if(r[Dr]=null,r[C7]=null,this.close(),this[ol]=null,ut.destroy(this[Dr],e),r[Ac]<r[Jd].length){let n=r[Jd][r[Ac]];r[Jd][r[Ac]++]=null,ut.errorRequest(r,n,e),r[E7]=r[Ac]}ua(r[lQ]===0),r.emit("disconnect",r[AQ],[r],e),r.emit("connectionError",r[AQ],[r],e),r[TA]()}function xBt(){let{[no]:t,[I7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new uQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[C7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ua(t[cBt]===0);let s=t[Jd].splice(t[Ac]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function RBt(){let t=this[so]||new uQ("closed",ut.getSocketInfo(this)),e=this[ol][no];e[Dr]=null,e[C7]=null,this[ol]!==null&&this[ol].destroy(t),e[E7]=e[Ac],ua(e[lQ]===0),e.emit("disconnect",e[AQ],[e],t),e[TA]()}function DBt(t){ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][bE](t)}function kBt(){ut.destroy(this,new uQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;dbe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[pBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[Kk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[Kk]=!0,O()),++n[Aa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[f7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),g7(D),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[Ac]++]=null,t[TA]()):(m(new Wd("HTTP/2: stream half-closed (remote)")),t[Jd][t[Ac]++]=null,t[E7]=t[Ac],t[TA]())}),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 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[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 O(){!d||y===0?pbe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?pbe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?mbe(m,f,d.stream(),t,e,t[Dr],y,C):LBt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?MBt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?mbe(m,f,d,t,e,t[Dr],y,C):ua(!1)}}function pbe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ua(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Zk]=!0),s.onRequestSent(),n[TA]()}catch(c){t(c)}}function MBt(t,e,r,n,s,i,o,a){ua(a!==0||i[lQ]===0,"stream body cannot be pipelined");let c=iBt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Zk]=!0),i[TA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function LBt(t,e,r,n,s,i,o,a){ua(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new p7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Zk]=!0),n[TA]()}catch(c){t(c)}}async function mbe(t,e,r,n,s,i,o,a){ua(o!==0||n[lQ]===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)=>{ua(c===null),i[so]?d(i[so]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[so])throw i[so];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Zk]=!0),n[TA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Ebe.exports=IBt});var Xd=E((sBr,Tbe)=>{"use strict";var al=b("node:assert"),Qbe=b("node:net"),dQ=b("node:http"),Ng=Ze(),{ClientStats:UBt}=gV(),{channels:QE}=Hd(),PBt=Hye(),OBt=yg(),{InvalidArgumentError:gr,InformationalError:HBt,ClientDestroyedError:GBt}=Ke(),qBt=Bg(),{kUrl:xA,kServerName:$d,kClient:YBt,kBusy:y7,kConnect:VBt,kResuming:Tg,kRunning:pQ,kPending:mQ,kSize:hQ,kQueue:uc,kConnected:WBt,kConnecting:wE,kNeedDrain:jd,kKeepAliveDefaultTimeout:Ibe,kHostHeader:JBt,kPendingIdx:lc,kRunningIdx:cl,kError:zBt,kPipelining:ev,kKeepAliveTimeoutValue:jBt,kMaxHeadersSize:KBt,kKeepAliveMaxTimeout:$Bt,kKeepAliveTimeoutThreshold:XBt,kHeadersTimeout:ZBt,kBodyTimeout:ebt,kStrictContentLength:tbt,kConnector:fQ,kMaxRequests:B7,kCounter:rbt,kClose:nbt,kDestroy:sbt,kDispatch:ibt,kLocalAddress:gQ,kMaxResponseSize:obt,kOnError:abt,kHTTPContext:nn,kMaxConcurrentStreams:cbt,kHTTP2InitialWindowSize:Abt,kHTTP2ConnectionWindowSize:ubt,kResume:Kd,kPingInterval:lbt}=Kt(),dbt=ube(),hbt=Cbe(),zd=Symbol("kClosedResolve"),fbt=dQ&&dQ.maxHeaderSize&&Number.isInteger(dQ.maxHeaderSize)&&dQ.maxHeaderSize>0?()=>dQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},ybe=()=>{};function wbe(t){return t[ev]??t[nn]?.defaultPipelining??1}var b7=class extends OBt{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:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns Line truncated
`,this[ebt]=a??3e5,this[ZBt]=n??3e5,this[tbt]=m??!0,this[B7]=N,this[zd]=null,this[obt]=O>-1?O:-1,this[nn]=null,this[cbt]=D??100,this[Abt]=te??262144,this[ubt]=ce??524288,this[lbt]=ge??6e4,this[uc]=[],this[cl]=0,this[lc]=0,this[Kd]=De=>Q7(this,De),this[abt]=De=>Sbe(this,De)}get pipelining(){return this[ev]}set pipelining(e){this[ev]=e,this[Kd](!0)}get stats(){return new UBt(this)}get[mQ](){return this[uc].length-this[lc]}get[pQ](){return this[lc]-this[cl]}get[hQ](){return this[uc].length-this[cl]}get[WBt](){return!!this[nn]&&!this[wE]&&!this[nn].destroyed}get[y7](){return!!(this[nn]?.busy(null)||this[hQ]>=(wbe(this)||1)||this[mQ]>0)}[VBt](e){Nbe(this),this.once("connect",e)}[ibt](e,r){let n=new PBt(this[xA].origin,e,r);return this[uc].push(n),this[Tg]||(Ng.bodyLength(n.body)==null&&Ng.isIterable(n.body)?(this[Tg]=1,queueMicrotask(()=>Q7(this))):this[Kd](!0)),this[Tg]&&this[jd]!==2&&this[y7]&&(this[jd]=2),this[jd]<2}[nbt](){return new Promise(e=>{this[hQ]?this[zd]=e:e(null)})}[sbt](e){return new Promise(r=>{let n=this[uc].splice(this[lc]);for(let i=0;i<n.length;i++){let o=n[i];Ng.errorRequest(this,o,e)}let s=()=>{this[zd]&&(this[zd](),this[zd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[Kd]()})}};function Sbe(t,e){if(t[pQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){al(t[lc]===t[cl]);let r=t[uc].splice(t[cl]);for(let n=0;n<r.length;n++){let s=r[n];Ng.errorRequest(t,s,e)}al(t[hQ]===0)}}function Nbe(t){al(!t[wE]),al(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[xA];if(r[0]==="["){let i=r.indexOf("]");al(i!==-1);let o=r.substring(1,i);al(Qbe.isIPv6(o)),r=o}t[wE]=!0,QE.beforeConnect.hasSubscribers&&QE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ]}),t[fQ]({host:e,hostname:r,protocol:n,port:s,servername:t[$d],localAddress:t[gQ]},(i,o)=>{if(i){Bbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Kd]();return}if(t.destroyed){Ng.destroy(o.on("error",ybe),new GBt),t[Kd]();return}al(o);try{t[nn]=o.alpnProtocol==="h2"?hbt(t,o):dbt(t,o)}catch(a){o.destroy().on("error",ybe),Bbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Kd]();return}t[wE]=!1,o[rbt]=0,o[B7]=t[B7],o[YBt]=t,o[zBt]=null,QE.connected.hasSubscribers&&QE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ],socket:o}),t.emit("connect",t[xA],[t]),t[Kd]()})}function Bbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[wE]=!1,QE.connectError.hasSubscribers&&QE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(al(t[pQ]===0);t[mQ]>0&&t[uc][t[lc]].servername===t[$d];){let o=t[uc][t[lc]++];Ng.errorRequest(t,o,e)}else Sbe(t,e);t.emit("connectionError",t[xA],[t],e)}}function bbe(t){t[jd]=0,t.emit("drain",t[xA],[t])}function Q7(t,e){t[Tg]!==2&&(t[Tg]=2,gbt(t,e),t[Tg]=0,t[cl]>256&&(t[uc].splice(0,t[cl]),t[lc]-=t[cl],t[cl]=0))}function gbt(t,e){for(;;){if(t.destroyed){al(t[mQ]===0);return}if(t[zd]&&!t[hQ]){t[zd](),t[zd]=null;return}if(t[nn]&&t[nn].resume(),t[y7])t[jd]=2;else if(t[jd]===2){e?(t[jd]=1,queueMicrotask(()=>bbe(t))):bbe(t);continue}if(t[mQ]===0||t[pQ]>=(wbe(t)||1))return;let r=t[uc][t[lc]];if(r===null)return;if(t[xA].protocol==="https:"&&t[$d]!==r.servername){if(t[pQ]>0)return;t[$d]=r.servername,t[nn]?.destroy(new HBt("servername changed"),()=>{t[nn]=null,Q7(t)})}if(t[wE])return;if(!t[nn]){Nbe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[lc]++:t[uc].splice(t[lc],1)}}Tbe.exports=b7});var w7=E((oBr,xbe)=>{"use strict";var tv=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)}};xbe.exports=class{constructor(){this.head=this.tail=new tv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tv),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 rv=E((aBr,Ube)=>{"use strict";var{PoolStats:pbt}=gV(),mbt=yg(),Ebt=w7(),{kConnected:S7,kSize:Rbe,kRunning:Dbe,kPending:kbe,kQueued:EQ,kBusy:Cbt,kFree:Ibt,kUrl:ybt,kClose:Bbt,kDestroy:bbt,kDispatch:Qbt}=Kt(),Yn=Symbol("clients"),Ps=Symbol("needDrain"),CQ=Symbol("queue"),N7=Symbol("closed resolve"),T7=Symbol("onDrain"),vbe=Symbol("onConnect"),_be=Symbol("onDisconnect"),Fbe=Symbol("onConnectionError"),x7=Symbol("get dispatcher"),Mbe=Symbol("add client"),Lbe=Symbol("remove client"),R7=class extends mbt{[CQ]=new Ebt;[EQ]=0;[Yn]=[];[Ps]=!1;[T7](e,r,n){let s=this[CQ],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[x7])throw new vp;process.emitWarning(new vp)}e[Sr].timeout&&e[Sr].timeoutType===KC&&e[Sr].timeout.refresh&&e[Sr].timeout.refresh(),n[ed]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vh]=!1,e&&(Ve(n[Sn]<=1,"pipeline should only contain this request"),s(e))}};Lwe.exports=jQt});var Wwe=C((iSr,Jwe)=>{"use strict";var ja=Q("node:assert"),{pipeline:awt}=Q("node:stream"),pt=st(),{RequestContentLengthMismatchError:U7,RequestAbortedError:cwt,SocketError:Kw,InformationalError:Jh,InvalidArgumentError:Awt,HeadersTimeoutError:uwt,BodyTimeoutError:lwt}=et(),{kUrl:jw,kReset:OF,kClient:Go,kRunning:Xw,kPending:dwt,kQueue:Jw,kPendingIdx:Lp,kRunningIdx:hu,kError:qo,kSocket:Yr,kStrictContentLength:hwt,kOnError:XC,kMaxConcurrentStreams:P7,kPingInterval:Pwe,kHTTP2Session:td,kHTTP2InitialWindowSize:fwt,kHTTP2ConnectionWindowSize:gwt,kResume:fu,kSize:pwt,kHTTPContext:H7,kClosed:O7,kBodyTimeout:mwt,kHeadersTimeout:Ewt,kEnableConnectProtocol:Ww,kRemoteSettings:zw,kHTTP2Stream:UF,kHTTP2SessionState:G7}=sr(),{channels:Owe}=Gh(),za=Symbol("open streams"),Hwe,PF;try{PF=Q("node:http2")}catch{PF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Cwt,HTTP2_HEADER_METHOD:Gwe,HTTP2_HEADER_PATH:qwe,HTTP2_HEADER_SCHEME:M7,HTTP2_HEADER_CONTENT_LENGTH:Iwt,HTTP2_HEADER_EXPECT:ywt,HTTP2_HEADER_STATUS:_7,HTTP2_HEADER_PROTOCOL:Bwt,NGHTTP2_REFUSED_STREAM:bwt,NGHTTP2_CANCEL:Qwt}}=PF;function L7(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 wwt(t,e){t[Yr]=e;let r=t[fwt],n=t[gwt],s=PF.connect(t[jw],{createConnection:()=>e,peerMaxConcurrentStreams:t[P7],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Yr]=e,s[za]=0,s[Go]=t,s[Yr]=e,s[G7]={ping:{interval:t[Pwe]===0?null:setInterval(xwt,t[Pwe],s).unref()}},s[Ww]=!1,s[zw]=!1,n&&pt.addListener(s,"connect",Nwt.bind(s,n)),pt.addListener(s,"error",Rwt),pt.addListener(s,"frameError",Dwt),pt.addListener(s,"end",kwt),pt.addListener(s,"goaway",vwt),pt.addListener(s,"close",Fwt),pt.addListener(s,"remoteSettings",Twt),s.unref(),t[td]=s,e[td]=s,pt.addListener(e,"error",_wt),pt.addListener(e,"end",Lwt),pt.addListener(e,"close",Mwt),e[O7]=!1,e.on("close",Uwt),{version:"h2",defaultPipelining:1/0,write(i){return Owt(t,i)},resume(){Swt(t)},destroy(i,o){e[O7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Xw]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[zw]===!1||pt.bodyLength(i.body)!==0&&(pt.isStream(i.body)||pt.isAsyncIterable(i.body)||pt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[zw]===!1;return!1}}}function Swt(t){let e=t[Yr];e?.destroyed===!1&&(t[pwt]===0?(e.unref(),t[td].unref()):(e.ref(),t[td].ref()))}function Nwt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Twt(t){if(this[Go][P7]=t.maxConcurrentStreams??this[Go][P7],this[zw]===!0&&this[Ww]===!0&&t.enableConnectProtocol===!1){let e=new Jh("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Yr][qo]=e,this[Go][XC](e);return}this[Ww]=t.enableConnectProtocol??this[Ww],this[zw]=!0,this[Go][fu]()}function xwt(t){let e=t[G7];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[Go],o=this[Go];if(n!=null){let a=new Jh(`HTTP/2: "PING" errored - type ${n.message}`);o[qo]=a,i[XC](a)}else i.emit("ping",s)}}function Rwt(t){ja(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Yr][qo]=t,this[Go][XC](t)}function Dwt(t,e,r){if(r===0){let n=new Jh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Yr][qo]=n,this[Go][XC](n)}}function kwt(){let t=new Kw("other side closed",pt.getSocketInfo(this[Yr]));this.destroy(t),pt.destroy(this[Yr],t)}function Vw(t,e,r=!1){let n=t[Jw],s=t[hu];if(s<t[Lp]&&n[s]===e){n[s]=null,t[hu]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[Lp]||(n.splice(i,1),t[Lp]--,r&&t[Lp]<t[hu]&&(t[Lp]=t[hu]))}function vwt(t){let e=this[qo]||new Kw(`HTTP/2: "GOAWAY" frame received with code ${t}`,pt.getSocketInfo(this[Yr])),r=this[Go];if(r[Yr]=null,r[H7]=null,this.close(),this[td]=null,pt.destroy(this[Yr],e),r[hu]<r[Jw].length){let n=r[Jw][r[hu]];r[Jw][r[hu]++]=null,n!=null&&pt.errorRequest(r,n,e),r[Lp]=r[hu]}ja(r[Xw]===0),r.emit("disconnect",r[jw],[r],e),r.emit("connectionError",r[jw],[r],e),r[fu]()}function Fwt(){let{[Go]:t,[G7]:e}=this,{[Yr]:r}=t,n=this[Yr][qo]||this[qo]||new Kw("closed",pt.getSocketInfo(r));if(t[Yr]=null,t[H7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ja(t[dwt]===0);let s=t[Jw].splice(t[hu]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&pt.errorRequest(t,o,n)}}}function Mwt(){let t=this[qo]||new Kw("closed",pt.getSocketInfo(this)),e=this[td][Go];e[Yr]=null,e[H7]=null,this[td]!==null&&this[ Line truncated
`;Owe.sendHeaders.publish({request:e,headers:P,socket:s[Yr]})}let F=i==="GET"||i==="HEAD"||h===null;A?(f[ywt]="100-continue",g=s.request(f,{endStream:F,signal:u}),g[UF]=!0,g.once("continue",L)):(g=s.request(f,{endStream:F,signal:u}),g[UF]=!0,L()),++s[za],g.setTimeout(r);let V=!1;return g.once("response",P=>{let{[_7]:k,...j}=P;if(e.onResponseStarted(),V=!0,g.setTimeout(n),e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(k),L7(j),g.resume.bind(g),"")===!1&&g.pause(),g.on("data",Z=>{e.aborted||e.completed||e.onData(Z)===!1&&g.pause()})}),g.once("end",()=>{g.removeAllListeners("data"),V?(!e.aborted&&!e.completed&&e.onComplete({}),Vw(t,e),t[fu]()):(I(new Jh("HTTP/2: stream half-closed (remote)")),Vw(t,e,!0),t[fu]())}),g.once("close",()=>{g.removeAllListeners("data"),s[za]-=1,s[za]===0&&s.unref(),!e.aborted&&!e.completed&&I(new Jh("HTTP/2: stream closed before the response was complete"))}),g.once("error",function(P){g.removeAllListeners("data"),I(P)}),g.once("frameError",(P,k)=>{g.removeAllListeners("data"),I(new Jh(`HTTP/2: "frameError" received - type ${P}, code ${k}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let P=V?new lwt(`HTTP/2: "body timeout after ${n}"`):new uwt(`HTTP/2: "headers timeout after ${r}"`);g.removeAllListeners("data"),s[za]-=1,s[za]===0&&s.unref(),I(P)}),g.once("trailers",P=>{e.aborted||e.completed||(g.removeAllListeners("data"),e.onComplete(P))}),!0;function L(){!h||B===0?Ywe(I,g,null,t,e,t[Yr],B,y):pt.isBuffer(h)?Ywe(I,g,h,t,e,t[Yr],B,y):pt.isBlobLike(h)?typeof h.stream=="function"?Vwe(I,g,h.stream(),t,e,t[Yr],B,y):Gwt(I,g,h,t,e,t[Yr],B,y):pt.isStream(h)?Hwt(I,t[Yr],y,g,h,t,e,B):pt.isIterable(h)?Vwe(I,g,h,t,e,t[Yr],B,y):ja(!1)}}function Ywe(t,e,r,n,s,i,o,a){try{r!=null&&pt.isBuffer(r)&&(ja(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[OF]=!0),s.onRequestSent(),n[fu]()}catch(c){t(c)}}function Hwt(t,e,r,n,s,i,o,a){ja(a!==0||i[Xw]===0,"stream body cannot be pipelined");let c=awt(s,n,u=>{u?(pt.destroy(c,u),t(u)):(pt.removeAllListeners(c),o.onRequestSent(),r||(e[OF]=!0),i[fu]())});pt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function Gwt(t,e,r,n,s,i,o,a){ja(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new U7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[OF]=!0),n[fu]()}catch(c){t(c)}}async function Vwe(t,e,r,n,s,i,o,a){ja(o!==0||n[Xw]===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)=>{ja(c===null),i[qo]?d(i[qo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[qo])throw i[qo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[OF]=!0),n[fu]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Jwe.exports=wwt});var Kh=C((oSr,t1e)=>{"use strict";var rd=Q("node:assert"),Xwe=Q("node:net"),Zw=Q("node:http"),Up=st(),{ClientStats:qwt}=MW(),{channels:ZC}=Gh(),Ywt=lQe(),Vwt=Tp(),{InvalidArgumentError:Nr,InformationalError:Jwt,ClientDestroyedError:Wwt}=et(),zwt=xp(),{kUrl:gu,kServerName:jh,kClient:jwt,kBusy:Y7,kConnect:Kwt,kResuming:Pp,kRunning:r1,kPending:n1,kSize:$w,kQueue:jc,kConnected:Xwt,kConnecting:$C,kNeedDrain:zh,kKeepAliveDefaultTimeout:zwe,kHostHeader:Zwt,kPendingIdx:Kc,kRunningIdx:sd,kError:$wt,kPipelining:HF,kKeepAliveTimeoutValue:e1t,kMaxHeadersSize:t1t,kKeepAliveMaxTimeout:r1t,kKeepAliveTimeoutThreshold:n1t,kHeadersTimeout:s1t,kBodyTimeout:i1t,kStrictContentLength:o1t,kConnector:e1,kMaxRequests:V7,kCounter:a1t,kClose:c1t,kDestroy:A1t,kDispatch:u1t,kLocalAddress:t1,kMaxResponseSize:l1t,kOnError:d1t,kHTTPContext:mn,kMaxConcurrentStreams:h1t,kHTTP2InitialWindowSize:f1t,kHTTP2ConnectionWindowSize:g1t,kResume:nd,kPingInterval:p1t}=sr(),m1t=Uwe(),E1t=Wwe(),Wh=Symbol("kClosedResolve"),C1t=Zw&&Zw.maxHeaderSize&&Number.isInteger(Zw.maxHeaderSize)&&Zw.maxHeaderSize>0?()=>Zw.maxHeaderSize:()=>{throw new Nr("http module not available or http.maxHeaderSize invalid")},jwe=()=>{};function Zwe(t){return t[HF]??t[mn]?.defaultPipelining??1}var J7=class extends Vwt{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:F,maxResponseSize:V,autoSelectFamily:L,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:k,allowH2:j,useH2c:Z,initialWindowSize:ne,connectionWindowSize:ce,pingInterval:de,webSocket:ke}={}){if(A!==void 0)throw new Nr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Nr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Nr("unsupported requestTimeout, use headersTimeout & Line truncated
`,this[i1t]=a??3e5,this[s1t]=n??3e5,this[o1t]=m??!0,this[V7]=B,this[Wh]=null,this[l1t]=V>-1?V:-1,this[mn]=null,this[h1t]=k??100,this[f1t]=ne??262144,this[g1t]=ce??524288,this[p1t]=de??6e4,this[jc]=[],this[sd]=0,this[Kc]=0,this[nd]=ve=>W7(this,ve),this[d1t]=ve=>$we(this,ve)}get pipelining(){return this[HF]}set pipelining(e){this[HF]=e,this[nd](!0)}get stats(){return new qwt(this)}get[n1](){return this[jc].length-this[Kc]}get[r1](){return this[Kc]-this[sd]}get[$w](){return this[jc].length-this[sd]}get[Xwt](){return!!this[mn]&&!this[$C]&&!this[mn].destroyed}get[Y7](){return!!(this[mn]?.busy(null)||this[$w]>=(Zwe(this)||1)||this[n1]>0)}[Kwt](e){e1e(this),this.once("connect",e)}[u1t](e,r){let n=new Ywt(this[gu].origin,e,r);return this[jc].push(n),this[Pp]||(Up.bodyLength(n.body)==null&&Up.isIterable(n.body)?(this[Pp]=1,queueMicrotask(()=>W7(this))):this[nd](!0)),this[Pp]&&this[zh]!==2&&this[Y7]&&(this[zh]=2),this[zh]<2}[c1t](){return new Promise(e=>{this[$w]?this[Wh]=e:e(null)})}[A1t](e){return new Promise(r=>{let n=this[jc].splice(this[Kc]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&Up.errorRequest(this,o,e)}let s=()=>{this[Wh]&&(this[Wh](),this[Wh]=null),r(null)};this[mn]?(this[mn].destroy(e,s),this[mn]=null):queueMicrotask(s),this[nd]()})}};function $we(t,e){if(t[r1]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){rd(t[Kc]===t[sd]);let r=t[jc].splice(t[sd]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&Up.errorRequest(t,s,e)}rd(t[$w]===0)}}function e1e(t){rd(!t[$C]),rd(!t[mn]);let{host:e,hostname:r,protocol:n,port:s}=t[gu];if(r[0]==="["){let i=r.indexOf("]");rd(i!==-1);let o=r.substring(1,i);rd(Xwe.isIPv6(o)),r=o}t[$C]=!0,ZC.beforeConnect.hasSubscribers&&ZC.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[mn]?.version,servername:t[jh],localAddress:t[t1]},connector:t[e1]});try{t[e1]({host:e,hostname:r,protocol:n,port:s,servername:t[jh],localAddress:t[t1]},(i,o)=>{if(i){q7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[nd]();return}if(t.destroyed){Up.destroy(o.on("error",jwe),new Wwt),t[nd]();return}rd(o);try{t[mn]=o.alpnProtocol==="h2"?E1t(t,o):m1t(t,o)}catch(a){o.destroy().on("error",jwe),q7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[nd]();return}t[$C]=!1,o[a1t]=0,o[V7]=t[V7],o[jwt]=t,o[$wt]=null,ZC.connected.hasSubscribers&&ZC.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[mn]?.version,servername:t[jh],localAddress:t[t1]},connector:t[e1],socket:o}),t.emit("connect",t[gu],[t]),t[nd]()})}catch(i){q7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[nd]()}}function q7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[$C]=!1,ZC.connectError.hasSubscribers&&ZC.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[mn]?.version,servername:t[jh],localAddress:t[t1]},connector:t[e1],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(rd(t[r1]===0);t[n1]>0&&t[jc][t[Kc]].servername===t[jh];){let o=t[jc][t[Kc]++];Up.errorRequest(t,o,e)}else $we(t,e);t.emit("connectionError",t[gu],[t],e)}}function Kwe(t){t[zh]=0,t.emit("drain",t[gu],[t])}function W7(t,e){t[Pp]!==2&&(t[Pp]=2,I1t(t,e),t[Pp]=0,t[sd]>256&&(t[jc].splice(0,t[sd]),t[Kc]-=t[sd],t[sd]=0))}function I1t(t,e){for(;;){if(t.destroyed){rd(t[n1]===0);return}if(t[Wh]&&!t[$w]){t[Wh](),t[Wh]=null;return}if(t[mn]&&t[mn].resume(),t[Y7])t[zh]=2;else if(t[zh]===2){e?(t[zh]=1,queueMicrotask(()=>Kwe(t))):Kwe(t);continue}if(t[n1]===0||t[r1]>=(Zwe(t)||1))return;let r=t[jc][t[Kc]];if(r===null)return;if(t[gu].protocol==="https:"&&t[jh]!==r.servername){if(t[r1]>0)return;t[jh]=r.servername,t[mn]?.destroy(new Jwt("servername changed"),()=>{t[mn]=null,W7(t)})}if(t[$C])return;if(!t[mn]){e1e(t);return}if(t[mn].destroyed||t[mn].busy(r))return;!r.aborted&&t[mn].write(r)?t[Kc]++:t[jc].splice(t[Kc],1)}}t1e.exports=J7});var z7=C((cSr,r1e)=>{"use strict";var GF=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)}};r1e.exports=class{constructor(){this.head=this.tail=new GF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new GF),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 qF=C((ASr,l1e)=>{"use strict";var{PoolStats:y1t}=MW(),B1t=Tp(),b1t=z7(),{kConnected:j7,kSize:n1e,kRunning:s1e,kPending:i1e,kQueued:s1,kBusy:Q1t,kFree:w1t,kUrl:S1t,kClose:N1t,kDestroy:T1t,kDispatch:x1t}=sr(),as=Symbol("clients"),di=Symbol("needDrain"),i1=Symbol("queue"),K7=Symbol("closed resolve"),X7=Symbol("onDrain"),o1e=Symbol("onConnect"),a1e=Symbol("onDisconnect"),c1e=Symbol("onConnectionError"),Z7=Symbol("get dispatcher"),A1e=Symbol("add client"),u1e=Symbol("remove client"),$7=class extends B1t{[i1]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};o1e.exports=VW});var JW=E((UBr,u1e)=>{"use strict";var{InvalidArgumentError:y1t}=Ke(),{runtimeFeatures:B1t}=sl();function b1t(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 a1e=B1t.has("crypto")?b("node:crypto"):null,Q1t=a1e?.hash?t=>a1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function A1e(t){return Array.isArray(t)&&(t.length&1)===0}function w1t(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 S1t(t){let e={};if(!t)return e;if(A1e(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 c1e=["record","playback","update"];function N1t(t){if(!c1e.includes(t))throw new y1t(`Invalid snapshot mode: ${t}. Must be one of: ${c1e.join(", ")}`)}u1e.exports={createHeaderFilters:b1t,hashId:Q1t,isUndiciHeaders:A1e,normalizeHeaders:S1t,isUrlExcludedFactory:w1t,validateSnapshotMode:N1t}});var C1e=E((PBr,E1e)=>{"use strict";var{writeFile:T1t,readFile:x1t,mkdir:R1t}=b("node:fs/promises"),{dirname:D1t,resolve:l1e}=b("node:path"),{setTimeout:k1t,clearTimeout:d1e}=b("node:timers"),{InvalidArgumentError:h1e,UndiciError:v1t}=Ke(),{hashId:_1t,isUrlExcludedFactory:F1t,normalizeHeaders:f1e,createHeaderFilters:g1e}=JW();function vQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||f1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:p1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function p1e(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 m1e(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 _Q(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 _1t(r)}var zW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=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=g1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=F1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=vQ(e,this.#a,this.matchOptions),s=_Q(n),i=f1e(r.headers),o={statusCode:r.statusCode,headers:m1e(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.#s&&!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.#i&&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.#a,this.matchOptions),n=_Q(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 h1e("Snapshot path is required");try{let n=await x1t(l1e(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 v1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new h1e("Snapshot path is required");let n=l1e(r);await R1t(D1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await T1t(n,JSON.s Line truncated
${e.format(r)}`.trim())}};_Ne.exports=mj});var Cj=C((OSr,ONe)=>{"use strict";var{InvalidArgumentError:wTt}=et(),{runtimeFeatures:STt}=Zl();function NTt(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 LNe=STt.has("crypto")?Q("node:crypto"):null,TTt=LNe?.hash?t=>LNe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function PNe(t){return Array.isArray(t)&&(t.length&1)===0}function xTt(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 RTt(t){let e={};if(!t)return e;if(PNe(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 UNe=["record","playback","update"];function DTt(t){if(!UNe.includes(t))throw new wTt(`Invalid snapshot mode: ${t}. Must be one of: ${UNe.join(", ")}`)}ONe.exports={createHeaderFilters:NTt,hashId:TTt,isUndiciHeaders:PNe,normalizeHeaders:RTt,isUrlExcludedFactory:xTt,validateSnapshotMode:DTt}});var jNe=C((HSr,zNe)=>{"use strict";var{writeFile:kTt,readFile:vTt,mkdir:FTt}=Q("node:fs/promises"),{dirname:MTt,resolve:HNe}=Q("node:path"),{setTimeout:_Tt,clearTimeout:GNe}=Q("node:timers"),{InvalidArgumentError:qNe,UndiciError:LTt}=et(),{hashId:UTt,isUrlExcludedFactory:PTt,normalizeHeaders:YNe,createHeaderFilters:VNe}=Cj();function E1(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||YNe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:JNe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function JNe(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 WNe(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 C1(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 UTt(r)}var Ij=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=VNe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=PTt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=E1(e,this.#a,this.matchOptions),s=C1(n),i=YNe(r.headers),o={statusCode:r.statusCode,headers:WNe(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=E1(e,this.#a,this.matchOptions),n=C1(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 qNe("Snapshot path is required");try{let n=await vTt(HNe(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 LTt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new qNe("Snapshot path is required");let n=HNe(r);await FTt(MTt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await kTt(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${Vo} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};o1e.exports=VW});var JW=E((UBr,u1e)=>{"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${Vo}_getValuesQuery ON cacheInterceptorV${Vo}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Vo}_deleteByUrlQuery ON cacheInterceptorV${Vo}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};o1e.exports=VW});var JW=E((UBr,u1e)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${ao}
FROM cacheInterceptorV${Vo}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${ao} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${Vo} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};o1e.exports=VW});var JW=E((UBr,u1e)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ao} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${Vo} (
url,
method,
body,
@@ -182,91 +182,98 @@ ${e.format(r)}`.trim())}};o1e.exports=VW});var JW=E((UBr,u1e)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#a=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${Vo} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Vo}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${Vo} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${Vo}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${ao}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${Vo}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){pJ(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){pJ(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.#s.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.#u(),this.#i.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))}createWriteStream(e,r){pJ(e),yNt(r);let n=0,s=[],i=this;return new INt({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}`}#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)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!BNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function BNt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var Gg=E((abr,SSe)=>{"use strict";var{kConstruct:bNt}=Kt(),{kEnumerableProperty:OE}=Ze(),{iteratorMixin:QNt,isValidHeaderName:UQ,isValidHeaderValue:ySe}=ro(),{webidl:wt}=es(),EJ=b("node:assert"),vv=b("node:util");function ISe(t){return t===10||t===13||t===9||t===32}function BSe(t){let e=0,r=t.length;for(;r>e&&ISe(t.charCodeAt(r-1));)--r;for(;r>e&&ISe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function bSe(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}.`});CJ(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)CJ(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 CJ(t,e,r){if(r=BSe(r),UQ(e)){if(!ySe(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(wSe(t)==="immutable")throw new TypeError("immutable");return Fv(t).append(e,r,!1)}function wNt(t){let e=Fv(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 QSe(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.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":vTe(i)&&(r[s]=i);break;case"id":_Te(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&vTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&_Te(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}}};FTe.exports={EventSourceStream:rz}});var YTe=E((kbr,qTe)=>{"use strict";var{pipeline:GDt}=b("node:stream"),{fetching:qDt}=qQ(),{makeRequest:YDt}=GE(),{webidl:Hs}=es(),{EventSourceStream:VDt}=MTe(),{parseMIMEType:WDt}=ia(),{createFastMessageEvent:JDt}=o_(),{isNetworkError:LTe}=OQ(),{kEnumerableProperty:Kg}=Ze(),{environmentSettingsObject:UTe}=ro(),PTe=!1,OTe=3e3,KQ=0,HTe=1,$Q=2,zDt="anonymous",jDt="use-credentials",XE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=KQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),PTe||(PTe=!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,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=UTe,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=zDt;r.withCredentials===!0&&(o=jDt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=UTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=YDt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===$Q)return;this.#r=KQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!LTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(LTe(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?WDt(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=HTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new VDt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(JDt(c.type,c.options))}});GDt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=qDt(e)}#A(){this.#r!==$Q&&(this.#r=KQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===KQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==$Q&&(this.#r=$Q,this.#i.abort(),this.#s=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}},GTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:KQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:HTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:$Q,writable:!1}};Object.defineProperties(XE,GTe);Object.defineProperties(XE.prototype,GTe);Object.defineProperties(XE.prototype,{close:Kg,onerror:Kg,onmessage:Kg,onopen:Kg,readyState:Kg,url:Kg,withCredentials:Kg});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:()=>OTe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);qTe.exports={EventSource:XE,defaultReconnectionTime:OTe}});var KTe=E((vbr,pe)=>{"use strict";var KDt=Xd(),WTe=jb(),$Dt=xg(),XDt=Wbe(),ZDt=Kbe(),e2t=kg(),t2t=K7(),r2t=W7(),n2t=vQe(),s2t=PQe(),i2t=GQe(),JTe=Ke(),C_=Ze(),{InvalidArgumentError:E_}=JTe,ZE=bwe(),o2t=Bg(),a2t=_W(),{MockCallHistory:c2 Line truncated
`)}close(){this.#n.close()}get(e){jj(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){jj(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){jj(e),qRt(r);let n=0,s=[],i=this;return new GRt({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(!YRt(s[l],u[l])){A=!1;break}}if(A)return c}}};function YRt(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 im=C((ANr,Cxe)=>{"use strict";var{kConstruct:VRt}=sr(),{kEnumerableProperty:gI}=st(),{iteratorMixin:JRt,isValidHeaderName:Q1,isValidHeaderValue:fxe}=Oo(),{webidl:Mt}=ys(),Xj=Q("node:assert"),yM=Q("node:util");function hxe(t){return t===10||t===13||t===9||t===32}function gxe(t){let e=0,r=t.length;for(;r>e&&hxe(t.charCodeAt(r-1));)--r;for(;r>e&&hxe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function pxe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Mt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});Zj(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)Zj(t,r[n],e[r[n]])}else throw Mt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Zj(t,e,r){if(r=gxe(r),Q1(e)){if(!fxe(r))throw Mt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Mt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Exe(t)==="immutable")throw new TypeError("immutable");return bM(t).append(e,r,!1)}function WRt(t){let e=bM(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 mxe(t,e){return t[0]<e[0]?-1:1}var BM=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(o_(e,s,fFt)){gFt(e,i)&&(r.retry=e.toString("utf8",i));return}if(o_(e,s,hFt)){pFt(e,i)&&(r.id=e.toString("utf8",i));return}if(o_(e,s,dFt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&aFt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&cFt(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===NI[0]||(this.checkBOM=!1),!0):n===void 0?e===NI[0]&&r===NI[1]?!0:(this.checkBOM=!1,!1):(e===NI[0]&&r===NI[1]&&n===NI[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};QDe.exports={EventSourceStream:UK}});var vDe=C((FNr,kDe)=>{"use strict";var{pipeline:mFt}=Q("node:stream"),{fetching:EFt}=x1(),{makeRequest:CFt}=mI(),{webidl:fi}=ys(),{EventSourceStream:IFt}=wDe(),{parseMIMEType:yFt}=Va(),{createFastMessageEvent:BFt}=zM(),{isNetworkError:SDe}=S1(),{kEnumerableProperty:hm}=st(),{environmentSettingsObject:NDe}=Oo(),TDe=!1,xDe=3e3,_1=0,RDe=1,L1=2,bFt="anonymous",QFt="use-credentials",TI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=_1;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),fi.util.markAsUncloneable(this);let n="EventSource constructor";fi.argumentLengthCheck(arguments,1,n),TDe||(TDe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fi.converters.USVString(e),r=fi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=NDe,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=bFt;r.withCredentials===!0&&(o=QFt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=NDe.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=CFt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===L1)return;this.#r=_1;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!SDe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(SDe(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?yFt(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=RDe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new IFt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(BFt(c.type,c.options))}});mFt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=EFt(e)}#A(){this.#r!==L1&&(this.#r=_1,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 C2t(e,r).catch(n=>{throw VTe?jTe(n,VTe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Gg().Headers;pe.exports.Response=OQ().Response;pe.exports.Request=GE().Request;pe.exports.FormData=Gk().FormData;var{setGlobalOrigin:I2t,getGlobalOrigin:y2t}=FV();pe.exports.setGlobalOrigin=I2t;pe.exports.getGlobalOrigin=y2t;var{CacheStorage:B2t}=xNe(),{kConstruct:b2t}=Kt();pe.exports.caches=new B2t(b2t);var{deleteCookie:Q2t,getCookies:w2t,getSetCookies:S2t,setCookie:N2t,parseCookie:T2t}=GNe();pe.exports.deleteCookie=Q2t;pe.exports.getCookies=w2t;pe.exports.getSetCookies=S2t;pe.exports.setCookie=N2t;pe.exports.parseCookie=T2t;var{parseMIMEType:x2t,serializeAMimeType:R2t}=ia();pe.exports.parseMIMEType=x2t;pe.exports.serializeAMimeType=R2t;var{CloseEvent:D2t,ErrorEvent:k2t,MessageEvent:v2t}=o_(),{WebSocket:_2t,ping:F2t}=BTe();pe.exports.WebSocket=_2t;pe.exports.CloseEvent=D2t;pe.exports.ErrorEvent=k2t;pe.exports.MessageEvent=v2t;pe.exports.ping=F2t;pe.exports.WebSocketStream=RTe().WebSocketStream;pe.exports.WebSocketError=$J().WebSocketError;pe.exports.request=XQ(ZE.request);pe.exports.stream=XQ(ZE.stream);pe.exports.pipeline=XQ(ZE.pipeline);pe.exports.connect=XQ(ZE.connect);pe.exports.upgrade=XQ(ZE.upgrade);pe.exports.MockClient=a2t;pe.exports.MockCallHistory=c2t;pe.exports.MockCallHistoryLog=A2t;pe.exports.MockPool=l2t;pe.exports.MockAgent=u2t;pe.exports.SnapshotAgent=d2t;pe.exports.mockErrors=h2t;var{EventSource:M2t}=YTe();pe.exports.EventSource=M2t;function L2t(){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=L2t});var ZQ=E(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 XTe=E((Mbr,$Te)=>{"use strict";var{asciiLowercase:I_,solelyContainsHTTPTokenCodePoints:U2t,soleyContainsHTTPQuotedStringTokenCodePoints:P2t}=ZQ();$Te.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=I_(String(e)),this._map.get(e)}has(e){return e=I_(String(e)),this._map.has(e)}set(e,r){if(e=I_(String(e)),r=String(r),!U2t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!P2t(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=I_(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 txe=E((Lbr,exe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:O2t,removeTrailingHTTPWhitespace:ZTe,isHTTPWhitespaceChar:H2t,solelyContainsHTTPTokenCodePoints:nz,soleyContainsHTTPQuotedStringTokenCodePoints:G2t,asciiLowercase:sz,collectAnHTTPQuotedString:q2t}=ZQ();exe.exports=t=>{t=O2t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!nz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=ZTe(n),n.length===0||!nz(n))return null;let s={type:sz(r),subtype:sz(n),parameters:new Map};for(;e<t.length;){for(++e;H2t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=sz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=q2t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=ZTe(o),o==="")continue}i.length>0&&nz(i)&&G2t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var nxe=E((Ubr,rxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Y2t}=ZQ();rxe.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+="=",(!Y2t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var axe=E((Obr,oxe)=>{"use strict";var V2t=XTe(),W2t=txe(),J2t=nxe(),{asciiLowercase:sxe,solelyContainsHTTPTokenCodePoints:ixe}=ZQ();oxe.exports=class{constructor(e){e=String(e);let r=W2t(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 V2t(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=sxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!ixe(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=sxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!ixe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return J2t(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 Dxe=E(bn=>{"use strict";var hz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Skt=hz(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("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==="*"?rj:f.type==="?"?ij:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=gvt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+ee,ce=D.split(")").length,ge=D.split("(").length-ce,De=ee;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==nj?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===nj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return mvt(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_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?rj:r.dot?hvt:fvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Cvt(a):a===Gs?Gs:a._src).reduce((a,c)=>(a[a.length-1]===Gs&&c===Gs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Gs||o[c-1]===Gs||(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]=Gs))}),o.filter(a=>a!==Gs).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;sj.sep!=="/"&&(e=e.split(sj.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 go.defaults(e).Minimatch}};go.Minimatch=oC});var $Re=E((Owr,KRe)=>{KRe.exports=jRe;var cj=b("fs"),{EventEmitter:yvt}=b("events"),{Minimatch:aj}=WRe(),{resolve:Bvt}=b("path");function bvt(t,e){return new Promise((r,n)=>{cj.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?cj.stat:cj.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 v_=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 aj(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 aj(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 aj(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 Line truncated
`,w);w=q===-1?Q.length:q}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let q=Q.indexOf("*/",w);q!==-1?(w=q+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function aI(Q){let B=oI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}Ce.exports.fetch=function(e,r=void 0){return zFt(e,r).catch(n=>{throw FDe?UDe(n,FDe):n&&typeof n=="object"&&Error.captureStackTrace(n,Ce.exports.fetch),n})};Ce.exports.Headers=im().Headers;Ce.exports.Response=S1().Response;Ce.exports.Request=mI().Request;Ce.exports.FormData=xF().FormData;var{setGlobalOrigin:jFt,getGlobalOrigin:KFt}=r7();Ce.exports.setGlobalOrigin=jFt;Ce.exports.getGlobalOrigin=KFt;var{CacheStorage:XFt}=BRe(),{kConstruct:ZFt}=sr();Ce.exports.caches=new XFt(ZFt);var{deleteCookie:$Ft,getCookies:eMt,getSetCookies:tMt,setCookie:rMt,parseCookie:nMt}=FRe();Ce.exports.deleteCookie=$Ft;Ce.exports.getCookies=eMt;Ce.exports.getSetCookies=tMt;Ce.exports.setCookie=rMt;Ce.exports.parseCookie=nMt;var{parseMIMEType:sMt,serializeAMimeType:iMt}=Va();Ce.exports.parseMIMEType=sMt;Ce.exports.serializeAMimeType=iMt;var{CloseEvent:oMt,ErrorEvent:aMt,MessageEvent:cMt}=zM(),{WebSocket:AMt,ping:uMt}=hDe();Ce.exports.WebSocket=AMt;Ce.exports.CloseEvent=oMt;Ce.exports.ErrorEvent=aMt;Ce.exports.MessageEvent=cMt;Ce.exports.ping=uMt;Ce.exports.WebSocketStream=yDe().WebSocketStream;Ce.exports.WebSocketError=vK().WebSocketError;Ce.exports.request=U1(xI.request);Ce.exports.stream=U1(xI.stream);Ce.exports.pipeline=U1(xI.pipeline);Ce.exports.connect=U1(xI.connect);Ce.exports.upgrade=U1(xI.upgrade);Ce.exports.MockClient=_Ft;Ce.exports.MockCallHistory=LFt;Ce.exports.MockCallHistoryLog=UFt;Ce.exports.MockPool=OFt;Ce.exports.MockAgent=PFt;Ce.exports.SnapshotAgent=HFt;Ce.exports.mockErrors=GFt;var{EventSource:lMt}=vDe();Ce.exports.EventSource=lMt;function dMt(){globalThis.fetch=Ce.exports.fetch,globalThis.Headers=Ce.exports.Headers,globalThis.Response=Ce.exports.Response,globalThis.Request=Ce.exports.Request,globalThis.FormData=Ce.exports.FormData,globalThis.WebSocket=Ce.exports.WebSocket,globalThis.CloseEvent=Ce.exports.CloseEvent,globalThis.ErrorEvent=Ce.exports.ErrorEvent,globalThis.MessageEvent=Ce.exports.MessageEvent,globalThis.EventSource=Ce.exports.EventSource}Ce.exports.install=dMt});var P1=C(uf=>{"use strict";uf.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");uf.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");uf.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";uf.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);uf.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);uf.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());uf.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 HDe=C((UNr,ODe)=>{"use strict";var{asciiLowercase:A_,solelyContainsHTTPTokenCodePoints:hMt,soleyContainsHTTPQuotedStringTokenCodePoints:fMt}=P1();ODe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=A_(String(e)),this._map.get(e)}has(e){return e=A_(String(e)),this._map.has(e)}set(e,r){if(e=A_(String(e)),r=String(r),!hMt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!fMt(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=A_(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 YDe=C((PNr,qDe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:gMt,removeTrailingHTTPWhitespace:GDe,isHTTPWhitespaceChar:pMt,solelyContainsHTTPTokenCodePoints:PK,soleyContainsHTTPQuotedStringTokenCodePoints:mMt,asciiLowercase:OK,collectAnHTTPQuotedString:EMt}=P1();qDe.exports=t=>{t=gMt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!PK(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=GDe(n),n.length===0||!PK(n))return null;let s={type:OK(r),subtype:OK(n),parameters:new Map};for(;e<t.length;){for(++e;pMt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=OK(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=EMt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=GDe(o),o==="")continue}i.length>0&&PK(i)&&mMt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var JDe=C((ONr,VDe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:CMt}=P1();VDe.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+="=",(!CMt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var KDe=C((GNr,jDe)=>{"use strict";var IMt=HDe(),yMt=YDe(),BMt=JDe(),{asciiLowercase:WDe,solelyContainsHTTPTokenCodePoints:zDe}=P1();jDe.exports=class{constructor(e){e=String(e);let r=yMt(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 IMt(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=WDe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!zDe(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=WDe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!zDe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return BMt(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 C2e=C(Un=>{"use strict";var jK=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),t_t=jK(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`,L,L,f,s);let P=f.type==="*"?UX:f.type==="?"?HX:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+L}B(),o&&(s+="\\\\");let F=W_t[s.charAt(0)];for(let L=c.length-1;L>-1;L--){let P=c[L],k=s.slice(0,P.reStart),j=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),ne=s.slice(P.reEnd-8,P.reEnd)+Z,ce=k.split(")").length,de=k.split("(").length-ce,ke=Z;for(let rt=0;rt<de;rt++)ke=ke.replace(/\)[+*?]?/,"");Z=ke;let ve=Z===""&&r!==PX?"(?:$|\\/)":"";s=k+j+Z+ve+ne}if(s!==""&&i&&(s="(?=.)"+s),F&&(s=I()+s),r===PX)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return j_t(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?UX:r.dot?V_t:J_t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?X_t(a):a===gi?gi:a._src).reduce((a,c)=>(a[a.length-1]===gi&&c===gi||a.push(c),a),[]),o.forEach((a,c)=>{a!==gi||o[c-1]===gi||(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]=gi))}),o.filter(a=>a!==gi).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;OX.sep!=="/"&&(e=e.split(OX.sep).join("/")),e=e.split(Mke),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 Xo.defaults(e).Minimatch}};Xo.Minimatch=_I});var qke=C((Vxr,Gke)=>{Gke.exports=Hke;var YX=Q("fs"),{EventEmitter:$_t}=Q("events"),{Minimatch:qX}=Uke(),{resolve:eLt}=Q("path");function tLt(t,e){return new Promise((r,n)=>{YX.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 Pke(t,e){return new Promise((r,n)=>{(e?YX.stat:YX.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Pke(t,!1):null):r(null):r(o)})})}async function*Oke(t,e,r,n,s,i){let o=await tLt(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 Pke(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*Oke(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*rLt(t,e,r,n){yield*Oke("",t,e,r,n,!0)}function nLt(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 B_=class extends $_t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=nLt(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 qX(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 qX(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 qX(i,{dot:!0}))}this.iterator=rLt(eLt(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
`,N);N=Y===-1?w.length:Y}else if(M!==-1&&w[N]==="/"&&w[N+1]==="*"){let Y=w.indexOf("*/",N);Y!==-1?(N=Y+2,M=w.indexOf("*/",N)):(b+=w[N],N++)}else b+=w[N],N++;return b}function Gn(w){let b=Js(w.toString()),N=b.match(io);if(N||(N=b.match(ju)),!N)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Q1).map(q=>q.replace(w1,"").trim())}function cI(Q,B){var w={};return Object.keys(Q).forEach(F=>{var q=Q[F],V,J=h(q),j=!J&&q.length===1||J&&q.length===0;if(Array.isArray(q))V=[...q],q=V.pop(),w[F]=V.concat(V.length>0?re:q);else if(j)w[F]=q;else{if(V=aI(q),q.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(re)}function re(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(q)(...Ft)}}),iI(w,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,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,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 w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function uI(Q,B){Q.length=1,Q.head=Q.tail=B}function Fp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),q=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function re(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,Tn;function Bo(Oh,...mI){if(Oh)return Pe?Tn(Oh):Ir();if(mI.length<=1)return Ir(mI[0]);Ir(mI)}var Pp=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Pp):Mt._tasks.push(Pp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Oh,mI)=>{Ir=Oh,Tn=mI})}function yo(Ue){return function(be,...Pe){q-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var Tn=Ue[Nt],Bo=V.indexOf(Tn);Bo===0?V.shift():Bo>0&&V.splice(Bo,1),Tn.callback(be,...Pe),be!=null&&Bt("error",be,Tn.data)}q<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function Up(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Ph=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{re(Ue,(Ir,Tn)=>{if(Ir)return Nt(Ir);Pe(Tn)})});Se(Ue),j(Ue,be)};var pI=!1,Mt={_tasks:new AI,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!pI){for(pI=!0;!Mt.paused&&q<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}q+=1,Mt._tasks.length===0&&Bt("empty"),q===Mt.concurrency&&Bt("saturated");var Tn=te(yo(Ue));F(be,Tn)}pI=!1}},length(){return Mt._tasks.length},running(){return q},workersList(){return V},idle(){return Mt._tasks.length+q===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{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")}}),Mt}function lI(Q,B){return Fp(Q,1,B)}function Mp(Q,B,w){return Fp(Q,B,w)}function Io(Q,B,w,F){F=O(F);var q=I(w);return js(Q,(V,J,j)=>{q(B,V,(re,Se)=>{B=Se,j(re)})},V=>F(V,B))}var wa=m(Io,4);function Lp(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=cu(),wa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[au]}}function S1(...Q){return Lp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var G=m(we,4);function T(Q,B,w,F){var q=I(w);return G(Q,B,(V,J)=>{q(V,(j,...re)=>j?J(j):J(j,re))},(V,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(V,j)})}var Y=m(T,4);function K(Q,B,w){return Y(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[rs]||(aDe=global[rs]||[],ADe(vr,aDe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||cDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,U_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),cDe()}return Object.defineProperty(e,U_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){sp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var aDe;global[rs]||ADe(global,vr[rs]);dj.exports=uj(_vt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(dj.exports=uj(vr),vr.__patched=!0);function uj(t){kvt(t),t.gracefulify=uj,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),te(D,z,ee);function te(ce,ge,De,$e){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?aC([te,[ce,ge,De],st,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=0),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var te=u.test(process.version)?function(De,$e,st,Yt){return A(De,ce(De,$e,st,Yt))}:function(De,$e,st,Yt){return A(De,$e,ce(De,$e,st,Yt))};return te(D,z,ee);function ce(ge,De,$e,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?aC([te,[ge,De,$e],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Yt,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=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return k(ge,De,$e,function(vt,fn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function aC(t){sp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),lj()}var L_;function cDe(){for(var t=Date.now(),e=0;e<vr[rs].length;++e)vr[rs][e].length>2&&(vr[rs][e][3]=t,vr[rs][e][4]=t);lj()}function lj(){if(clearTimeout(L_),L_=void 0,vr[rs].length!==0){var t=vr[rs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)sp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){sp("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?(sp("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}L_===void 0&&(L_=setTimeout(lj,0))}}});var P_=E((Vwr,uDe)=>{"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= 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 jj=E((tSr,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 Is=E((rSr,Wke)=>{"use strict";var{format:nUt,inspect:sF}=jj(),{AggregateError:sUt}=Tr(),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_",iF={};function ap(t,e){if(!t)throw new iF.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 ap(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 ap(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 ss(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,iF[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 Kj=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new iF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ss("ERR_ASSERTION","%s",Error);ss("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ap(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)ap(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):(ap(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+=TX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=TX(" "+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,Dh(e.mode&BYt,6),100),kt.write(r,Dh(e.uid,6),108),kt.write(r,Dh(e.gid,6),116),xYt(e.size,r,124),kt.write(r,Dh(e.mtime.getTime()/1e3|0,11),136),r[156]=vM+NYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(fOe,r,g1),kt.copy(CYt,r,xX),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(pOe(r),6),148),r)};zC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-vM,i=JC(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=SYt(s),d=e[157]===0?null:JC(e,157,100,r),h=JC(e,265,32),f=JC(e,297,32),p=Rh(e,329,8),I=Rh(e,337,8),m=pOe(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(bYt(e))e[345]&&(i=JC(e,345,155,r)+"/"+i);else if(!QYt(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:p,devminor:I,pax:null}};function bYt(t){return kt.equals(fOe,t.subarray(g1,g1+6))}function QYt(t){return kt.equals(IYt,t.subarray(g1,g1+6))&&kt.equals(yYt,t.subarray(xX,xX+2))}function wYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function SYt(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 NYt(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 Dh(t,e){return t=t.toString(8),t.length>e?EYt.slice(0,e)+" ":mYt.slice(0,e-t.length)+t+" "}function TYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function xYt(t,e,r){t.toString(8).length>11?TYt(t,e,r):kt.write(e,Dh(t,11),r)}function RYt(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 RYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=wYt(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 TX(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=E((TTr,IOe)=>{var{Writable:DYt,Readable:kYt,getStreamError:mOe}=NX(),vYt=dX(),EOe=GC(),jC=RX(),_Yt=EOe.alloc(0),kX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new vYt,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 _Yt;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)}},vX=class extends kYt{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)}},_X=class extends DYt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Qce(t,e){if(process.env.GITHUB_OUTPUT||"")return EI("OUTPUT",j1(t,e));process.stdout.write(vO.EOL),Na("set-output",{name:t},yc(e))}function df(t){process.exitCode=kO.Failure,Pi(t)}function Pa(){return process.env.RUNNER_DEBUG==="1"}function H(t){Na("debug",{},t)}function Pi(t,e={}){Na("error",W1(e),t instanceof Error?t.toString():t)}function We(t,e={}){Na("warning",W1(e),t instanceof Error?t.toString():t)}function wce(t,e={}){Na("notice",W1(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+vO.EOL)}function _je(t){ZM("group",t)}function Fje(){ZM("endgroup")}function eT(t,e){return vje(this,void 0,void 0,function*(){_je(t);let r;try{r=yield e()}finally{Fje()}return r})}function wu(t,e){if(process.env.GITHUB_STATE||"")return EI("STATE",j1(t,e));Na("save-state",{name:t},yc(e))}function by(t){return process.env[`STATE_${t}`]||""}import*as Az from"fs";import*as uz from"path";import*as b_ from"os";import{readFileSync as Mje,existsSync as Lje}from"fs";import{EOL as Uje}from"os";var Mm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Lje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Mje(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${Uje}`)}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 UO=fe(Rce(),1),Dce=fe(VN(),1),$je=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 kce(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 vce(t){return new UO.HttpClient().getAgent(t)}function Xje(t){return new UO.HttpClient().getAgentDispatcher(t)}function _ce(t){let e=Xje(t);return(n,s)=>$je(this,void 0,void 0,function*(){return(0,Dce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Fce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function PO(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 $l(){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 aT(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)=>aT.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 Mce(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 Lce(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 Uce=Function.bind,Pce=Uce.bind(Uce);function Oce(t,e,r){let n=Pce(Lce,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]=Pce(Mce,null). Line truncated
`+b);let[,M]=N;return M.replace(/\s/g,"").split(oA).map(Y=>Y.replace(jm,"").trim())}function lc(w,b){var N={};return Object.keys(w).forEach(M=>{var Y=w[M],W,K=h(Y),$=!K&&Y.length===1||K&&Y.length===0;if(Array.isArray(Y))W=[...Y],Y=W.pop(),N[M]=W.concat(W.length>0?se:Y);else if($)N[M]=Y;else{if(W=Gn(Y),Y.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),N[M]=W.concat(se)}function se(xe,kt){var Jt=W.map(Ut=>xe[Ut]);Jt.push(kt),E(Y)(...Jt)}}),zu(N,b)}class dc{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,N){N.prev=b,N.next=b.next,b.next?b.next.prev=N:this.tail=N,b.next=N,this.length+=1}insertBefore(b,N){N.prev=b.prev,N.next=b,b.prev?b.prev.next=N:this.head=N,b.prev=N,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Nd(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Nd(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 N=this.head;N;){var{next:M}=N;b(N)&&this.removeLink(N),N=M}return this}}function Nd(w,b){w.length=1,w.head=w.tail=b}function aA(w,b,N){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var M=E(w),Y=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function $(We,Ne){K[We].push(Ne)}function se(We,Ne){let ze=(...Pt)=>{xe(We,ze),Ne(...Pt)};K[We].push(ze)}function xe(We,Ne){if(!We)return Object.keys(K).forEach(ze=>K[ze]=[]);if(!Ne)return K[We]=[];K[We]=K[We].filter(ze=>ze!==Ne)}function kt(We,...Ne){K[We].forEach(ze=>ze(...Ne))}var Jt=!1;function Ut(We,Ne,ze,Pt){if(Pt!=null&&typeof Pt!="function")throw new Error("task callback must be a function");Wt.started=!0;var kr,Vn;function ia(Vf,...Vy){if(Vf)return ze?Vn(Vf):kr();if(Vy.length<=1)return kr(Vy[0]);kr(Vy)}var a0=Wt._createTaskItem(We,ze?ia:Pt||ia);if(Ne?Wt._tasks.unshift(a0):Wt._tasks.push(a0),Jt||(Jt=!0,A(()=>{Jt=!1,Wt.process()})),ze||!Pt)return new Promise((Vf,Vy)=>{kr=Vf,Vn=Vy})}function sa(We){return function(Ne,...ze){Y-=1;for(var Pt=0,kr=We.length;Pt<kr;Pt++){var Vn=We[Pt],ia=W.indexOf(Vn);ia===0?W.shift():ia>0&&W.splice(ia,1),Vn.callback(Ne,...ze),Ne!=null&&kt("error",Ne,Vn.data)}Y<=Wt.concurrency-Wt.buffer&&kt("unsaturated"),Wt.idle()&&kt("drain"),Wt.process()}}function o0(We){return We.length===0&&Wt.idle()?(A(()=>kt("drain")),!0):!1}let Yf=We=>Ne=>{if(!Ne)return new Promise((ze,Pt)=>{se(We,(kr,Vn)=>{if(kr)return Pt(kr);ze(Vn)})});xe(We),$(We,Ne)};var Yy=!1,Wt={_tasks:new dc,_createTaskItem(We,Ne){return{data:We,callback:Ne}},*[Symbol.iterator](){yield*Wt._tasks[Symbol.iterator]()},concurrency:b,payload:N,buffer:b/4,started:!1,paused:!1,push(We,Ne){return Array.isArray(We)?o0(We)?void 0:We.map(ze=>Ut(ze,!1,!1,Ne)):Ut(We,!1,!1,Ne)},pushAsync(We,Ne){return Array.isArray(We)?o0(We)?void 0:We.map(ze=>Ut(ze,!1,!0,Ne)):Ut(We,!1,!0,Ne)},kill(){xe(),Wt._tasks.empty()},unshift(We,Ne){return Array.isArray(We)?o0(We)?void 0:We.map(ze=>Ut(ze,!0,!1,Ne)):Ut(We,!0,!1,Ne)},unshiftAsync(We,Ne){return Array.isArray(We)?o0(We)?void 0:We.map(ze=>Ut(ze,!0,!0,Ne)):Ut(We,!0,!0,Ne)},remove(We){Wt._tasks.remove(We)},process(){if(!Yy){for(Yy=!0;!Wt.paused&&Y<Wt.concurrency&&Wt._tasks.length;){var We=[],Ne=[],ze=Wt._tasks.length;Wt.payload&&(ze=Math.min(ze,Wt.payload));for(var Pt=0;Pt<ze;Pt++){var kr=Wt._tasks.shift();We.push(kr),W.push(kr),Ne.push(kr.data)}Y+=1,Wt._tasks.length===0&&kt("empty"),Y===Wt.concurrency&&kt("saturated");var Vn=ne(sa(We));M(Ne,Vn)}Yy=!1}},length(){return Wt._tasks.length},running(){return Y},workersList(){return W},idle(){return Wt._tasks.length+Y===0},pause(){Wt.paused=!0},resume(){Wt.paused!==!1&&(Wt.paused=!1,A(Wt.process))}};return Object.defineProperties(Wt,{saturated:{writable:!1,value:Yf("saturated")},unsaturated:{writable:!1,value:Yf("unsaturated")},empty:{writable:!1,value:Yf("empty")},drain:{writable:!1,value:Yf("drain")},error:{writable:!1,value:Yf("error")}}),Wt}function Ku(w,b){return aA(w,1,b)}function Xu(w,b,N){return aA(w,b,N)}function Bi(w,b,N,M){M=V(M);var Y=E(N);return ds(w,(W,K,$)=>{Y(b,W,(se,xe)=>{b=xe,$(se)})},W=>M(W,b))}var Ws=m(Bi,4);function Zu(...w){var b=w.map(E);return function(...N){var M=this,Y=N[N.length-1];return typeof Y=="function"?N.pop():Y=iA(),Ws(b,N,(W,K,$)=>{K.apply(M,W.concat((se,...xe)=>{$(se,xe)}))},(W,K)=>Y(W,...K)),Y[uc]}}function Pf(...w){return Zu(...w.reverse())}function Se(w,b,N,M){return y(de(b),w,N,M)}var q=m(Se,4);function x(w,b,N,M){var Y=E(N);return q(w,b,(W,K)=>{Y(W,($,...se)=>$?K($):K($,se))},(W,K)=>{for(var $=[],se=0;se<K.length;se++)K[se]&&($=$.concat(...K[se]));return M(W,$)})}var J=m(x,4);function X(w,b,N){return J(w,1/0,b,N)}var ee=m(X,3);function ue(w,b,N){retu Line truncated
GFS4: `),console.error(t)});Jr[bs]||($ke=global[bs]||[],tve(Jr,$ke),Jr.close=(function(t){function e(r,n){return t.call(Jr,r,function(s){s||eve(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,N_,{value:t}),e})(Jr.close),Jr.closeSync=(function(t){function e(r){t.apply(Jr,arguments),eve()}return Object.defineProperty(e,N_,{value:t}),e})(Jr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ym(Jr[bs]),Q("assert").equal(Jr[bs].length,0)}));var $ke;global[bs]||tve(global,Jr[bs]);zX.exports=JX(dLt(Jr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Jr.__patched&&(zX.exports=JX(Jr),Jr.__patched=!0);function JX(t){uLt(t),t.gracefulify=JX,t.createReadStream=F,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(k,j,Z){return typeof j=="function"&&(Z=j,j=null),ne(k,j,Z);function ne(ce,de,ke,ve){return e(ce,de,function(rt){rt&&(rt.code==="EMFILE"||rt.code==="ENFILE")?LI([ne,[ce,de,ke],rt,ve||Date.now(),Date.now()]):typeof ke=="function"&&ke.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return n(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?LI([ce,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return i(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?LI([ce,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=0),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return a(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?LI([ce,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,Z){typeof j=="function"&&(Z=j,j=null);var ne=u.test(process.version)?function(ke,ve,rt,_t){return A(ke,ce(ke,ve,rt,_t))}:function(ke,ve,rt,_t){return A(ke,ve,ce(ke,ve,rt,_t))};return ne(k,j,Z);function ce(de,ke,ve,rt){return function(_t,Dt){_t&&(_t.code==="EMFILE"||_t.code==="ENFILE")?LI([ne,[de,ke,ve],_t,rt||Date.now(),Date.now()]):(Dt&&Dt.sort&&Dt.sort(),typeof ve=="function"&&ve.call(this,_t,Dt))}}}if(process.version.substr(0,4)==="v0.8"){var d=lLt(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(k){m=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(k){y=k},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function m(k,j){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z),k.read())})}function y(k,j){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z))})}function F(k,j){return new t.ReadStream(k,j)}function V(k,j){return new t.WriteStream(k,j)}var L=t.open;t.open=P;function P(k,j,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),ce(k,j,Z,ne);function ce(de,ke,ve,rt,_t){return L(de,ke,ve,function(Dt,Cr){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?LI([ce,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}return t}function LI(t){ym("ENQUEUE",t[0].name,t[1]),Jr[bs].push(t),WX()}var S_;function eve(){for(var t=Date.now(),e=0;e<Jr[bs].length;++e)Jr[bs][e].length>2&&(Jr[bs][e][3]=t,Jr[bs][e][4]=t);WX()}function WX(){if(clearTimeout(S_),S_=void 0,Jr[bs].length!==0){var t=Jr[bs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)ym("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){ym("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?(ym("RETRY",e.name,r),e.apply(null,r.concat([s]))):Jr[bs].push(t)}S_===void 0&&(S_=setTimeout(WX,0))}}});var T_=C((Kxr,rve)=>{"use strict";var vu=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";vu.writable=t=>vu(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";vu.readable=t=>vu(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};FMe.exports={AggregateError:RZ,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 DZ=C((oDr,MMe)=>{"use strict";MMe.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 Gs=C((aDr,UMe)=>{"use strict";var{format:M3t,inspect:W_}=DZ(),{AggregateError:_3t}=Or(),L3t=globalThis.AggregateError||_3t,U3t=Symbol("kIsNodeError"),P3t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],O3t=/^([A-Z][a-z0-9]*)+$/,H3t="__node_internal_",z_={};function Qm(t,e){if(!t)throw new z_.ERR_INTERNAL_ASSERTION(e)}function _Me(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 G3t(t,e,r){if(typeof e=="function")return Qm(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 Qm(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:M3t(e,...r)}function ws(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(G3t(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[U3t]=!0,z_[t]=n}function LMe(t){let e=H3t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function q3t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new L3t([e,t],e.message);return r.code=e.code,r}return t||e}var kZ=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new z_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ws("ERR_ASSERTION","%s",Error);ws("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Qm(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)Qm(typeof c=="string","All expected entries have to be of type string"),P3t.includes(c)?s.push(c.toLowerCase()):O3t.test(c)?i.push(c):(Qm(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+=dte(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=dte(" "+s+"="+n[s]+`
`);return Yt.from(r)};Qy.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(Yt.toString(e.subarray(0,n)),10);if(!s)return r;let i=Yt.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};Qy.encode=function(e){let r=Yt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Yt.byteLength(n)!==n.length)return null;for(;Yt.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 Yt.byteLength(n)>100||Yt.byteLength(s)>155||e.linkname&&Yt.byteLength(e.linkname)>100?null:(Yt.write(r,n),Yt.write(r,kf(e.mode&i7t,6),100),Yt.write(r,kf(e.uid,6),108),Yt.write(r,kf(e.gid,6),116),d7t(e.size,r,124),Yt.write(r,kf(e.mtime.getTime()/1e3|0,11),136),r[156]=BU+u7t(e.type),e.linkname&&Yt.write(r,e.linkname,157),Yt.copy(g4e,r,tN),Yt.copy(r7t,r,hte),e.uname&&Yt.write(r,e.uname,265),e.gname&&Yt.write(r,e.gname,297),Yt.write(r,kf(e.devmajor||0,6),329),Yt.write(r,kf(e.devminor||0,6),337),s&&Yt.write(r,s,345),Yt.write(r,kf(m4e(r),6),148),r)};Qy.decode=function(e,r,n){let s=e[156]===0?0:e[156]-BU,i=by(e,0,100,r),o=Df(e,100,8),a=Df(e,108,8),c=Df(e,116,8),A=Df(e,124,12),u=Df(e,136,12),l=A7t(s),d=e[157]===0?null:by(e,157,100,r),h=by(e,265,32),f=by(e,297,32),g=Df(e,329,8),E=Df(e,337,8),m=m4e(e);if(m===256)return null;if(m!==Df(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(o7t(e))e[345]&&(i=by(e,345,155,r)+"/"+i);else if(!a7t(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:g,devminor:E,pax:null}};function o7t(t){return Yt.equals(g4e,t.subarray(tN,tN+6))}function a7t(t){return Yt.equals(n7t,t.subarray(tN,tN+6))&&Yt.equals(s7t,t.subarray(hte,hte+2))}function c7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function A7t(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 u7t(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 p4e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function m4e(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 kf(t,e){return t=t.toString(8),t.length>e?t7t.slice(0,e)+" ":e7t.slice(0,e-t.length)+t+" "}function l7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function d7t(t,e,r){t.toString(8).length>11?l7t(t,e,r):Yt.write(e,kf(t,11),r)}function h7t(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 Df(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return h7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=c7t(p4e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Yt.toString(t.subarray(e,n)),8)}}function by(t,e,r,n){return Yt.toString(t.subarray(e,p4e(t,0,e,e+r)),n)}function dte(t){let e=Yt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var B4e=C((_kr,y4e)=>{var{Writable:f7t,Readable:g7t,getStreamError:E4e}=lte(),p7t=jee(),C4e=Ey(),wy=fte(),m7t=C4e.alloc(0),E7t=4*1024*1024,pte=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new p7t,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 m7t;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 C4e.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)}},mte=class extends g7t{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(E4e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=I4e(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 Oue(t,e){if(process.env.GITHUB_OUTPUT||"")return Jy("OUTPUT",RN(t,e));process.stdout.write(M8.EOL),pc("set-output",{name:t},AA(e))}function Cg(t){process.exitCode=F8.Failure,Co(t)}function Nc(){return process.env.RUNNER_DEBUG==="1"}function G(t){pc("debug",{},t)}function Co(t,e={}){pc("error",NN(e),t instanceof Error?t.toString():t)}function je(t,e={}){pc("warning",NN(e),t instanceof Error?t.toString():t)}function L8(t,e={}){pc("notice",NN(e),t instanceof Error?t.toString():t)}function te(t){process.stdout.write(t+M8.EOL)}function Hue(t){XU("group",t)}function Gue(){XU("endgroup")}function _x(t,e){return oZe(this,void 0,void 0,function*(){Hue(t);let r;try{r=yield e()}finally{Gue()}return r})}function bA(t,e){if(process.env.GITHUB_STATE||"")return Jy("STATE",RN(t,e));pc("save-state",{name:t},AA(e))}function $B(t){return process.env[`STATE_${t}`]||""}import*as VK from"fs";import*as JK from"path";import*as d_ from"os";import{readFileSync as aZe,existsSync as cZe}from"fs";import{EOL as AZe}from"os";var iE=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(cZe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(aZe(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${AZe}`)}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 H8=Ee(Wue(),1),zue=Ee(Nx(),1),BZe=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 jue(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 Kue(t){return new H8.HttpClient().getAgent(t)}function bZe(t){return new H8.HttpClient().getAgentDispatcher(t)}function Xue(t){let e=bZe(t);return(n,s)=>BZe(this,void 0,void 0,function*(){return(0,zue.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Zue(){return process.env.GITHUB_API_URL||"https://api.github.com"}function G8(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 $d(){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 qx(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)=>qx.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 $ue(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 ele(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 tle=Function.bind,rle=tle.bind(tle);function nle(t,e,r){let n=rle(ele,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]=rle($ue,null). Line truncated
`+n.repeat(l));let E=f.val[f.index],m=o(f.val,String(f.index),E);if(j8(m))u.push("null"),f.first=!1,f.index++;else{let I=m!==null&&typeof m=="object",y=K8(m);if(I&&!y){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(eh(m)),f.first=!1,f.index++}}else g=!0;else{for(;f.index<f.keys.length;){let m=f.keys[f.index++];if(i&&!i.has(m))continue;let y=f.val[m],B=o(f.val,m,y);if(j8(B))continue;f.first||u.push(","),n?u.push(`
`+n.repeat(l)+eh(m)+": "):u.push(eh(m)+":");let F=B!==null&&typeof B=="object",V=K8(B);if(F&&!V){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:m,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(eh(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(g=!0)}g&&(l--,!f.first&&n&&u.push(`
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},ble=(t,e,r)=>{try{return"rawJSON"in JSON?eh(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?eh(t,(a,c)=>typeof c=="string"&&Vx.test(c)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(Ele,"$1$2$3").replace(Cle,"$1$2$3"):eh(t,e,r)}catch(n){if(n instanceof RangeError){let s=VZe(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(Ele,"$1$2$3").replace(Cle,"$1$2$3")}throw n}},Yx=new Map,JZe=()=>{let t=JSON.parse.toString();if(Yx.has(t))return Yx.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return Yx.set(t,e),e}catch{return Yx.set(t,!1),!1}},WZe=(t,e,r,n)=>typeof e=="string"&&Ble.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&Vx.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,zZe=(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&&YZe.test(s.source);return a&&c?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),Qle=Number.MAX_SAFE_INTEGER.toString(),Ile=Qle.length,jZe=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,KZe=/^"-?\d+n+"$/,XZe=(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"&&(Ble.test(a)?a=BigInt(a.slice(0,-1)):Vx.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[""]},yle=t=>t.replace(jZe,(e,r,n,s)=>{let i=e[0]==='"';if(i&&KZe.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,c=r&&(r.length<Ile||r.length===Ile&&r<=Qle);return i||a||c?e:'"'+e+'n"'}),wle=(t,e)=>{if(!t)return z8(t,e);try{if(JZe())return zZe(t,e);let r=yle(t);return z8(r,(n,s,i)=>WZe(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=yle(t),s=z8(n);return XZe(s,e)}throw r}};var ml=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 ZZe="10.0.16",$Ze={headers:{"user-agent":`octokit-request.js/${ZZe} ${$d()}`}};function e$e(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 Sle=()=>"";async function Nle(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=e$e(t.body)||Array.isArray(t.body)?ble(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 ml(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 ml(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await X8(o),new ml("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await X8(o),new ml(r$e(u.data),a,{response:u,request:t});return u.data=n?await X8(o):o.body,u}async function X8(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Sle);let r=fle(e);if(t$e(r)){let n="";try{return n=await t.text(),wle(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 OKe=class extends Error{constructor(t,e,r){super(PKe(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},HKe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],GKe=["query","method","url"],lAe=/\/api\/v3\/?$/;function qKe(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(GKe.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)=>HKe.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 lAe.test(i)&&(s.url=i.replace(lAe,"/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 OKe(s,a,o.data)}return o.data.data})}function zO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>qKe(r,s,i),{defaults:zO.bind(null,r),endpoint:r.endpoint})}var hzt=zO(Sy,{headers:{"user-agent":`octokit-graphql.js/${UKe} ${$l()}`},method:"POST",url:"/graphql"});function dAe(t){return zO(t,{method:"POST",url:"/graphql"})}var jO="(?:[a-zA-Z0-9_-]+)",hAe="\\.",fAe=new RegExp(`^${jO}${hAe}${jO}${hAe}${jO}$`),YKe=fAe.test.bind(fAe);async function VKe(t){let e=YKe(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 WKe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function JKe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=WKe(t),e(s)}var gAe=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(VKe.bind(null,e),{hook:JKe.bind(null,e)})};var KO="7.0.6";var pAe=()=>{},zKe=console.warn.bind(console),jKe=console.error.bind(console);function KKe(t={}){return typeof t.debug!="function"&&(t.debug=pAe),typeof t.info!="function"&&(t.info=pAe),typeof t.warn!="function"&&(t.warn=zKe),typeof t.error!="function"&&(t.error=jKe),t}var mAe=`octokit-core.js/${KO} ${$l()}`,uT=class{static VERSION=KO;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 Hce.Collection,n={baseUrl:Sy.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} ${mAe}`:mAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Sy.defaults(n),this.graphql=dAe(this.request).defaults(n),this.log=KKe(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=gAe(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 $O="17.0.0";var $Ke={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 i$e=class extends Error{constructor(t,e,r){super(s$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)}request;headers;response;name="GraphqlResponseError";errors;data},o$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],a$e=["query","method","url"],Tle=/\/api\/v3\/?$/;function c$e(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(a$e.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)=>o$e.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 Tle.test(i)&&(s.url=i.replace(Tle,"/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 i$e(s,a,o.data)}return o.data.data})}function $8(t,e){let r=t.defaults(e);return Object.assign((s,i)=>c$e(r,s,i),{defaults:$8.bind(null,r),endpoint:r.endpoint})}var $Xt=$8(rb,{headers:{"user-agent":`octokit-graphql.js/${n$e} ${$d()}`},method:"POST",url:"/graphql"});function xle(t){return $8(t,{method:"POST",url:"/graphql"})}var e4="(?:[a-zA-Z0-9_-]+)",Rle="\\.",Dle=new RegExp(`^${e4}${Rle}${e4}${Rle}${e4}$`),A$e=Dle.test.bind(Dle);async function u$e(t){let e=A$e(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 l$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function d$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=l$e(t),e(s)}var kle=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(u$e.bind(null,e),{hook:d$e.bind(null,e)})};var t4="7.0.8";var vle=()=>{},h$e=console.warn.bind(console),f$e=console.error.bind(console);function g$e(t={}){return typeof t.debug!="function"&&(t.debug=vle),typeof t.info!="function"&&(t.info=vle),typeof t.warn!="function"&&(t.warn=h$e),typeof t.error!="function"&&(t.error=f$e),t}var Fle=`octokit-core.js/${t4} ${$d()}`,Jx=class{static VERSION=t4;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 sle.Collection,n={baseUrl:rb.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} ${Fle}`:Fle,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=rb.defaults(n),this.graphql=xle(this.request).defaults(n),this.log=g$e(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=kle(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 r4="17.0.0";var p$e={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 Dy(i));return n.searchPaths.push(...i3(n.patterns)),n})}static stat(e,r,n){return u3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Gm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Gm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Gm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var D$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 zAe(t,e){return D$e(this,void 0,void 0,function*(){return yield pT.create(t,e)})}var Ole=fe(Uy(),1);import*as kT from"crypto";import*as Wm from"fs";import*as yf from"path";import*as Hle from"util";var Py;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Py||(Py={}));var Rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Rs||(Rs={}));var Hi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hi||(Hi={}));var RT=2,DT=5e3,D3=5e3,k3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Ple=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Oy="cache.tar",v3="manifest.txt",iKt=10*Math.pow(1024,3);var Vm=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())})},Het=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)}},Get="1.0";function Hy(){return Vm(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=yf.join(n,"actions","temp")}let r=yf.join(e,kT.randomUUID());return yield lf(r),r})}function Uc(t){return Wm.statSync(t).size}function _3(t){return Vm(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 zAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Het(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=yf.relative(a,s).replace(new RegExp(`\\${yf.sep}`,"g"),"/");H(`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 Gy(t){return Vm(this,void 0,void 0,function*(){return Hle.promisify(Wm.unlink)(t)})}function Gle(t){return Vm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Fc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){H(s.message)}return n=n.trim(),H(n),n})}function qy(){return Vm(this,void 0,void 0,function*(){let t=yield Gle("zstd",["--quiet"]),e=Ole.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function rd(t){return t===Rs.Gzip?Py.Gzip:Py.Zstd}function qle(){return Vm(this,void 0,void 0,function*(){return Wm.existsSync(k3)?k3:(yield Gle("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function F3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Jm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Get),kT.createHash("sha256").update(n.join("|")).digest("hex")}function Yle(){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 b0 from"fs";import{URL as wct}from"url";var Pc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as qet}from"node:os";import Yet from"node:util";import Vet from"node:process";function Vle(t,...e){Vet.stderr.write(`${Yet.format(t,...e)}${qet}`)}import Yy from"node:process";function _T(t){return Yy.env[t]}var Wle=typeof Yy.versions.deno=="string"&&Yy.versions.deno.length>0,Jle=typeof Yy.versions.bun=="string"&&Yy.versions.bun.length>0,FT=!0;var zle=_T("DEBUG"),Kle,M3=[],L3=[],MT=[];zle&&U3(zle);var $le=Object.assign(t=>Xle(t),{enable:U3,enabled:P3,disable:Wet,log:Vle});function U3(t){Kle=t,M3=[],L3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?L3.push(r.substring(1)):M3.push(r);for(let r of MT)r.enabled=P3(r.namespace)}function P3(t){if(t.endsWith("*"))return!0;for(let e of L3)if(jle(t,e))return!1;for(let e of M3)if(jle(t,e))return!0;return!1}function jle(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 Wet(){let t=Kle||"";return U3(""),t}function Xle(t){let e=Object.assign(r,{enabled:P3(t),destroy:Jet,log:$le.log,namespace:t,extend:zet});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return MT.push(e),e}function Jet(){let t=MT.indexOf(this);return t>=0?(MT.splice(t,1),!0):!1}function zet(t){let e=Xle(`${this.namespace}:${t}`);return e.log=this.log,e}var zm=$le;var O3=["verbose","info","warning","error"],Zle={verbose:400,info:300,warning:200,error:100};function ede(t,e){e.log=(...r)=>{t.log(...r)}}function tde(t){return O3.includes(t)}function LT(t){let e=new Set,r=_T(t.logLevelEnvVarName),n,s=zm(t.namespace);s.log=(...u)=>{zm.log(...u)};function i(u){if(u&&!tde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${O3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);zm.enable(l.join(","))}r&&(tde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${O3.join(", ")}.`));function o(u){return!!(n&&Zle[u.level]<=Zle[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(ede(u,d),o(d)){let h=zm.disable();zm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return ede(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 rde=LT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),jet=rde.logger;function Vy(t){return rde.createClientLogger(t)}function UT(t){return t.toLowerCase()}function Ket(t){return String(t).trim().replace(/[\r\n]/g,"")}function*$et(t){for(let e of t.values())yield[e.name,e.value]}var H3=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(UT(e),{name:e,value:Ket(r)})}get(e){return this._headersMap.get(UT(e))?.value}has(e){return this._ Line truncated
${ttt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function jm(t){return t instanceof Ds?!0:bf(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import V3 from"node:http";import W3 from"node:https";import ide from"node:zlib";import{Transform as rtt}from"node:stream";var si=Vy("ts-http-runtime");var ntt={};function Wy(t){return t&&typeof t.pipe=="function"}function ode(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 ade(t){return t&&typeof t.byteLength=="number"}var HT=class extends rtt{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}},J3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Pc("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;si.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=att(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new HT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Wy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=stt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?itt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new HT(h);f.on("error",p=>{si.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ott(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Wy(a)&&(A=ode(a));let u=Promise.resolve();Wy(c)&&(u=ode(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{si.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?V3.request(a,c):W3.request(a,c);u.once("error",l=>{A(new Ds(l.message,{code:l.code??Ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Pc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Wy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):ade(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(si.error("Unrecognized body type",n),A(new Ds("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return W3.globalAgent;let s=e.tlsSettings??ntt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new W3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function stt(t){let e=Gi();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 itt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ide.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ide.createInflate();return t.pipe(n),n}return t}function ott(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 Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function att(t){return t?Buffer.isBuffer(t)?t.length:Wy(t)?null:ade(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function cde(){return new J3}function GT(){return cde()}var z3="logPolicy";function qT(t={}){let e=t.logger??si.info,r=new qa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:z3,asy Line truncated
`;return e}function Trt(t){return t instanceof Uint8Array?t.byteLength:jy(t)?t.size===-1?void 0:t.size:void 0}function xrt(t){let e=0;for(let r of t){let n=Trt(r);if(n===void 0)return;e+=n}return e}async function Rrt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(Nrt(i.headers),"utf-8"),ni(`\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new cb(i));return n.searchPaths.push(...u4(n.patterns)),n})}static stat(e,r,n){return p4(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield uE.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 uE.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield uE.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})}};var Z$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 dde(t,e){return Z$e(this,void 0,void 0,function*(){return yield Xx.create(t,e)})}var sfe=Ee(lR(),1);import*as gR from"crypto";import*as fE from"fs";import*as Ng from"path";import*as ife from"util";var gb;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(gb||(gb={}));var ti;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ti||(ti={}));var yo;(function(t){t.GNU="gnu",t.BSD="bsd"})(yo||(yo={}));var dR=2,hR=5e3,L4=5e3,U4=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,nfe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,pb="cache.tar",P4="manifest.txt",W$t=10*Math.pow(1024,3),fR="cache read denied:";var hE=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())})},Ant=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)}},unt="1.0";function mb(){return hE(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=Ng.join(n,"actions","temp")}let r=Ng.join(e,gR.randomUUID());return yield Eg(r),r})}function wA(t){return fE.statSync(t).size}function O4(t){return hE(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 dde(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Ant(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Ng.relative(a,s).replace(new RegExp(`\\${Ng.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 Eb(t){return hE(this,void 0,void 0,function*(){return ife.promisify(fE.unlink)(t)})}function ofe(t){return hE(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield BA(`${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 Cb(){return hE(this,void 0,void 0,function*(){let t=yield ofe("zstd",["--quiet"]),e=sfe.clean(t);return G(`zstd version: ${e}`),t===""?ti.Gzip:ti.ZstdWithoutLong})}function ih(t){return t===ti.Gzip?gb.Gzip:gb.Zstd}function afe(){return hE(this,void 0,void 0,function*(){return fE.existsSync(U4)?U4:(yield ofe("tar")).toLowerCase().includes("gnu tar")?Eo("tar"):""})}function H4(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function gE(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(unt),gR.createHash("sha256").update(n.join("|")).digest("hex")}function cfe(){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 XE from"fs";import{URL as Ilt}from"url";var SA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as lnt}from"node:os";import dnt from"node:util";import hnt from"node:process";function Afe(t,...e){hnt.stderr.write(`${dnt.format(t,...e)}${lnt}`)}import Ib from"node:process";function mR(t){return Ib.env[t]}var ufe=typeof Ib.versions.deno=="string"&&Ib.versions.deno.length>0,lfe=typeof Ib.versions.bun=="string"&&Ib.versions.bun.length>0,ER=!0;var dfe=mR("DEBUG"),ffe,G4=[],q4=[],CR=[];dfe&&Y4(dfe);var gfe=Object.assign(t=>pfe(t),{enable:Y4,enabled:V4,disable:fnt,log:Afe});function Y4(t){ffe=t,G4=[],q4=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?q4.push(r.substring(1)):G4.push(r);for(let r of CR)r.enabled=V4(r.namespace)}function V4(t){if(t.endsWith("*"))return!0;for(let e of q4)if(hfe(t,e))return!1;for(let e of G4)if(hfe(t,e))return!0;return!1}function hfe(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 fnt(){let t=ffe||"";return Y4(""),t}function pfe(t){let e=Object.assign(r,{enabled:V4(t),destroy:gnt,log:gfe.log,namespace:t,extend:pnt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return CR.push(e),e}function gnt(){let t=CR.indexOf(this);return t>=0?(CR.splice(t,1),!0):!1}function pnt(t){let e=pfe(`${this.namespace}:${t}`);return e.log=this.log,e}var pE=gfe;var J4=["verbose","info","warning","error"],mfe={verbose:400,info:300,warning:200,error:100};function Efe(t,e){e.log=(...r)=>{t.log(...r)}}function Cfe(t){return J4.includes(t)}function IR(t){let e=new Set,r=mR(t.logLevelEnvVarName),n,s=pE(t.namespace);s.log=(...u)=>{pE.log(...u)};function i(u){if(u&&!Cfe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${J4.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);pE.enable(l.join(","))}r&&(Cfe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${J4.join(", ")}.`));function o(u){return!!(n&&mfe[u.level]<=mfe[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Efe(u,d),o(d)){let h=pE.disable();pE.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Efe(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 Ife=IR({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),mnt=Ife.logger;function yb(t){return Ife.createClientLogger(t)}function yR(t){return t.toLowerCase()}function Ent(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Cnt(t){for(let e of t.values())yield[e.name,e.value]}var W4=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(yR(e),{name:e,value:Ent(r)})}get(e){return this._headersMap.get(yR(e))?.value}has(e){return this._ Line truncated
${bnt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function mE(t){return t instanceof ri?!0:xg(t)&&t.name==="RestError"}function Bb(t,e){return Buffer.from(t).toString(e)}function ni(t,e){return Buffer.from(t,e)}import X4 from"node:http";import Z4 from"node:https";import bfe from"node:zlib";import{Transform as Qnt}from"node:stream";var Di=yb("ts-http-runtime");var wnt={};function bb(t){return t&&typeof t.pipe=="function"}function Qfe(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 wfe(t){return t&&typeof t.byteLength=="number"}var QR=class extends Qnt{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}},$4=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new SA("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 Dc;Di.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=xnt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new QR(f);g.on("error",E=>{Di.error("Error in upload progress",E)}),bb(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a),u=Snt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Nnt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new QR(h);f.on("error",g=>{Di.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 Tnt(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();bb(a)&&(A=Qfe(a));let u=Promise.resolve();bb(c)&&(u=Qfe(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Di.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?X4.request(a,c):Z4.request(a,c);u.once("error",l=>{A(new ri(l.message,{code:l.code??ri.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new SA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&bb(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):wfe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(Di.error("Unrecognized body type",n),A(new ri("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?X4.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new X4.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Z4.globalAgent;let s=e.tlsSettings??wnt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Di.info("No cached TLS Agent exist, creating a new Agent"),i=new Z4.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Snt(t){let e=Bo();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 Nnt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=bfe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=bfe.createInflate();return t.pipe(n),n}return t}function Tnt(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 ri(`Error reading response as text: ${s.message}`,{code:ri.PARSE_ERROR}))})})}function xnt(t){return t?Buffer.isBuffer(t)?t.length:bb(t)?null:wfe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Sfe(){return new $4}function wR(){return Sfe()}var e6="logPolicy";function SR(t={}){let e=t.logger??Di.info,r=new Dc({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi Line truncated
`;return e}function Kst(t){return t instanceof Uint8Array?t.byteLength:wb(t)?t.size===-1?void 0:t.size:void 0}function Xst(t){let e=0;for(let r of t){let n=Kst(r);if(n===void 0)return;e+=n}return e}async function Zst(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(jst(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
\r
`,"utf-8")],s=xrt(n);s&&t.headers.set("Content-Length",s),t.body=await ehe(n)}var Ky="multipartPolicy",Drt=70,krt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function vrt(t){if(t.length>Drt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!krt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function lx(){return{name:Ky,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?vrt(r):r=Srt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Rrt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function dx(){return OT()}var the=LT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),aer=the.logger;function Mo(t){return the.createClientLogger(t)}var Hc=Mo("core-rest-pipeline");function d8(t={}){return qT({logger:Hc.info,...t})}var h8=Ax;function f8(t={}){return ux(t)}import g8 from"node:os";import id from"node:process";function rhe(){return"User-Agent"}async function nhe(t){if(id&&id.versions){let e=`${g8.type()} ${g8.release()}; ${g8.arch()}`;id.versions.bun?t.set("Bun",`${id.versions.bun} (${e})`):id.versions.deno?t.set("Deno",`${id.versions.deno} (${e})`):id.versions.node&&t.set("Node",`${id.versions.node} (${e})`)}}var hx="1.24.0";function Hrt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function she(){return rhe()}async function fx(t){let e=new Map;e.set("core-rest-pipeline",hx),await nhe(e);let r=Hrt(e);return t?`${t} ${r}`:r}var ihe=she(),ohe="userAgentPolicy";function p8(t={}){let e=fx(t.userAgentPrefix);return{name:ohe,async sendRequest(r,n){return r.headers.has(ihe)||r.headers.set(ihe,await e),n(r)}}}var ahe=Symbol("rawContent");function m8(t){return typeof t[ahe]=="function"}function che(t){return m8(t)?t[ahe]():t}var gx=Ky;function E8(){let t=lx();return{name:gx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)m8(n.body)&&(n.body=che(n.body));return t.sendRequest(e,r)}}}var C8=ax;function I8(){return cx()}function y8(t={}){return WT(t)}function B8(){return JT()}var $y=class extends Error{constructor(e){super(e),this.name="AbortError"}};function b8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new $y(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 Krt="The delay was aborted.";function t0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return b8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Krt})}function od(t){if(bf(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 Ahe(t){return bf(t)}function r0(){return Bf()}var Wt=FT;function ad(t){return c8(t)}function w8(t,e){return ox(t,e)}var uhe="setClientRequestIdPolicy";function S8(t="x-ms-client-request-id"){return{name:uhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function N8(t){return zT(t)}function T8(t){return jT(t)}var n0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function lhe(t={}){let e=new x8(t.parentContext);return t.span&&(e=e.setValue(n0.span,t.span)),t.namespace&&(e=e.setValue(n0.namespace,t.namespace)),e}var x8=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 hhe=fe(dhe(),1),mx=hhe.state;function $rt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Xrt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:$rt(),tracingContext:lhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Xy(){return mx.instrumenterImplementation||(mx.instrumenterImplementation=Xrt()),mx.instrumenterImplementation}function Zy(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Xy().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--),!Ist(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Zr("InvalidTag",l,ks(t,i))}let A=gst(t,i);if(A===!1)return Zr("InvalidAttr","Attributes for '"+c+"' have open quote.",ks(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=zhe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,ks(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ks(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+c+"' has not been opened.",ks(t,o));{let l=r.pop();if(c!==l.tagName){let d=ks(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",ks(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ks(t,i));else{let l=zhe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,ks(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",ks(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=Jhe(t,i);continue}else if(t[i+1]==="?"){if(i=Whe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Est(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!Vhe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(Vhe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",ks(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ks(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Vhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Whe(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 Zr("InvalidXml","XML declaration allowed only at the start of the document.",ks(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Jhe(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 hst='"',fst="'";function gst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===hst||t[e]===fst)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 pst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function zhe(t,e){let r=Sx(t,pst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("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 Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",AB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",AB(r[s]));let i=r[s][2];if(!Cst(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",AB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",AB(r[s]))}return!0}function mst(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 Est(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,mst(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 Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Cst(t){return J8(t)}function Ist(t){return J8(t)}function ks(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 jhe={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"},Khe={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"},$he={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 ci("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new dB(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=A0(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=t4(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=r4(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 ci(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=A0(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=A0(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=r4(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=t4(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 I=r;I&&s.unpairedTagsSet.has(I.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 C=null,y={},N;N=Wst(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=Vst(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.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,O=P.tagContent}let k=new ci(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=t4(s.transformTagName,l,h,s));let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ci(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function Xst(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 Zst(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 eit(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 tit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function rit(t,e,r=">"){Line truncated
`;function uit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(c4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function bfe(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function a4(t,e){let r="";e.format&&(r=Ait);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 Wi(a)):a instanceof Wi&&n.push(a)}let s=uit(t,e),i=new Yc;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=o4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=c4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:bfe(u,!1,e,n,i),h=lit(A[":@"],e);n.push(d,h);let f=hit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=o4(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],N=Lx(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Mx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Bfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=Bfe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=wfe(A[u],e):C=Qfe(A[u],e,p,n,s,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,n.pop()}return o}function lit(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]=ud(t[s]),n=!0}return n?r:null}function wfe(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=c4(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=dit(s[":@"],e),a=wfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function dit(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)}="${ud(s)}"`}return r}function c4(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 Bfe(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:bfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=o4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${ud(A)}"`}return i}function hit(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 o4(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 A4(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 fit={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 ui(t){if(this.options=Object.assign({},fit,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 Wi(r)):r instanceof Wi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=Xst(n);s&&t.headers.set("Content-Length",s),t.body=await Ege(n)}var Sb="multipartPolicy",$st=70,eit=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function tit(t){if(t.length>$st)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!eit.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function jR(){return{name:Sb,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?tit(r):r=zst(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Zst(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function KR(){return bR()}var Cge=IR({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),jnr=Cge.logger;function Ia(t){return Cge.createClientLogger(t)}var TA=Ia("core-rest-pipeline");function m6(t={}){return SR({logger:TA.info,...t})}var E6=WR;function C6(t={}){return zR(t)}import I6 from"node:os";import ch from"node:process";function Ige(){return"User-Agent"}async function yge(t){if(ch&&ch.versions){let e=`${I6.type()} ${I6.release()}; ${I6.arch()}`;ch.versions.bun?t.set("Bun",`${ch.versions.bun} (${e})`):ch.versions.deno?t.set("Deno",`${ch.versions.deno} (${e})`):ch.versions.node&&t.set("Node",`${ch.versions.node} (${e})`)}}var XR="1.25.0";function Ait(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Bge(){return Ige()}async function ZR(t){let e=new Map;e.set("core-rest-pipeline",XR),await yge(e);let r=Ait(e);return t?`${t} ${r}`:r}var bge=Bge(),Qge="userAgentPolicy";function y6(t={}){let e=ZR(t.userAgentPrefix);return{name:Qge,async sendRequest(r,n){return r.headers.has(bge)||r.headers.set(bge,await e),n(r)}}}var wge=Symbol("rawContent");function B6(t){return typeof t[wge]=="function"}function Sge(t){return B6(t)?t[wge]():t}var $R=Sb;function b6(){let t=jR();return{name:$R,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)B6(n.body)&&(n.body=Sge(n.body));return t.sendRequest(e,r)}}}var Q6=VR;function w6(){return JR()}function S6(t={}){return RR(t)}function N6(){return DR()}var Es=class extends Error{constructor(e){super(e),this.name="AbortError"}};function T6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Es(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 Eit="The delay was aborted.";function bE(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return T6(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Eit})}function Ah(t){if(xg(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 Nge(t){return xg(t)}function QE(){return Tg()}var Qr=ER;function R6(t,e){return Bb(t,e)}function D6(t,e){return ni(t,e)}function uh(t){return f6(t)}function k6(t,e){return YR(t,e)}var Tge="setClientRequestIdPolicy";function v6(t="x-ms-client-request-id"){return{name:Tge,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function F6(t){return kR(t)}function M6(t){return vR(t)}var wE={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function xge(t={}){let e=new _6(t.parentContext);return t.span&&(e=e.setValue(wE.span,t.span)),t.namespace&&(e=e.setValue(wE.namespace,t.namespace)),e}var _6=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 Dge=Ee(Rge(),1),tD=Dge.state;function Cit(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Iit(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Cit(),tracingContext:xge({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Nb(){return tD.instrumenterImplementation||(tD.instrumenterImplementation=Iit()),tD.instrumenterImplementation}function Tb(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Nb().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext 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--),!qot(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",hn("InvalidTag",l,si(t,i))}let A=Uot(t,i);if(A===!1)return hn("InvalidAttr","Attributes for '"+c+"' have open quote.",si(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=dpe(u,e);if(d===!0)n=!0;else return hn(d.err.code,d.err.msg,si(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return hn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",si(t,o));if(r.length===0)return hn("InvalidTag","Closing tag '"+c+"' has not been opened.",si(t,o));{let l=r.pop();if(c!==l.tagName){let d=si(t,l.tagStartPos);return hn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",si(t,o))}r.length==0&&(s=!0)}}else return hn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",si(t,i));else{let l=dpe(u,e);if(l!==!0)return hn(l.err.code,l.err.msg,si(t,i-u.length+l.err.line));if(s===!0)return hn("InvalidXml","Multiple possible root nodes found.",si(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=lpe(t,i);continue}else if(t[i+1]==="?"){if(i=upe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Hot(t,i);if(l==-1)return hn("InvalidChar","char '&' is not expected.",si(t,i));i=l}else if(s===!0&&!TE(t[i]))return hn("InvalidXml","Extra text at the end",si(t,i));t[i]==="<"&&i--}}else{if(TE(t[i]))continue;return hn("InvalidChar","char '"+t[i]+"' is not expected.",si(t,i))}if(n){if(r.length==1)return hn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",si(t,r[0].tagStartPos));if(r.length>0)return hn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return hn("InvalidXml","Start tag expected.",1);return!0}function TE(t){return t===" "||t===" "||t===`
`||t==="\r"}function upe(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 hn("InvalidXml","XML declaration allowed only at the start of the document.",si(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function lpe(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 _ot='"',Lot="'";function Uot(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===_ot||t[e]===Lot)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 Pot(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&TE(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&&!TE(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&TE(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&TE(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,g=t.indexOf(t[d],f);g!==-1&&(u=t[d],l=t.slice(f,g),n=g+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 dpe(t,e){let r=Pot(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return hn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Pb(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return hn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Pb(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return hn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Pb(r[s]));let i=r[s][2];if(!Got(i))return hn("InvalidAttr","Attribute '"+i+"' is an invalid name.",Pb(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return hn("InvalidAttr","Attribute '"+i+"' is repeated.",Pb(r[s]))}return!0}function Oot(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 Hot(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Oot(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 hn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Got(t){return eH(t)}function qot(t){return eH(t)}function si(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Pb(t){return t.startIndex+t[1].length}var tH={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 Ob={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},rH={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 xE=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Yot=new Set("!?\\\\/[]$%{}^&*()<>|+");function hpe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Yot.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Hb(...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 Mg="external",lD="base",nH="all";function Vot(t){return!t||t===Mg?new Set([Mg]):t===nH?new Set([nH]):t===lD?new Set([lD]):Array.isArray(t)?new Set(t):new Set([Mg])}var Fi=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Jot=new Set([9,10,13]);function Wot(t){if(!t)return{xmlVersion:1,onLevel:Fi.allow,nullLevel:Fi.remove};let e=t.xmlVersion===1.1?1.1:1,r=Fi[t.onNCR]??Fi.allow,n=Fi[t.nullNCR]??Fi.remove,s=Math.max(n,Fi.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var RE=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=Vot(this._limit.applyLimitsTo??Mg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Hb(Ob,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 Mi("!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 qb(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=ME(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=pH(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=mH(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 Mi(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=ME(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=ME(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=mH(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}=pH(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=xat(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=Tat(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=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 L=new Mi(l);I&&(L[":@"]=I),L.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(a+1)}else{if(m){({tagName:l,tagExp:h}=pH(s.transformTagName,l,h,s));let V=new Mi(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(g+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new Mi(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new Mi(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,F),r=V}n="",a=g}}}else n+=t[a];return e.child};function Mat(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 _at(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 Lat(t,e,Line truncated
`;function Wat(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(bH(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function kpe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function BH(t,e){let r="";e.format&&(r=Jat);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 So(c)):c instanceof So&&n.push(c)}let s=Wat(t,e),i=dD("qName",{xmlVersion:s}),o=new DA;return vpe(t,e,r,o,n,i)}function vpe(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=Cs(t);return c=yH(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=bH(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:kpe(u,!1,e,n,i),h=zat(A[":@"],e);n.push(d,h);let f=Kat(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=yH(y,e)),y=Cs(y),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=mD(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Jb(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Dpe(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=Dpe(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Fpe(A[u],e):I=vpe(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 zat(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]=kA(t[s]),n=!0}return n?r:null}function Fpe(t,e){if(!Array.isArray(t))return t!=null?Cs(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=bH(s);if(i===e.textNodeName)r+=Cs(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=jat(s[":@"],e),a=Fpe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function jat(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)}="${kA(s)}"`}return r}function bH(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 Dpe(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:kpe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=yH(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${kA(A)}"`}return i}function Kat(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 yH(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 QH(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 Xat={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({},Xat,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 So(r)):r instanceof So&&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 git(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 u4(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return a4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Yc,r=git(t,this.options);return this.j2x(t,0,e,r).val}};ui.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:u4(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=u4(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 p=t[c][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,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);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,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=u4(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}};ui.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+'="'+ud(e)+'"'};function pit(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)}ui.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]=ud(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]=ud(t[n]),r=!0)}return r?e:null};ui.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 Zat(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 wH(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Li.prototype.build=function(t){if(this.options.preserveOrder)return BH(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new DA,r=Zat(t,this.options),n=dD("qName",{xmlVersion:r});return this.j2x(t,0,e,n).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:wH(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=wH(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,Cs(t[c]),a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,Cs(t[c]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=Cs(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),E=Cs(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=Cs(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=wH(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,Cs(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,Cs(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+kA(e)+'"'};function $at(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]=kA(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]=kA(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.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>zx(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=Vx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Wx(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 vf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new mB(e,r,this)}computeHMACSHA256(e){return Tit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var _f=class extends Error{constructor(e){super(e),this.name="AbortError"}};var mn=Mo("storage-common");var Lo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Lo||(Lo={}));var dd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},xit=new _f("The operation was aborted."),EB=class extends Vc{retryOptions;constructor(e,r,n=dd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:dd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):dd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:dd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:dd.maxRetryDelayInMs):dd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:dd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:dd.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=Yx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=ld(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(mn.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(mn.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 mn.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 mn.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 mn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return mn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.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')?(mn.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 Lo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return mn.info(`RetryPolicy: Delay for ${s}ms`),Jx(s,n,xit)}};var CB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new EB(e,r,this.retryOptions)}};var Rit="storageBrowserPolicy";function Rfe(){return{name:Rit,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=ld(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var Dit="StorageCorrectContentLengthPolicy";function Dfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Dit,async sendRequest(e,r){return t(e),r(e)}}}var kit="storageRetryPolicy",l0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},vit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],_it=new _f("The operation was aborted.");function kfe(t={}){let e=t.retryPolicyType??l0.retryPolicyType,r=t.maxTries??l0.maxTries,n=t.retryDelayInMs??l0.retryDelayInMs,s=t.maxRetryDelayInMs??l0.maxRetryDelayInMs,i=t.secondaryHost??l0.secondaryHost,o=t.tryTimeoutInMs??l0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return mn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of vit)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(dt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===dt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(dt.PREFIX_FOR_STORAGE));r.sort((s,i)=>DD(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=TD(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=xD(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 Xr=class extends Pg{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new $b(e,r,this)}computeHMACSHA256(e){return Cct("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var vn=Ia("storage-common");var ya;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ya||(ya={}));var fh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ya.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Ict=new Es("The operation was aborted."),eQ=class extends vA{retryOptions;constructor(e,r,n=fh){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:fh.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):fh.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:fh.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:fh.maxRetryDelayInMs):fh.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:fh.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:fh.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=ND(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=SD(s.url,Zb.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(vn.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(vn.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 vn.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 vn.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 vn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return vn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(dt.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')?(vn.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 ya.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ya.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return vn.info(`RetryPolicy: Delay for ${s}ms`),RD(s,n,Ict)}};var tQ=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new eQ(e,r,this.retryOptions)}};var yct="storageBrowserPolicy";function Wpe(){return{name:yct,async sendRequest(t,e){return e(t)}}}var Bct="StorageCorrectContentLengthPolicy";function zpe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(dt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Bct,async sendRequest(e,r){return t(e),r(e)}}}var bct="storageRetryPolicy",UE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ya.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Qct=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],wct=new Es("The operation was aborted.");function jpe(t={}){let e=t.retryPolicyType??UE.retryPolicyType,r=t.maxTries??UE.maxTries,n=t.retryDelayInMs??UE.retryDelayInMs,s=t.maxRetryDelayInMs??UE.maxRetryDelayInMs,i=t.secondaryHost??UE.secondaryHost,o=t.tryTimeoutInMs??UE.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return vn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Qct)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return vn.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return vn.info("RetryPolicy: Incomplete XML response likely Line truncated
`)+`
`+n(i)+s(i),a=Fit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>zx(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=Vx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Wx(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:Mit,async sendRequest(i,o){return e(i),o(i)}}}var Lit="storageRequestFailureDetailsParserPolicy";function vfe(){return{name:Lit,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 Uit}from"node:crypto";var jx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Uit("sha256",this.key).update(e,"utf8").digest("base64")}};var Kx="12.31.0",$x="2026-02-06";var Xx="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ya="",p4="*",Pit=1*1024*1024;var Oit=4*Pit;var _fe="AES256",Ffe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Mfe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Lfe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Ufe="BlobUsesCustomerSpecifiedEncryption",Pfe="BlobDoesNotUseCustomerSpecifiedEncryption",Ofe=["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 IB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new IB([],e);return r._credential=t,r}function Hit(t){let e=[Git,Hfe,qit,Yit,Vit,Wit,zit];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Jit(s));return{wrappedPolicies:V8(r),afterRetry:n}}}}function m4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?W8(e):f4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Kx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=rB({...r,loggingOptions:{additionalAllowedHeaderNames:Mfe,additionalAllowedQueryParameters:Lfe,logger:Px.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Ux,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:d4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:C8}),s.addPolicy(Dfe()),s.addPolicy(kfe(r.retryOptions),{phase:"Retry"}),s.addPolicy(vfe()),s.addPolicy(Rfe());let a=Hit(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=E4(t);Yi(c)?s.addPolicy(s0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new ja(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 Gat(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?za(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 ja(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 qat(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?za(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 ja(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=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(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?za(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 ja(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 Vat(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(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?za(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 ja(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 Wat(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(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?za(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 ja(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 Jat(t,e){if(t=qf(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=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(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,void 0,t.delegatedUserObjectId,t.ipRange?za(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 ja(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 Gf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function qf(t){let e=t.version?t.version:$x;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 kB=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=r0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ya||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ya||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=>ve(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!==Ya||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ya||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=ve(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!==Ya||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ya||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=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ya||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ya||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"}};y0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Wf=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"}};Wf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var OB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var pct=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())})},VH=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 epe(t,e,r){return pct(this,void 0,void 0,function*(){var n;let s=new Ka(t),i=s.getBlockBlobClient(),o=new VH((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(),H(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new WR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw We(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as rpe from"buffer";import*as uA from"fs";import*as npe from"stream";import*as spe from"util";var JR=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 zR(t){return t?t>=200&&t<300:!1}function mct(t){return t?t>=500:!0}function Ect(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function Cct(t){return JR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function tpe(t,e,r){return JR(this,arguments,void 0,function*(n,s,i,o=RT,a=DT,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),!mct(d)))return l;if(d&&(h=Ect(d),A=`Cache service responded with ${d}`),H(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){H(`${n} - Error is not retryable`);break}yield Cct(a),u++}throw Error(`${n} failed: ${A}`)})}function HB(t,e){return JR(this,arguments,void 0,function*(r,n,s=RT,i=DT){return yield tpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof vc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function B0(t,e){return JR(this,arguments,void 0,function*(r,n,s=RT,i=DT){return yield tpe(r,n,o=>o.message.statusCode,s,i)})}var Go=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 Ict(t,e){return Go(this,void 0,void 0,function*(){yield spe.promisify(npe.pipeline)(t.message,e)})}var jR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,H(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),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||[])H(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function jH(t,e,r){return di(this,void 0,void 0,function*(){let n=new wct(t),s=cpe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield ope(t,e,s):s.concurrentBlobDownloads?yield ipe(t,e,s):yield KR(t,e):yield KR(t,e)})}function gpe(t,e,r){return di(this,void 0,void 0,function*(){let n=zH(),s=Jm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield HB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(qB("caches"),i)}))})}function hpe(t,e){return`bytes ${t}-${e}/*`}function xct(t,e,r,n,s){return di(this,void 0,void 0,function*(){H(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${hpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":hpe(n,s)},o=yield B0(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!zR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Rct(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Uc(r),i=qB(`caches/${e.toString()}`),o=b0.openSync(r,"r"),a=WH(n),c=F3("uploadConcurrency",a.uploadConcurrency),A=F3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(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 xct(t,i,()=>b0.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{b0.closeSync(o)}})}function Dct(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield HB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(qB(`caches/${e.toString()}`),n)}))})}function KH(t,e,r,n){return di(this,void 0,void 0,function*(){if(WH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield epe(r,e,n)}else{let i=zH();H("Upload cache"),yield Rct(i,t,e,n),H("Commiting cache");let o=Uc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Dct(i,t,o);if(!zR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var cme=fe(H9(),1),rn=fe(At(),1),ji=fe(At(),1),$f=fe(At(),1),Xf=fe(At(),1),Zf=fe(At(),1);var V9=fe(At(),1),W9=fe(At(),1),ime=fe(At(),1),ome=fe(At(),1),ame=fe(At(),1);var G9=fe(At(),1),q9=fe(At(),1),rme=fe(At(),1),nme=fe(At(),1),sme=fe(At(),1),Y9=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,nme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,rme.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?q9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,G9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,G9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?q9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},LD=new Y9;var J9=class extends ame.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:()=>LD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,ome.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ime.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(LD.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?W9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,V9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)LD.internalBinaryWrite(e.scope[i],r.tag(2,V9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?W9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield cG(r,"create");yield AG(n,t)})}var P0=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())})},$i=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},yd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},OD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function dme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function dG(t){if(t.length>512)throw new $i(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $i(`Key Validation Error: ${t} cannot contain commas.`)}function hme(){return GB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function HD(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=GB();return H(`Cache service version: ${A}`),dme(s),A==="v2"?yield zut(s,i,o,a,c):yield Jut(s,i,o,a,c)})}function Jut(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)dG(d);let u=yield qy(),l="";try{let d=yield fpe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),d.cacheKey;l=ib.join(yield Hy(),rd(u)),H(`Archive Path: ${l}`),yield jH(d.archiveLocation,l,a),Pa()&&(yield sb(l,u));let h=Uc(l);return Z(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield uG(l,u),Z("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===$i.name)throw d;h instanceof vc&&typeof h.statusCode=="number"&&h.statusCode>=500?Pi(`Failed to restore: ${d.message}`):We(`Failed to restore: ${d.message}`)}finally{try{yield Gy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function zut(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)dG(l);let u="";try{let l=aG(),d=yield qy(),h={key:i,restoreKeys:o,version:Jm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){H(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?Z(`Cache hit for restore-key: ${f.matchedKey}`):Z(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),f.matchedKey;u=ib.join(yield Hy(),rd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield jH(f.signedDownloadUrl,u,a);let I=Uc(u);return Z(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Pa()&&(yield sb(u,d)),yield uG(u,d),Z("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===$i.name)throw l;d instanceof vc&&typeof d.statusCode=="number"&&d.statusCode>=500?Pi(`Failed to restore: ${l.message}`):We(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Gy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function GD(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){let a=GB();return H(`Cache service version: ${a}`),dme(n),dG(s),a==="v2"?yield Kut(n,s,i,o):yield jut(n,s,i,o)})}function jut(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield qy(),h=-1,f=yield _3(n);if(H("Cache Paths:"),H(`${JSON.stringify(f)}`),f.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 p=yield Hy(),I=ib.join(p,rd(d));H(`Archive Path: ${I}`);try{yield lG(p,f,d),Pa()&&(yield sb(I,d));let m=10*1024*1024*1024,C=Uc(I);if(H(`File Size: ${C}`),C>m&&!JH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);H("Reserving Cache");let y=yield gpe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new yd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);H(`Saving Cache (ID: ${h})`),yield KH(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===yd.name Line truncated
See ${r.getDocumentationLink()}`;fme.push(n),df(n)}function gme(){wu("deprecation-collector_deprecations",JSON.stringify(fG)),wu("deprecation-collector_errors",JSON.stringify(fme))}import*as WD from"path";var pme="GRADLE_ACTION_ID";var KD=".setup-gradle",cb=class t{getDependencyGraphOption(){let e=dr("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 pA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return Zut("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,mme())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return WD.resolve(Bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return eg("dependency-graph-exclude-projects")}getIncludeProjects(){return eg("dependency-graph-include-projects")}getExcludeConfigurations(){return eg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return eg("dependency-graph-include-configurations")}getPluginRepository(){return new JD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){H(`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 O0=class{isCacheDisabled(){return hme()?pA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&pA("cache-read-only")}isCacheWriteOnly(){return pA("cache-write-only")}isCacheOverwriteExisting(){return pA("cache-overwrite-existing")}isCacheStrictMatch(){return pA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=ab("gradle-home-cache-cleanup");if(e!==void 0)return YD("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=dr("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 dr("cache-encryption-key")}getCacheIncludes(){return _O("gradle-home-cache-includes")}getCacheExcludes(){return _O("gradle-home-cache-excludes")}getCacheProvider(){let e=dr("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 Za=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return pA("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 ab("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return ab("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return ab("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return ab("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new JD}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:(We("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},JD=class{getUrl(){return eg("gradle-plugin-repository-url")}getUsername(){return eg("gradle-plugin-repository-username")}getPassword(){return eg("gradle-plugin-repository-password")}},zD=class{getGradleVersion(){re Line truncated
`+n(i)+s(i),a=Sct("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(dt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===dt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(dt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>DD(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=TD(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=xD(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:Nct,async sendRequest(i,o){return e(i),o(i)}}}var Tct="storageRequestFailureDetailsParserPolicy";function Kpe(){return{name:Tct,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 xct}from"node:crypto";var kD=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return xct("sha256",this.key).update(e,"utf8").digest("base64")}};var vD="12.33.0",FD="2026-06-06";var MD="https://storage.azure.com/.default",Ql={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var kc="",FH="*",Rct=1*1024*1024;var Dct=4*Rct;var Xpe="AES256",Zpe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",$pe=["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"],eme=["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"],tme="BlobUsesCustomerSpecifiedEncryption",rme="BlobDoesNotUseCustomerSpecifiedEncryption",nme=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wl(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 rQ=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 Lr);let r=new rQ([],e);return r._credential=t,r}function kct(t){let e=[vct,sme,Fct,Mct,_ct,Lct,Pct];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Uct(s));return{wrappedPolicies:Z6(r),afterRetry:n}}}}function MH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?$6(e):kH(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${vD}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Db({...r,loggingOptions:{additionalAllowedHeaderNames:$pe,additionalAllowedQueryParameters:eme,logger:CD.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:ED,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:NH,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:Q6}),s.addPolicy(zpe()),s.addPolicy(jpe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Kpe()),s.addPolicy(Wpe());let a=kct(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=_H(t);Qo(c)?s.addPolicy(SE({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Do(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 vut(t,e){if(t=vl(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=Sa.parse(t.permissions.toString()).toString():s=Na.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ro(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 Do(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 Fut(t,e){if(t=vl(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=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ro(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 Do(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 Mut(t,e){if(t=vl(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=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ro(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 Do(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 _ut(t,e){if(t=vl(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=Sa.parse(t.permissions.toString()).toString():s=Na.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ro(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 Do(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 Lut(t,e){if(t=vl(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=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ro(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 Do(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 Uut(t,e){if(t=vl(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=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ro(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 Do(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 Put(t,e){if(t=vl(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=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Ro(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 Do(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 Out(t,e){if(t=vl(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=WE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Sa.parse(t.permissions.toString()).toString():i=Na.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?bt(t.startsOn,!1):"",t.expiresOn?bt(t.expiresOn,!1):"",kl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?Ro(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,Hut(t.requestHeaders),Gut(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Do(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,u0e(t.requestHeaders),u0e(t.requestQueryParameters),s),stringToSign:o}}function Hut(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function Gut(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function u0e(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 kl(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function vl(t){let e=t.version?t.version:FD;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 WE(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var gQ=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=QE()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==kc||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==kc||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 we.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ue(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!==kc||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==kc||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 we.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ue(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!==kc||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==kc||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 we.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ue(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!==kc||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==kc||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 we.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing 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"}};jE.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Zg=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"}};Zg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var bQ=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var llt=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())})},Aq=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);te(`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 y0e(t,e,r){return llt(this,void 0,void 0,function*(){var n;let s=new _c(t),i=s.getBlockBlobClient(),o=new Aq((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 x2(`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 b0e from"buffer";import*as KA from"fs";import*as Q0e from"stream";import*as w0e from"util";var R2=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 D2(t){return t?t>=200&&t<300:!1}function dlt(t){return t?t>=500:!0}function hlt(t){return t?[ur.BadGateway,ur.ServiceUnavailable,ur.GatewayTimeout].includes(t):!1}function flt(t){return R2(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function B0e(t,e,r){return R2(this,arguments,void 0,function*(n,s,i,o=dR,a=hR,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),!dlt(d)))return l;if(d&&(h=hlt(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 flt(a),u++}throw Error(`${n} failed: ${A}`)})}function QQ(t,e){return R2(this,arguments,void 0,function*(r,n,s=dR,i=hR){return yield B0e(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof IA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function KE(t,e){return R2(this,arguments,void 0,function*(r,n,s=dR,i=hR){return yield B0e(r,n,o=>o.message.statusCode,s,i)})}var Ta=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 glt(t,e){return Ta(this,void 0,void 0,function*(){yield w0e.promisify(Q0e.pipeline)(t.message,e)})}var k2=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);te(`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 fq(t,e,r){return Hi(this,void 0,void 0,function*(){let n=new Ilt(t),s=x0e(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield N0e(t,e,s):s.concurrentBlobDownloads?yield S0e(t,e,s):yield v2(t,e):yield v2(t,e)})}function P0e(t,e,r){return Hi(this,void 0,void 0,function*(){let n=hq(),s=gE(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield QQ("reserveCache",()=>Hi(this,void 0,void 0,function*(){return n.postJson(SQ("caches"),i)}))})}function L0e(t,e){return`bytes ${t}-${e}/*`}function Qlt(t,e,r,n,s){return Hi(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${L0e(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":L0e(n,s)},o=yield KE(`uploadChunk (start: ${n}, end: ${s})`,()=>Hi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!D2(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function wlt(t,e,r,n){return Hi(this,void 0,void 0,function*(){let s=wA(r),i=SQ(`caches/${e.toString()}`),o=XE.openSync(r,"r"),a=uq(n),c=H4("uploadConcurrency",a.uploadConcurrency),A=H4("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];G("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 Qlt(t,i,()=>XE.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{XE.closeSync(o)}})}function Slt(t,e,r){return Hi(this,void 0,void 0,function*(){let n={size:r};return yield QQ("commitCache",()=>Hi(this,void 0,void 0,function*(){return t.postJson(SQ(`caches/${e.toString()}`),n)}))})}function gq(t,e,r,n){return Hi(this,void 0,void 0,function*(){if(uq(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield y0e(r,e,n)}else{let i=hq();G("Upload cache"),yield wlt(i,t,e,n),G("Commiting cache");let o=wA(e);te(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Slt(i,t,o);if(!D2(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);te("Cache saved successfully")}})}var kEe=Ee(oY(),1),pn=Ee(gt(),1),vo=Ee(gt(),1),np=Ee(gt(),1),sp=Ee(gt(),1),ip=Ee(gt(),1);var uY=Ee(gt(),1),lY=Ee(gt(),1),xEe=Ee(gt(),1),REe=Ee(gt(),1),DEe=Ee(gt(),1);var aY=Ee(gt(),1),cY=Ee(gt(),1),SEe=Ee(gt(),1),NEe=Ee(gt(),1),TEe=Ee(gt(),1),AY=class extends TEe.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,NEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,SEe.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?cY.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,aY.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,aY.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?cY.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Ik=new AY;var dY=class extends DEe.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:()=>Ik}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,REe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,xEe.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(Ik.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?lY.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,uY.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)Ik.internalBinaryWrite(e.scope[i],r.tag(2,uY.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?lY.UnknownFieldHandler.onWrite Line truncated
`));let n=yield NY(r,"create");yield TY(n,t)})}var hC=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())})},Mo=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ll=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},DY="cache write denied:",bk=class t extends Ll{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},_Ee=fR,Qk=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},wk=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function LEe(t){if(!t||t.length===0)throw new Mo("Path Validation Error: At least one directory or file path is required")}function kY(t){if(t.length>512)throw new Mo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Mo(`Key Validation Error: ${t} cannot contain commas.`)}function UEe(){return wQ()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Sk(t,e,r,n){return hC(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=wQ();G(`Cache service version: ${A}`),LEe(s);let u=dq();if(!D0e(u)){te(`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 qht(s,i,o,a,c):yield Ght(s,i,o,a,c)})}function Ght(t,e,r,n){return hC(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 Mo("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)kY(h);let l=yield Cb(),d="";try{let h;try{h=yield U0e(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(_Ee)?new Qk(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return te("Lookup only - skipping download"),h.cacheKey;d=GQ.join(yield mb(),ih(l)),G(`Archive Path: ${d}`),yield fq(h.archiveLocation,d,a),Nc()&&(yield HQ(d,l));let f=wA(d);return te(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield xY(d,l),te("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Mo.name)throw h;f instanceof IA&&typeof f.statusCode=="number"&&f.statusCode>=500?Co(`Failed to restore: ${h.message}`):je(`Failed to restore: ${h.message}`)}finally{try{yield Eb(d)}catch(h){G(`Failed to delete archive: ${h}`)}}})}function qht(t,e,r,n){return hC(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 Mo("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)kY(d);let l="";try{let d=SY(),h=yield Cb(),f={key:i,restoreKeys:o,version:gE(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(_Ee)?new Qk(y):I}if(!g.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?te(`Cache hit for restore-key: ${g.matchedKey}`):te(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return te("Lookup only - skipping download"),g.matchedKey;l=GQ.join(yield mb(),ih(h)),G(`Archive path: ${l}`),G(`Starting download of archive to: ${l}`),yield fq(g.signedDownloadUrl,l,a);let m=wA(l);return te(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Nc()&&(yield HQ(l,h)),yield xY(l,h),te("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===Mo.name)throw d;h instanceof IA&&typeof h.statusCode=="number"&&h.statusCode>=500?Co(`Failed to restore: ${d.message}`):je(`Failed to restore: ${d.message}`)}finally{try{l&&(yield Eb(l))}catch(d){G(`Failed to delete archive: ${d}`)}}})}function Nk(t,e,r){return hC(this,arguments,void 0,function*(n,s,i,o=!1){let a=wQ();G(`Cache service version: ${a}`),LEe(n),kY(s);let c=dq();return k0e(c)?a==="v2"?yield Vht(n,s,i,o):yield Yht(n,s,i,o):(te(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),G(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Yht(t,e,r){return hC(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield Cb(),f=-1,g=yield O4(n);if(G("Cache Paths:"),G(`${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 mb(),m=GQ.join(E,ih(h));G(`Archive Path: ${m}`);try{yield RY(E,g,h),Nc()&&(yield HQ(m,h));let I=10*1024*1024*1024,y Line truncated
See ${r.getDocumentationLink()}`;PEe.push(n),Cg(n)}function OEe(){bA("deprecation-collector_deprecations",JSON.stringify(FY)),bA("deprecation-collector_errors",JSON.stringify(PEe))}import*as Dk from"path";var HEe="GRADLE_ACTION_ID";var Mk=".setup-gradle",VQ=class t{getDependencyGraphOption(){let e=Br("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 ru("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Br("artifact-retention-days");return zht("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(Ri.workflow,Ri.job,GEe())}getReportDirectory(){let e=Br("dependency-graph-report-dir");return Dk.resolve(bh(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return op("dependency-graph-exclude-projects")}getIncludeProjects(){return op("dependency-graph-include-projects")}getExcludeConfigurations(){return op("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return op("dependency-graph-include-configurations")}getPluginRepository(){return new kk}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 fC=class{isCacheDisabled(){return UEe()?ru("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&ru("cache-read-only")}isCacheWriteOnly(){return ru("cache-write-only")}isCacheOverwriteExisting(){return ru("cache-overwrite-existing")}isCacheStrictMatch(){return ru("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=YQ("gradle-home-cache-cleanup");if(e!==void 0)return xk("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Br("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 Br("cache-encryption-key")}getCacheIncludes(){return _8("gradle-home-cache-includes")}getCacheExcludes(){return _8("gradle-home-cache-excludes")}getCacheProvider(){let e=Br("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 Pc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return ru("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Br("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Br("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Br("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Br("develocity-token-expiry")}getDevelocityInjectionEnabled(){return YQ("develocity-injection-enabled")}getDevelocityUrl(){return Br("develocity-url")}getDevelocityAllowUntrustedServer(){return YQ("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return YQ("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return YQ("develocity-enforce-url")}getDevelocityPluginVersion(){return Br("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Br("develocity-ccud-plugin-version")}getPluginRepository(){return new kk}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)}},kk=class{getUrl(){return op("gradle-plugin-repository-url")}getUsername(){return op("gradle-plugin-repository-username")}getPassword(){return op("gradle-plugin-repository-p 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(...EG(n.patterns)),n})}static stat(e,r,n){return wG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield q0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield q0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield q0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as SG from"crypto";import*as n2 from"fs";import*as Vme from"stream";import*as Wme from"util";import*as Jme from"path";var fdt=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 zme(t,e){return fdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:H,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=SG.createHash("sha256"),f=0;try{for(var p=!0,I=gdt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${Jme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(n2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=SG.createHash("sha256");yield Wme.promisify(Vme.pipeline)(n2.createReadStream(C),y),h.write(y.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 h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var jme=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 NG(t,e){return jme(this,void 0,void 0,function*(){return yield t2.create(t,e)})}function Kme(t){return jme(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield NG(e,{followSymbolicLinks:i});return zme(o,r,s)})}import*as TG from"path";var pdt="Gradle User Home",Xme="BASIC_CACHE_PRIMARY_KEY",Zme="BASIC_CACHE_RESTORED_KEY",mdt="setup-java",e0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],i2=class{async restore(e,r){let n=t0e(e),s=await Edt();wu(Xme,s);try{let i=await HD(n,s);i?(wu(Zme,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){We(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=by(Xme),i=by(Zme);if(n.readOnly)return{status:"read-only",entries:[s2({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:[s2({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=t0e(e);try{return await GD(o,s),Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[s2({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 We(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[s2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function s2(t){return{entryName:pdt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}funcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${e0e}], make sure you have checked out the target repository`);return`${mdt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Idt="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.",ydt="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.",RG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function s0e(t){return t.isCacheDisabled()?(xG("Cache is disabled: will not restore state from previous builds."),new RG):t.getCacheProvider()==="basic"?(xG(ydt),new i2):(xG(Idt),Bdt())}async function Bdt(){let t=bdt();return await import(Cdt(t).href)}function bdt(){let t=import.meta.dirname,e=n0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(r0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function xG(t){console.info(t)}import o2 from"fs";import i0e from"path";var a2=class{constructor(e){this.cacheFile=i0e.resolve(e,KD,"valid-wrappers.json")}load(){if(o2.existsSync(this.cacheFile))try{return JSON.parse(o2.readFileSync(this.cacheFile,"utf-8"))}catch(e){We(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];o2.mkdirSync(i0e.dirname(this.cacheFile),{recursive:!0}),o2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var l0e=fe(A0e(),1);import*as u0e from"util";import*as c2 from"path";import*as A2 from"fs";var xdt=u0e.promisify(A2.readdir);async function d0e(t){return(await h0e(t)).filter(r=>(0,l0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>c2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function h0e(t){let e=await xdt(t),r=await Promise.all(e.map(async n=>{let s=c2.resolve(t,n),i=A2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?h0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Ddt={_useHtmlParser2:!1};function Y0(t,e){if(!t)return e??Ddt;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 eq={};Sa(eq,{contains:()=>Q2,extract:()=>wht,html:()=>yht,merge:()=>M0e,parseHTML:()=>bht,root:()=>Qht,text:()=>lg,xml:()=>Bht});var Dd={};Sa(Dd,{DocumentPosition:()=>jo,append:()=>nht,appendChild:()=>rht,compareDocumentPosition:()=>k0e,existsOne:()=>R0e,filter:()=>j0,find:()=>I2,findAll:()=>aht,findOne:()=>y2,findOneChild:()=>oht,getAttributeValue:()=>Xdt,getChildren:()=>z0,getElementById:()=>lht,getElements:()=>uht,getElementsByClassName:()=>dht,getElementsByTagName:()=>ug,getElementsByTagType:()=>hht,getFeed:()=>ZG,getInnerHTML:()=>$dt,getName:()=>eht,getOuterHTML:()=>T0e,getParent:()=>x0e,getSiblings:()=>$G,getText:()=>m2,hasAttrib:()=>Zdt,hasChildren:()=>tr,innerText:()=>yb,isCDATA:()=>V0,isComment:()=>Ag,isDocument:()=>zo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>E2,prepend:()=>iht,prependChild:()=>sht,prevElementSibling:()=>C2,removeElement:()=>ju,removeSubsets:()=>fht,replaceElement:()=>tht,testElement:()=>Aht,textContent:()=>zu,uniqueSort:()=>xd});var Jo={};Sa(Jo,{CDATA:()=>PG,Comment:()=>FG,Directive:()=>_G,Doctype:()=>OG,ElementType:()=>bt,Root:()=>kG,Script:()=>MG,Style:()=>LG,Tag:()=>UG,Text:()=>vG,isTag:()=>DG});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 DG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var kG=bt.Root,vG=bt.Text,_G=bt.Directive,FG=bt.Comment,MG=bt.Script,LG=bt.Style,UG=bt.Tag,PG=bt.CDATA,OG=bt.Doctype;var u2=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 W0(this,e)}},mb=class extends u2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},EA=class extends mb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},og=class extends mb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ag=class extends mb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},Eb=class extends u2{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
`:m2(t.children):V0(t)?m2(t.children):pi(t)?t.data:""}function zu(t){return Array.isArray(t)?t.map(zu).join(""):tr(t)&&!Ag(t)?zu(t.children):pi(t)?t.data:""}function yb(t){return Array.isArray(t)?t.map(yb).join(""):tr(t)&&(t.type===bt.Tag||V0(t))?yb(t.children):pi(t)?t.data:""}function z0(t){return tr(t)?t.children:[]}function x0e(t){return t.parent||null}function $G(t){let e=x0e(t);if(e!=null)return z0(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 Xdt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Zdt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function eht(t){return t.name}function E2(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 ju(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 tht(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(ju(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 nht(t,e){ju(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 sht(t,e){if(ju(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 iht(t,e){ju(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 I2(t,Array.isArray(e)?e:[e],r,n)}function I2(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 oht(t,e){return e.find(t)}function y2(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&&tr(i)&&i.children.length>0){let o=y2(t,i.children,!0);if(o)return o}}return null}function R0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&R0e(t,r.children))}function aht(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),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var B2={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=>pi(e)&&t(e.data):e=>pi(e)&&e.data===t}};function XG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function cht(t,e){return r=>t(r)||e(r)}function D0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(B2,r)?B2[r](n):XG(r,n)});return e.length===0?null:e.reduce(cht)}function Aht(t,e){let r=D0e(t);return r?r(e):!0}function uht(t,e,r,n=1/0){let s=D0e(t);return s?j0(s,e,r,n):[]}function lht(t,e,r=!0){return Array.isArray(e)||(e=[e]),y2(XG("id",t),e,r)}function ug(t,e,r=!0,n=1/0){return j0(B2.tag_name(t),e,r,n)}function dht(t,e,r=!0,n=1/0){return j0(XG("class",t),e,r,n)}function hht(t,e,r=!0,n=1/0){return j0(B2.tag_type(t),e,r,n)}function fht(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 jo;(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"})(jo||(jo={}));function k0e(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 jo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?jo.FOLLOWING|jo.CONTAINED_BY:jo.FOLLOWING:a===t?jo.PRECEDING|jo.CONTAINS:jo.PRECEDING}function xd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=k0e(e,r);return n&jo.PRECEDING?-1:n&jo.FOLLOWING?1:0}),t}function ZG(t){let e=b2(Cht,t);return e?e.name==="feed"?ght(e):pht(e):null}function ght(t){var e;let r=t.children,n={type:"atom",items:ug("entry",r).map(o=>{var a;let{children:c}=o,A={media:v0e(c)};mi(A,"id","id",c),mi(A,"title","title",c);let u=(a=b2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Rd("summary",c)||Rd("conten Line truncated
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new ZQ(i));return n.searchPaths.push(...PY(n.patterns)),n})}static stat(e,r,n){return WY(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield mC.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 mC.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield mC.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 zY from"crypto";import*as qk from"fs";import*as pCe from"stream";import*as mCe from"util";import*as ECe from"path";var pgt=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())})},mgt=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 CCe(t,e){return pgt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?te:G,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=zY.createHash("sha256"),f=0;try{for(var g=!0,E=mgt(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}${ECe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(qk.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=zY.createHash("sha256");yield mCe.promisify(pCe.pipeline)(qk.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 ICe=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 jY(t,e){return ICe(this,void 0,void 0,function*(){return yield Hk.create(t,e)})}function yCe(t){return ICe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield jY(e,{followSymbolicLinks:i});return CCe(o,r,s)})}import*as KY from"path";var Egt="Gradle User Home",bCe="BASIC_CACHE_PRIMARY_KEY",QCe="BASIC_CACHE_RESTORED_KEY",Cgt="setup-java",wCe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],Yk=class{async restore(e,r){let n=SCe(e),s=await Igt();bA(bCe,s);try{let i=await Sk(n,s);i?(bA(QCe,i),te(`Basic caching restored from cache key: ${i}`)):te("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=$B(bCe),i=$B(QCe);if(n.readOnly)return{status:"read-only",entries:[ew({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 te(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[ew({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=SCe(e);try{return await Nk(o,s)===-1?(je(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[ew({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(te(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[ew({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:[ew({primaryKey:s,restoredKey:i,restoredOutcome:i?"(EntLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${wCe}], make sure you have checked out the target repository`);return`${Cgt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Bgt="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.",bgt="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.",Qgt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",Jk=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function xCe(t){return t.getCacheProvider()==="external"?(Vk(Qgt),new Jk("external")):t.isCacheDisabled()?(Vk("Cache is disabled: will not restore state from previous builds."),new Jk("disabled")):t.getCacheProvider()==="basic"?(Vk(bgt),new Yk):(Vk(Bgt),wgt())}async function wgt(){let t=Sgt();return await import(ygt(t).href)}function Sgt(){let t=import.meta.dirname,e=TCe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(NCe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function Vk(t){console.info(t)}import Wk from"fs";import RCe from"path";var zk=class{constructor(e){this.cacheFile=RCe.resolve(e,Mk,"valid-wrappers.json")}load(){if(Wk.existsSync(this.cacheFile))try{return JSON.parse(Wk.readFileSync(this.cacheFile,"utf-8"))}catch(e){je(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];Wk.mkdirSync(RCe.dirname(this.cacheFile),{recursive:!0}),Wk.writeFileSync(this.cacheFile,JSON.stringify(r))}};var _Ce=Ee(FCe(),1);import*as MCe from"util";import*as jk from"path";import*as Kk from"fs";var kgt=MCe.promisify(Kk.readdir);async function LCe(t){return(await UCe(t)).filter(r=>(0,_Ce.default)(r).endsWith("gradle-wrapper.jar")).map(r=>jk.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function UCe(t){let e=await kgt(t),r=await Promise.all(e.map(async n=>{let s=jk.resolve(t,n),i=Kk.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?UCe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Fgt={_useHtmlParser2:!1};function EC(t,e){if(!t)return e??Fgt;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 IV={};gc(IV,{contains:()=>lv,extract:()=>Tpt,html:()=>Qpt,merge:()=>aIe,parseHTML:()=>Spt,root:()=>Npt,text:()=>Ep,xml:()=>wpt});var kh={};gc(kh,{DocumentPosition:()=>Ma,append:()=>opt,appendChild:()=>ipt,compareDocumentPosition:()=>nIe,existsOne:()=>tIe,filter:()=>bC,find:()=>av,findAll:()=>upt,findOne:()=>cv,findOneChild:()=>Apt,getAttributeValue:()=>tpt,getChildren:()=>BC,getElementById:()=>fpt,getElements:()=>hpt,getElementsByClassName:()=>gpt,getElementsByTagName:()=>mp,getElementsByTagType:()=>ppt,getFeed:()=>CV,getInnerHTML:()=>ept,getName:()=>npt,getOuterHTML:()=>$Ce,getParent:()=>eIe,getSiblings:()=>mV,getText:()=>sv,hasAttrib:()=>rpt,hasChildren:()=>lr,innerText:()=>iw,isCDATA:()=>CC,isComment:()=>pp,isDocument:()=>Fa,isTag:()=>Te,isText:()=>Vi,nextElementSibling:()=>iv,prepend:()=>cpt,prependChild:()=>apt,prevElementSibling:()=>ov,removeElement:()=>ql,removeSubsets:()=>mpt,replaceElement:()=>spt,testElement:()=>dpt,textContent:()=>Gl,uniqueSort:()=>Rh});var va={};gc(va,{CDATA:()=>iV,Comment:()=>tV,Directive:()=>eV,Doctype:()=>oV,ElementType:()=>vt,Root:()=>ZY,Script:()=>rV,Style:()=>nV,Tag:()=>sV,Text:()=>$Y,isTag:()=>XY});var vt;(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"})(vt||(vt={}));function XY(t){return t.type===vt.Tag||t.type===vt.Script||t.type===vt.Style}var ZY=vt.Root,$Y=vt.Text,eV=vt.Directive,tV=vt.Comment,rV=vt.Script,nV=vt.Style,sV=vt.Tag,iV=vt.CDATA,oV=vt.Doctype;var Xk=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 IC(this,e)}},tw=class extends Xk{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},su=class extends tw{constructor(){super(...arguments),this.type=vt.Text}get nodeType(){return 3}},hp=class extends tw{constructor(){super(...arguments),this.type=vt.Comment}get nodeType(){return 8}},fp=class extends tw{constructor(e,r){super(r),this.name=e,this.type=vt.Di Line truncated
`:sv(t.children):CC(t)?sv(t.children):Vi(t)?t.data:""}function Gl(t){return Array.isArray(t)?t.map(Gl).join(""):lr(t)&&!pp(t)?Gl(t.children):Vi(t)?t.data:""}function iw(t){return Array.isArray(t)?t.map(iw).join(""):lr(t)&&(t.type===vt.Tag||CC(t))?iw(t.children):Vi(t)?t.data:""}function BC(t){return lr(t)?t.children:[]}function eIe(t){return t.parent||null}function mV(t){let e=eIe(t);if(e!=null)return BC(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 tpt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function rpt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function npt(t){return t.name}function iv(t){let{next:e}=t;for(;e!==null&&!Te(e);)({next:e}=e);return e}function ov(t){let{prev:e}=t;for(;e!==null&&!Te(e);)({prev:e}=e);return e}function ql(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 spt(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 ipt(t,e){if(ql(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 opt(t,e){ql(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 apt(t,e){if(ql(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 cpt(t,e){ql(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 bC(t,e,r=!0,n=1/0){return av(t,Array.isArray(e)?e:[e],r,n)}function av(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&&lr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Apt(t,e){return e.find(t)}function cv(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Te(i)&&t(i))return i;if(r&&lr(i)&&i.children.length>0){let o=cv(t,i.children,!0);if(o)return o}}return null}function tIe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Te(r)&&t(r)||lr(r)&&tIe(t,r.children))}function upt(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]++];Te(i)&&t(i)&&r.push(i),lr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var Av={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=>Vi(e)&&t(e.data):e=>Vi(e)&&e.data===t}};function EV(t,e){return typeof e=="function"?r=>Te(r)&&e(r.attribs[t]):r=>Te(r)&&r.attribs[t]===e}function lpt(t,e){return r=>t(r)||e(r)}function rIe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(Av,r)?Av[r](n):EV(r,n)});return e.length===0?null:e.reduce(lpt)}function dpt(t,e){let r=rIe(t);return r?r(e):!0}function hpt(t,e,r,n=1/0){let s=rIe(t);return s?bC(s,e,r,n):[]}function fpt(t,e,r=!0){return Array.isArray(e)||(e=[e]),cv(EV("id",t),e,r)}function mp(t,e,r=!0,n=1/0){return bC(Av.tag_name(t),e,r,n)}function gpt(t,e,r=!0,n=1/0){return bC(EV("class",t),e,r,n)}function ppt(t,e,r=!0,n=1/0){return bC(Av.tag_type(t),e,r,n)}function mpt(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 Ma;(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"})(Ma||(Ma={}));function nIe(t,e){let r=[],n=[];if(t===e)return 0;let s=lr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=lr(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 Ma.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ma.FOLLOWING|Ma.CONTAINED_BY:Ma.FOLLOWING:a===t?Ma.PRECEDING|Ma.CONTAINS:Ma.PRECEDING}function Rh(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=nIe(e,r);return n&Ma.PRECEDING?-1:n&Ma.FOLLOWING?1:0}),t}function CV(t){let e=uv(Bpt,t);return e?e.name==="feed"?Ept(e):Cpt(e):null}function Ept(t){var e;let r=t.children,n={type:"atom",items:mp("entry",r).map(o=>{var a;let{children:c}=o,A={media:sIe(c)};Ji(A,"id","id",c),Ji(A,"title","title",c);let u=(a=uv("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dh("summary",c)||Dh("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 Xo=fe(kd(),1);var pq={};function mq(t,e){return t===Xo.default.falseFunc?Xo.default.falseFunc:r=>e.isTag(r)&&t(r)}function Eq(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 fq=(t,e,r,n,s)=>{let i=s(e,gq(r),n);return i===Xo.default.trueFunc?t:i===Xo.default.falseFunc?Xo.default.falseFunc:o=>i(o)&&t(o)},M2={is:fq,matches:fq,where:fq,not(t,e,r,n,s){let i=s(e,gq(r),n);return i===Xo.default.falseFunc?t:i===Xo.default.trueFunc?Xo.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(Tb))?[pq]:void 0,c=s(e,o,a);if(c===Xo.default.falseFunc)return Xo.default.falseFunc;let A=mq(c,i);if(a&&c!==Xo.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,...Eq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function yEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in M2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return M2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:F2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,IEe.parse)(A);return M2.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 sE)return sE[o](t,a,r,n);if(o in Rb){let u=Rb[o];return hq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Zo=fe(rE(),1);function Cq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function BEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Zo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Zo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Zo.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()),pEe[e.action](t,e,r)}case Zo.SelectorType.Pseudo:return yEe(t,e,r,n,s);case Zo.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 Zo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Cq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Cq(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=Cq(A,i));return!1};case Zo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Zo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Zo.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 Zo.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 Zo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function bEe(t,e,r){let n=L2(t,e,r);return mq(n,e.adapter)}function L2(t,e,r){let n=typeof t=="string"?(0,nc.parse)(t):t;return U2(n,e,r)}function QEe(t){return t.type===nc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(QEe)))}var uft={type:nc.SelectorType.Descendant},lft={type:"_flexibleDescendant"},dft={type:nc.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===pq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(OEe,`\r
`)}}).toArray()}var Fq={};Sa(Fq,{extract:()=>Tgt});function Ngt(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 Tgt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Ngt(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 Fd=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}}};Fd.prototype.cheerio="[cheerio object]";Fd.prototype.splice=Array.prototype.splice;Fd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Fd.prototype,cq,Dq,kq,vq,_q,Fq);function HEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=Y0(s),a=t(n,o,i,null);class c extends Fd{_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&&Ko(u))return u;let f=Y0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Ko(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&Bb(u)?t(u,f,!1,null).children:xgt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?Bb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Ko(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,eq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function xgt(t){return!!t.name||t.type===Jo.Root||t.type===Jo.Text||t.type===Jo.Comment}var Rgt=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",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 Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Y2(t){return t>=55296&&t<=57343}function GEe(t){return t>=56320&&t<=57343}function qEe(t,e){return(t-55296)*1024+9216+e}function V2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function W2(t){return t>=64976&&t<=65007||Rgt.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 Ua=Ee(vh(),1);var _V={};function LV(t,e){return t===Ua.default.falseFunc?Ua.default.falseFunc:r=>e.isTag(r)&&t(r)}function UV(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 MV(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 FV=(t,e,r,n,s)=>{let i=s(e,MV(r),n);return i===Ua.default.trueFunc?t:i===Ua.default.falseFunc?Ua.default.falseFunc:o=>i(o)&&t(o)},bv={is:FV,matches:FV,where:FV,not(t,e,r,n,s){let i=s(e,MV(r),n);return i===Ua.default.falseFunc?t:i===Ua.default.trueFunc?Ua.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=MV(r);o.relativeSelector=!0;let a=e.some(u=>u.some(dw))?[_V]:void 0,c=s(e,o,a);if(c===Ua.default.falseFunc)return Ua.default.falseFunc;let A=LV(c,i);if(a&&c!==Ua.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,...UV(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function JIe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in bv))throw new Error(`Unknown pseudo-class :${o}(${a})`);return bv[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Bv[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,VIe.parse)(A);return bv.is(t,u,r,n,s)}if(typeof c=="function")return vV(c,o,a,1),u=>c(u,a)&&t(u);if(o in kC)return kC[o](t,a,r,n);if(o in fw){let u=fw[o];return vV(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Pa=Ee(RC(),1);function PV(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function WIe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Pa.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Pa.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Pa.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()),HIe[e.action](t,e,r)}case Pa.SelectorType.Pseudo:return JIe(t,e,r,n,s);case Pa.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 Pa.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=PV(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=PV(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=PV(A,i));return!1};case Pa.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Pa.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Pa.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 Pa.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 Pa.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function zIe(t,e,r){let n=Qv(t,e,r);return LV(n,e.adapter)}function Qv(t,e,r){let n=typeof t=="string"?(0,qc.parse)(t):t;return wv(n,e,r)}function jIe(t){return t.type===qc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(jIe)))}var hmt={type:qc.SelectorType.Descendant},fmt={type:"_flexibleDescendant"},gmt={type:qc.SelectorType.Pseudo,name:"scope",data:null};function pmt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===_V||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(lye,`\r
`)}}).toArray()}var tJ={};gc(tJ,{extract:()=>D0t});function R0t(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 D0t(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=R0t(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 _h=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}}};_h.prototype.cheerio="[cheerio object]";_h.prototype.splice=Array.prototype.splice;_h.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(_h.prototype,TV,XV,ZV,$V,eJ,tJ);function dye(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=EC(s),a=t(n,o,i,null);class c extends _h{_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&&_a(u))return u;let f=EC(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=_a(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&ow(u)?t(u,f,!1,null).children:k0t(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"?ow(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):_a(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,IV,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function k0t(t){return!!t.name||t.type===va.Root||t.type===va.Text||t.type===va.Comment}var v0t=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]),Er="\uFFFD",T;(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"})(T||(T={}));var Ai={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Dv(t){return t>=55296&&t<=57343}function hye(t){return t>=56320&&t<=57343}function fye(t,e){return(t-55296)*1024+9216+e}function kv(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function vv(t){return t>=64976&&t<=65007||v0t.has(t)}var z;(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(`
`)}`}},B_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var $g=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function gxe(t){if(t instanceof AggregateError){df("Multiple errors returned");for(let e of t.errors)Pi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof $g?(df(String(t)),t.stack&&Z(t.stack)):(df(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function pxe(t,e,r){if(!t.doValidateWrappers())return;let n=new a2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await fxe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await eT("All Gradle Wrapper jars are valid",async()=>{H(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new $g(`At least one Gradle Wrapper Jar failed validation!
`)}`}},l_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var fm=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function n2e(t){if(t instanceof AggregateError){Cg("Multiple errors returned");for(let e of t.errors)Co(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&te(e.stack)}else t instanceof fm?(Cg(String(t)),t.stack&&te(t.stack)):(Cg(String(t)),t instanceof Error&&t.stack&&te(t.stack))}async function s2e(t,e,r){if(!t.doValidateWrappers())return;let n=new zk(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await r2e(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await _x("All Gradle Wrapper jars are valid",async()=>{G(`Loaded previously validated checksums from cache: ${i.join(", ")}`),te(o.toDisplayString())});else throw te(o.toDisplayString()),new fm(`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 ho from"fs";import Xg from"path";function mxe(t,e,r){let n=Xg.resolve(e,KD);ho.mkdirSync(n,{recursive:!0}),okt(e),akt(t),Pa()&&ckt(e),r&&Kn("GRADLE_ENCRYPTION_KEY",r)}function okt(t){let e=Xg.resolve(t,"init.d");ho.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=Akt("init-scripts",n),i=Xg.resolve(e,n);ho.writeFileSync(i,s)}}function akt(t){let e=ukt();if(e==null)return;let r=Xg.resolve(t,".m2"),n=Xg.resolve(r,"toolchains.xml");if(!ho.existsSync(n))ho.mkdirSync(r,{recursive:!0}),ho.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=ho.readFileSync(n,"utf8"),i=lkt(s,e);ho.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function ckt(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import jo from"fs";import gm from"path";function i2e(t,e,r){let n=gm.resolve(e,Mk);jo.mkdirSync(n,{recursive:!0}),FMt(e),MMt(t),Nc()&&_Mt(e),r&&gs("GRADLE_ENCRYPTION_KEY",r)}function FMt(t){let e=gm.resolve(t,"init.d");jo.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=LMt("init-scripts",n),i=gm.resolve(e,n);jo.writeFileSync(i,s)}}function MMt(t){let e=UMt();if(e==null)return;let r=gm.resolve(t,".m2"),n=gm.resolve(r,"toolchains.xml");if(!jo.existsSync(n))jo.mkdirSync(r,{recursive:!0}),jo.writeFileSync(n,e),te(`Wrote default JDK locations to ${n}`);else{let s=jo.readFileSync(n,"utf8"),i=PMt(s,e);jo.writeFileSync(n,i),te(`Merged default JDK locations into ${n}`)}}function _Mt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Xg.resolve(t,"gradle.properties");if(ho.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=ho.readFileSync(r,"utf-8");ho.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),ho.writeFileSync(r,e)}function Akt(...t){let e=import.meta.dirname,r=Xg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function ukt(){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=gm.resolve(t,"gradle.properties");if(jo.existsSync(r)){te(`Merged --info and --stacktrace into existing ${r} file`);let n=jo.readFileSync(r,"utf-8");jo.writeFileSync(r,`${e}
${n}`)}else te(`Created a new ${r} with --info and --stacktrace`),jo.writeFileSync(r,e)}function LMt(...t){let e=import.meta.dirname,r=gm.resolve(e,"..","..","..","sources","src","resources",...t);return jo.readFileSync(r,"utf8")}function UMt(){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 +287,49 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function lkt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var cz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",dkt="GRADLE_USER_HOME";async function Exe(t,e,r){let n=await Cxe(),s=await fkt();return process.env[cz]?(Z("Gradle setup only performed on first gradle/actions step in workflow."),!1):(Kn(cz,!0),wu(cz,!0),wu(dkt,s),mxe(n,s,t.getCacheEncryptionKey()),await(await s0e(t)).restore(s,hkt(t)),await pxe(r,Bd(),s),await yme(e),!0)}function hkt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function fkt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Bd();return uz.resolve(r,t)}let e=uz.resolve(await Cxe(),".gradle");if(Az.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Kn("GRADLE_USER_HOME",e),e;if(b_.platform()==="win32"&&e.startsWith("C:\\")&&Az.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Kn("GRADLE_USER_HOME",r),r}return Kn("GRADLE_USER_HOME",e),e}async function Cxe(){let t=await By("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()."),b_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}import*as eC from"fs";import*as Zxe from"os";import*as dh from"path";import*as dz from"crypto";import*as ep from"fs";var pkt=fe(Uy(),1);import*as ew from"path";var S_=fe(Uy(),1);import*as yxe from"stream";import*as Bxe from"util";import{ok as Ekt}from"assert";var Ixe=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 Ixe(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 Ixe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Zg=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())})},w_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Ckt=process.platform==="win32",xQr=process.platform==="darwin",Ikt="actions/tool-cache";function bxe(t,e,r,n){return Zg(this,void 0,void 0,function*(){e=e||ew.join(wxe(),dz.randomUUID()),yield lf(ew.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=lz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=lz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Q_(s,i,o).execute(()=>Zg(this,void 0,void 0,function*(){return yield ykt(t,e||"",r,n)}),c=>!(c instanceof w_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function ykt(t,e,r,n){return Zg(this,void 0,void 0,function*(){if(ep.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(Ikt,[],{allowRetries:!1});r&&(H("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new w_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=Bxe.promisify(yxe.pipeline),c=lz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,ep.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield fce(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function Qxe(t,e){return Zg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield Qkt(e),Ckt?yield Bkt(t,e):yield bkt(t,e),e})}function Bkt(t,e){return Zg(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\nLine truncated
`," Line feed \\n"]]),fRe=new Map([...$z,["\\"," 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}
`}function PMt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var YK="GRADLE_BUILD_ACTION_SETUP_COMPLETED",OMt="GRADLE_USER_HOME",HMt="DEVELOCITY_CACHE_TOKEN";async function o2e(t,e,r){let n=await a2e(),s=await qMt();if(process.env[YK])return te("Gradle setup only performed on first gradle/actions step in workflow."),!1;gs(YK,!0),bA(YK,!0),bA(OMt,s),i2e(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await JEe(e);return bA(HMt,o??""),await(await xCe(t)).restore(s,GMt(t,i,o)),await s2e(r,bh(),s),YEe(e),!0}function GMt(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 qMt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bh();return JK.resolve(r,t)}let e=JK.resolve(await a2e(),".gradle");if(VK.existsSync(e))return te(`Gradle User Home already exists at ${e}`),gs("GRADLE_USER_HOME",e),e;if(d_.platform()==="win32"&&e.startsWith("C:\\")&&VK.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return te(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),gs("GRADLE_USER_HOME",r),r}return gs("GRADLE_USER_HOME",e),e}async function a2e(){let t=await ZB("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return te("Could not determine user.home from java -version output. Using os.homedir()."),d_.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}import*as RI from"fs";import*as O2e from"os";import*as lf from"path";import*as zK from"crypto";import*as mm from"fs";var VMt=Ee(lR(),1);import*as O1 from"path";var g_=Ee(lR(),1);import*as A2e from"stream";import*as u2e from"util";import{ok as WMt}from"assert";var c2e=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 c2e(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;te(i.message)}let s=this.getSleepAmount();te(`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 c2e(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var pm=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())})},f_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},zMt=process.platform==="win32",vTr=process.platform==="darwin",jMt="actions/tool-cache";function l2e(t,e,r,n){return pm(this,void 0,void 0,function*(){e=e||O1.join(h2e(),zK.randomUUID()),yield Eg(O1.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=WK("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=WK("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new h_(s,i,o).execute(()=>pm(this,void 0,void 0,function*(){return yield KMt(t,e||"",r,n)}),c=>!(c instanceof f_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function KMt(t,e,r,n){return pm(this,void 0,void 0,function*(){if(mm.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Kr(jMt,[],{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 f_(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=u2e.promisify(A2e.pipeline),c=WK("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,mm.createWriteStream(e)),G("download complete"),A=!0,e}finally{if(!A){G("download failed");try{yield Rue(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function d2e(t,e){return pm(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return Line truncated
`," Line feed \\n"]]),tke=new Map([...kX,["\\"," Backslash \\"],["/"," Forward slash /"]]);function rke(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of tke)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(tke.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 Xz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of $z)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.`);te("Artifact name is valid!")}function vX(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of kX)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($z.values()).toString()}
Invalid characters include: ${Array.from(kX.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=fe(ERe(),1);function YA(){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"}},gl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},pl=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"}},ml=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"}};ml.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rp=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"}};rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var np=class extends Error{};np.prototype.name="InvalidTokenError";function rvt(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 nvt(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 rvt(e)}catch{return atob(e)}}function IRe(t,e){if(typeof t!="string")throw new np("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 np(`Invalid token specified: missing part #${r+1}`);let s;try{s=nvt(n)}catch(i){throw new np(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new np(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var R_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=T_(),e=IRe(t);if(!e.scp)throw R_;let r=e.scp.split(" ");if(r.length===0)throw R_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw R_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return H(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),H(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw R_}function yRe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ua(r),Ua(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function BRe(t){if(typeof t!="object"||t===null){H("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 D_=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,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=T_();this.baseUrl=nRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new Qu(i)])}request(e,r,n,s){return D_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;H(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>D_(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 D_(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(),H(`[Response] - ${a.message.statusCode}`),H(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(BRe(A),H(`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(rp.isUsageErrorMessage(A.msg))throw new rp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&H(`Raw Body: ${s}`),a instanceof rp)throw a;if(ml.isNetworkErrorCode(a?.code))throw new ml(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?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return D_(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 Zz(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new x_(e)}import*as iC from"fs";import{normalize as bRe,resolve as QRe}from"path";function wRe(t){if(!iC.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&&We("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: ${M3e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield L3e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,H(`Computed digest: ${l.sha256Digest}`),H(`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 _Vt(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield D3e.mkdir(t,{recursive:!0})),t})}var MVt=5,LVt=[400,401,403,404,422];function eI(t,e=MVt,r=LVt){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 H(`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 kp(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})})}kp.VERSION=H3e;var Y3e=fe(G3e(),1);var UM=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 UVt="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 PVt(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(OVt.bind(null,t,e,r),n)}async function OVt(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 UM(s.data.errors[0].message,500,{request:n,response:s});return q3e(t,e,i,n)}return s}function vp(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",PVt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}vp.VERSION=UVt;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 PM(t,e,r,n,s){return V3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(gf),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield Oa(s,c,vp,kp).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 gl(`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 pl(`Artifact not found for name: ${t}
`)}var oke=Ee(ike(),1);function Ru(){return`@actions/artifact-${oke.version}`}var FI=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"}},ud=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ld=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},df=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"}},dd=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"}};dd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Cm=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"}};Cm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Im=class extends Error{};Im.prototype.name="InvalidTokenError";function D_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 k_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 D_t(e)}catch{return atob(e)}}function ake(t,e){if(typeof t!="string")throw new Im("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 Im(`Invalid token specified: missing part #${r+1}`);let s;try{s=k_t(n)}catch(i){throw new Im(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Im(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var C_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Du(){let t=m_(),e=ake(t);if(!e.scp)throw C_;let r=e.scp.split(" ");if(r.length===0)throw C_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw C_;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 C_}function cke(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(da(r),da(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function Ake(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"&&cke(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&cke(t.signed_url)}var I_=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())})},FX=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=m_();this.baseUrl=Y2e(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Kr(e,[new gl(i)])}request(e,r,n,s){return I_(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(()=>I_(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 I_(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(),G(`[Response] - ${a.message.statusCode}`),G(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(Ake(A),G(`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(Cm.isUsageErrorMessage(A.msg))throw new Cm;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&G(`Raw Body: ${s}`),a instanceof Cm)throw a;if(dd.isNetworkErrorCode(a?.code))throw new dd(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);te(`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?[ur.BadGateway,ur.GatewayTimeout,ur.InternalServerError,ur.ServiceUnavailable,ur.TooManyRequests].includes(e):!1}sleep(e){return I_(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 ku(t){let e=new FX(Ru(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new E_(e)}import*as MI from"fs";import{normalize as uke,resolve as lke}from"path";function dke(t){if(!MI.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&&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);te(`Redirecting to blob download url: ${L6e(u)}`);try{te(`Starting download of artifact to: ${r}`);let l=yield U6e(u,r,e?.skipDecompress);te("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 H6e(){return xy(this,arguments,void 0,function*(t=V2e()){return(yield Ezt(t))?G(`Artifact destination folder already exists: ${t}`):(G(`Artifact destination folder does not exist, creating: ${t}`),yield k6e.mkdir(t,{recursive:!0})),t})}var Izt=5,yzt=[400,401,403,404,422];function Ry(t,e=Izt,r=yzt){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 G6e="6.0.0";function Jm(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})})}Jm.VERSION=G6e;var V6e=Ee(q6e(),1);var Bzt="0.0.0-development";function bzt(t){return t.request!==void 0}async function Y6e(t,e,r,n){if(!bzt(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 Qzt(t,e,r,n){let s=new V6e.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(wzt.bind(null,t,e,r),n)}async function wzt(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 ml(s.data.errors[0].message,500,{request:n,response:s});return Y6e(t,e,i,n)}return s}function Wm(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",Y6e.bind(null,r,n)),t.hook.wrap("request",Qzt.bind(null,r,n))),n}Wm.VERSION=Bzt;var J6e=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 NU(t,e,r,n,s){return J6e(this,void 0,void 0,function*(){var i;let[o,a]=Ry(yg),c={log:void 0,userAgent:Ru(),previews:void 0,retry:o,request:a},u=yield Tc(s,c,Wm,Jm).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 ud(`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 ld(`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],H(`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=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new pl(`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 W6e(t){return J6e(this,void 0,void 0,function*(){var e;let r=ku(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Du(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Tn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ld(`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],H(`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?fo.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(gf),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=Oa(s,c,vp,kp),u=yield PM(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 gl(`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=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new pl(`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],H(`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 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())})},OM=aRe(),HM=100,HVt=Math.ceil(OM/HM);function $3e(t,e,r,n){return K3e(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]=eI(gf),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=Oa(a,d,vp,kp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:HM,page:f}),I=Math.ceil(p.total_count/HM),m=p.total_count;m>OM&&(We(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${OM}. Results will be incomplete as only the first ${OM} artifacts will be returned`),I=HVt);for(let C of p.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<=I;f++){H(`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:HM,page:f});for(let y of C.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)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function X3e(){return K3e(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?fo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=Z3e(o)),Z(`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())})},GVt=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 hh;return KOe(e,r,n,s)}catch(i){throw We(`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?Ko.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var z6e=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 j6e(t,e,r,n,s){return z6e(this,void 0,void 0,function*(){var i;let[o,a]=Ry(yg),c={log:void 0,userAgent:Ru(),previews:void 0,retry:o,request:a},A=Tc(s,c,Wm,Jm),u=yield NU(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 ud(`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 K6e(t){return z6e(this,void 0,void 0,function*(){let e=ku(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Du(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Tn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ld(`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 te(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var X6e=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())})},TU=z2e(),xU=100,Szt=Math.ceil(TU/xU);function Z6e(t,e,r,n){return X6e(this,arguments,void 0,function*(s,i,o,a,c=!1){te(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=Ry(yg),d={log:void 0,userAgent:Ru(),previews:void 0,retry:u,request:l},h=Tc(a,d,Wm,Jm),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:xU,page:f}),E=Math.ceil(g.total_count/xU),m=g.total_count;m>TU&&(je(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${TU}. Results will be incomplete as only the first ${TU} artifacts will be returned`),E=Szt);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++){G(`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:xU,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=eHe(A)),te(`Found ${A.length} artifact(s)`),{artifacts:A}})}function $6e(){return X6e(this,arguments,void 0,function*(t=!1){let e=ku(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Du(),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?Ko.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=eHe(o)),te(`Found ${o.length} artifact(s)`),{artifacts:o}})}function eHe(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 cN=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())})},Nzt=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},Dy=class{uploadArtifact(e,r,n,s){return cN(this,void 0,void 0,function*(){try{if(DI())throw new df;return X4e(e,r,n,s)}catch(i){throw je(`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 hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=GVt(r,["findBy"]);return U3e(e,n,s,i,o)}return P3e(e,r)}catch(n){throw We(`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 cN(this,void 0,void 0,function*(){try{if(DI())throw new df;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=Nzt(r,["findBy"]);return P6e(e,n,s,i,o)}return O6e(e,r)}catch(n){throw je(`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 hh;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 We(`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 cN(this,void 0,void 0,function*(){try{if(DI())throw new df;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return Z6e(r,n,s,i,e?.latest)}return $6e(e?.latest)}catch(r){throw je(`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 hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return PM(e,n,s,i,o)}return W3e(e)}catch(n){throw We(`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 cN(this,void 0,void 0,function*(){try{if(DI())throw new df;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return NU(e,n,s,i,o)}return W6e(e)}catch(n){throw je(`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 hh;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 We(`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 cN(this,void 0,void 0,function*(){try{if(DI())throw new df;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return j6e(e,i,n,s,o)}return K6e(e)}catch(n){throw je(`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 TRr=new tI;import*as zX from"path";import jX from"fs";var qVt="dependency-graph_";async function e8e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Kn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await YVt(t);return}Z("Enabling dependency graph generation"),Kn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),zs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ri.runId.toString()),zs("GITHUB_DEPENDENCY_GRAPH_REF",ri.ref),zs("GITHUB_DEPENDENCY_GRAPH_SHA",t7t()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Bd()),zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),zs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),zs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),zs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),zs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),zs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),zs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),zs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function zs(t,e){process.env[t]||e!==void 0&&Kn(t,e)}async function YVt(t){if(r7t()){Z("Dependency graph not supported in the ACT environment.");return}try{await JVt(await VVt(t))}catch(e){ZVt(t,"download-and-submit",e)}}async function VVt(t){let e=ri.payload.workflow_run?{token:$D(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new tI,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(qVt)),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 WVt()}async function WVt(){let r=(await(await NG(`${KVt()}/**/*.json`)).glob()).filter(n=>!$Vt(n));return r.forEach(XVt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function JVt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await jVt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=zVt(e,r)),r}}function zVt(t,e){let n=`Dependency submission failed for ${t8e(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 MFr=new Dy;import*as kte from"path";import vte from"fs";var Tzt="dependency-graph_";async function tHe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){gs("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){yi("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await xzt(t);return}te("Enabling dependency graph generation"),gs("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),yi("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),yi("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),yi("GITHUB_DEPENDENCY_GRAPH_JOB_ID",Ri.runId.toString()),yi("GITHUB_DEPENDENCY_GRAPH_REF",Ri.ref),yi("GITHUB_DEPENDENCY_GRAPH_SHA",Ozt()),yi("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",bh()),yi("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),yi("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),yi("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),yi("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),yi("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),yi("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),yi("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),yi("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function yi(t,e){process.env[t]||e!==void 0&&gs(t,e)}async function xzt(t){if(Hzt()){te("Dependency graph not supported in the ACT environment.");return}try{await kzt(await Rzt(t))}catch(e){Uzt(t,"download-and-submit",e)}}async function Rzt(t){let e=Ri.payload.workflow_run?{token:_k(),workflowRunId:Ri.payload.workflow_run.id,repositoryName:Ri.repo.repo,repositoryOwner:Ri.repo.owner}:void 0,r=new Dy,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(Tzt)),s=t.getDownloadArtifactName();s&&(te(`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});te(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Dzt()}async function Dzt(){let r=(await(await jY(`${Mzt()}/**/*.json`)).glob()).filter(n=>!_zt(n));return r.forEach(Lzt),te(`Found dependency graph files: ${r.join(", ")}`),r}async function kzt(t){if(t.length===0){te("No dependency graph files found to submit.");return}for(let e of t)try{await Fzt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=vzt(e,r)),r}}function vzt(t,e){let n=`Dependency submission failed for ${rHe(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 jVt(t){let e=e7t(),r=jX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=ri.repo.owner,n.repo=ri.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=t8e(t);wce(`Submitted ${i}: ${s.data.message}`)}function KVt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function $Vt(t){let e=`${t}.processed`;return jX.existsSync(e)}function XVt(t){let e=`${t}.processed`;jX.writeFileSync(e,"")}function ZVt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new $g(r);We(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function e7t(){return Oa($D())}function t8e(t){let e=Bd();return zX.relative(e,t)}function t7t(){let t=ri;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 r7t(){return process.env.ACT!==void 0}function s7t(t=process.platform){return t==="win32"?50:0}async function r8e(t=process.platform){let e=s7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function i7t(){try{ob()==="gradle/gradle-build-action"&&VD("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),Eme("gradle/actions/setup-gradle"),await Exe(new O0,new Za,new jD),await e8e(new cb);let t=new zD;t.verifyNoArguments(),await gz(t.getGradleVersion()),gme()}catch(t){gxe(t)}await r8e()}i7t();export{i7t as run};
`:n}async function Fzt(t){let e=Pzt(),r=vte.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Ri.repo.owner,n.repo=Ri.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=rHe(t);L8(`Submitted ${i}: ${s.data.message}`)}function Mzt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function _zt(t){let e=`${t}.processed`;return vte.existsSync(e)}function Lzt(t){let e=`${t}.processed`;vte.writeFileSync(e,"")}function Uzt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new fm(r);je(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Pzt(){return Tc(_k())}function rHe(t){let e=bh();return kte.relative(e,t)}function Ozt(){let t=Ri;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 Hzt(){return process.env.ACT!==void 0}function qzt(t=process.platform){return t==="win32"?50:0}async function nHe(t=process.platform){let e=qzt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function Yzt(){try{qQ()==="gradle/gradle-build-action"&&Rk("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),qEe("gradle/actions/setup-gradle"),await o2e(new fC,new Pc,new Fk),await tHe(new VQ);let t=new vk;t.verifyNoArguments(),await KK(t.getGradleVersion()),OEe()}catch(t){n2e(t)}await nHe()}Yzt();export{Yzt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -333,13 +340,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 +409,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": ";s1BAAA,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
}
+208 -191
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var m3e=Object.create;var gM=Object.defineProperty;var E3e=Object.getOwnPropertyDescriptor;var C3e=Object.getOwnPropertyNames;var I3e=Object.getPrototypeOf,y3e=Object.prototype.hasOwnProperty;var b=(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)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ba=(t,e)=>{for(var r in e)gM(t,r,{get:e[r],enumerable:!0})},B3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of C3e(e))!y3e.call(t,s)&&s!==r&&gM(t,s,{get:()=>e[s],enumerable:!(n=E3e(e,s))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?m3e(I3e(t)):{},B3e(e||!t||!t.__esModule?gM(r,"default",{value:t,enumerable:!0}):r,t));var eZ=E(Sp=>{"use strict";var yYt=b("net"),T3e=b("tls"),EM=b("http"),$X=b("https"),x3e=b("events"),BYt=b("assert"),R3e=b("util");Sp.httpOverHttp=D3e;Sp.httpsOverHttp=k3e;Sp.httpOverHttps=v3e;Sp.httpsOverHttps=_3e;function D3e(t){var e=new $A(t);return e.request=EM.request,e}function k3e(t){var e=new $A(t);return e.request=EM.request,e.createSocket=XX,e.defaultPort=443,e}function v3e(t){var e=new $A(t);return e.request=$X.request,e}function _3e(t){var e=new $A(t);return e.request=$X.request,e.createSocket=XX,e.defaultPort=443,e}function $A(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||EM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=ZX(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)})}R3e.inherits($A,x3e.EventEmitter);$A.prototype.addRequest=function(e,r,n,s){var i=this,o=CM({request:e},i.options,ZX(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=CM({},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")),yl("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){yl("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){yl("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 yl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),yl(`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 XX(t,e){var r=this;$A.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=CM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=T3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function ZX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function CM(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 yl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?yl=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)}:yl=function(){};Sp.debug=yl});var IM=E((QYt,tZ)=>{tZ.exports=eZ()});var Ir=E((wYt,rZ)=>{rZ.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 Lt=E((SYt,NZ)=>{"use strict";var nZ=Symbol.for("undici.error.UND_ERR"),yr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[nZ]===!0}[nZ]=!0},sZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),yM=class extends yr{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[sZ]===!0}[sZ]=!0},iZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),BM=class extends yr{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[iZ]===!0}[iZ]=!0},oZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),bM=class extends yr{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[oZ]===!0}[oZ]=!0},aZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),QM=class extends yr{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[aZ]===!0}[aZ]=!0},cZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),wM=class extends yr{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.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function K4e(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(_4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function $4e(){return"allowed"}function X4e(){return"success"}function Z4e(){return"success"}function e6e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function t6e(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&&pL(t.origin)&&!pL(fI(t))&&(e=null);break;case"same-origin":Z1(t,fI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Mp(t,e){return t}function r6e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Mp(t.domainLookupStartTime,r),domainLookupEndTime:Mp(t.domainLookupEndTime,r),connectionStartTime:Mp(t.connectionStartTime,r),connectionEndTime:Mp(t.connectionEndTime,r),secureConnectionStartTime:Mp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function n6e(t){return Mp(P4e.now(),t)}function s6e(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 Hee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function i6e(t){return{referrerPolicy:t.referrerPolicy}}function o6e(t){let e=t.referrerPolicy;_h(e);let r=null;if(t.referrer==="client"){let a=Fee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=gL(r),s=gL(r,!0);n.toString().length>4096&&(n=s);let i=Z1(t,n),o=hI(n)&&!hI(t.url);switch(e){case"origin":return s??gL(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=fI(t);return Z1(n,a)?n:hI(n)&&!hI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function gL(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 hI(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 a6e(t,e){if(X1===void 0)return!0;let r=Gee(e);if(r==="no metadata"||r.length===0)return!0;let n=A6e(r),s=u6e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=X1.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)),l6e(c,a))return!0}return!1}var c6e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Gee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=c6e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Lee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function A6e(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 u6e(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 l6e(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 d6e(t){}function Z1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function h6e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function f6e(t){return t.controller.state==="aborted"}function g6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function p6e(t){return G4e[t.toLowerCase()]??t}function m6e(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 E6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function qee(t,e,r=0,n=1){class s{ Line truncated
`);function z6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function j6e(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 K6e(t,e){tS(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&&rS(t,W6e,i)||i.position===t.length-4&&rS(t,J6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=$6e(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",z6e(u)||(u=""),h=new Y6e([d],A,{type:u})):h=P6e(Buffer.from(d)),tS(tte(c)),tS(typeof h=="string"&&tte(h)||H6e(h)),s.push(G6e(c,h,A))}}function $6e(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=Up(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bL(o,!0,!0,a=>a===9||a===32),!O6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Up(a=>a===32||a===9,t,e),U6e(o)){case"content-disposition":{if(r=n=null,!rS(t,V6e,e)||(e.position+=17,r=ste(t,e),r===null))return"failure";if(rS(t,nte,e)){let a=e.position+nte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=ste(t,e),n===null))return"failure"}break}case"content-type":{let a=Up(c=>c!==10&&c!==13,t,e);a=bL(a,!1,!0,c=>c===9||c===32),s=rte(a);break}case"content-transfer-encoding":{let a=Up(c=>c!==10&&c!==13,t,e);a=bL(a,!1,!0,c=>c===9||c===32),i=rte(a);break}default:Up(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function ste(t,e){tS(t[e.position-1]===34);let r=Up(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 Up(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function bL(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 rS(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}ite.exports={multipartFormDataParser:K6e,validateBoundary:j6e}});var Hp=E(($Yt,pte)=>{"use strict";var mI=lt(),{ReadableStreamFrom:X6e,isBlobLike:ate,isReadableStreamLike:Z6e,readableStreamClose:e5e,createDeferredPromise:t5e,fullyReadBody:r5e,extractMimeType:n5e,utf8DecodeBytes:ute}=wi(),{FormData:cte}=pI(),{kState:Op}=Bl(),{webidl:s5e}=Jn(),{Blob:i5e}=b("node:buffer"),QL=b("node:assert"),{isErrored:lte,isDisturbed:o5e}=b("node:stream"),{isArrayBuffer:a5e}=b("node:util/types"),{serializeAMimeType:c5e}=Js(),{multipartFormDataParser:A5e}=ote(),wL;try{let t=b("node:crypto");wL=e=>t.randomInt(0,e)}catch{wL=t=>Math.floor(Math.random(t))}var nS=new TextEncoder;function u5e(){}var dte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,hte;dte&&(hte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!o5e(e)&&!lte(e)&&e.cancel("Response object has been garbage collected").catch(u5e)}));function fte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:ate(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?nS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>e5e(c))},start(){},type:"bytes"}),QL(Z6e(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(a5e(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(mI.isFormDataLike(t)){let c=`----formdata-undici-0${`${wL(1e11)}`.padStart(11,"0")}`,A=`--${c}\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=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=nS.encode(A+`; name="${u(l(I))}"\r
var e6e=Object.create;var gU=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}},cA=(t,e)=>{for(var r in e)gU(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&&gU(t,s,{get:()=>e[s],enumerable:!(n=t6e(e,s))||n.enumerable});return t};var Ie=(t,e,r)=>(r=t!=null?e6e(n6e(t)):{},i6e(e||!t||!t.__esModule?gU(r,"default",{value:t,enumerable:!0}):r,t));var mte=C(jm=>{"use strict";var Q7t=Q("net"),l6e=Q("tls"),CU=Q("http"),fte=Q("https"),d6e=Q("events"),w7t=Q("assert"),h6e=Q("util");jm.httpOverHttp=f6e;jm.httpsOverHttp=g6e;jm.httpOverHttps=p6e;jm.httpsOverHttps=m6e;function f6e(t){var e=new Gu(t);return e.request=CU.request,e}function g6e(t){var e=new Gu(t);return e.request=CU.request,e.createSocket=gte,e.defaultPort=443,e}function p6e(t){var e=new Gu(t);return e.request=fte.request,e}function m6e(t){var e=new Gu(t);return e.request=fte.request,e.createSocket=gte,e.defaultPort=443,e}function Gu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||CU.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=pte(s,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(n);return}}n.destroy(),e.removeSocket(n)})}h6e.inherits(Gu,d6e.EventEmitter);Gu.prototype.addRequest=function(e,r,n,s){var i=this,o=IU({request:e},i.options,pte(r,n,s));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)}})};Gu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=IU({},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")),wd("making CONNECT request");var o=n.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){wd("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){wd("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 wd("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),wd(`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)}};Gu.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 gte(t,e){var r=this;Gu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=IU({},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 pte(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function IU(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 wd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?wd=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)}:wd=function(){};jm.debug=wd});var yU=C((N7t,Ete)=>{Ete.exports=mte()});var kr=C((T7t,Cte)=>{Cte.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 Vt=C((x7t,Yte)=>{"use strict";var Ite=Symbol.for("undici.error.UND_ERR"),vr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Ite]===!0}[Ite]=!0},yte=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),BU=class extends vr{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[yte]===!0}[yte]=!0},Bte=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),bU=class extends vr{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[Bte]===!0}[Bte]=!0},bte=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),QU=class extends vr{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[bte]===!0}[bte]=!0},Qte=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),wU=class extends vr{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[Qte]===!0}[Qte]=!0},wte=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),SU=class extends vr{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 v5e(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(m5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function F5e(){return"allowed"}function M5e(){return"success"}function _5e(){return"success"}function L5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function U5e(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&&mP(t.origin)&&!mP(qy(t))&&(e=null);break;case"same-origin":LN(t,qy(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function i0(t,e){return t}function P5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:i0(t.domainLookupStartTime,r),domainLookupEndTime:i0(t.domainLookupEndTime,r),connectionStartTime:i0(t.connectionStartTime,r),connectionEndTime:i0(t.connectionEndTime,r),secureConnectionStartTime:i0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function O5e(t){return i0(B5e.now(),t)}function H5e(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 sne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function G5e(t){return{referrerPolicy:t.referrerPolicy}}function q5e(t){let e=t.referrerPolicy;Of(e);let r=null;if(t.referrer==="client"){let a=Zre();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=pP(r),s=pP(r,!0);n.toString().length>4096&&(n=s);let i=LN(t,n),o=Gy(n)&&!Gy(t.url);switch(e){case"origin":return s??pP(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=qy(t);return LN(n,a)?n:Gy(n)&&!Gy(a)?"no-referrer":s}default:return o?"no-referrer":s}}function pP(t,e){return Of(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 Gy(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 Y5e(t,e){if(_N===void 0)return!0;let r=ine(e);if(r==="no metadata"||r.length===0)return!0;let n=J5e(r),s=W5e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=_N.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)),z5e(A,a))return!0}return!1}var V5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function ine(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=V5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();ene.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function J5e(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 W5e(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 z5e(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 j5e(t){}function LN(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function K5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function X5e(t){return t.controller.state==="aborted"}function Z5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function $5e(t){return w5e[t.toLowerCase()]??t}function eGe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Of(typeof e=="string"),e}var tGe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function one(t,e,r=0,n=1){class s{ Line truncated
`);function DGe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function kGe(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 vGe(t,e){PN(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&&ON(t,xGe,i)||i.position===t.length-4&&ON(t,RGe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=FGe(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(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;c!==null?(u??="text/plain",DGe(u)||(u=""),h=new NGe([d],c,{type:u})):h=BGe(Buffer.from(d)),PN(Ene(A)),PN(typeof h=="string"&&Ene(h)||QGe(h)),s.push(wGe(A,h,c))}}function FGe(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=a0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=QP(o,!0,!0,a=>a===9||a===32),!bGe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,a0(a=>a===32||a===9,t,e),yGe(o)){case"content-disposition":{if(r=n=null,!ON(t,TGe,e)||(e.position+=17,r=yne(t,e),r===null))return"failure";if(ON(t,Ine,e)){let a=e.position+Ine.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=yne(t,e),n===null))return"failure"}break}case"content-type":{let a=a0(A=>A!==10&&A!==13,t,e);a=QP(a,!1,!0,A=>A===9||A===32),s=Cne(a);break}case"content-transfer-encoding":{let a=a0(A=>A!==10&&A!==13,t,e);a=QP(a,!1,!0,A=>A===9||A===32),i=Cne(a);break}default:a0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function yne(t,e){PN(t[e.position-1]===34);let r=a0(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 a0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function QP(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 ON(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}Bne.exports={multipartFormDataParser:vGe,validateBoundary:kGe}});var u0=C((ezt,vne)=>{"use strict";var Jy=Et(),{ReadableStreamFrom:MGe,isBlobLike:Qne,isReadableStreamLike:_Ge,readableStreamClose:LGe,createDeferredPromise:UGe,fullyReadBody:PGe,extractMimeType:OGe,utf8DecodeBytes:Nne}=so(),{FormData:wne}=Vy(),{kState:c0}=Sd(),{webidl:HGe}=ds(),{Blob:GGe}=Q("node:buffer"),wP=Q("node:assert"),{isErrored:Tne,isDisturbed:qGe}=Q("node:stream"),{isArrayBuffer:YGe}=Q("node:util/types"),{serializeAMimeType:VGe}=Bi(),{multipartFormDataParser:JGe}=bne(),SP;try{let t=Q("node:crypto");SP=e=>t.randomInt(0,e)}catch{SP=t=>Math.floor(Math.random(t))}var HN=new TextEncoder;function WGe(){}var xne=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Rne;xne&&(Rne=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!qGe(e)&&!Tne(e)&&e.cancel("Response object has been garbage collected").catch(WGe)}));function Dne(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Qne(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?HN.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>LGe(A))},start(){},type:"bytes"}),wP(_Ge(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(YGe(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(Jy.isFormDataLike(t)){let A=`----formdata-undici-0${`${SP(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=HN.encode(c+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=nS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=HN.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,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=nS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(ate(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(mI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:X6e(t)}if((typeof s=="string"||mI.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(!lte(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 l5e(t,e=!1){return t instanceof ReadableStream&&(QL(!mI.isDisturbed(t),"The body has already been consumed."),QL(!t.locked,"The stream is locked.")),fte(t,e)}function d5e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function h5e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function f5e(t){return{blob(){return Pp(this,r=>{let n=Ate(this);return n===null?n="":n&&(n=c5e(n)),new i5e([r],{type:n})},t)},arrayBuffer(){return Pp(this,r=>new Uint8Array(r).buffer,t)},text(){return Pp(this,ute,t)},json(){return Pp(this,p5e,t)},formData(){return Pp(this,r=>{let n=Ate(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=A5e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new cte;return i[Op]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new cte;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 Pp(this,r=>new Uint8Array(r),t)}}}function g5e(t){Object.assign(t.prototype,f5e(t))}async function Pp(t,e,r){if(s5e.brandCheck(t,r),gte(t))throw new TypeError("Body is unusable: Body has already been read");h5e(t[Op]);let n=t5e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Op].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await r5e(t[Op].body,i,s),n.promise)}function gte(t){let e=t[Op].body;return e!=null&&(e.stream.locked||mI.isDisturbed(e.stream))}function p5e(t){return JSON.parse(ute(t))}function Ate(t){let e=t[Op].headersList,r=n5e(e);return r==="failure"?null:r}pte.exports={extractBody:fte,safelyExtractBody:l5e,cloneBody:d5e,mixinBody:g5e,streamRegistry:hte,hasFinalizationRegistry:dte,bodyUnusable:gte}});var Nte=E((XYt,Ste)=>{"use strict";var Ge=b("node:assert"),$e=lt(),{channels:mte}=Tp(),SL=aL(),{RequestContentLengthMismatchError:Fh,ResponseContentLengthMismatchError:m5e,RequestAbortedError:bte,HeadersTimeoutError:E5e,HeadersOverflowError:C5e,SocketError:AS,InformationalError:Gp,BodyTimeoutError:I5e,HTTPParserError:y5e,ResponseExceededMaxSizeError:B5e}=Lt(),{kUrl:Qte,kReset:zs,kClient:RL,kParser:Fr,kBlocking:II,kRunning:os,kPending:b5e,kSize:Ete,kWriting:Ql,kQueue:ba,kNoRef:EI,kKeepAliveDefaultTimeout:Q5e,kHostHeader:w5e,kPendingIdx:S5e,kRunningIdx:Eo,kError:Co,kPipelining:aS,kSocket:qp,kKeepAliveTimeoutValue:uS,kMaxHeadersSize:NL,kKeepAliveMaxTimeout:N5e,kKeepAliveTimeoutThreshold:T5e,kHeadersTimeout:x5e,kBodyTimeout:R5e,kStrictContentLength:DL,kMaxRequests:Cte,kCounter:D5e,kMaxResponseSize:k5e,kOnError:v5e,kResume:bl,kHTTPContext:wte}=Ir(),pc=hee(),_5e=Buffer.alloc(0),sS=Buffer[Symbol.species],iS=$e.addListener,F5e=$e.removeAllListeners,TL;async function M5e(){let t=process.env.JEST_WORKER_ID?uL():void 0,e;try{e=await WebAssembly.compile(pee())}catch{e=await WebAssembly.compile(t||uL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onStatus(new sS(mc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onHeaderField(new sS(mc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onHeaderValue(new sS(mc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onBody(new sS(mc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var xL=null,kL=M5e();kL.catch();var fn=null,mc=null,oS=0,Ec=null,L5e=0,CI=1,Yp=2|CI,cS=4|CI,vL=8|L5e,_L=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[NL])&&e[NL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(pc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[w5e],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=HN.encode(`--${A}--\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=${A}`}else if(Qne(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(Jy.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:MGe(t)}if((typeof s=="string"||Jy.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(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(!Tne(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:s,length:i},o]}function zGe(t,e=!1){return t instanceof ReadableStream&&(wP(!Jy.isDisturbed(t),"The body has already been consumed."),wP(!t.locked,"The stream is locked.")),Dne(t,e)}function jGe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function KGe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function XGe(t){return{blob(){return A0(this,r=>{let n=Sne(this);return n===null?n="":n&&(n=VGe(n)),new GGe([r],{type:n})},t)},arrayBuffer(){return A0(this,r=>new Uint8Array(r).buffer,t)},text(){return A0(this,Nne,t)},json(){return A0(this,$Ge,t)},formData(){return A0(this,r=>{let n=Sne(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=JGe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new wne;return i[c0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new wne;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 A0(this,r=>new Uint8Array(r),t)}}}function ZGe(t){Object.assign(t.prototype,XGe(t))}async function A0(t,e,r){if(HGe.brandCheck(t,r),kne(t))throw new TypeError("Body is unusable: Body has already been read");KGe(t[c0]);let n=UGe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[c0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await PGe(t[c0].body,i,s),n.promise)}function kne(t){let e=t[c0].body;return e!=null&&(e.stream.locked||Jy.isDisturbed(e.stream))}function $Ge(t){return JSON.parse(Nne(t))}function Sne(t){let e=t[c0].headersList,r=OGe(e);return r==="failure"?null:r}vne.exports={extractBody:Dne,safelyExtractBody:zGe,cloneBody:jGe,mixinBody:ZGe,streamRegistry:Rne,hasFinalizationRegistry:xne,bodyUnusable:kne}});var jne=C((tzt,zne)=>{"use strict";var Pe=Q("node:assert"),qe=Et(),{channels:Fne}=Xm(),NP=AP(),{RequestContentLengthMismatchError:Hf,ResponseContentLengthMismatchError:Mne,RequestAbortedError:qne,InvalidArgumentError:e9e,HeadersTimeoutError:t9e,HeadersOverflowError:r9e,SocketError:l0,InformationalError:d0,BodyTimeoutError:n9e,HTTPParserError:s9e,ResponseExceededMaxSizeError:i9e}=Vt(),{kUrl:Yne,kReset:bi,kClient:VN,kParser:Ir,kBlocking:jy,kRunning:Cn,kPending:Vne,kSize:_ne,kWriting:Nd,kQueue:uA,kNoRef:Wy,kKeepAliveDefaultTimeout:o9e,kHostHeader:a9e,kPendingIdx:A9e,kRunningIdx:ta,kError:zs,kPipelining:JN,kSocket:Gf,kKeepAliveTimeoutValue:zN,kMaxHeadersSize:TP,kKeepAliveMaxTimeout:c9e,kKeepAliveTimeoutThreshold:u9e,kHeadersTimeout:l9e,kBodyTimeout:d9e,kStrictContentLength:DP,kMaxRequests:Lne,kCounter:h9e,kMaxResponseSize:f9e,kOnError:Une,kResume:zu,kHTTPContext:Jne}=kr(),io=Rre(),Pne=Buffer.alloc(0),GN=Buffer[Symbol.species],qN=qe.addListener,g9e=qe.removeAllListeners,qf=Symbol("kIdleSocketValidation"),h0=Symbol("kIdleSocketValidationTimeout"),MP=Symbol("kSocketUsed"),xP;async function p9e(){let t=process.env.JEST_WORKER_ID?lP():void 0,e;try{e=await WebAssembly.compile(vre())}catch{e=await WebAssembly.compile(t||lP())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Pe(zr.ptr===r);let i=n-sc+nc.byteOffset;return zr.onStatus(new GN(nc.buffer,i,s))||0},wasm_on_message_begin:r=>(Pe(zr.ptr===r),zr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Pe(zr.ptr===r);let i=n-sc+nc.byteOffset;return zr.onHeaderField(new GN(nc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Pe(zr.ptr===r);let i=n-sc+nc.byteOffset;return zr.onHeaderValue(new GN(nc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Pe(zr.ptr===r),zr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Pe(zr.ptr===r);let i=n-sc+nc.byteOffset;return zr.onBody(new GN(nc.buffer,i,s))||0},wasm_on_message_complete:r=>(Pe(zr.ptr===r),zr.onMessageComplete()||0)}})}var RP=null,kP=p9e();kP.catch();var zr=null,nc=null,YN=0,sc=null,m9e=0,zy=1,f0=2|zy,WN=4|zy,vP=8|m9e,FP=class{constructor(e,r,{exports:n}){Pe(Number.isFinite(e[TP])&&e[TP]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(io.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[a9e],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[aS]&&!h[zs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return mte.sendHeaders.hasSubscribers&&mte.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?yte(f,null,t,e,h,u,p,l):$e.isBuffer(c)?yte(f,c,t,e,h,u,p,l):$e.isBlobLike(c)?typeof c.stream=="function"?Bte(f,c.stream(),t,e,h,u,p,l):q5e(f,c,t,e,h,u,p,l):$e.isStream(c)?G5e(f,c,t,e,h,u,p,l):$e.isIterable(c)?Bte(f,c,t,e,h,u,p,l):Ge(!1),!0}function G5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===0,"stream body cannot be pipelined");let c=!1,A=new lS({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(p){$e.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new bte;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[Ql]&&r[os]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?$e.destroy(e,f):$e.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 yte(t,e,r,n,s,i,o,a){try{e?$e.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[JN]&&!h[bi]?g+=`connection: keep-alive\r
`:g+=`connection: close\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 y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return Fne.sendHeaders.hasSubscribers&&Fne.sendHeaders.publish({request:e,headers:g,socket:h}),!A||d===0?Hne(f,null,t,e,h,u,g,l):qe.isBuffer(A)?Hne(f,A,t,e,h,u,g,l):qe.isBlobLike(A)?typeof A.stream=="function"?Gne(f,A.stream(),t,e,h,u,g,l):Q9e(f,A,t,e,h,u,g,l):qe.isStream(A)?b9e(f,A,t,e,h,u,g,l):qe.isIterable(A)?Gne(f,A,t,e,h,u,g,l):Pe(!1),!0}function b9e(t,e,r,n,s,i,o,a){Pe(i!==0||r[Cn]===0,"stream body cannot be pipelined");let A=!1,c=new jN({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(g){qe.destroy(this,g)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new qne;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Pe(s.destroyed||s[Nd]&&r[Cn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(g){f=g}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?qe.destroy(e,f):qe.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 Hne(t,e,r,n,s,i,o,a){try{e?qe.isBuffer(e)&&(Pe(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[zs]=!0)):i===0?s.write(`${o}content-length: 0\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
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[bl]()}catch(c){t(c)}}async function q5e(t,e,r,n,s,i,o,a){Ge(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"):(Pe(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[zu]()}catch(A){t(A)}}async function Q9e(t,e,r,n,s,i,o,a){Pe(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Hf;let A=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[zs]=!0),r[bl]()}catch(c){t(c)}}async function Bte(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===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)=>{Ge(c===null),s[Co]?h(s[Co]):c=d});s.on("close",A).on("drain",A);let l=new lS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Co])throw s[Co];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var lS=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[Ql]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Co])throw r[Co];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[DL])throw new Fh;process.emitWarning(new Fh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[zs]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[bi]=!0),r[zu]()}catch(A){t(A)}}async function Gne(t,e,r,n,s,i,o,a){Pe(i!==0||r[Cn]===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)=>{Pe(A===null),s[zs]?h(s[zs]):A=d});s.on("close",c).on("drain",c);let l=new jN({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[zs])throw s[zs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var jN=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[Nd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[zs])throw r[zs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[DP])throw new Hf;process.emitWarning(new Hf)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}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[Fr].timeout&&r[Fr].timeoutType===Yp&&r[Fr].timeout.refresh&&r[Fr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Ql]=!1,e[Co])throw e[Co];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Ir].timeout&&r[Ir].timeoutType===f0&&r[Ir].timeout.refresh&&r[Ir].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Nd]=!1,e[zs])throw e[zs];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[DL])throw new Fh;process.emitWarning(new Fh)}e[Fr].timeout&&e[Fr].timeoutType===Yp&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),n[bl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Ql]=!1,e&&(Ge(n[os]<=1,"pipeline should only contain this request"),s(e))}};Ste.exports=U5e});var Fte=E((ZYt,_te)=>{"use strict";var Io=b("node:assert"),{pipeline:Y5e}=b("node:stream"),mt=lt(),{RequestContentLengthMismatchError:FL,RequestAbortedError:Tte,SocketError:yI,InformationalError:ML}=Lt(),{kUrl:dS,kReset:fS,kClient:Vp,kRunning:gS,kPending:V5e,kQueue:wl,kPendingIdx:LL,kRunningIdx:Qa,kError:Sa,kSocket:Tn,kStrictContentLength:W5e,kOnError:UL,kMaxConcurrentStreams:vte,kHTTP2Session:wa,kResume:Sl,kSize:J5e,kHTTPContext:z5e}=Ir(),nu=Symbol("open streams"),xte,Rte=!1,hS;try{hS=b("node:http2")}catch{hS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:j5e,HTTP2_HEADER_METHOD:K5e,HTTP2_HEADER_PATH:$5e,HTTP2_HEADER_SCHEME:X5e,HTTP2_HEADER_CONTENT_LENGTH:Z5e,HTTP2_HEADER_EXPECT:eHe,HTTP2_HEADER_STATUS:tHe}}=hS;function rHe(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 nHe(t,e){t[Tn]=e,Rte||(Rte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=hS.connect(t[dS],{createConnection:()=>e,peerMaxConcurrentStreams:t[vte]});r[nu]=0,r[Vp]=t,r[Tn]=e,mt.addListener(r,"error",iHe),mt.addListener(r,"frameError",oHe),mt.addListener(r,"end",aHe),mt.addListener(r,"goaway",cHe),mt.addListener(r,"close",function(){let{[Vp]:s}=this,{[Tn]:i}=s,o=this[Tn][Sa]||this[Sa]||new yI("closed",mt.getSocketInfo(i));if(s[wa]=null,s.destroyed){Io(s[V5e]===0);let a=s[wl].splice(s[Qa]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[wa]=r,e[wa]=r,mt.addListener(e,"error",function(s){Io(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sa]=s,this[Vp][UL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new yI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Sa]||new yI("closed",mt.getSocketInfo(this));t[Tn]=null,this[wa]!=null&&this[wa].destroy(s),t[LL]=t[Qa],Io(t[gS]===0),t.emit("disconnect",t[dS],[t],s),t[Sl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return uHe(t,...s)},resume(){sHe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function sHe(t){let e=t[Tn];e?.destroyed===!1&&(t[J5e]===0&&t[vte]===0?(e.unref(),t[wa].unref()):(e.ref(),t[wa].ref()))}function iHe(t){Io(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Tn][Sa]=t,this[Vp][UL](t)}function oHe(t,e,r){if(r===0){let n=new ML(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Tn][Sa]=n,this[Vp][UL](n)}}function aHe(){let t=new yI("other side closed",mt.getSocketInfo(this[Tn]));this.destroy(t),mt.destroy(this[Tn],t)}function cHe(t){let e=this[Sa]||new yI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Vp];if(r[Tn]=null,r[z5e]=null,this[wa]!=null&&(this[wa].destroy(e),this[wa]=null),mt.destroy(this[Tn],e),r[Qa]<r[wl].length){let n=r[wl][r[Qa]];r[wl][r[Qa]++]=null,mt.errorRequest(r,n,e),r[LL]=r[Qa]}Io(r[gS]===0),r.emit("disconnect",r[dS],[r],e),r[Sl]()}function AHe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function uHe(t,e){let r=t[wa],{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 N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[dS];l[j5e]=i||`${h}${f?`:${f}`:""}`,l[K5e]=n;let p=N=>{e.aborted||e.completed||(N=N||new Tte,mt.errorRequest(t,e,N),d!=null&&mt.destroy(d,N),mt.destroy(u,N),t[wl][t[Qa]++]=null,t[Sl]())};try{e.onConnect(p)}catch(N){mt.errorRequest(t,e,N)}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[nu],t[wl][t[Qa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[nu],t[wl][t[Qa]++]=null}),d.once("close",()=>{r[nu]-=1,r[nu]===0&&r.unref()}),!0;l[$5e]=s,l[X5e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){xte??=Hp().extractBody;let[N,M]=xte(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),AHe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[W5e])return mt.errorRequest(t,e,new FL),!1;process.emitWarning(new FL)}m!=null&&(Io(u,"no body must not have content length"),l[Z5e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[eHe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[MHe]=c??3e5,this[FHe]=s??3e5,this[LHe]=C??!0,this[UHe]=N,this[GL]=O,this[Tl]=null,this[qHe]=P>-1?P:-1,this[VHe]=Z??100,this[zr]=null,this[Na]=[],this[iu]=0,this[Ta]=0,this[wI]=ce=>YL(this,ce),this[YHe]=ce=>Jte(this,ce)}get pipelining(){return this[CS]}set pipelining(e){this[CS]=e,this[wI](!0)}get[TI](){return this[Na].length-this[Ta]}get[NI](){return this[Ta]-this[iu]}get[SI](){return this[Na].length-this[iu]}get[THe](){return!!this[zr]&&!this[Jp]&&!this[zr].destroyed}get[HL](){return!!(this[zr]?.busy(null)||this[SI]>=(Wte(this)||1)||this[TI]>0)}[NHe](e){zte(this),this.once("connect",e)}[GHe](e,r){let n=e.origin||this[Ic].origin,s=new yHe(n,e,r);return this[Na].push(s),this[Lh]||(Mh.bodyLength(s.body)==null&&Mh.isIterable(s.body)?(this[Lh]=1,queueMicrotask(()=>YL(this))):this[wI](!0)),this[Lh]&&this[xl]!==2&&this[HL]&&(this[xl]=2),this[xl]<2}async[OHe](){return new Promise(e=>{this[SI]?this[Tl]=e:e(null)})}async[HHe](e){return new Promise(r=>{let n=this[Na].splice(this[Ta]);for(let i=0;i<n.length;i++){let o=n[i];Mh.errorRequest(this,o,e)}let s=()=>{this[Tl]&&(this[Tl](),this[Tl]=null),r(null)};this[zr]?(this[zr].destroy(e,s),this[zr]=null):queueMicrotask(s),this[wI]()})}},zHe=ES();function Jte(t,e){if(t[NI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){su(t[Ta]===t[iu]);let r=t[Na].splice(t[iu]);for(let n=0;n<r.length;n++){let s=r[n];Mh.errorRequest(t,s,e)}su(t[SI]===0)}}async function zte(t){su(!t[Jp]),su(!t[zr]);let{host:e,hostname:r,protocol:n,port:s}=t[Ic];if(r[0]==="["){let i=r.indexOf("]");su(i!==-1);let o=r.substring(1,i);su(Vte.isIP(o)),r=o}t[Jp]=!0,Wp.beforeConnect.hasSubscribers&&Wp.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Nl],localAddress:t[QI]},connector:t[bI]});try{let i=await new Promise((o,a)=>{t[bI]({host:e,hostname:r,protocol:n,port:s,servername:t[Nl],localAddress:t[QI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Mh.destroy(i.on("error",qte),new QHe);return}su(i);try{t[zr]=i.alpnProtocol==="h2"?await JHe(t,i):await WHe(t,i)}catch(o){throw i.destroy().on("error",qte),o}t[Jp]=!1,i[PHe]=0,i[GL]=t[GL],i[SHe]=t,i[RHe]=null,Wp.connected.hasSubscribers&&Wp.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Nl],localAddress:t[QI]},connector:t[bI],socket:i}),t.emit("connect",t[Ic],[t])}catch(i){if(t.destroyed)return;if(t[Jp]=!1,Wp.connectError.hasSubscribers&&Wp.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Nl],localAddress:t[QI]},connector:t[bI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(su(t[NI]===0);t[TI]>0&&t[Na][t[Ta]].servername===t[Nl];){let o=t[Na][t[Ta]++];Mh.errorRequest(t,o,i)}else Jte(t,i);t.emit("connectionError",t[Ic],[t],i)}t[wI]()}function Yte(t){t[xl]=0,t.emit("drain",t[Ic],[t])}function YL(t,e){t[Lh]!==2&&(t[Lh]=2,jHe(t,e),t[Lh]=0,t[iu]>256&&(t[Na].splice(0,t[iu]),t[Ta]-=t[iu],t[iu]=0))}function jHe(t,e){for(;;){if(t.destroyed){su(t[TI]===0);return}if(t[Tl]&&!t[SI]){t[Tl](),t[Tl]=null;return}if(t[zr]&&t[zr].resume(),t[HL])t[xl]=2;else if(t[xl]===2){e?(t[xl]=1,queueMicrotask(()=>Yte(t))):Yte(t);continue}if(t[TI]===0||t[NI]>=(Wte(t)||1))return;let r=t[Na][t[Ta]];if(t[Ic].protocol==="https:"&&t[Nl]!==r.servername){if(t[NI]>0)return;t[Nl]=r.servername,t[zr]?.destroy(new bHe("servername changed"),()=>{t[zr]=null,YL(t)})}if(t[Jp])return;if(!t[zr]){zte(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[Ta]++:t[Na].splice(t[Ta],1)}}jte.exports=qL});var VL=E((sVt,Kte)=>{"use strict";var IS=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)}};Kte.exports=class{constructor(){this.head=this.tail=new IS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new IS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Xte=E((iVt,$te)=>{var{kFree:KHe,kConnected:$He,kPending:XHe,kQueued:ZHe,kRunning:e9e,kSize:t9e}=Ir(),Uh=Symbol("pool"),WL=class{constructor(e){this[Uh]=e}get connected(){return this[Uh][$He]}get free(){return this[Uh][KHe]}get pending(){return this[Uh][XHe]}get queued(){return this[Uh][ZHe]}get running(){return this[Uh][e9e]}get size(){return this[Uh][t9e]}};$te.exports=WL});var XL=E((oVt,cre)=>{"use strict";var r9e=kp(),n9e=VL(),{kConnected:JL,kSize:Zte,kRunning:ere,kPending:tre,kQueued:xI,kBusy:s9e,kFree:i9e,kUrl:o9e,kClose:a9e,kDestroy:c9e,kDispatch:A9e}=Ir(),u9e=Xte(),js=Symbol("clients"),bs=Symbol("needDrain"),RI=Symbol("queue"),zL=Symbol("closed resolve"),jL=Symbol("onDrain"),rre=Symbol("onConnect"),nre=Symbol("onDisconnect"),sre=Symbol("onCo Line truncated
`,"latin1"),r!==null&&s!==r){if(n[DP])throw new Hf;process.emitWarning(new Hf)}e[Ir].timeout&&e[Ir].timeoutType===f0&&e[Ir].timeout.refresh&&e[Ir].timeout.refresh(),n[zu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Nd]=!1,e&&(Pe(n[Cn]<=1,"pipeline should only contain this request"),s(e))}};zne.exports=E9e});var nse=C((rzt,rse)=>{"use strict";var ra=Q("node:assert"),{pipeline:w9e}=Q("node:stream"),St=Et(),{RequestContentLengthMismatchError:_P,RequestAbortedError:Kne,SocketError:Ky,InformationalError:LP}=Vt(),{kUrl:KN,kReset:ZN,kClient:g0,kRunning:$N,kPending:S9e,kQueue:Td,kPendingIdx:UP,kRunningIdx:lA,kError:hA,kSocket:Vn,kStrictContentLength:N9e,kOnError:PP,kMaxConcurrentStreams:tse,kHTTP2Session:dA,kResume:xd,kSize:T9e,kHTTPContext:x9e}=kr(),ju=Symbol("open streams"),Xne,Zne=!1,XN;try{XN=Q("node:http2")}catch{XN={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:R9e,HTTP2_HEADER_METHOD:D9e,HTTP2_HEADER_PATH:k9e,HTTP2_HEADER_SCHEME:v9e,HTTP2_HEADER_CONTENT_LENGTH:F9e,HTTP2_HEADER_EXPECT:M9e,HTTP2_HEADER_STATUS:_9e}}=XN;function L9e(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 U9e(t,e){t[Vn]=e,Zne||(Zne=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=XN.connect(t[KN],{createConnection:()=>e,peerMaxConcurrentStreams:t[tse]});r[ju]=0,r[g0]=t,r[Vn]=e,St.addListener(r,"error",O9e),St.addListener(r,"frameError",H9e),St.addListener(r,"end",G9e),St.addListener(r,"goaway",q9e),St.addListener(r,"close",function(){let{[g0]:s}=this,{[Vn]:i}=s,o=this[Vn][hA]||this[hA]||new Ky("closed",St.getSocketInfo(i));if(s[dA]=null,s.destroyed){ra(s[S9e]===0);let a=s[Td].splice(s[lA]);for(let A=0;A<a.length;A++){let c=a[A];St.errorRequest(s,c,o)}}}),r.unref(),t[dA]=r,e[dA]=r,St.addListener(e,"error",function(s){ra(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hA]=s,this[g0][PP](s)}),St.addListener(e,"end",function(){St.destroy(this,new Ky("other side closed",St.getSocketInfo(this)))}),St.addListener(e,"close",function(){let s=this[hA]||new Ky("closed",St.getSocketInfo(this));t[Vn]=null,this[dA]!=null&&this[dA].destroy(s),t[UP]=t[lA],ra(t[$N]===0),t.emit("disconnect",t[KN],[t],s),t[xd]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return V9e(t,...s)},resume(){P9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function P9e(t){let e=t[Vn];e?.destroyed===!1&&(t[T9e]===0&&t[tse]===0?(e.unref(),t[dA].unref()):(e.ref(),t[dA].ref()))}function O9e(t){ra(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Vn][hA]=t,this[g0][PP](t)}function H9e(t,e,r){if(r===0){let n=new LP(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Vn][hA]=n,this[g0][PP](n)}}function G9e(){let t=new Ky("other side closed",St.getSocketInfo(this[Vn]));this.destroy(t),St.destroy(this[Vn],t)}function q9e(t){let e=this[hA]||new Ky(`HTTP/2: "GOAWAY" frame received with code ${t}`,St.getSocketInfo(this)),r=this[g0];if(r[Vn]=null,r[x9e]=null,this[dA]!=null&&(this[dA].destroy(e),this[dA]=null),St.destroy(this[Vn],e),r[lA]<r[Td].length){let n=r[Td][r[lA]];r[Td][r[lA]++]=null,St.errorRequest(r,n,e),r[UP]=r[lA]}ra(r[$N]===0),r.emit("disconnect",r[KN],[r],e),r[xd]()}function Y9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function V9e(t,e){let r=t[dA],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return St.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<c.length;B+=2){let F=c[B+0],Y=c[B+1];if(Array.isArray(Y))for(let L=0;L<Y.length;L++)l[F]?l[F]+=`,${Y[L]}`:l[F]=Y[L];else l[F]=Y}let d,{hostname:h,port:f}=t[KN];l[R9e]=i||`${h}${f?`:${f}`:""}`,l[D9e]=n;let g=B=>{e.aborted||e.completed||(B=B||new Kne,St.errorRequest(t,e,B),d!=null&&St.destroy(d,B),St.destroy(u,B),t[Td][t[lA]++]=null,t[xd]())};try{e.onConnect(g)}catch(B){St.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[ju],t[Td][t[lA]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ju],t[Td][t[lA]++]=null}),d.once("close",()=>{r[ju]-=1,r[ju]===0&&r.unref()}),!0;l[k9e]=s,l[v9e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=St.bodyLength(u);if(St.isFormDataLike(u)){Xne??=u0().extractBody;let[B,F]=Xne(u);l["content-type"]=F,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),Y9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[N9e])return St.errorRequest(t,e,new _P),!1;process.emitWarning(new _P)}m!=null&&(ra(u,"no body must not have content length"),l[F9e]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[M9e]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[mqe]=A??3e5,this[pqe]=s??3e5,this[Eqe]=I??!0,this[Cqe]=B,this[qP]=Y,this[Dd]=null,this[Qqe]=P>-1?P:-1,this[Sqe]=Z??100,this[An]=null,this[fA]=[],this[Xu]=0,this[gA]=0,this[eB]=de=>VP(this,de),this[wqe]=de=>gse(this,de)}get pipelining(){return this[nT]}set pipelining(e){this[nT]=e,this[eB](!0)}get[nB](){return this[fA].length-this[gA]}get[rB](){return this[gA]-this[Xu]}get[tB](){return this[fA].length-this[Xu]}get[cqe](){return!!this[An]&&!this[m0]&&!this[An].destroyed}get[GP](){return!!(this[An]?.busy(null)||this[tB]>=(fse(this)||1)||this[nB]>0)}[Aqe](e){pse(this),this.once("connect",e)}[bqe](e,r){let n=e.origin||this[oc].origin,s=new rqe(n,e,r);return this[fA].push(s),this[Vf]||(Yf.bodyLength(s.body)==null&&Yf.isIterable(s.body)?(this[Vf]=1,queueMicrotask(()=>VP(this))):this[eB](!0)),this[Vf]&&this[kd]!==2&&this[GP]&&(this[kd]=2),this[kd]<2}async[yqe](){return new Promise(e=>{this[tB]?this[Dd]=e:e(null)})}async[Bqe](e){return new Promise(r=>{let n=this[fA].splice(this[gA]);for(let i=0;i<n.length;i++){let o=n[i];Yf.errorRequest(this,o,e)}let s=()=>{this[Dd]&&(this[Dd](),this[Dd]=null),r(null)};this[An]?(this[An].destroy(e,s),this[An]=null):queueMicrotask(s),this[eB]()})}},xqe=rT();function gse(t,e){if(t[rB]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ku(t[gA]===t[Xu]);let r=t[fA].splice(t[Xu]);for(let n=0;n<r.length;n++){let s=r[n];Yf.errorRequest(t,s,e)}Ku(t[tB]===0)}}async function pse(t){Ku(!t[m0]),Ku(!t[An]);let{host:e,hostname:r,protocol:n,port:s}=t[oc];if(r[0]==="["){let i=r.indexOf("]");Ku(i!==-1);let o=r.substring(1,i);Ku(hse.isIP(o)),r=o}t[m0]=!0,p0.beforeConnect.hasSubscribers&&p0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[An]?.version,servername:t[Rd],localAddress:t[$y]},connector:t[Zy]});try{let i=await new Promise((o,a)=>{t[Zy]({host:e,hostname:r,protocol:n,port:s,servername:t[Rd],localAddress:t[$y]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Yf.destroy(i.on("error",lse),new iqe);return}Ku(i);try{t[An]=i.alpnProtocol==="h2"?await Tqe(t,i):await Nqe(t,i)}catch(o){throw i.destroy().on("error",lse),o}t[m0]=!1,i[Iqe]=0,i[qP]=t[qP],i[aqe]=t,i[lqe]=null,p0.connected.hasSubscribers&&p0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[An]?.version,servername:t[Rd],localAddress:t[$y]},connector:t[Zy],socket:i}),t.emit("connect",t[oc],[t])}catch(i){if(t.destroyed)return;if(t[m0]=!1,p0.connectError.hasSubscribers&&p0.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[An]?.version,servername:t[Rd],localAddress:t[$y]},connector:t[Zy],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ku(t[rB]===0);t[nB]>0&&t[fA][t[gA]].servername===t[Rd];){let o=t[fA][t[gA]++];Yf.errorRequest(t,o,i)}else gse(t,i);t.emit("connectionError",t[oc],[t],i)}t[eB]()}function dse(t){t[kd]=0,t.emit("drain",t[oc],[t])}function VP(t,e){t[Vf]!==2&&(t[Vf]=2,Rqe(t,e),t[Vf]=0,t[Xu]>256&&(t[fA].splice(0,t[Xu]),t[gA]-=t[Xu],t[Xu]=0))}function Rqe(t,e){for(;;){if(t.destroyed){Ku(t[nB]===0);return}if(t[Dd]&&!t[tB]){t[Dd](),t[Dd]=null;return}if(t[An]&&t[An].resume(),t[GP])t[kd]=2;else if(t[kd]===2){e?(t[kd]=1,queueMicrotask(()=>dse(t))):dse(t);continue}if(t[nB]===0||t[rB]>=(fse(t)||1))return;let r=t[fA][t[gA]];if(t[oc].protocol==="https:"&&t[Rd]!==r.servername){if(t[rB]>0)return;t[Rd]=r.servername,t[An]?.destroy(new sqe("servername changed"),()=>{t[An]=null,VP(t)})}if(t[m0])return;if(!t[An]){pse(t);return}if(t[An].destroyed||t[An].busy(r))return;!r.aborted&&t[An].write(r)?t[gA]++:t[fA].splice(t[gA],1)}}mse.exports=YP});var JP=C((azt,Ese)=>{"use strict";var sT=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)}};Ese.exports=class{constructor(){this.head=this.tail=new sT}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new sT),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Ise=C((Azt,Cse)=>{var{kFree:Dqe,kConnected:kqe,kPending:vqe,kQueued:Fqe,kRunning:Mqe,kSize:_qe}=kr(),Jf=Symbol("pool"),WP=class{constructor(e){this[Jf]=e}get connected(){return this[Jf][kqe]}get free(){return this[Jf][Dqe]}get pending(){return this[Jf][vqe]}get queued(){return this[Jf][Fqe]}get running(){return this[Jf][Mqe]}get size(){return this[Jf][_qe]}};Cse.exports=WP});var $P=C((czt,Rse)=>{"use strict";var Lqe=t0(),Uqe=JP(),{kConnected:zP,kSize:yse,kRunning:Bse,kPending:bse,kQueued:sB,kBusy:Pqe,kFree:Oqe,kUrl:Hqe,kClose:Gqe,kDestroy:qqe,kDispatch:Yqe}=kr(),Vqe=Ise(),Qi=Symbol("clients"),js=Symbol("needDrain"),iB=Symbol("queue"),jP=Symbol("closed resolve"),KP=Symbol("onDrain"),Qse=Symbol("onConnect"),wse=Symbol("onDisconnect"),Sse=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};fse.exports=XU});var US=E((_Vt,Cse)=>{"use strict";var pse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Mqe}=Lt(),Lqe=Kp();Ese()===void 0&&mse(new Lqe);function mse(t){if(!t||typeof t.dispatch!="function")throw new Mqe("Argument agent must implement Agent");Object.defineProperty(globalThis,pse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ese(){return globalThis[pse]}Cse.exports={setGlobalDispatcher:mse,getGlobalDispatcher:Ese}});var PS=E((MVt,Ise)=>{"use strict";Ise.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 Bse=E((LVt,yse)=>{"use strict";var Uqe=mS();yse.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 Uqe(r,o,s,i);return r(a,c)}}});var Qse=E((UVt,bse)=>{"use strict";var Pqe=TS();bse.exports=t=>e=>function(n,s){return e(n,new Pqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Sse=E((PVt,wse)=>{"use strict";var Oqe=lt(),{InvalidArgumentError:Hqe,RequestAbortedError:Gqe}=Lt(),qqe=PS(),ZU=class extends qqe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Hqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=Oqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Gqe(`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.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Yqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new ZU({maxSize:i},s);return e(n,o)}}wse.exports=Yqe});var xse=E((OVt,Tse)=>{"use strict";var{isIP:Vqe}=b("node:net"),{lookup:Wqe}=b("node:dns"),Jqe=PS(),{InvalidArgumentError:om,InformationalError:zqe}=Lt(),Nse=Math.pow(2,31)-1,eP=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.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new zqe("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){Wqe(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())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Nse?(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===Nse?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 tP(this,e,r)}},tP=class extends Jqe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=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.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":cae(i)&&(r[s]=i);break;case"id":Aae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&cae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Aae(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}}};uae.exports={EventSourceStream:OP}});var Cae=E((m7t,Eae)=>{"use strict";var{pipeline:sJe}=b("node:stream"),{fetching:iJe}=qI(),{makeRequest:oJe}=Am(),{webidl:uu}=Jn(),{EventSourceStream:aJe}=lae(),{parseMIMEType:cJe}=Js(),{createFastMessageEvent:AJe}=gm(),{isNetworkError:dae}=HI(),{delay:uJe}=UP(),{kEnumerableProperty:Zh}=lt(),{environmentSettingsObject:hae}=wi(),fae=!1,gae=3e3,ry=0,pae=1,ny=2,lJe="anonymous",dJe="use-credentials",Im=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=ry;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),uu.util.markAsUncloneable(this);let n="EventSource constructor";uu.argumentLengthCheck(arguments,1,n),fae||(fae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=uu.converters.USVString(e,n,"url"),r=uu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:gae};let s=hae,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=lJe;r.withCredentials&&(o=dJe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=hae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=oJe(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===ny)return;this.#r=ry;let e={request:this.#s,dispatcher:this.#a},r=n=>{dae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(dae(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?cJe(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=pae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new aJe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(AJe(c.type,c.options))}});sJe(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=iJe(e)}async#A(){this.#r!==ny&&(this.#r=ry,this.dispatchEvent(new Event("error")),await uJe(this.#o.reconnectionTime),this.#r===ry&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){uu.brandCheck(this,t),this.#r!==ny&&(this.#r=ny,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},mae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ry,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:pae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ny,writable:!1}};Object.defineProperties(Im,mae);Object.defineProperties(Im.prototype,mae);Object.defineProperties(Im.prototype,{close:Zh,onerror:Zh,onmessage:Zh,onopen:Zh,readyState:Zh,url:Zh,withCredentials:Zh});uu.converters.EventSourceInitDict=uu.dictionaryConverter([{key:"withCredentials",converter:uu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:uu.converters.any}]);Eae.exports={EventSource:Im,defaultReconnectionTime:gae}});var NN=E((E7t,Ye)=>{"use strict";var hJe=zp(),Iae=aI(),fJe=jp(),gJe=mre(),pJe=Kp(),mJe=lU(),EJe=Hre(),CJe=Jre(),yae=Lt(),SN=lt(),{InvalidArgumentError:wN}=yae,ym=vne(),IJe=AI(),yJe=WU(),BJe=gse(),bJe=jU(),QJe=vU(),wJe=TS(),{getGlobalDispatcher:Bae,setGlobalDispatcher:SJe}=US(),NJe=PS(),TJe=mS(),xJe=ES();Object.assign(Iae.prototype,ym);Ye.exports.Dispatcher=Iae;Ye.exports.Client=hJe;Ye.exports.Pool=fJe;Ye.exports.BalancedPool=gJe;Ye.exports.Agent=pJe;Ye.exports.ProxyAgent=mJe;Ye.exports.EnvHttpProxyAgent=EJe;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?DO:C.type==="?"?RO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+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 D=a[P],z=n.slice(0,D.reStart),Z=n.slice(D.reStart,D.reEnd-8),ee=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);ee+=ce;var fe=z.split("(").length-1,De=ce;for(p=0;p<fe;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var Ke="";ce===""&&e!==jN&&(Ke="$");var st=z+Z+ce+Ke+ee;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===jN)return[n,s];if(!s)return hKe(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Mi.makeRe=function(t,e){return new an(t,e||{}).makeRe()};an.prototype.makeRe=dKe;function dKe(){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?DO:e.dot?sKe:iKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===af?r:typeof o=="string"?fKe(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}Mi.match=function(t,e,r){r=r||{};var n=new an(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};an.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;fy.sep!=="/"&&(e=e.split(fy.sep).join("/")),e=e.split(cAe),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};an.prototype.matchOne=function(t,e,r){return e.indexOf(af)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};an.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===af){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===af){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 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,y=[0],N=0;N<A.length;N++){var M=A[N];M===af?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};an.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};an.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===af)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 hKe(t){return t.replace(/\\(.)/g,"$1")}function fKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var xm=E((IJt,gAe)=>{"use strict";var BKe="2.0.0",bKe=Number.MAX_SAFE_INTEGER||9007199254740991,QKe=16,wKe=250,SKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];gAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:QKe,MAX_SAFE_BUILD_LENGTH:wKe,MAX_SAFE_INTEGER:bKe,RELEASE_TYPES:SKe,SEMVER_SPEC_VERSION:BKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ey=E((yJt,pAe)=>{"use strict";var NKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pAe.exports=NKe});var Rm=E((Nc,mAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:vO,MAX_SAFE_BUILD_LENGTH:TKe,MAX_LENGTH:xKe}=xm(),RKe=Ey();Nc=mAe.exports={};var DKe=Nc.re=[],kKe=Nc.safeRe=[],me=Nc.src=[],vKe=Nc.safeSrc=[],Ee=Nc.t={},_Ke=0,_O="[a-zA-Z0-9-]",FKe=[["\\s",1],["\\d",xKe],[_O,TKe]],MKe=t=>{for(let[e,r]of FKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};Loe.exports=$O});var BT=C((Lzt,Goe)=>{"use strict";var Poe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:mJe}=Vt(),EJe=I0();Hoe()===void 0&&Ooe(new EJe);function Ooe(t){if(!t||typeof t.dispatch!="function")throw new mJe("Argument agent must implement Agent");Object.defineProperty(globalThis,Poe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Hoe(){return globalThis[Poe]}Goe.exports={setGlobalDispatcher:Ooe,getGlobalDispatcher:Hoe}});var bT=C((Pzt,qoe)=>{"use strict";qoe.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 Voe=C((Ozt,Yoe)=>{"use strict";var CJe=tT();Yoe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new CJe(r,o,s,i);return r(a,A)}}});var Woe=C((Hzt,Joe)=>{"use strict";var IJe=dT();Joe.exports=t=>e=>function(n,s){return e(n,new IJe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var joe=C((Gzt,zoe)=>{"use strict";var yJe=Et(),{InvalidArgumentError:BJe,RequestAbortedError:bJe}=Vt(),QJe=bT(),e3=class extends QJe{#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 BJe("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=yJe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new bJe(`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 wJe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new e3({maxSize:i},s);return e(n,o)}}zoe.exports=wJe});var Zoe=C((qzt,Xoe)=>{"use strict";var{isIP:SJe}=Q("node:net"),{lookup:NJe}=Q("node:dns"),TJe=bT(),{InvalidArgumentError:x0,InformationalError:xJe}=Vt(),Koe=Math.pow(2,31)-1,t3=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 xJe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.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){NJe(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===Koe?(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===Koe?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,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 r3(this,e,r)}},r3=class extends TJe{#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(cx(e,s,Gje)){qje(e,i)&&(r.retry=e.toString("utf8",i));return}if(cx(e,s,Hje)){Yje(e,i)&&(r.id=e.toString("utf8",i));return}if(cx(e,s,Oje)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&Mje(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&_je(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===q0[0]||(this.checkBOM=!1),!0):n===void 0?e===q0[0]&&r===q0[1]?!0:(this.checkBOM=!1,!1):(e===q0[0]&&r===q0[1]&&n===q0[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Rce.exports={EventSourceStream:V3}});var Pce=C((Ijt,Uce)=>{"use strict";var{pipeline:Vje}=Q("node:stream"),{fetching:Jje}=EB(),{makeRequest:Wje}=k0(),{webidl:tl}=ds(),{EventSourceStream:zje}=Dce(),{parseMIMEType:jje}=Bi(),{createFastMessageEvent:Kje}=U0(),{isNetworkError:kce}=pB(),{delay:Xje}=q3(),{kEnumerableProperty:Ag}=Et(),{environmentSettingsObject:vce}=so(),Fce=!1,Mce=3e3,kB=0,_ce=1,vB=2,Zje="anonymous",$je="use-credentials",Y0=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=kB;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),tl.util.markAsUncloneable(this);let n="EventSource constructor";tl.argumentLengthCheck(arguments,1,n),Fce||(Fce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=tl.converters.USVString(e,n,"url"),r=tl.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Mce};let s=vce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Zje;r.withCredentials&&(o=$je,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=vce.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=Wje(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===vB)return;this.#r=kB;let e={request:this.#i,dispatcher:this.#a},r=n=>{kce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?jje(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=_ce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new zje({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Kje(A.type,A.options))}});Vje(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Jje(e)}async#c(){this.#r!==vB&&(this.#r=kB,this.dispatchEvent(n Line truncated
%s`,F,F,I,n);var Y=I.type==="*"?P8:I.type==="?"?U8:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+Y+"\\("+F}f(),i&&(n+="\\\\");var L=!1;switch(n.charAt(0)){case"[":case".":case"(":L=!0}for(var P=a.length-1;P>-1;P--){var k=a[P],j=n.slice(0,k.reStart),Z=n.slice(k.reStart,k.reEnd-8),re=n.slice(k.reEnd-8,k.reEnd),Ae=n.slice(k.reEnd);re+=Ae;var de=j.split("(").length-1,ke=Ae;for(g=0;g<de;g++)ke=ke.replace(/\)[+*?]?/,"");Ae=ke;var ve="";Ae===""&&e!==Fx&&(ve="$");var rt=j+Z+Ae+ve+re;n=rt}if(n!==""&&s&&(n="(?=.)"+n),L&&(n=d+n),e===Fx)return[n,s];if(!s)return ZZe(t);var _t=r.nocase?"i":"";try{var Dt=new RegExp("^"+n+"$",_t)}catch{return new RegExp("$.")}return Dt._glob=t,Dt._src=n,Dt}po.makeRe=function(t,e){return new Bn(t,e||{}).makeRe()};Bn.prototype.makeRe=XZe;function XZe(){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?P8:e.dot?qZe:YZe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===hg?r:typeof o=="string"?$Ze(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}po.match=function(t,e,r){r=r||{};var n=new Bn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Bn.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;VB.sep!=="/"&&(e=e.split(VB.sep).join("/")),e=e.split(Rle),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],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};Bn.prototype.matchOne=function(t,e,r){return e.indexOf(hg)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Bn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===hg){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===hg){a=i;break}var A=e.slice(s,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(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.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(!c.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<c.length;B++){var F=c[B];F===hg?(y.push(I),m=[[],0],E.push(m)):(m[0].push(F),I++)}for(var Y=E.length-1,L=t.length-d,P=0;P<E.length;P++)E[P][1]=L-(y[Y--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};Bn.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];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,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 c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};Bn.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,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===hg)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 ZZe(t){return t.replace(/\\(.)/g,"$1")}function $Ze(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Z0=C((QXt,Lle)=>{"use strict";var a$e="2.0.0",A$e=Number.MAX_SAFE_INTEGER||9007199254740991,c$e=16,u$e=250,l$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Lle.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:c$e,MAX_SAFE_BUILD_LENGTH:u$e,MAX_SAFE_INTEGER:A$e,RELEASE_TYPES:l$e,SEMVER_SPEC_VERSION:a$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var jB=C((wXt,Ule)=>{"use strict";var d$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Ule.exports=d$e});var $0=C((fc,Ple)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:H8,MAX_SAFE_BUILD_LENGTH:h$e,MAX_LENGTH:f$e}=Z0(),g$e=jB();fc=Ple.exports={};var p$e=fc.re=[],m$e=fc.safeRe=[],ye=fc.src=[],E$e=fc.safeSrc=[],Be=fc.t={},C$e=0,G8="[a-zA-Z0-9-]",I$e=[["\\s",1],["\\d",f$e],[G8,h$e]],y$e=t=>{for(let[e,r]of I$e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+_T.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=bet()+e+" "+t[0]}function bet(){return Rn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Qet(...t){return process.stderr.write(vT.formatWithOptions(Rn.inspectOpts,...t)+`
`)}function wet(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Net(){return process.env.DEBUG}function Tet(t){t.inspectOpts={};let e=Object.keys(Rn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Rn.inspectOpts[e[r]]}_T.exports=b3()(Rn);var{formatters:Wle}=_T.exports;Wle.o=function(t){return this.inspectOpts.colors=this.useColors,vT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Wle.O=function(t){return this.inspectOpts.colors=this.useColors,vT.inspect(t,this.inspectOpts)}});var FT=E(($jt,S3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?S3.exports=Ole():S3.exports=Jle()});var Kle=E(ri=>{"use strict";var xet=ri&&ri.__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]})),Ret=ri&&ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zle=ri&&ri.__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)&&xet(e,t,r);return Ret(e,t),e};Object.defineProperty(ri,"__esModule",{value:!0});ri.req=ri.json=ri.toBuffer=void 0;var Det=zle(b("http")),ket=zle(b("https"));async function jle(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ri.toBuffer=jle;async function vet(t){let r=(await jle(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ri.json=vet;function _et(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ket:Det).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ri.req=_et});var T3=E(Pi=>{"use strict";var Xle=Pi&&Pi.__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]})),Fet=Pi&&Pi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zle=Pi&&Pi.__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)&&Xle(e,t,r);return Fet(e,t),e},Met=Pi&&Pi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Xle(e,t,r)};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.Agent=void 0;var Let=Zle(b("net")),$le=Zle(b("http")),Uet=b("https");Met(Kle(),Pi);var Rc=Symbol("AgentBaseInternalState"),N3=class extends $le.Agent{constructor(e){super(e),this[Rc]={}}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 Let.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)?Uet.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 $le.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Rc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Rc].currentSocket;if(this[Rc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Rc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Rc]&&(this[Rc].defaultPort=e)}get protocol(){return this[Rc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Rc]&&(this[Rc].protocol=e)}};Pi.Agent=N3});var ede=E(Pm=>{"use strict";var Pet=Pm&&Pm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pm,"__esModule",{value:!0});Pm.parseProxyResponse=void 0;var Oet=Pet(FT()),MT=(0,Oet.default)("https-proxy-agent:parse-proxy-response");function Het(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(),MT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),MT("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+"+yR.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=unt()+e+" "+t[0]}function unt(){return Wn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function lnt(...t){return process.stderr.write(IR.formatWithOptions(Wn.inspectOpts,...t)+`
`)}function dnt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function hnt(){return process.env.DEBUG}function fnt(t){t.inspectOpts={};let e=Object.keys(Wn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Wn.inspectOpts[e[r]]}yR.exports=D4()(Wn);var{formatters:ffe}=yR.exports;ffe.o=function(t){return this.inspectOpts.colors=this.useColors,IR.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};ffe.O=function(t){return this.inspectOpts.colors=this.useColors,IR.inspect(t,this.inspectOpts)}});var BR=C((ter,F4)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?F4.exports=Afe():F4.exports=gfe()});var Efe=C(Ri=>{"use strict";var gnt=Ri&&Ri.__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=Ri&&Ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pfe=Ri&&Ri.__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};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.req=Ri.json=Ri.toBuffer=void 0;var mnt=pfe(Q("http")),Ent=pfe(Q("https"));async function mfe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}Ri.toBuffer=mfe;async function Cnt(t){let r=(await mfe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}Ri.json=Cnt;function Int(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Ent:mnt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}Ri.req=Int});var _4=C(Co=>{"use strict";var Ife=Co&&Co.__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]})),ynt=Co&&Co.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yfe=Co&&Co.__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)&&Ife(e,t,r);return ynt(e,t),e},Bnt=Co&&Co.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ife(e,t,r)};Object.defineProperty(Co,"__esModule",{value:!0});Co.Agent=void 0;var bnt=yfe(Q("net")),Cfe=yfe(Q("http")),Qnt=Q("https");Bnt(Efe(),Co);var mc=Symbol("AgentBaseInternalState"),M4=class extends Cfe.Agent{constructor(e){super(e),this[mc]={}}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 bnt.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)?Qnt.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 Cfe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[mc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[mc].currentSocket;if(this[mc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[mc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[mc]&&(this[mc].defaultPort=e)}get protocol(){return this[mc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[mc]&&(this[mc].protocol=e)}};Co.Agent=M4});var Bfe=C(AE=>{"use strict";var wnt=AE&&AE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(AE,"__esModule",{value:!0});AE.parseProxyResponse=void 0;var Snt=wnt(BR()),bR=(0,Snt.default)("https-proxy-agent:parse-proxy-response");function Nnt(t){return new Promise((e,r)=>{let n=0,s=[];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(),bR("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),bR("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){MT("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(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}MT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Pm.parseProxyResponse=Het});var ode=E(xo=>{"use strict";var Get=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]})),qet=xo&&xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sde=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)&&Get(e,t,r);return qet(e,t),e},ide=xo&&xo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xo,"__esModule",{value:!0});xo.HttpsProxyAgent=void 0;var LT=sde(b("net")),tde=sde(b("tls")),Yet=ide(b("assert")),Vet=ide(FT()),Wet=T3(),Jet=b("url"),zet=ede(),ky=(0,Vet.default)("https-proxy-agent"),rde=t=>t.servername===void 0&&t.host&&!LT.isIP(t.host)?{...t,servername:t.host}:t,UT=class extends Wet.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Jet.URL(e):e,this.proxyHeaders=r?.headers??{},ky("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?nde(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:"?(ky("Creating `tls.Socket`: %o",this.connectOpts),s=tde.connect(rde(this.connectOpts))):(ky("Creating `net.Socket`: %o",this.connectOpts),s=LT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=LT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){bR("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 F=y.slice(0,B).toLowerCase(),Y=y.slice(B+1).trimStart(),L=I[F];typeof L=="string"?I[F]=[L,Y]:Array.isArray(L)?L.push(Y):I[F]=Y}bR("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()})}AE.parseProxyResponse=Nnt});var Tfe=C(la=>{"use strict";var Tnt=la&&la.__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]})),xnt=la&&la.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Sfe=la&&la.__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)&&Tnt(e,t,r);return xnt(e,t),e},Nfe=la&&la.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(la,"__esModule",{value:!0});la.HttpsProxyAgent=void 0;var QR=Sfe(Q("net")),bfe=Sfe(Q("tls")),Rnt=Nfe(Q("assert")),Dnt=Nfe(BR()),knt=_4(),vnt=Q("url"),Fnt=Bfe(),cb=(0,Dnt.default)("https-proxy-agent"),Qfe=t=>t.servername===void 0&&t.host&&!QR.isIP(t.host)?{...t,servername:t.host}:t,wR=class extends knt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new vnt.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?wfe(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=bfe.connect(Qfe(this.connectOpts))):(cb("Creating `net.Socket`: %o",this.connectOpts),s=QR.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=QR.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,zet.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",jet),r.secureEndpoint?(ky("Upgrading socket connection to TLS"),tde.connect({...nde(rde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new LT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{ky("Replaying proxy buffer for failed request"),(0,Yet.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};UT.protocols=["http","https"];xo.HttpsProxyAgent=UT;function jet(t){t.resume()}function nde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Ade=E(Ro=>{"use strict";var Ket=Ro&&Ro.__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]})),$et=Ro&&Ro.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cde=Ro&&Ro.__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)&&Ket(e,t,r);return $et(e,t),e},Xet=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.HttpProxyAgent=void 0;var Zet=cde(b("net")),ett=cde(b("tls")),ttt=Xet(FT()),rtt=b("events"),ntt=T3(),ade=b("url"),Om=(0,ttt.default)("http-proxy-agent"),PT=class extends ntt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ade.URL(e):e,this.proxyHeaders=r?.headers??{},Om("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?stt(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 ade.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;Om("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Om("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let A=(0,Fnt.parseProxyResponse)(s);s.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",Mnt),r.secureEndpoint?(cb("Upgrading socket connection to TLS"),bfe.connect({...wfe(Qfe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new QR.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{cb("Replaying proxy buffer for failed request"),(0,Rnt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};wR.protocols=["http","https"];la.HttpsProxyAgent=wR;function Mnt(t){t.resume()}function wfe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Dfe=C(da=>{"use strict";var _nt=da&&da.__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]})),Lnt=da&&da.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Rfe=da&&da.__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)&&_nt(e,t,r);return Lnt(e,t),e},Unt=da&&da.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(da,"__esModule",{value:!0});da.HttpProxyAgent=void 0;var Pnt=Rfe(Q("net")),Ont=Rfe(Q("tls")),Hnt=Unt(BR()),Gnt=Q("events"),qnt=_4(),xfe=Q("url"),cE=(0,Hnt.default)("http-proxy-agent"),SR=class extends qnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new xfe.URL(e):e,this.proxyHeaders=r?.headers??{},cE("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?Ynt(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 xfe.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(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.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 n,s;cE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(cE("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),Om("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Om("Creating `tls.Socket`: %o",this.connectOpts),i=ett.connect(this.connectOpts)):(Om("Creating `net.Socket`: %o",this.connectOpts),i=Zet.connect(this.connectOpts)),await(0,rtt.once)(i,"connect"),i}};PT.protocols=["http","https"];Ro.HttpProxyAgent=PT;function stt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var vde=E($T=>{"use strict";Object.defineProperty($T,"__esModule",{value:!0});$T.state=void 0;$T.state={instrumenterImplementation:void 0}});var Kde=E(rx=>{"use strict";Object.defineProperty(rx,"__esModule",{value:!0});rx.state=void 0;rx.state={operationRequestMap:new WeakMap}});var Rge=E((Xdr,dat)=>{dat.exports={name:"@actions/cache",version:"6.0.1",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 kge=E((Zdr,Dge)=>{var hat=Rge();Dge.exports={version:hat.version}});var _R=E(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.isJsonObject=u0.typeofJsonValue=void 0;function Bat(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}u0.typeofJsonValue=Bat;function bat(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}u0.isJsonObject=bat});var MR=E(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.base64encode=l0.base64decode=void 0;var ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),FR=[];for(let t=0;t<ku.length;t++)FR[ku[t].charCodeAt(0)]=t;FR[45]=ku.indexOf("+");FR[95]=ku.indexOf("/");function Qat(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=FR[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)}l0.base64decode=Qat;function wat(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}l0.base64encode=wat});var Lge=E(LR=>{"use strict";Object.defineProperty(LR,"__esModule",{value:!0});LR.utf8read=void 0;var CH=t=>String.fromCharCode.apply(String,t);function Sat(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(CH(n)),s=0);return r.length?(s&&r.push(CH(n.slice(0,s))),r.join("")):CH(n.slice(0,s))}LR.utf8read=Sat});var TB=E(tA=>{"use strict";Object.defineProperty(tA,"__esModule",{value:!0});tA.WireType=tA.mergeBinaryOptions=tA.UnknownFieldHandler=void 0;var Nat;(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])})(Nat=tA.UnknownFieldHandler||(tA.UnknownFieldHandler={}));function Tat(t,e){return Object.assign(Object.assign({},t),e)}tA.mergeBinaryOptions=Tat;var xat;(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"})(xat=tA.WireType||(tA.WireType={}))});var PR=E(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.varint32read=Ai.varint32write=Ai.int64toString=Ai.int64fromString=Ai.varint64write=Ai.varint64read=void 0;function Rat(){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")}Ai.varint64read=Rat;function Dat(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)}}Ai.varint64write=Dat;var UR=65536*65536;function kat(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>=UR&&(s=s+(n/UR|0),n=n%UR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Ai.int64fromString=kat;function vat(t,e){if(e>>>0<=2097151)return""+(UR*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)}Ai.int64toString=vat;function _at(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)}}Ai.varint32write=_at;function Fat(){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}Ai.varint32read=Fat});var ud=E(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.PbLong=Ad.PbULong=Ad.detectBi=void 0;var xB=PR(),ir;function Uge(){let t=new DataView(new ArrayBuffer(8));ir=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}Ad.detectBi=Uge;Uge();function Pge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Oge=/^-?[0-9]+$/,HR=4294967296,OR=2147483648,GR=c Line truncated
`)}};dD.RpcError=WH});var zH=E(fD=>{"use strict";Object.defineProperty(fD,"__esModule",{value:!0});fD.mergeRpcOptions=void 0;var ppe=ct();function nAt(t,e){if(!e)return t;let r={};hD(t,r),hD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=ppe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=ppe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},hD(t.meta,r.meta),hD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}fD.mergeRpcOptions=nAt;function hD(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 KH=E(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.Deferred=Pf.DeferredState=void 0;var sA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(sA=Pf.DeferredState||(Pf.DeferredState={}));var jH=class{constructor(e=!0){this._state=sA.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!==sA.PENDING)throw new Error(`cannot resolve ${sA[this.state].toLowerCase()}`);this._resolve(e),this._state=sA.RESOLVED}reject(e){if(this.state!==sA.PENDING)throw new Error(`cannot reject ${sA[this.state].toLowerCase()}`);this._reject(e),this._state=sA.REJECTED}resolvePending(e){this._state===sA.PENDING&&this.resolve(e)}rejectPending(e){this._state===sA.PENDING&&this.reject(e)}};Pf.Deferred=jH});var XH=E(gD=>{"use strict";Object.defineProperty(gD,"__esModule",{value:!0});gD.RpcOutputStreamController=void 0;var mpe=KH(),Of=ct(),$H=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){Of.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){Of.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){Of.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(){Of.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;Of.assert(e,"bad state"),Of.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 mpe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Of.assert(n.state==mpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};gD.RpcOutputStreamController=$H});var e9=E(E0=>{"use strict";var sAt=E0&&E0.__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(E0,"__esModule",{value:!0});E0.UnaryCall=void 0;var ZH=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 sAt(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}})}};E0.UnaryCall=ZH});var r9=E(C0=>{"use strict";var iAt=C0&&C0.__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(C0,"__esModule",{value:!0});C0.ServerStreamingCall=void 0;var t9=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),cE("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(cE("Creating `tls.Socket`: %o",this.connectOpts),i=Ont.connect(this.connectOpts)):(cE("Creating `net.Socket`: %o",this.connectOpts),i=Pnt.connect(this.connectOpts)),await(0,Gnt.once)(i,"connect"),i}};SR.protocols=["http","https"];da.HttpProxyAgent=SR;function Ynt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var tge=C(UR=>{"use strict";Object.defineProperty(UR,"__esModule",{value:!0});UR.state=void 0;UR.state={instrumenterImplementation:void 0}});var Ege=C(qR=>{"use strict";Object.defineProperty(qR,"__esModule",{value:!0});qR.state=void 0;qR.state={operationRequestMap:new WeakMap}});var s0e=C((i0r,wut)=>{wut.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 o0e=C((o0r,i0e)=>{var Sut=s0e();i0e.exports={version:Sut.version}});var I2=C(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.isJsonObject=PE.typeofJsonValue=void 0;function Mut(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}PE.typeofJsonValue=Mut;function _ut(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}PE.isJsonObject=_ut});var B2=C(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.base64encode=OE.base64decode=void 0;var Sl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),y2=[];for(let t=0;t<Sl.length;t++)y2[Sl[t].charCodeAt(0)]=t;y2[45]=Sl.indexOf("+");y2[95]=Sl.indexOf("/");function Lut(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=y2[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)}OE.base64decode=Lut;function Uut(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Sl[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Sl[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Sl[s|n>>6],e+=Sl[n&63],r=0;break}return r&&(e+=Sl[s],e+="=",r==1&&(e+="=")),e}OE.base64encode=Uut});var l0e=C(b2=>{"use strict";Object.defineProperty(b2,"__esModule",{value:!0});b2.utf8read=void 0;var O9=t=>String.fromCharCode.apply(String,t);function Put(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(O9(n)),s=0);return r.length?(s&&r.push(O9(n.slice(0,s))),r.join("")):O9(n.slice(0,s))}b2.utf8read=Put});var dQ=C(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.WireType=Hc.mergeBinaryOptions=Hc.UnknownFieldHandler=void 0;var Out;(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])})(Out=Hc.UnknownFieldHandler||(Hc.UnknownFieldHandler={}));function Hut(t,e){return Object.assign(Object.assign({},t),e)}Hc.mergeBinaryOptions=Hut;var Gut;(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"})(Gut=Hc.WireType||(Hc.WireType={}))});var w2=C(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.varint32read=Pi.varint32write=Pi.int64toString=Pi.int64fromString=Pi.varint64write=Pi.varint64read=void 0;function qut(){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")}Pi.varint64read=qut;function Yut(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 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),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Pi.varint64write=Yut;var Q2=65536*65536;function Vut(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=Q2&&(s=s+(n/Q2|0),n=n%Q2)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Pi.int64fromString=Vut;function Jut(t,e){if(e>>>0<=2097151)return""+(Q2*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,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)}Pi.int64toString=Jut;function Wut(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)}}Pi.varint32write=Wut;function zut(){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}Pi.varint32read=zut});var hh=C(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.PbLong=dh.PbULong=dh.detectBi=void 0;var hQ=w2(),fr;function d0e(){let t=new DataView(new ArrayBuffer(8));fr=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}dh.detectBi=d0e;d0e();function h0e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var f0e=/^-?[0-9]+$/,N2=4294967296,S2=2147483648,T2=c Line truncated
`)}};Z2.RpcError=hq});var gq=C(ek=>{"use strict";Object.defineProperty(ek,"__esModule",{value:!0});ek.mergeRpcOptions=void 0;var Y0e=ft();function pdt(t,e){if(!e)return t;let r={};$2(t,r),$2(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Y0e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Y0e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},$2(t.meta,r.meta),$2(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}ek.mergeRpcOptions=pdt;function $2(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 mq=C(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});Vg.Deferred=Vg.DeferredState=void 0;var Yc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Yc=Vg.DeferredState||(Vg.DeferredState={}));var pq=class{constructor(e=!0){this._state=Yc.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!==Yc.PENDING)throw new Error(`cannot resolve ${Yc[this.state].toLowerCase()}`);this._resolve(e),this._state=Yc.RESOLVED}reject(e){if(this.state!==Yc.PENDING)throw new Error(`cannot reject ${Yc[this.state].toLowerCase()}`);this._reject(e),this._state=Yc.REJECTED}resolvePending(e){this._state===Yc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Yc.PENDING&&this.reject(e)}};Vg.Deferred=pq});var Cq=C(tk=>{"use strict";Object.defineProperty(tk,"__esModule",{value:!0});tk.RpcOutputStreamController=void 0;var V0e=mq(),Jg=ft(),Eq=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){Jg.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){Jg.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){Jg.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(){Jg.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;Jg.assert(e,"bad state"),Jg.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 V0e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Jg.assert(n.state==V0e.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};tk.RpcOutputStreamController=Eq});var yq=C(WE=>{"use strict";var mdt=WE&&WE.__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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(WE,"__esModule",{value:!0});WE.UnaryCall=void 0;var Iq=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 mdt(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}})}};WE.UnaryCall=Iq});var bq=C(zE=>{"use strict";var Edt=zE&&zE.__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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(zE,"__esModule",{value:!0});zE.ServerStreamingCall=void 0;var Bq=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 kCe=E(DCe=>{"use strict";var $q=Yu().Buffer;DCe._dbcs=Vu;var $n=-1,RCe=-2,Zo=-10,Ms=-1e3,Z0=new Array(256),Rb=-1;for(H2=0;H2<256;H2++)Z0[H2]=$n;var H2;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]=Z0.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(Z0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Z0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Ms-o[n]],c=48;c<=57;c++){if(a[c]===$n)a[c]=Ms-s;else if(a[c]>Ms)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Ms-a[c]],u=129;u<=254;u++){if(A[u]===$n)A[u]=Ms-i;else{if(A[u]===Ms-i)continue;if(A[u]>Ms)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Ms-A[u]],d=48;d<=57;d++)l[d]===$n&&(l[d]=RCe)}}}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 pCt(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(tCt.has(s)){r=s;break}}return r}function mCt(t,e){let r=pCt(e);r!==""&&(t.referrerPolicy=r)}function ECt(){return"allowed"}function CCt(){return"success"}function ICt(){return"success"}function yCt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function BCt(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&&gV(t.origin)&&!gV(gg(t))&&(e=null);break;case"same-origin":Pb(t,gg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function sE(t,e){return t}function bCt(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 QCt(t){return sE(iCt.now(),t)}function wCt(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 cBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function SCt(t){return{referrerPolicy:t.referrerPolicy}}function NCt(t){let e=t.referrerPolicy;Ob(e);let r=null;if(t.referrer==="client"){let i=nBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else vd.is.URL(t.referrer)&&(r=t.referrer);let n=fV(r),s=fV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??fV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=gg(t);return fg(n)&&!fg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=gg(t);return Pb(n,i)?n:fg(n)&&!fg(i)?"no-referrer":s}case"same-origin":return Pb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Pb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=gg(t);return fg(n)&&!fg(i)?"no-referrer":n}}}function fV(t,e=!1){return Ob(vd.is.URL(t)),t=new URL(t),dBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var TCt=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)$/),xCt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function ABe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),xCt(t)):TCt(t)}function RCt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||ABe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function fg(t){return vd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:RCt(t.origin):!1}function DCt(t){}function Pb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function kCt(t){return t.controller.state==="aborted"}function vCt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function _Ct(t){return aCt[t.toLowerCase()]??t}var FCt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function uBe(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,FCt),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 MCt(t,e,r,n=0,s=1){let i=uBe(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=ra(a=>QV(a)&&a!==59,t,e);i=BV.decode(o)}return{name:n,value:i}}function oIt(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 mi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ra(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bV(o,!0,!0,a=>a===9||a===32),!XCt.test(o.toString()))throw mi("header name does not match the field-name token production");if(t[e.position]!==58)throw mi("expected :");switch(e.position++,ra(a=>a===32||a===9,t,e),$Ct(o)){case"content-disposition":{if(r=n=null,ra(c=>QV(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw mi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=iIt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw mi("name attribute is required in content-disposition header");break}case"content-type":{let a=ra(c=>c!==10&&c!==13,t,e);a=bV(a,!1,!0,c=>c===9||c===32),s=EBe(a);break}case"content-transfer-encoding":{let a=ra(c=>c!==10&&c!==13,t,e);a=bV(a,!1,!0,c=>c===9||c===32),i=EBe(a);break}default:ra(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw mi("expected CRLF");e.position+=2}}function ra(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function bV(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 aIt(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 mi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function cIt(t){return t<=31||t===127}function AIt(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 QV(t){return t<=127&&t!==32&&t!==9&&!cIt(t)&&!AIt(t)}CBe.exports={multipartFormDataParser:sIt,validateBoundary:nIt}});var Hb=E((sIr,yBe)=>{"use strict";function uIt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}yBe.exports={createDeferredPromise:uIt}});var aE=E((iIr,SBe)=>{"use strict";var NV=Ze(),{ReadableStreamFrom:lIt,readableStreamClose:dIt,fullyReadBody:hIt,extractMimeType:fIt}=$i(),{FormData:BBe,setFormDataState:gIt}=dk(),{webidl:Za}=Xn(),wV=b("node:assert"),{isErrored:SV,isDisturbed:pIt}=b("node:stream"),{isUint8Array:mIt}=b("node:util/types"),{serializeAMimeType:EIt}=ta(),{multipartFormDataParser:CIt}=IBe(),{createDeferredPromise:IIt}=Hb(),{parseJSONFromBytes:yIt}=zu(),{utf8DecodeBytes:BIt}=ok(),{runtimeFeatures:bIt}=ju(),QIt=bIt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),hk=new TextEncoder;function wIt(){}var SIt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!pIt(e)&&!SV(e)&&e.cancel("Response object has been garbage collected").catch(wIt)});function QBe(t,e=!1){let r=null,n=null;Za.is.ReadableStream(t)?r=t:Za.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),wV(Za.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(Za.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Za.is.BufferSource(t))i=Za.util.getCopyOfBytesHeldByBufferSource(t);else if(Za.is.FormData(t)){let A=`----formdata-undici-0${`${QIt(1e11)}`.padStart(11,"0")}`,u=`--${A}\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 pBe=C(gBe=>{"use strict";var IJ=Ul().Buffer;gBe._dbcs=Pl;var Es=-1,fBe=-2,La=-10,ci=-1e3,NC=new Array(256),mw=-1;for(Rv=0;Rv<256;Rv++)NC[Rv]=Es;var Rv;function Pl(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]=NC.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(NC.slice(0));var i=this.decodeTables.length;this.decodeTables.push(NC.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[ci-o[n]],A=48;A<=57;A++){if(a[A]===Es)a[A]=ci-s;else if(a[A]>ci)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[ci-a[A]],u=129;u<=254;u++){if(c[u]===Es)c[u]=ci-i;else{if(c[u]===ci-i)continue;if(c[u]>ci)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[ci-c[u]],d=48;d<=57;d++)l[d]===Es&&(l[d]=fBe)}}}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 UBt(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(bBt.has(s)){r=s;break}}return r}function PBt(t,e){let r=UBt(e);r!==""&&(t.referrerPolicy=r)}function OBt(){return"allowed"}function HBt(){return"success"}function GBt(){return"success"}function qBt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function YBt(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&&PW(t.origin)&&!PW(bp(t))&&(e=null);break;case"same-origin":Nw(t,bp(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function kC(t,e){return t}function VBt(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 JBt(t){return kC(NBt.now(),t)}function WBt(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 VQe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function zBt(t){return{referrerPolicy:t.referrerPolicy}}function jBt(t){let e=t.referrerPolicy;Tw(e);let r=null;if(t.referrer==="client"){let i=OQe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else _h.is.URL(t.referrer)&&(r=t.referrer);let n=UW(r),s=UW(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??UW(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=bp(t);return Bp(n)&&!Bp(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=bp(t);return Nw(n,i)?n:Bp(n)&&!Bp(i)?"no-referrer":s}case"same-origin":return Nw(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Nw(t,n)?n:s;case"no-referrer-when-downgrade":{let i=bp(t);return Bp(n)&&!Bp(i)?"no-referrer":n}}}function UW(t,e=!1){return Tw(_h.is.URL(t)),t=new URL(t),jQe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var KBt=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)$/),XBt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function JQe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),XBt(t)):KBt(t)}function ZBt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||JQe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Bp(t){return _h.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:ZBt(t.origin):!1}function $Bt(t){}function Nw(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ebt(t){return t.controller.state==="aborted"}function tbt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function rbt(t){return xBt[t.toLowerCase()]??t}var nbt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function WQe(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),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=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 s.prototype.constructor,Object.setPrototypeOf(s.prototype,nbt),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 sbt(t,e,r,n=0,s=1){let i=WQe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return _h.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return _h.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Oa(a=>zW(a)&&a!==59,t,e);i=JW.decode(o)}return{name:n,value:i,extended:s}}function Tbt(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=Oa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=WW(o,!0,!0,a=>a===9||a===32),!Ibt.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++,Oa(a=>a===32||a===9,t,e),Cbt(o)){case"content-disposition":{r=n=null;let a=!1;if(Oa(c=>zW(c),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 c=Nbt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(n=c.value,a=!0):a||(n=c.value))}if(r===null)throw Wi("name attribute is required in content-disposition header");break}case"content-type":{let a=Oa(A=>A!==10&&A!==13,t,e);a=WW(a,!1,!0,A=>A===9||A===32),s=twe(a);break}case"content-transfer-encoding":{let a=Oa(A=>A!==10&&A!==13,t,e);a=WW(a,!1,!0,A=>A===9||A===32),i=twe(a);break}default:Oa(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 Oa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function WW(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 xbt(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 Rbt(t){return t<=31||t===127}function Dbt(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 zW(t){return t<=127&&t!==32&&t!==9&&!Rbt(t)&&!Dbt(t)}rwe.exports={multipartFormDataParser:Sbt,validateBoundary:wbt}});var xw=C((mwr,swe)=>{"use strict";function kbt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}swe.exports={createDeferredPromise:kbt}});var MC=C((Ewr,cwe)=>{"use strict";var XW=st(),{ReadableStreamFrom:vbt,readableStreamClose:Fbt,fullyReadBody:Mbt,extractMimeType:_bt}=Mo(),{FormData:iwe,setFormDataState:Lbt}=tF(),{webidl:UA}=Cs(),jW=Q("node:assert"),{isErrored:KW,isDisturbed:Ubt}=Q("node:stream"),{isUint8Array:Pbt}=Q("node:util/types"),{serializeAMimeType:Obt}=Pa(),{multipartFormDataParser:Hbt}=nwe(),{createDeferredPromise:Gbt}=xw(),{parseJSONFromBytes:qbt}=Gl(),{utf8DecodeBytes:Ybt}=jv(),{runtimeFeatures:Vbt}=ql(),Jbt=Vbt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),rF=new TextEncoder;function Wbt(){}var zbt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Ubt(e)&&!KW(e)&&e.cancel("Response object has been garbage collected").catch(Wbt)});function awe(t,e=!1){let r=null,n=null;UA.is.ReadableStream(t)?r=t:UA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),jW(UA.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(UA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(UA.is.BufferSource(t))i=UA.util.getCopyOfBytesHeldByBufferSource(t);else if(UA.is.FormData(t)){let c=`----formdata-undici-0${`${Jbt(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
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=hk.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=rF.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=hk.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(y),o+=y.byteLength}else{let y=rF.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=hk.encode(`--${A}--\r
`);h.push(I),o+=I.byteLength,p&&(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(Za.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(NV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Za.is.ReadableStream(t)?t:lIt(t)}return(typeof i=="string"||mIt(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(SV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!SV(r)&&n.enqueue(typeof A=="string"?hk.encode(A):new Uint8Array(A));queueMicrotask(()=>dIt(n))})(),[{stream:r,source:i,length:o},a]}function NIt(t,e=!1){return Za.is.ReadableStream(t)&&(wV(!NV.isDisturbed(t),"The body has already been consumed."),wV(!t.locked,"The stream is locked.")),QBe(t,e)}function TIt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function xIt(t,e){return{blob(){return oE(this,n=>{let s=bBe(e(this));return s===null?s="":s&&(s=EIt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return oE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return oE(this,BIt,t,e)},json(){return oE(this,yIt,t,e)},formData(){return oE(this,n=>{let s=bBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=CIt(n,s),o=new BBe;return gIt(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 oE(this,n=>new Uint8Array(n),t,e)}}}function RIt(t,e){Object.assign(t.prototype,xIt(t,e))}function oE(t,e,r,n){try{Za.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),wBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=IIt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(hIt(t.body,o,i),s.promise)}function wBe(t){let e=t.body;return e!=null&&(e.stream.locked||NV.isDisturbed(e.stream))}function bBe(t){let e=t.headersList,r=fIt(e);return r==="failure"?null:r}SBe.exports={extractBody:QBe,safelyExtractBody:NIt,cloneBody:TIt,mixinBody:RIt,streamRegistry:SIt,bodyUnusable:wBe}});var LBe=E((oIr,MBe)=>{"use strict";var Ve=b("node:assert"),We=Ze(),{channels:NBe}=Dd(),TV=AY(),{RequestContentLengthMismatchError:pg,ResponseContentLengthMismatchError:DIt,RequestAbortedError:vBe,HeadersTimeoutError:kIt,HeadersOverflowError:vIt,SocketError:Yb,InformationalError:cE,BodyTimeoutError:_It,HTTPParserError:FIt,ResponseExceededMaxSizeError:MIt}=je(),{kUrl:_Be,kReset:Ei,kClient:FV,kParser:Yr,kBlocking:Vb,kRunning:gs,kPending:LIt,kSize:TBe,kWriting:Fd,kQueue:ec,kNoRef:Gb,kKeepAliveDefaultTimeout:UIt,kHostHeader:PIt,kPendingIdx:OIt,kRunningIdx:na,kError:sa,kPipelining:pk,kSocket:AE,kKeepAliveTimeoutValue:Ek,kMaxHeadersSize:HIt,kKeepAliveMaxTimeout:GIt,kKeepAliveTimeoutThreshold:qIt,kHeadersTimeout:YIt,kBodyTimeout:VIt,kStrictContentLength:DV,kMaxRequests:xBe,kCounter:WIt,kMaxResponseSize:JIt,kOnError:zIt,kResume:_d,kHTTPContext:FBe,kClosed:kV}=Kt(),hA=Sye(),jIt=Buffer.alloc(0),fk=Buffer[Symbol.species],KIt=We.removeAllListeners,xV;function $It(){let t=process.env.JEST_WORKER_ID?tV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(xye())}catch{}return e||(e=new WebAssembly.Module(t||tV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onStatus(new fk(fA.buffer,o,i))},wasm_on_message_begin:n=>(Ve(yn.ptr===n),yn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onHeaderField(new fk(fA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onHeaderValue(new fk(fA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(yn.ptr===n),yn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onBody(new fk(fA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(yn.ptr===n),yn.onMessageComplete())}})}var RV=null,yn=null,fA=null,gk=0,gA=null,XIt=0,qb=1,uE=2|qb,mk=4|qb,vV=8|XIt,_V=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(hA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[HIt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[JIt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[PIt],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=rF.encode(`--${c}--\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=${c}`}else if(UA.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(XW.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=UA.is.ReadableStream(t)?t:vbt(t)}return(typeof i=="string"||Pbt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(KW(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!KW(r)&&n.enqueue(typeof c=="string"?rF.encode(c):new Uint8Array(c));queueMicrotask(()=>Fbt(n))})(),[{stream:r,source:i,length:o},a]}function jbt(t,e=!1){return UA.is.ReadableStream(t)&&(jW(!XW.isDisturbed(t),"The body has already been consumed."),jW(!t.locked,"The stream is locked.")),awe(t,e)}function Kbt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Xbt(t,e){return{blob(){return FC(this,n=>{let s=owe(e(this));return s===null?s="":s&&(s=Obt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return FC(this,n=>new Uint8Array(n).buffer,t,e)},text(){return FC(this,Ybt,t,e)},json(){return FC(this,qbt,t,e)},formData(){return FC(this,n=>{let s=owe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=Hbt(n,s),o=new iwe;return Lbt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new iwe;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 FC(this,n=>new Uint8Array(n),t,e)}}}function Zbt(t,e){Object.assign(t.prototype,Xbt(t,e))}function FC(t,e,r,n){try{UA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Awe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Gbt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(Mbt(t.body,o,i),s.promise)}function Awe(t){let e=t.body;return e!=null&&(e.stream.locked||XW.isDisturbed(e.stream))}function owe(t){let e=t.headersList,r=_bt(e);return r==="failure"?null:r}cwe.exports={extractBody:awe,safelyExtractBody:jbt,cloneBody:Kbt,mixinBody:Zbt,streamRegistry:zbt,bodyUnusable:Awe}});var Qwe=C((Cwr,bwe)=>{"use strict";var Ve=Q("node:assert"),_e=st(),{channels:uwe}=Fh(),ZW=kJ(),{RequestContentLengthMismatchError:Qp,ResponseContentLengthMismatchError:lwe,RequestAbortedError:Cwe,InvalidArgumentError:$bt,HeadersTimeoutError:eQt,HeadersOverflowError:tQt,SocketError:wp,InformationalError:_C,BodyTimeoutError:rQt,HTTPParserError:nQt,ResponseExceededMaxSizeError:sQt}=et(),{kUrl:Iwe,kReset:zi,kClient:aF,kParser:wr,kBlocking:kw,kRunning:wn,kPending:i7,kSize:dwe,kWriting:Lh,kQueue:PA,kNoRef:Rw,kKeepAliveDefaultTimeout:iQt,kHostHeader:oQt,kPendingIdx:aQt,kRunningIdx:Ha,kError:ui,kPipelining:iF,kSocket:Sp,kKeepAliveTimeoutValue:AF,kMaxHeadersSize:AQt,kKeepAliveMaxTimeout:cQt,kKeepAliveTimeoutThreshold:uQt,kHeadersTimeout:lQt,kBodyTimeout:dQt,kStrictContentLength:t7,kMaxRequests:hwe,kCounter:hQt,kMaxResponseSize:fQt,kOnError:fwe,kResume:Vl,kHTTPContext:ywe,kClosed:r7}=sr(),_o=cQe(),gwe=Buffer.alloc(0),nF=Buffer[Symbol.species],gQt=_e.removeAllListeners,Np=Symbol("kIdleSocketValidation"),LC=Symbol("kIdleSocketValidationTimeout"),o7=Symbol("kSocketUsed"),$W;function pQt(){let t=process.env.JEST_WORKER_ID?wW():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(dQe())}catch{}return e||(e=new WebAssembly.Module(t||wW())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(nn.ptr===n);let o=s-eu+$c.byteOffset;return nn.onStatus(new nF($c.buffer,o,i))},wasm_on_message_begin:n=>(Ve(nn.ptr===n),nn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(nn.ptr===n);let o=s-eu+$c.byteOffset;return nn.onHeaderField(new nF($c.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(nn.ptr===n);let o=s-eu+$c.byteOffset;return nn.onHeaderValue(new nF($c.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(nn.ptr===n),nn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(nn.ptr===n);let o=s-eu+$c.byteOffset;return nn.onBody(new nF($c.buffer,o,i))},wasm_on_message_complete:n=>(Ve(nn.ptr===n),nn.onMessageComplete())}})}var e7=null,nn=null,$c=null,sF=0,eu=null,mQt=0,Dw=1,UC=2|Dw,oF=4|Dw,n7=8|mQt,s7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(_o.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[AQt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[oQt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[pk]&&!h[Ei]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return NBe.sendHeaders.hasSubscribers&&NBe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?DBe(f,null,t,e,h,u,p,l):We.isBuffer(c)?DBe(f,c,t,e,h,u,p,l):We.isBlobLike(c)?typeof c.stream=="function"?kBe(f,c.stream(),t,e,h,u,p,l):Ayt(f,c,t,e,h,u,p,l):We.isStream(c)?cyt(f,c,t,e,h,u,p,l):We.isIterable(c)?kBe(f,c,t,e,h,u,p,l):Ve(!1),!0}function cyt(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"stream body cannot be pipelined");let c=!1,A=new Ck({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(p){We.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new vBe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[Fd]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.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 DBe(t,e,r,n,s,i,o,a){try{e?We.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[iF]&&!h[zi]?g+=`connection: keep-alive\r
`:g+=`connection: close\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 y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return uwe.sendHeaders.hasSubscribers&&uwe.sendHeaders.publish({request:e,headers:g,socket:h}),!A||d===0?mwe(f,null,t,e,h,u,g,l):_e.isBuffer(A)?mwe(f,A,t,e,h,u,g,l):_e.isBlobLike(A)?typeof A.stream=="function"?Ewe(f,A.stream(),t,e,h,u,g,l):xQt(f,A,t,e,h,u,g,l):_e.isStream(A)?TQt(f,A,t,e,h,u,g,l):_e.isIterable(A)?Ewe(f,A,t,e,h,u,g,l):Ve(!1),!0}function TQt(t,e,r,n,s,i,o,a){Ve(i!==0||r[wn]===0,"stream body cannot be pipelined");let A=!1,c=new cF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(g){_e.destroy(this,g)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Cwe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(s.destroyed||s[Lh]&&r[wn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(g){f=g}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?_e.destroy(e,f):_e.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 mwe(t,e,r,n,s,i,o,a){try{e?_e.isBuffer(e)&&(Ve(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[Ei]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[zi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[_d]()}catch(c){t(c)}}async function Ayt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new pg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[Vl]()}catch(A){t(A)}}async function xQt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Qp;let A=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[Ei]=!0),r[_d]()}catch(c){t(c)}}async function kBe(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===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)=>{Ve(c===null),s[sa]?h(s[sa]):c=d});s.on("close",A).on("drain",A);let l=new Ck({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[sa])throw s[sa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Ck=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[Fd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[sa])throw r[sa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[DV])throw new pg;process.emitWarning(new pg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Ei]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[zi]=!0),r[Vl]()}catch(A){t(A)}}async function Ewe(t,e,r,n,s,i,o,a){Ve(i!==0||r[wn]===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)=>{Ve(A===null),s[ui]?h(s[ui]):A=d});s.on("close",c).on("drain",c);let l=new cF({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[ui])throw s[ui];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var cF=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[Lh]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ui])throw r[ui];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[t7])throw new Qp;process.emitWarning(new Qp)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[zi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}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[Yr].timeout&&r[Yr].timeoutType===uE&&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[Fd]=!1,e[sa])throw e[sa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[wr].timeout&&r[wr].timeoutType===UC&&r[wr].timeout.refresh&&r[wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Lh]=!1,e[ui])throw e[ui];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[DV])throw new pg;process.emitWarning(new pg)}e[Yr].timeout&&e[Yr].timeoutType===uE&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[_d]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Fd]=!1,e&&(Ve(n[gs]<=1,"pipeline should only contain this request"),s(e))}};MBe.exports=ZIt});var WBe=E((aIr,VBe)=>{"use strict";var oa=b("node:assert"),{pipeline:uyt}=b("node:stream"),At=Ze(),{RequestContentLengthMismatchError:PV,RequestAbortedError:lyt,SocketError:jb,InformationalError:Md,InvalidArgumentError:dyt}=je(),{kUrl:zb,kReset:bk,kClient:Xi,kRunning:Kb,kPending:hyt,kQueue:Ld,kPendingIdx:HV,kRunningIdx:tc,kError:Zi,kSocket:Rr,kStrictContentLength:fyt,kOnError:lE,kMaxConcurrentStreams:yk,kPingInterval:UBe,kHTTP2Session:$u,kHTTP2InitialWindowSize:gyt,kHTTP2ConnectionWindowSize:pyt,kResume:pA,kSize:myt,kHTTPContext:GV,kClosed:OV,kBodyTimeout:Eyt,kEnableConnectProtocol:Wb,kRemoteSettings:Jb,kHTTP2Stream:Ik,kHTTP2SessionState:qV}=Kt(),{channels:PBe}=Dd(),ia=Symbol("open streams"),OBe,Bk;try{Bk=b("node:http2")}catch{Bk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Cyt,HTTP2_HEADER_METHOD:HBe,HTTP2_HEADER_PATH:GBe,HTTP2_HEADER_SCHEME:MV,HTTP2_HEADER_CONTENT_LENGTH:Iyt,HTTP2_HEADER_EXPECT:yyt,HTTP2_HEADER_STATUS:LV,HTTP2_HEADER_PROTOCOL:Byt,NGHTTP2_REFUSED_STREAM:byt,NGHTTP2_CANCEL:Qyt}}=Bk;function UV(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 wyt(t,e){t[Rr]=e;let r=t[gyt],n=t[pyt],s=Bk.connect(t[zb],{createConnection:()=>e,peerMaxConcurrentStreams:t[yk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Rr]=e,s[ia]=0,s[Xi]=t,s[Rr]=e,s[qV]={ping:{interval:t[UBe]===0?null:setInterval(xyt,t[UBe],s).unref()}},s[Wb]=!1,s[Jb]=!1,n&&At.addListener(s,"connect",Nyt.bind(s,n)),At.addListener(s,"error",Ryt),At.addListener(s,"frameError",Dyt),At.addListener(s,"end",kyt),At.addListener(s,"goaway",vyt),At.addListener(s,"close",_yt),At.addListener(s,"remoteSettings",Tyt),s.unref(),t[$u]=s,e[$u]=s,At.addListener(e,"error",Myt),At.addListener(e,"end",Lyt),At.addListener(e,"close",Fyt),e[OV]=!1,e.on("close",Uyt),{version:"h2",defaultPipelining:1/0,write(i){return Oyt(t,i)},resume(){Syt(t)},destroy(i,o){e[OV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Kb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Jb]===!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[Jb]===!1;return!1}}}function Syt(t){let e=t[Rr];e?.destroyed===!1&&(t[myt]===0||t[yk]===0?(e.unref(),t[$u].unref()):(e.ref(),t[$u].ref()))}function Nyt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Tyt(t){if(this[Xi][yk]=t.maxConcurrentStreams??this[Xi][yk],this[Jb]===!0&&this[Wb]===!0&&t.enableConnectProtocol===!1){let e=new Md("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Rr][Zi]=e,this[Xi][lE](e);return}this[Wb]=t.enableConnectProtocol??this[Wb],this[Jb]=!0,this[Xi][pA]()}function xyt(t){let e=t[qV];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[Xi],o=this[Xi];if(n!=null){let a=new Md(`HTTP/2: "PING" errored - type ${n.message}`);o[Zi]=a,i[lE](a)}else i.emit("ping",s)}}function Ryt(t){oa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rr][Zi]=t,this[Xi][lE](t)}function Dyt(t,e,r){if(r===0){let n=new Md(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rr][Zi]=n,this[Xi][lE](n)}}function kyt(){let t=new jb("other side closed",At.getSocketInfo(this[Rr]));this.destroy(t),At.destroy(this[Rr],t)}function vyt(t){let e=this[Zi]||new jb(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[Rr])),r=this[Xi];if(r[Rr]=null,r[GV]=null,this.close(),this[$u]=null,At.destroy(this[Rr],e),r[tc]<r[Ld].length){let n=r[Ld][r[tc]];r[Ld][r[tc]++]=null,At.errorRequest(r,n,e),r[HV]=r[tc]}oa(r[Kb]===0),r.emit("disconnect",r[zb],[r],e),r.emit("connectionError",r[zb],[r],e),r[pA]()}function _yt(){let{[Xi]:t,[qV]:e}=this,{[Rr]:r}=t,n=this[Rr][Zi]||this[Zi]||new jb("closed",At.getSocketInfo(r));if(t[Rr]=null,t[GV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){oa(t[hyt]===0);let s=t[Ld].splice(t[tc]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function Fyt(){let t=this[Zi]||new jb("closed",At.getSocketInfo(this)),e=this[$u][Xi];e[Rr]=null,e[GV]=null,this[$u]!==null&&this[$u].destroy(t),e[HV]=e[tc],oa(e[Kb]===0),e.emit("disconnect",e[zb],[e],t),e[pA]()}function Myt(t){oa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Zi]=t,this[Xi][lE](t)}function Lyt(){At.destroy(this,new jb("other side closed",At.getSocketInfo(this)))}func Line truncated
`;PBe.sendHeaders.publish({request:e,headers:k,socket:n[Rr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[yyt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[Ik]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[Ik]=!0,O()),++n[ia],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[LV]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),UV(D),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[Ld][t[tc]++]=null,t[pA]()):(m(new Md("HTTP/2: stream half-closed (remote)")),t[Ld][t[tc]++]=null,t[HV]=t[tc],t[pA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ia]-=1,n[ia]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Md(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Md(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ia]-=1,n[ia]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?qBe(m,f,null,t,e,t[Rr],y,C):At.isBuffer(d)?qBe(m,f,d,t,e,t[Rr],y,C):At.isBlobLike(d)?typeof d.stream=="function"?YBe(m,f,d.stream(),t,e,t[Rr],y,C):Gyt(m,f,d,t,e,t[Rr],y,C):At.isStream(d)?Hyt(m,t[Rr],C,f,d,t,e,y):At.isIterable(d)?YBe(m,f,d,t,e,t[Rr],y,C):oa(!1)}}function qBe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(oa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[bk]=!0),s.onRequestSent(),n[pA]()}catch(c){t(c)}}function Hyt(t,e,r,n,s,i,o,a){oa(a!==0||i[Kb]===0,"stream body cannot be pipelined");let c=uyt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[bk]=!0),i[pA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function Gyt(t,e,r,n,s,i,o,a){oa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new PV;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[bk]=!0),n[pA]()}catch(c){t(c)}}async function YBe(t,e,r,n,s,i,o,a){oa(o!==0||n[Kb]===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)=>{oa(c===null),i[Zi]?d(i[Zi]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[Zi])throw i[Zi];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[bk]=!0),n[pA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}VBe.exports=wyt});var Gd=E((cIr,tbe)=>{"use strict";var Xu=b("node:assert"),$Be=b("node:net"),$b=b("node:http"),mg=Ze(),{ClientStats:qyt}=UY(),{channels:dE}=Dd(),Yyt=fye(),Vyt=lg(),{InvalidArgumentError:fr,InformationalError:Wyt,ClientDestroyedError:Jyt}=je(),zyt=dg(),{kUrl:mA,kServerName:Hd,kClient:jyt,kBusy:YV,kConnect:Kyt,kResuming:Eg,kRunning:tQ,kPending:rQ,kSize:Xb,kQueue:rc,kConnected:$yt,kConnecting:hE,kNeedDrain:Pd,kKeepAliveDefaultTimeout:JBe,kHostHeader:Xyt,kPendingIdx:nc,kRunningIdx:Zu,kError:Zyt,kPipelining:Qk,kKeepAliveTimeoutValue:eBt,kMaxHeadersSize:tBt,kKeepAliveMaxTimeout:rBt,kKeepAliveTimeoutThreshold:nBt,kHeadersTimeout:sBt,kBodyTimeout:iBt,kStrictContentLength:oBt,kConnector:Zb,kMaxRequests:VV,kCounter:aBt,kClose:cBt,kDestroy:ABt,kDispatch:uBt,kLocalAddress:eQ,kMaxResponseSize:lBt,kOnError:dBt,kHTTPContext:rn,kMaxConcurrentStreams:hBt,kHTTP2InitialWindowSize:fBt,kHTTP2ConnectionWindowSize:gBt,kResume:Od,kPingInterval:pBt}=Kt(),mBt=LBe(),EBt=WBe(),Ud=Symbol("kClosedResolve"),CBt=$b&&$b.maxHeaderSize&&Number.isInteger($b.maxHeaderSize)&&$b.maxHeaderSize>0?()=>$b.maxHeaderSize:()=>{throw new fr("http module not available or http.maxHeaderSize invalid")},zBe=()=>{};function XBe(t){return t[Qk]??t[rn]?.defaultPipelining??1}var WV=class extends Vyt{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:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:Z,initialWindowSize:ee,connectionWindowSize:ce,pingInterval:fe}={}){if(A!==void 0)throw new fr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new fr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new fr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new fr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new fr("unsu Line truncated
`,this[iBt]=a??3e5,this[sBt]=n??3e5,this[oBt]=m??!0,this[VV]=N,this[Ud]=null,this[lBt]=O>-1?O:-1,this[rn]=null,this[hBt]=D??100,this[fBt]=ee??262144,this[gBt]=ce??524288,this[pBt]=fe??6e4,this[rc]=[],this[Zu]=0,this[nc]=0,this[Od]=De=>JV(this,De),this[dBt]=De=>ZBe(this,De)}get pipelining(){return this[Qk]}set pipelining(e){this[Qk]=e,this[Od](!0)}get stats(){return new qyt(this)}get[rQ](){return this[rc].length-this[nc]}get[tQ](){return this[nc]-this[Zu]}get[Xb](){return this[rc].length-this[Zu]}get[$yt](){return!!this[rn]&&!this[hE]&&!this[rn].destroyed}get[YV](){return!!(this[rn]?.busy(null)||this[Xb]>=(XBe(this)||1)||this[rQ]>0)}[Kyt](e){ebe(this),this.once("connect",e)}[uBt](e,r){let n=new Yyt(this[mA].origin,e,r);return this[rc].push(n),this[Eg]||(mg.bodyLength(n.body)==null&&mg.isIterable(n.body)?(this[Eg]=1,queueMicrotask(()=>JV(this))):this[Od](!0)),this[Eg]&&this[Pd]!==2&&this[YV]&&(this[Pd]=2),this[Pd]<2}[cBt](){return new Promise(e=>{this[Xb]?this[Ud]=e:e(null)})}[ABt](e){return new Promise(r=>{let n=this[rc].splice(this[nc]);for(let i=0;i<n.length;i++){let o=n[i];mg.errorRequest(this,o,e)}let s=()=>{this[Ud]&&(this[Ud](),this[Ud]=null),r(null)};this[rn]?(this[rn].destroy(e,s),this[rn]=null):queueMicrotask(s),this[Od]()})}};function ZBe(t,e){if(t[tQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Xu(t[nc]===t[Zu]);let r=t[rc].splice(t[Zu]);for(let n=0;n<r.length;n++){let s=r[n];mg.errorRequest(t,s,e)}Xu(t[Xb]===0)}}function ebe(t){Xu(!t[hE]),Xu(!t[rn]);let{host:e,hostname:r,protocol:n,port:s}=t[mA];if(r[0]==="["){let i=r.indexOf("]");Xu(i!==-1);let o=r.substring(1,i);Xu($Be.isIPv6(o)),r=o}t[hE]=!0,dE.beforeConnect.hasSubscribers&&dE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Hd],localAddress:t[eQ]},connector:t[Zb]}),t[Zb]({host:e,hostname:r,protocol:n,port:s,servername:t[Hd],localAddress:t[eQ]},(i,o)=>{if(i){jBe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Od]();return}if(t.destroyed){mg.destroy(o.on("error",zBe),new Jyt),t[Od]();return}Xu(o);try{t[rn]=o.alpnProtocol==="h2"?EBt(t,o):mBt(t,o)}catch(a){o.destroy().on("error",zBe),jBe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Od]();return}t[hE]=!1,o[aBt]=0,o[VV]=t[VV],o[jyt]=t,o[Zyt]=null,dE.connected.hasSubscribers&&dE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Hd],localAddress:t[eQ]},connector:t[Zb],socket:o}),t.emit("connect",t[mA],[t]),t[Od]()})}function jBe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[hE]=!1,dE.connectError.hasSubscribers&&dE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[rn]?.version,servername:t[Hd],localAddress:t[eQ]},connector:t[Zb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Xu(t[tQ]===0);t[rQ]>0&&t[rc][t[nc]].servername===t[Hd];){let o=t[rc][t[nc]++];mg.errorRequest(t,o,e)}else ZBe(t,e);t.emit("connectionError",t[mA],[t],e)}}function KBe(t){t[Pd]=0,t.emit("drain",t[mA],[t])}function JV(t,e){t[Eg]!==2&&(t[Eg]=2,IBt(t,e),t[Eg]=0,t[Zu]>256&&(t[rc].splice(0,t[Zu]),t[nc]-=t[Zu],t[Zu]=0))}function IBt(t,e){for(;;){if(t.destroyed){Xu(t[rQ]===0);return}if(t[Ud]&&!t[Xb]){t[Ud](),t[Ud]=null;return}if(t[rn]&&t[rn].resume(),t[YV])t[Pd]=2;else if(t[Pd]===2){e?(t[Pd]=1,queueMicrotask(()=>KBe(t))):KBe(t);continue}if(t[rQ]===0||t[tQ]>=(XBe(t)||1))return;let r=t[rc][t[nc]];if(r===null)return;if(t[mA].protocol==="https:"&&t[Hd]!==r.servername){if(t[tQ]>0)return;t[Hd]=r.servername,t[rn]?.destroy(new Wyt("servername changed"),()=>{t[rn]=null,JV(t)})}if(t[hE])return;if(!t[rn]){ebe(t);return}if(t[rn].destroyed||t[rn].busy(r))return;!r.aborted&&t[rn].write(r)?t[nc]++:t[rc].splice(t[nc],1)}}tbe.exports=WV});var zV=E((uIr,rbe)=>{"use strict";var wk=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)}};rbe.exports=class{constructor(){this.head=this.tail=new wk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new wk),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 Sk=E((lIr,lbe)=>{"use strict";var{PoolStats:yBt}=UY(),BBt=lg(),bBt=zV(),{kConnected:jV,kSize:nbe,kRunning:sbe,kPending:ibe,kQueued:nQ,kBusy:QBt,kFree:wBt,kUrl:SBt,kClose:NBt,kDestroy:TBt,kDispatch:xBt}=Kt(),Gn=Symbol("clients"),Ls=Symbol("needDrain"),sQ=Symbol("queue"),KV=Symbol("closed resolve"),$V=Symbol("onDrain"),obe=Symbol("onConnect"),abe=Symbol("onDisconnect"),cbe=Symbol("onConnectionError"),XV=Symbol("get dispatcher"),Abe=Symbol("add client"),ube=Symbol("remove client"),ZV=class extends BBt{[sQ]=new bBt;[nQ]=0;[Gn]=[];[Ls]=!1;[$V](e,r,n){let s=this[sQ],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[t7])throw new Qp;process.emitWarning(new Qp)}e[wr].timeout&&e[wr].timeoutType===UC&&e[wr].timeout.refresh&&e[wr].timeout.refresh(),n[Vl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Lh]=!1,e&&(Ve(n[wn]<=1,"pipeline should only contain this request"),s(e))}};bwe.exports=EQt});var vwe=C((Iwr,kwe)=>{"use strict";var qa=Q("node:assert"),{pipeline:RQt}=Q("node:stream"),gt=st(),{RequestContentLengthMismatchError:u7,RequestAbortedError:DQt,SocketError:Uw,InformationalError:Uh,InvalidArgumentError:kQt,HeadersTimeoutError:vQt,BodyTimeoutError:FQt}=et(),{kUrl:Lw,kReset:dF,kClient:Lo,kRunning:Pw,kPending:MQt,kQueue:Fw,kPendingIdx:Tp,kRunningIdx:tu,kError:Uo,kSocket:qr,kStrictContentLength:_Qt,kOnError:PC,kMaxConcurrentStreams:l7,kPingInterval:wwe,kHTTP2Session:Jl,kHTTP2InitialWindowSize:LQt,kHTTP2ConnectionWindowSize:UQt,kResume:ru,kSize:PQt,kHTTPContext:h7,kClosed:d7,kBodyTimeout:OQt,kHeadersTimeout:HQt,kEnableConnectProtocol:Mw,kRemoteSettings:_w,kHTTP2Stream:uF,kHTTP2SessionState:f7}=sr(),{channels:Swe}=Fh(),Ga=Symbol("open streams"),Nwe,lF;try{lF=Q("node:http2")}catch{lF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:GQt,HTTP2_HEADER_METHOD:Twe,HTTP2_HEADER_PATH:xwe,HTTP2_HEADER_SCHEME:a7,HTTP2_HEADER_CONTENT_LENGTH:qQt,HTTP2_HEADER_EXPECT:YQt,HTTP2_HEADER_STATUS:A7,HTTP2_HEADER_PROTOCOL:VQt,NGHTTP2_REFUSED_STREAM:JQt,NGHTTP2_CANCEL:WQt}}=lF;function c7(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 zQt(t,e){t[qr]=e;let r=t[LQt],n=t[UQt],s=lF.connect(t[Lw],{createConnection:()=>e,peerMaxConcurrentStreams:t[l7],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[qr]=e,s[Ga]=0,s[Lo]=t,s[qr]=e,s[f7]={ping:{interval:t[wwe]===0?null:setInterval(ZQt,t[wwe],s).unref()}},s[Mw]=!1,s[_w]=!1,n&&gt.addListener(s,"connect",KQt.bind(s,n)),gt.addListener(s,"error",$Qt),gt.addListener(s,"frameError",ewt),gt.addListener(s,"end",twt),gt.addListener(s,"goaway",rwt),gt.addListener(s,"close",nwt),gt.addListener(s,"remoteSettings",XQt),s.unref(),t[Jl]=s,e[Jl]=s,gt.addListener(e,"error",iwt),gt.addListener(e,"end",owt),gt.addListener(e,"close",swt),e[d7]=!1,e.on("close",awt),{version:"h2",defaultPipelining:1/0,write(i){return cwt(t,i)},resume(){jQt(t)},destroy(i,o){e[d7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Pw]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[_w]===!1||gt.bodyLength(i.body)!==0&&(gt.isStream(i.body)||gt.isAsyncIterable(i.body)||gt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[_w]===!1;return!1}}}function jQt(t){let e=t[qr];e?.destroyed===!1&&(t[PQt]===0?(e.unref(),t[Jl].unref()):(e.ref(),t[Jl].ref()))}function KQt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function XQt(t){if(this[Lo][l7]=t.maxConcurrentStreams??this[Lo][l7],this[_w]===!0&&this[Mw]===!0&&t.enableConnectProtocol===!1){let e=new Uh("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[qr][Uo]=e,this[Lo][PC](e);return}this[Mw]=t.enableConnectProtocol??this[Mw],this[_w]=!0,this[Lo][ru]()}function ZQt(t){let e=t[f7];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[Lo],o=this[Lo];if(n!=null){let a=new Uh(`HTTP/2: "PING" errored - type ${n.message}`);o[Uo]=a,i[PC](a)}else i.emit("ping",s)}}function $Qt(t){qa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qr][Uo]=t,this[Lo][PC](t)}function ewt(t,e,r){if(r===0){let n=new Uh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[qr][Uo]=n,this[Lo][PC](n)}}function twt(){let t=new Uw("other side closed",gt.getSocketInfo(this[qr]));this.destroy(t),gt.destroy(this[qr],t)}function vw(t,e,r=!1){let n=t[Fw],s=t[tu];if(s<t[Tp]&&n[s]===e){n[s]=null,t[tu]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[Tp]||(n.splice(i,1),t[Tp]--,r&&t[Tp]<t[tu]&&(t[Tp]=t[tu]))}function rwt(t){let e=this[Uo]||new Uw(`HTTP/2: "GOAWAY" frame received with code ${t}`,gt.getSocketInfo(this[qr])),r=this[Lo];if(r[qr]=null,r[h7]=null,this.close(),this[Jl]=null,gt.destroy(this[qr],e),r[tu]<r[Fw].length){let n=r[Fw][r[tu]];r[Fw][r[tu]++]=null,n!=null&&gt.errorRequest(r,n,e),r[Tp]=r[tu]}qa(r[Pw]===0),r.emit("disconnect",r[Lw],[r],e),r.emit("connectionError",r[Lw],[r],e),r[ru]()}function nwt(){let{[Lo]:t,[f7]:e}=this,{[qr]:r}=t,n=this[qr][Uo]||this[Uo]||new Uw("closed",gt.getSocketInfo(r));if(t[qr]=null,t[h7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){qa(t[MQt]===0);let s=t[Fw].splice(t[tu]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&gt.errorRequest(t,o,n)}}}function swt(){let t=this[Uo]||new Uw("closed",gt.getSocketInfo(this)),e=this[Jl][Lo];e[qr]=null,e[h7]=null,this[Jl]!==null&&this[ Line truncated
`;Swe.sendHeaders.publish({request:e,headers:P,socket:s[qr]})}let F=i==="GET"||i==="HEAD"||h===null;c?(f[YQt]="100-continue",g=s.request(f,{endStream:F,signal:u}),g[uF]=!0,g.once("continue",L)):(g=s.request(f,{endStream:F,signal:u}),g[uF]=!0,L()),++s[Ga],g.setTimeout(r);let Y=!1;return g.once("response",P=>{let{[A7]:k,...j}=P;if(e.onResponseStarted(),Y=!0,g.setTimeout(n),e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(k),c7(j),g.resume.bind(g),"")===!1&&g.pause(),g.on("data",Z=>{e.aborted||e.completed||e.onData(Z)===!1&&g.pause()})}),g.once("end",()=>{g.removeAllListeners("data"),Y?(!e.aborted&&!e.completed&&e.onComplete({}),vw(t,e),t[ru]()):(I(new Uh("HTTP/2: stream half-closed (remote)")),vw(t,e,!0),t[ru]())}),g.once("close",()=>{g.removeAllListeners("data"),s[Ga]-=1,s[Ga]===0&&s.unref(),!e.aborted&&!e.completed&&I(new Uh("HTTP/2: stream closed before the response was complete"))}),g.once("error",function(P){g.removeAllListeners("data"),I(P)}),g.once("frameError",(P,k)=>{g.removeAllListeners("data"),I(new Uh(`HTTP/2: "frameError" received - type ${P}, code ${k}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let P=Y?new FQt(`HTTP/2: "body timeout after ${n}"`):new vQt(`HTTP/2: "headers timeout after ${r}"`);g.removeAllListeners("data"),s[Ga]-=1,s[Ga]===0&&s.unref(),I(P)}),g.once("trailers",P=>{e.aborted||e.completed||(g.removeAllListeners("data"),e.onComplete(P))}),!0;function L(){!h||B===0?Rwe(I,g,null,t,e,t[qr],B,y):gt.isBuffer(h)?Rwe(I,g,h,t,e,t[qr],B,y):gt.isBlobLike(h)?typeof h.stream=="function"?Dwe(I,g,h.stream(),t,e,t[qr],B,y):lwt(I,g,h,t,e,t[qr],B,y):gt.isStream(h)?uwt(I,t[qr],y,g,h,t,e,B):gt.isIterable(h)?Dwe(I,g,h,t,e,t[qr],B,y):qa(!1)}}function Rwe(t,e,r,n,s,i,o,a){try{r!=null&&gt.isBuffer(r)&&(qa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[dF]=!0),s.onRequestSent(),n[ru]()}catch(A){t(A)}}function uwt(t,e,r,n,s,i,o,a){qa(a!==0||i[Pw]===0,"stream body cannot be pipelined");let A=RQt(s,n,u=>{u?(gt.destroy(A,u),t(u)):(gt.removeAllListeners(A),o.onRequestSent(),r||(e[dF]=!0),i[ru]())});gt.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function lwt(t,e,r,n,s,i,o,a){qa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new u7;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[dF]=!0),n[ru]()}catch(A){t(A)}}async function Dwe(t,e,r,n,s,i,o,a){qa(o!==0||n[Pw]===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)=>{qa(A===null),i[Uo]?d(i[Uo]):A=l});e.on("close",c).on("drain",c);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[dF]=!0),n[ru]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}kwe.exports=zQt});var Gh=C((ywr,Hwe)=>{"use strict";var Wl=Q("node:assert"),Lwe=Q("node:net"),Ow=Q("node:http"),xp=st(),{ClientStats:dwt}=aW(),{channels:OC}=Fh(),hwt=Xbe(),fwt=Cp(),{InvalidArgumentError:Sr,InformationalError:gwt,ClientDestroyedError:pwt}=et(),mwt=Ip(),{kUrl:nu,kServerName:Hh,kClient:Ewt,kBusy:p7,kConnect:Cwt,kResuming:Rp,kRunning:Yw,kPending:Vw,kSize:Hw,kQueue:OA,kConnected:Iwt,kConnecting:HC,kNeedDrain:Oh,kKeepAliveDefaultTimeout:Fwe,kHostHeader:ywt,kPendingIdx:HA,kRunningIdx:jl,kError:Bwt,kPipelining:hF,kKeepAliveTimeoutValue:bwt,kMaxHeadersSize:Qwt,kKeepAliveMaxTimeout:wwt,kKeepAliveTimeoutThreshold:Swt,kHeadersTimeout:Nwt,kBodyTimeout:Twt,kStrictContentLength:xwt,kConnector:Gw,kMaxRequests:m7,kCounter:Rwt,kClose:Dwt,kDestroy:kwt,kDispatch:vwt,kLocalAddress:qw,kMaxResponseSize:Fwt,kOnError:Mwt,kHTTPContext:pn,kMaxConcurrentStreams:_wt,kHTTP2InitialWindowSize:Lwt,kHTTP2ConnectionWindowSize:Uwt,kResume:zl,kPingInterval:Pwt}=sr(),Owt=Qwe(),Hwt=vwe(),Ph=Symbol("kClosedResolve"),Gwt=Ow&&Ow.maxHeaderSize&&Number.isInteger(Ow.maxHeaderSize)&&Ow.maxHeaderSize>0?()=>Ow.maxHeaderSize:()=>{throw new Sr("http module not available or http.maxHeaderSize invalid")},Mwe=()=>{};function Uwe(t){return t[hF]??t[pn]?.defaultPipelining??1}var E7=class extends fwt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:F,maxResponseSize:Y,autoSelectFamily:L,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:k,allowH2:j,useH2c:Z,initialWindowSize:re,connectionWindowSize:Ae,pingInterval:de,webSocket:ke}={}){if(c!==void 0)throw new Sr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Sr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Sr("unsupported requestTimeout, use headersTimeout & Line truncated
`,this[Twt]=a??3e5,this[Nwt]=n??3e5,this[xwt]=m??!0,this[m7]=B,this[Ph]=null,this[Fwt]=Y>-1?Y:-1,this[pn]=null,this[_wt]=k??100,this[Lwt]=re??262144,this[Uwt]=Ae??524288,this[Pwt]=de??6e4,this[OA]=[],this[jl]=0,this[HA]=0,this[zl]=ve=>C7(this,ve),this[Mwt]=ve=>Pwe(this,ve)}get pipelining(){return this[hF]}set pipelining(e){this[hF]=e,this[zl](!0)}get stats(){return new dwt(this)}get[Vw](){return this[OA].length-this[HA]}get[Yw](){return this[HA]-this[jl]}get[Hw](){return this[OA].length-this[jl]}get[Iwt](){return!!this[pn]&&!this[HC]&&!this[pn].destroyed}get[p7](){return!!(this[pn]?.busy(null)||this[Hw]>=(Uwe(this)||1)||this[Vw]>0)}[Cwt](e){Owe(this),this.once("connect",e)}[vwt](e,r){let n=new hwt(this[nu].origin,e,r);return this[OA].push(n),this[Rp]||(xp.bodyLength(n.body)==null&&xp.isIterable(n.body)?(this[Rp]=1,queueMicrotask(()=>C7(this))):this[zl](!0)),this[Rp]&&this[Oh]!==2&&this[p7]&&(this[Oh]=2),this[Oh]<2}[Dwt](){return new Promise(e=>{this[Hw]?this[Ph]=e:e(null)})}[kwt](e){return new Promise(r=>{let n=this[OA].splice(this[HA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&xp.errorRequest(this,o,e)}let s=()=>{this[Ph]&&(this[Ph](),this[Ph]=null),r(null)};this[pn]?(this[pn].destroy(e,s),this[pn]=null):queueMicrotask(s),this[zl]()})}};function Pwe(t,e){if(t[Yw]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Wl(t[HA]===t[jl]);let r=t[OA].splice(t[jl]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&xp.errorRequest(t,s,e)}Wl(t[Hw]===0)}}function Owe(t){Wl(!t[HC]),Wl(!t[pn]);let{host:e,hostname:r,protocol:n,port:s}=t[nu];if(r[0]==="["){let i=r.indexOf("]");Wl(i!==-1);let o=r.substring(1,i);Wl(Lwe.isIPv6(o)),r=o}t[HC]=!0,OC.beforeConnect.hasSubscribers&&OC.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[pn]?.version,servername:t[Hh],localAddress:t[qw]},connector:t[Gw]});try{t[Gw]({host:e,hostname:r,protocol:n,port:s,servername:t[Hh],localAddress:t[qw]},(i,o)=>{if(i){g7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[zl]();return}if(t.destroyed){xp.destroy(o.on("error",Mwe),new pwt),t[zl]();return}Wl(o);try{t[pn]=o.alpnProtocol==="h2"?Hwt(t,o):Owt(t,o)}catch(a){o.destroy().on("error",Mwe),g7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[zl]();return}t[HC]=!1,o[Rwt]=0,o[m7]=t[m7],o[Ewt]=t,o[Bwt]=null,OC.connected.hasSubscribers&&OC.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[pn]?.version,servername:t[Hh],localAddress:t[qw]},connector:t[Gw],socket:o}),t.emit("connect",t[nu],[t]),t[zl]()})}catch(i){g7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[zl]()}}function g7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[HC]=!1,OC.connectError.hasSubscribers&&OC.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[pn]?.version,servername:t[Hh],localAddress:t[qw]},connector:t[Gw],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Wl(t[Yw]===0);t[Vw]>0&&t[OA][t[HA]].servername===t[Hh];){let o=t[OA][t[HA]++];xp.errorRequest(t,o,e)}else Pwe(t,e);t.emit("connectionError",t[nu],[t],e)}}function _we(t){t[Oh]=0,t.emit("drain",t[nu],[t])}function C7(t,e){t[Rp]!==2&&(t[Rp]=2,qwt(t,e),t[Rp]=0,t[jl]>256&&(t[OA].splice(0,t[jl]),t[HA]-=t[jl],t[jl]=0))}function qwt(t,e){for(;;){if(t.destroyed){Wl(t[Vw]===0);return}if(t[Ph]&&!t[Hw]){t[Ph](),t[Ph]=null;return}if(t[pn]&&t[pn].resume(),t[p7])t[Oh]=2;else if(t[Oh]===2){e?(t[Oh]=1,queueMicrotask(()=>_we(t))):_we(t);continue}if(t[Vw]===0||t[Yw]>=(Uwe(t)||1))return;let r=t[OA][t[HA]];if(r===null)return;if(t[nu].protocol==="https:"&&t[Hh]!==r.servername){if(t[Yw]>0)return;t[Hh]=r.servername,t[pn]?.destroy(new gwt("servername changed"),()=>{t[pn]=null,C7(t)})}if(t[HC])return;if(!t[pn]){Owe(t);return}if(t[pn].destroyed||t[pn].busy(r))return;!r.aborted&&t[pn].write(r)?t[HA]++:t[OA].splice(t[HA],1)}}Hwe.exports=E7});var I7=C((bwr,Gwe)=>{"use strict";var fF=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)}};Gwe.exports=class{constructor(){this.head=this.tail=new fF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new fF),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 gF=C((Qwr,Xwe)=>{"use strict";var{PoolStats:Ywt}=aW(),Vwt=Cp(),Jwt=I7(),{kConnected:y7,kSize:qwe,kRunning:Ywe,kPending:Vwe,kQueued:Jw,kBusy:Wwt,kFree:zwt,kUrl:jwt,kClose:Kwt,kDestroy:Xwt,kDispatch:Zwt}=sr(),is=Symbol("clients"),li=Symbol("needDrain"),Ww=Symbol("queue"),B7=Symbol("closed resolve"),b7=Symbol("onDrain"),Jwe=Symbol("onConnect"),Wwe=Symbol("onDisconnect"),zwe=Symbol("onConnectionError"),Q7=Symbol("get dispatcher"),jwe=Symbol("add client"),Kwe=Symbol("remove client"),w7=class extends Vwt{[Ww]=n Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};vwe.exports=fW});var pW=E((GIr,Lwe)=>{"use strict";var{InvalidArgumentError:Swt}=je(),{runtimeFeatures:Nwt}=ju();function Twt(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 _we=Nwt.has("crypto")?b("node:crypto"):null,xwt=_we?.hash?t=>_we.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Mwe(t){return Array.isArray(t)&&(t.length&1)===0}function Rwt(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 Dwt(t){let e={};if(!t)return e;if(Mwe(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 Fwe=["record","playback","update"];function kwt(t){if(!Fwe.includes(t))throw new Swt(`Invalid snapshot mode: ${t}. Must be one of: ${Fwe.join(", ")}`)}Lwe.exports={createHeaderFilters:Twt,hashId:xwt,isUndiciHeaders:Mwe,normalizeHeaders:Dwt,isUrlExcludedFactory:Rwt,validateSnapshotMode:kwt}});var Wwe=E((qIr,Vwe)=>{"use strict";var{writeFile:vwt,readFile:_wt,mkdir:Fwt}=b("node:fs/promises"),{dirname:Mwt,resolve:Uwe}=b("node:path"),{setTimeout:Lwt,clearTimeout:Pwe}=b("node:timers"),{InvalidArgumentError:Owe,UndiciError:Uwt}=je(),{hashId:Pwt,isUrlExcludedFactory:Owt,normalizeHeaders:Hwe,createHeaderFilters:Gwe}=pW();function EQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Hwe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:qwe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function qwe(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 Ywe(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 CQ(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 Pwt(r)}var mW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=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=Gwe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Owt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=EQ(e,this.#a,this.matchOptions),s=CQ(n),i=Hwe(r.headers),o={statusCode:r.statusCode,headers:Ywe(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.#s&&!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.#i&&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=EQ(e,this.#a,this.matchOptions),n=CQ(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 Owe("Snapshot path is required");try{let n=await _wt(Uwe(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 Uwt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Owe("Snapshot path is required");let n=Uwe(r);await Fwt(Mwt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await vwt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};BNe.exports=qz});var Vz=C((t1r,SNe)=>{"use strict";var{InvalidArgumentError:zNt}=et(),{runtimeFeatures:jNt}=ql();function KNt(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 bNe=jNt.has("crypto")?Q("node:crypto"):null,XNt=bNe?.hash?t=>bNe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function wNe(t){return Array.isArray(t)&&(t.length&1)===0}function ZNt(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 $Nt(t){let e={};if(!t)return e;if(wNe(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 QNe=["record","playback","update"];function eTt(t){if(!QNe.includes(t))throw new zNt(`Invalid snapshot mode: ${t}. Must be one of: ${QNe.join(", ")}`)}SNe.exports={createHeaderFilters:KNt,hashId:XNt,isUndiciHeaders:wNe,normalizeHeaders:$Nt,isUrlExcludedFactory:ZNt,validateSnapshotMode:eTt}});var MNe=C((r1r,FNe)=>{"use strict";var{writeFile:tTt,readFile:rTt,mkdir:nTt}=Q("node:fs/promises"),{dirname:sTt,resolve:NNe}=Q("node:path"),{setTimeout:iTt,clearTimeout:TNe}=Q("node:timers"),{InvalidArgumentError:xNe,UndiciError:oTt}=et(),{hashId:aTt,isUrlExcludedFactory:ATt,normalizeHeaders:RNe,createHeaderFilters:DNe}=Vz();function o1(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||RNe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:kNe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function kNe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function vNe(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 A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function a1(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 aTt(r)}var Jz=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=DNe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=ATt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=o1(e,this.#a,this.matchOptions),s=a1(n),i=RNe(r.headers),o={statusCode:r.statusCode,headers:vNe(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 A=this.#n.keys().next().value;this.#n.delete(A)}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.#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=o1(e,this.#a,this.matchOptions),n=a1(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 xNe("Snapshot path is required");try{let n=await rTt(NNe(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 oTt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new xNe("Snapshot path is required");let n=NNe(r);await nTt(sTt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await tTt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ro} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Oo} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};vwe.exports=fW});var pW=E((GIr,Lwe)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ro}_getValuesQuery ON cacheInterceptorV${ro}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ro}_deleteByUrlQuery ON cacheInterceptorV${ro}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Oo}_getValuesQuery ON cacheInterceptorV${Oo}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Oo}_deleteByUrlQuery ON cacheInterceptorV${Oo}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};vwe.exports=fW});var pW=E((GIr,Lwe)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${ro}
FROM cacheInterceptorV${Oo}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${ro} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${Oo} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};vwe.exports=fW});var pW=E((GIr,Lwe)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ro} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${Oo} (
url,
method,
body,
@@ -182,125 +182,141 @@ ${e.format(r)}`.trim())}};vwe.exports=fW});var pW=E((GIr,Lwe)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ro} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ro}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ro} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ro}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${Oo} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Oo}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${Oo} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${Oo}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${ro}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${Oo}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){PW(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){PW(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.#s.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.#u(),this.#i.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))}createWriteStream(e,r){PW(e),SSt(r);let n=0,s=[],i=this;return new wSt({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}`}#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)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!NSt(s[l],u[l])){A=!1;break}}if(A)return c}}};function NSt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var kg=E((lyr,Z1e)=>{"use strict";var{kConstruct:TSt}=Kt(),{kEnumerableProperty:TE}=Ze(),{iteratorMixin:xSt,isValidHeaderName:bQ,isValidHeaderValue:z1e}=$i(),{webidl:wt}=Xn(),HW=b("node:assert"),nv=b("node:util");function J1e(t){return t===10||t===13||t===9||t===32}function j1e(t){let e=0,r=t.length;for(;r>e&&J1e(t.charCodeAt(r-1));)--r;for(;r>e&&J1e(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function K1e(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}.`});GW(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)GW(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 GW(t,e,r){if(r=j1e(r),bQ(e)){if(!z1e(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(X1e(t)==="immutable")throw new TypeError("immutable");return iv(t).append(e,r,!1)}function RSt(t){let e=iv(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 $1e(t,e){return t[0]<e[0]?-1:1}var sv=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.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":oTe(i)&&(r[s]=i);break;case"id":aTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&oTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&aTe(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}}};cTe.exports={EventSourceStream:wJ}});var mTe=E((Myr,pTe)=>{"use strict";var{pipeline:JRt}=b("node:stream"),{fetching:zRt}=TQ(),{makeRequest:jRt}=RE(),{webidl:Ps}=Xn(),{EventSourceStream:KRt}=ATe(),{parseMIMEType:$Rt}=ta(),{createFastMessageEvent:XRt}=Rv(),{isNetworkError:uTe}=wQ(),{kEnumerableProperty:Og}=Ze(),{environmentSettingsObject:lTe}=$i(),dTe=!1,hTe=3e3,FQ=0,fTe=1,MQ=2,ZRt="anonymous",eDt="use-credentials",OE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=FQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Ps.util.markAsUncloneable(this);let n="EventSource constructor";Ps.argumentLengthCheck(arguments,1,n),dTe||(dTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ps.converters.USVString(e),r=Ps.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=lTe,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=ZRt;r.withCredentials===!0&&(o=eDt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=lTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=jRt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===MQ)return;this.#r=FQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!uTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(uTe(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?$Rt(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=fTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new KRt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(XRt(c.type,c.options))}});JRt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=zRt(e)}#A(){this.#r!==MQ&&(this.#r=FQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===FQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Ps.brandCheck(this,t),this.#r!==MQ&&(this.#r=MQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Ps.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=Ps.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=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},gTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:FQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:fTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:MQ,writable:!1}};Object.defineProperties(OE,gTe);Object.defineProperties(OE.prototype,gTe);Object.defineProperties(OE.prototype,{close:Og,onerror:Og,onmessage:Og,onopen:Og,readyState:Og,url:Og,withCredentials:Og});Ps.converters.EventSourceInitDict=Ps.dictionaryConverter([{key:"withCredentials",converter:Ps.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ps.converters.any},{key:"node",converter:Ps.dictionaryConverter([{key:"reconnectionTime",converter:Ps.converters["unsigned long"],defaultValue:()=>hTe},{key:"dispatcher",converter:Ps.converters.any}]),defaultValue:()=>({})}]);pTe.exports={EventSource:OE,defaultReconnectionTime:hTe}});var bTe=E((Lyr,ge)=>{"use strict";var tDt=Gd(),CTe=_b(),rDt=Cg(),nDt=Cbe(),sDt=bbe(),iDt=Bg(),oDt=C7(),aDt=g7(),cDt=oQe(),ADt=dQe(),uDt=gQe(),ITe=je(),qv=Ze(),{InvalidArgumentError:Gv}=ITe,HE=KQe(),lDt=dg(),dDt=nW(),{MockCallHistory:hD Line truncated
`)}close(){this.#n.close()}get(e){yj(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){yj(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){yj(e),dRt(r);let n=0,s=[],i=this;return new lRt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},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.#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}#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 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(!hRt(s[l],u[l])){c=!1;break}}if(c)return A}}};function hRt(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 Kp=C((Q1r,ixe)=>{"use strict";var{kConstruct:fRt}=sr(),{kEnumerableProperty:nI}=st(),{iteratorMixin:gRt,isValidHeaderName:d1,isValidHeaderValue:exe}=Mo(),{webidl:Mt}=Cs(),bj=Q("node:assert"),WF=Q("node:util");function $Te(t){return t===10||t===13||t===9||t===32}function txe(t){let e=0,r=t.length;for(;r>e&&$Te(t.charCodeAt(r-1));)--r;for(;r>e&&$Te(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function rxe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Mt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});Qj(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)Qj(t,r[n],e[r[n]])}else throw Mt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Qj(t,e,r){if(r=txe(r),d1(e)){if(!exe(r))throw Mt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Mt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(sxe(t)==="immutable")throw new TypeError("immutable");return jF(t).append(e,r,!1)}function pRt(t){let e=jF(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 A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function nxe(t,e){return t[0]<e[0]?-1:1}var zF=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(kM(e,s,Lvt)){Uvt(e,i)&&(r.retry=e.toString("utf8",i));return}if(kM(e,s,_vt)){Pvt(e,i)&&(r.id=e.toString("utf8",i));return}if(kM(e,s,Mvt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&Rvt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Dvt(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===gI[0]||(this.checkBOM=!1),!0):n===void 0?e===gI[0]&&r===gI[1]?!0:(this.checkBOM=!1,!1):(e===gI[0]&&r===gI[1]&&n===gI[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};uDe.exports={EventSourceStream:uK}});var CDe=C((j1r,EDe)=>{"use strict";var{pipeline:Ovt}=Q("node:stream"),{fetching:Hvt}=m1(),{makeRequest:Gvt}=iI(),{webidl:hi}=Cs(),{EventSourceStream:qvt}=lDe(),{parseMIMEType:Yvt}=Pa(),{createFastMessageEvent:Vvt}=IM(),{isNetworkError:dDe}=f1(),{kEnumerableProperty:sm}=st(),{environmentSettingsObject:hDe}=Mo(),fDe=!1,gDe=3e3,Q1=0,pDe=1,w1=2,Jvt="anonymous",Wvt="use-credentials",pI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=Q1;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),hi.util.markAsUncloneable(this);let n="EventSource constructor";hi.argumentLengthCheck(arguments,1,n),fDe||(fDe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hi.converters.USVString(e),r=hi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=hDe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Jvt;r.withCredentials===!0&&(o=Wvt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=hDe.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=Gvt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===w1)return;this.#r=Q1;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!dDe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(dDe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?Yvt(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=pDe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new qvt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Vvt(A.type,A.options))}});Ovt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Hvt(e)}#c(){this.#r!==w1&&(this.#r=Q1,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 QDt(e,r).catch(n=>{throw ETe?BTe(n,ETe):n&&typeof n=="object"&&Error.captureStackTrace(n,ge.exports.fetch),n})};ge.exports.Headers=kg().Headers;ge.exports.Response=wQ().Response;ge.exports.Request=RE().Request;ge.exports.FormData=dk().FormData;var{setGlobalOrigin:wDt,getGlobalOrigin:SDt}=sV();ge.exports.setGlobalOrigin=wDt;ge.exports.getGlobalOrigin=SDt;var{CacheStorage:NDt}=rNe(),{kConstruct:TDt}=Kt();ge.exports.caches=new NDt(TDt);var{deleteCookie:xDt,getCookies:RDt,getSetCookies:DDt,setCookie:kDt,parseCookie:vDt}=gNe();ge.exports.deleteCookie=xDt;ge.exports.getCookies=RDt;ge.exports.getSetCookies=DDt;ge.exports.setCookie=kDt;ge.exports.parseCookie=vDt;var{parseMIMEType:_Dt,serializeAMimeType:FDt}=ta();ge.exports.parseMIMEType=_Dt;ge.exports.serializeAMimeType=FDt;var{CloseEvent:MDt,ErrorEvent:LDt,MessageEvent:UDt}=Rv(),{WebSocket:PDt,ping:ODt}=jNe();ge.exports.WebSocket=PDt;ge.exports.CloseEvent=MDt;ge.exports.ErrorEvent=LDt;ge.exports.MessageEvent=UDt;ge.exports.ping=ODt;ge.exports.WebSocketStream=nTe().WebSocketStream;ge.exports.WebSocketError=IJ().WebSocketError;ge.exports.request=LQ(HE.request);ge.exports.stream=LQ(HE.stream);ge.exports.pipeline=LQ(HE.pipeline);ge.exports.connect=LQ(HE.connect);ge.exports.upgrade=LQ(HE.upgrade);ge.exports.MockClient=dDt;ge.exports.MockCallHistory=hDt;ge.exports.MockCallHistoryLog=fDt;ge.exports.MockPool=pDt;ge.exports.MockAgent=gDt;ge.exports.SnapshotAgent=mDt;ge.exports.mockErrors=EDt;var{EventSource:HDt}=mTe();ge.exports.EventSource=HDt;function GDt(){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=GDt});var UQ=E(th=>{"use strict";th.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");th.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");th.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";th.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);th.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);th.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());th.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 wTe=E((Oyr,QTe)=>{"use strict";var{asciiLowercase:Yv,solelyContainsHTTPTokenCodePoints:qDt,soleyContainsHTTPQuotedStringTokenCodePoints:YDt}=UQ();QTe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Yv(String(e)),this._map.get(e)}has(e){return e=Yv(String(e)),this._map.has(e)}set(e,r){if(e=Yv(String(e)),r=String(r),!qDt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!YDt(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=Yv(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 TTe=E((Hyr,NTe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:VDt,removeTrailingHTTPWhitespace:STe,isHTTPWhitespaceChar:WDt,solelyContainsHTTPTokenCodePoints:SJ,soleyContainsHTTPQuotedStringTokenCodePoints:JDt,asciiLowercase:NJ,collectAnHTTPQuotedString:zDt}=UQ();NTe.exports=t=>{t=VDt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!SJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=STe(n),n.length===0||!SJ(n))return null;let s={type:NJ(r),subtype:NJ(n),parameters:new Map};for(;e<t.length;){for(++e;WDt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=NJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=zDt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=STe(o),o==="")continue}i.length>0&&SJ(i)&&JDt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var RTe=E((Gyr,xTe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:jDt}=UQ();xTe.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+="=",(!jDt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var _Te=E((Yyr,vTe)=>{"use strict";var KDt=wTe(),$Dt=TTe(),XDt=RTe(),{asciiLowercase:DTe,solelyContainsHTTPTokenCodePoints:kTe}=UQ();vTe.exports=class{constructor(e){e=String(e);let r=$Dt(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 KDt(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=DTe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!kTe(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=DTe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!kTe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return XDt(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 KTe=E((nbr,h2t)=>{h2t.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==="*"?mz:f.type==="?"?Iz:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=T2t[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),ee=s.slice(P.reEnd-8,P.reEnd)+Z,ce=D.split(")").length,fe=D.split("(").length-ce,De=Z;for(let st=0;st<fe;st++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==Ez?"(?:$|\\/)":"";s=D+z+Z+Ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===Ez)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return R2t(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_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?mz:r.dot?S2t:N2t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?k2t(a):a===Os?Os:a._src).reduce((a,c)=>(a[a.length-1]===Os&&c===Os||a.push(c),a),[]),o.forEach((a,c)=>{a!==Os||o[c-1]===Os||(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]=Os))}),o.filter(a=>a!==Os).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;Cz.sep!=="/"&&(e=e.split(Cz.sep).join("/")),e=e.split(bxe),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=zE});var Dxe=E((vbr,Rxe)=>{Rxe.exports=xxe;var bz=b("fs"),{EventEmitter:_2t}=b("events"),{Minimatch:Bz}=Sxe(),{resolve:F2t}=b("path");function M2t(t,e){return new Promise((r,n)=>{bz.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 Nxe(t,e){return new Promise((r,n)=>{(e?bz.stat:bz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Nxe(t,!1):null):r(null):r(o)})})}async function*Txe(t,e,r,n,s,i){let o=await M2t(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 Nxe(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*Txe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*L2t(t,e,r,n){yield*Txe("",t,e,r,n,!0)}function U2t(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 Kv=class extends _2t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=U2t(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 Bz(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 Bz(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 Bz(i,{dot:!0}))}this.iterator=L2t(F2t(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
`,w);w=G===-1?Q.length:G}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let G=Q.indexOf("*/",w);G!==-1?(w=G+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function jC(Q){let B=zC(Q.toString()),w=B.match(oM);if(w||(w=B.match(aM)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}Ee.exports.fetch=function(e,r=void 0){return mFt(e,r).catch(n=>{throw IDe?QDe(n,IDe):n&&typeof n=="object"&&Error.captureStackTrace(n,Ee.exports.fetch),n})};Ee.exports.Headers=Kp().Headers;Ee.exports.Response=f1().Response;Ee.exports.Request=iI().Request;Ee.exports.FormData=tF().FormData;var{setGlobalOrigin:EFt,getGlobalOrigin:CFt}=TW();Ee.exports.setGlobalOrigin=EFt;Ee.exports.getGlobalOrigin=CFt;var{CacheStorage:IFt}=ARe(),{kConstruct:yFt}=sr();Ee.exports.caches=new IFt(yFt);var{deleteCookie:BFt,getCookies:bFt,getSetCookies:QFt,setCookie:wFt,parseCookie:SFt}=IRe();Ee.exports.deleteCookie=BFt;Ee.exports.getCookies=bFt;Ee.exports.getSetCookies=QFt;Ee.exports.setCookie=wFt;Ee.exports.parseCookie=SFt;var{parseMIMEType:NFt,serializeAMimeType:TFt}=Pa();Ee.exports.parseMIMEType=NFt;Ee.exports.serializeAMimeType=TFt;var{CloseEvent:xFt,ErrorEvent:RFt,MessageEvent:DFt}=IM(),{WebSocket:kFt,ping:vFt}=$Re();Ee.exports.WebSocket=kFt;Ee.exports.CloseEvent=xFt;Ee.exports.ErrorEvent=RFt;Ee.exports.MessageEvent=DFt;Ee.exports.ping=vFt;Ee.exports.WebSocketStream=aDe().WebSocketStream;Ee.exports.WebSocketError=iK().WebSocketError;Ee.exports.request=S1(mI.request);Ee.exports.stream=S1(mI.stream);Ee.exports.pipeline=S1(mI.pipeline);Ee.exports.connect=S1(mI.connect);Ee.exports.upgrade=S1(mI.upgrade);Ee.exports.MockClient=iFt;Ee.exports.MockCallHistory=oFt;Ee.exports.MockCallHistoryLog=aFt;Ee.exports.MockPool=cFt;Ee.exports.MockAgent=AFt;Ee.exports.SnapshotAgent=uFt;Ee.exports.mockErrors=lFt;var{EventSource:FFt}=CDe();Ee.exports.EventSource=FFt;function MFt(){globalThis.fetch=Ee.exports.fetch,globalThis.Headers=Ee.exports.Headers,globalThis.Response=Ee.exports.Response,globalThis.Request=Ee.exports.Request,globalThis.FormData=Ee.exports.FormData,globalThis.WebSocket=Ee.exports.WebSocket,globalThis.CloseEvent=Ee.exports.CloseEvent,globalThis.ErrorEvent=Ee.exports.ErrorEvent,globalThis.MessageEvent=Ee.exports.MessageEvent,globalThis.EventSource=Ee.exports.EventSource}Ee.exports.install=MFt});var N1=C(tf=>{"use strict";tf.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");tf.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");tf.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";tf.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);tf.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);tf.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());tf.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 NDe=C(($1r,SDe)=>{"use strict";var{asciiLowercase:MM,solelyContainsHTTPTokenCodePoints:_Ft,soleyContainsHTTPQuotedStringTokenCodePoints:LFt}=N1();SDe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=MM(String(e)),this._map.get(e)}has(e){return e=MM(String(e)),this._map.has(e)}set(e,r){if(e=MM(String(e)),r=String(r),!_Ft(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!LFt(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=MM(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 RDe=C((eSr,xDe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:UFt,removeTrailingHTTPWhitespace:TDe,isHTTPWhitespaceChar:PFt,solelyContainsHTTPTokenCodePoints:lK,soleyContainsHTTPQuotedStringTokenCodePoints:OFt,asciiLowercase:dK,collectAnHTTPQuotedString:HFt}=N1();xDe.exports=t=>{t=UFt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!lK(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=TDe(n),n.length===0||!lK(n))return null;let s={type:dK(r),subtype:dK(n),parameters:new Map};for(;e<t.length;){for(++e;PFt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=dK(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=HFt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=TDe(o),o==="")continue}i.length>0&&lK(i)&&OFt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var kDe=C((tSr,DDe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:GFt}=N1();DDe.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+="=",(!GFt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var _De=C((nSr,MDe)=>{"use strict";var qFt=NDe(),YFt=RDe(),VFt=kDe(),{asciiLowercase:vDe,solelyContainsHTTPTokenCodePoints:FDe}=N1();MDe.exports=class{constructor(e){e=String(e);let r=YFt(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 qFt(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=vDe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!FDe(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=vDe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!FDe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return VFt(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 XDe=C((ENr,oMt)=>{oMt.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`,L,L,f,s);let P=f.type==="*"?nX:f.type==="?"?oX:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+L}B(),o&&(s+="\\\\");let F=QMt[s.charAt(0)];for(let L=A.length-1;L>-1;L--){let P=A[L],k=s.slice(0,P.reStart),j=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),re=s.slice(P.reEnd-8,P.reEnd)+Z,Ae=k.split(")").length,de=k.split("(").length-Ae,ke=Z;for(let rt=0;rt<de;rt++)ke=ke.replace(/\)[+*?]?/,"");Z=ke;let ve=Z===""&&r!==sX?"(?:$|\\/)":"";s=k+j+Z+ve+re}if(s!==""&&i&&(s="(?=.)"+s),F&&(s=I()+s),r===sX)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return SMt(e);let Y=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_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?nX:r.dot?BMt:bMt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?TMt(a):a===fi?fi:a._src).reduce((a,A)=>(a[a.length-1]===fi&&A===fi||a.push(A),a),[]),o.forEach((a,A)=>{a!==fi||o[A-1]===fi||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=fi))}),o.filter(a=>a!==fi).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;iX.sep!=="/"&&(e=e.split(iX.sep).join("/")),e=e.split(x2e),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],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Vo.defaults(e).Minimatch}};Vo.Minimatch=QI});var L2e=C((jNr,_2e)=>{_2e.exports=M2e;var cX=Q("fs"),{EventEmitter:RMt}=Q("events"),{Minimatch:AX}=k2e(),{resolve:DMt}=Q("path");function kMt(t,e){return new Promise((r,n)=>{cX.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 v2e(t,e){return new Promise((r,n)=>{(e?cX.stat:cX.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?v2e(t,!1):null):r(null):r(o)})})}async function*F2e(t,e,r,n,s,i){let o=await kMt(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await v2e(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*F2e(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*vMt(t,e,r,n){yield*F2e("",t,e,r,n,!0)}function FMt(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 HM=class extends RMt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=FMt(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 AX(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 AX(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 AX(i,{dot:!0}))}this.iterator=vMt(DMt(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
`,N);N=q===-1?w.length:q}else if(M!==-1&&w[N]==="/"&&w[N+1]==="*"){let q=w.indexOf("*/",N);q!==-1?(N=q+2,M=w.indexOf("*/",N)):(b+=w[N],N++)}else b+=w[N],N++;return b}function On(w){let b=Ys(w.toString()),N=b.match(ro);if(N||(N=b.match(Lu)),!N)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(a1).map(G=>G.replace(c1,"").trim())}function KC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var G=Q[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),w[F]=Y.concat(Y.length>0?te:G);else if(j)w[F]=G;else{if(Y=jC(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),w[F]=Y.concat(te)}function te(Se,yt){var Ft=Y.map(St=>Se[St]);Ft.push(yt),I(G)(...Ft)}}),JC(w,B)}class $C{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,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):XC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):XC(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 w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function XC(Q,B){Q.length=1,Q.head=Q.tail=B}function yp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function yt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Cr,Sn;function po(xh,...iI){if(xh)return Pe?Sn(xh):Cr();if(iI.length<=1)return Cr(iI[0]);Cr(iI)}var wp=Mt._createTaskItem(Ue,Pe?po:Nt||po);if(be?Mt._tasks.unshift(wp):Mt._tasks.push(wp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((xh,iI)=>{Cr=xh,Sn=iI})}function go(Ue){return function(be,...Pe){G-=1;for(var Nt=0,Cr=Ue.length;Nt<Cr;Nt++){var Sn=Ue[Nt],po=Y.indexOf(Sn);po===0?Y.shift():po>0&&Y.splice(po,1),Sn.callback(be,...Pe),be!=null&&yt("error",be,Sn.data)}G<=Mt.concurrency-Mt.buffer&&yt("unsaturated"),Mt.idle()&&yt("drain"),Mt.process()}}function Qp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>yt("drain")),!0):!1}let Th=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(Cr,Sn)=>{if(Cr)return Nt(Cr);Pe(Sn)})});Se(Ue),j(Ue,be)};var sI=!1,Mt={_tasks:new $C,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!sI){for(sI=!0;!Mt.paused&&G<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Cr=Mt._tasks.shift();Ue.push(Cr),Y.push(Cr),be.push(Cr.data)}G+=1,Mt._tasks.length===0&&yt("empty"),G===Mt.concurrency&&yt("saturated");var Sn=ee(go(Ue));F(be,Sn)}sI=!1}},length(){return Mt._tasks.length},running(){return G},workersList(){return Y},idle(){return Mt._tasks.length+G===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Th("saturated")},unsaturated:{writable:!1,value:Th("unsaturated")},empty:{writable:!1,value:Th("empty")},drain:{writable:!1,value:Th("drain")},error:{writable:!1,value:Th("error")}}),Mt}function ZC(Q,B){return yp(Q,1,B)}function Bp(Q,B,w){return yp(Q,B,w)}function fo(Q,B,w,F){F=O(F);var G=I(w);return Ws(Q,(Y,J,j)=>{G(B,Y,(te,Se)=>{B=Se,j(te)})},Y=>F(Y,B))}var ya=m(fo,4);function bp(...Q){var B=Q.map(I);return function(...w){var F=this,G=w[w.length-1];return typeof G=="function"?w.pop():G=KA(),ya(B,w,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>G(Y,...J)),G[jA]}}function A1(...Q){return bp(...Q.reverse())}function we(Q,B,w,F){return y(fe(B),Q,w,F)}var H=m(we,4);function T(Q,B,w,F){var G=I(w);return H(Q,B,(Y,J)=>{G(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 q=m(T,4);function K(Q,B,w){return q(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});kr[es]||(Hxe=global[es]||[],qxe(kr,Hxe),kr.close=(function(t){function e(r,n){return t.call(kr,r,function(s){s||Gxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,t_,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),Gxe()}return Object.defineProperty(e,t_,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Yg(kr[es]),b("assert").equal(kr[es].length,0)}));var Hxe;global[es]||qxe(global,kr[es]);Nz.exports=wz(J2t(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(Nz.exports=wz(kr),kr.__patched=!0);function wz(t){V2t(t),t.gracefulify=wz,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,Z){return typeof z=="function"&&(Z=z,z=null),ee(D,z,Z);function ee(ce,fe,De,Ke){return e(ce,fe,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?jE([ee,[ce,fe,De],st,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return n(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return i(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=0),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return a(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,Z){typeof z=="function"&&(Z=z,z=null);var ee=u.test(process.version)?function(De,Ke,st,Yt){return A(De,ce(De,Ke,st,Yt))}:function(De,Ke,st,Yt){return A(De,Ke,ce(De,Ke,st,Yt))};return ee(D,z,Z);function ce(fe,De,Ke,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?jE([ee,[fe,De,Ke],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof Ke=="function"&&Ke.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=W2t(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return k(fe,De,Ke,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function jE(t){Yg("ENQUEUE",t[0].name,t[1]),kr[es].push(t),Sz()}var e_;function Gxe(){for(var t=Date.now(),e=0;e<kr[es].length;++e)kr[es][e].length>2&&(kr[es][e][3]=t,kr[es][e][4]=t);Sz()}function Sz(){if(clearTimeout(e_),e_=void 0,kr[es].length!==0){var t=kr[es].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Yg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Yg("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?(Yg("RETRY",e.name,r),e.apply(null,r.concat([s]))):kr[es].push(t)}e_===void 0&&(e_=setTimeout(Sz,0))}}});var r_=E((Ubr,Yxe)=>{"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}};B2e.exports={AggregateError:Aj,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 uj=E((zQr,b2e)=>{"use strict";b2e.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 Es=E((jQr,S2e)=>{"use strict";var{format:pMt,inspect:y_}=uj(),{AggregateError:mMt}=Nr(),EMt=globalThis.AggregateError||mMt,CMt=Symbol("kIsNodeError"),IMt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],yMt=/^([A-Z][a-z0-9]*)+$/,BMt="__node_internal_",B_={};function Jg(t,e){if(!t)throw new B_.ERR_INTERNAL_ASSERTION(e)}function Q2e(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 bMt(t,e,r){if(typeof e=="function")return Jg(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 Jg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:pMt(e,...r)}function rs(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(bMt(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[CMt]=!0,B_[t]=n}function w2e(t){let e=BMt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function QMt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new EMt([e,t],e.message);return r.code=e.code,r}return t||e}var lj=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new B_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};rs("ERR_ASSERTION","%s",Error);rs("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Jg(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)Jg(typeof c=="string","All expected entries have to be of type string"),IMt.includes(c)?s.push(c.toLowerCase()):yMt.test(c)?i.push(c):(Jg(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+=q$(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=q$(" "+s+"="+n[s]+`
`);return kt.from(r)};MC.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};MC.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,Ih(e.mode&FGt,6),100),kt.write(r,Ih(e.uid,6),108),kt.write(r,Ih(e.gid,6),116),GGt(e.size,r,124),kt.write(r,Ih(e.mtime.getTime()/1e3|0,11),136),r[156]=KF+OGt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(zUe,r,Xw),kt.copy(kGt,r,Y$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Ih(e.devmajor||0,6),329),kt.write(r,Ih(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Ih(KUe(r),6),148),r)};MC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-KF,i=FC(e,0,100,r),o=Ch(e,100,8),a=Ch(e,108,8),c=Ch(e,116,8),A=Ch(e,124,12),u=Ch(e,136,12),l=PGt(s),d=e[157]===0?null:FC(e,157,100,r),h=FC(e,265,32),f=FC(e,297,32),p=Ch(e,329,8),I=Ch(e,337,8),m=KUe(e);if(m===256)return null;if(m!==Ch(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(MGt(e))e[345]&&(i=FC(e,345,155,r)+"/"+i);else if(!LGt(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:p,devminor:I,pax:null}};function MGt(t){return kt.equals(zUe,t.subarray(Xw,Xw+6))}function LGt(t){return kt.equals(vGt,t.subarray(Xw,Xw+6))&&kt.equals(_Gt,t.subarray(Y$,Y$+2))}function UGt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function PGt(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 OGt(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 jUe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function KUe(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 Ih(t,e){return t=t.toString(8),t.length>e?DGt.slice(0,e)+" ":RGt.slice(0,e-t.length)+t+" "}function HGt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function GGt(t,e,r){t.toString(8).length>11?HGt(t,e,r):kt.write(e,Ih(t,11),r)}function qGt(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 Ch(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return qGt(t);{for(;e<t.length&&t[e]===32;)e++;let n=UGt(jUe(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 FC(t,e,r,n){return kt.toString(t.subarray(e,jUe(t,0,e,e+r)),n)}function q$(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 tPe=E((ySr,ePe)=>{var{Writable:YGt,Readable:VGt,getStreamError:$Ue}=G$(),WGt=N$(),XUe=RC(),LC=V$(),JGt=XUe.alloc(0),J$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new WGt,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 JGt;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 XUe.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)}},z$=class extends VGt{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($Ue(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=ZUe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},j$=class extends YGt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function tO(t){process.exitCode=ZP.Failure,Qo(t)}function Gl(){return process.env.RUNNER_DEBUG==="1"}function V(t){Rh("debug",{},t)}function Qo(t,e={}){Rh("error",x1(e),t instanceof Error?t.toString():t)}function Xe(t,e={}){Rh("warning",x1(e),t instanceof Error?t.toString():t)}function Lae(t,e={}){Rh("notice",x1(e),t instanceof Error?t.toString():t)}function re(t){process.stdout.write(t+Mae.EOL)}function cy(t,e){if(process.env.GITHUB_STATE||"")return jX("STATE",KX(t,e));Rh("save-state",{name:t},Il(e))}function fu(t){return process.env[`STATE_${t}`]||""}import{readFileSync as Eze,existsSync as Cze}from"fs";import{EOL as Ize}from"os";var Bm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Cze(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Eze(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${Ize}`)}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 iO=pe(Gae(),1),qae=pe(NN(),1),vze=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 Yae(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 Vae(t){return new iO.HttpClient().getAgent(t)}function _ze(t){return new iO.HttpClient().getAgentDispatcher(t)}function Wae(t){let e=_ze(t);return(n,s)=>vze(this,void 0,void 0,function*(){return(0,qae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Jae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function oO(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 ql(){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 HN(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)=>HN.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 zae(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 jae(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 Kae=Function.bind,$ae=Kae.bind(Kae);function Xae(t,e,r){let n=$ae(jae,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]=$ae(zae,null).apply(null,i)})}function Mze(){let t=Symbol("Singular"),e={registry:{}},r=HN.bind(null,e,t);return Xae(r,e,t),r}function Lze(){let t={registry:{}},e=HN.bind(null,t);return Xae(e,t),e}var Zae={Singular:Mze,Collection:Lze};var Uze="0.0.0-development",Pze=`octokit-endpoint.js/${Uze} ${ql()}`,Oze={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.githu Line truncated
`+b);let[,M]=N;return M.replace(/\s/g,"").split(XA).map(q=>q.replace(_m,"").trim())}function iA(w,b){var N={};return Object.keys(w).forEach(M=>{var q=w[M],W,K=h(q),$=!K&&q.length===1||K&&q.length===0;if(Array.isArray(q))W=[...q],q=W.pop(),N[M]=W.concat(W.length>0?ne:q);else if($)N[M]=q;else{if(W=On(q),q.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),N[M]=W.concat(ne)}function ne(xe,kt){var Jt=W.map(Ut=>xe[Ut]);Jt.push(kt),E(q)(...Jt)}}),_u(N,b)}class oA{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,N){N.prev=b,N.next=b.next,b.next?b.next.prev=N:this.tail=N,b.next=N,this.length+=1}insertBefore(b,N){N.prev=b.prev,N.next=b,b.prev?b.prev.next=N:this.head=N,b.prev=N,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Ed(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Ed(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 N=this.head;N;){var{next:M}=N;b(N)&&this.removeLink(N),N=M}return this}}function Ed(w,b){w.length=1,w.head=w.tail=b}function ZA(w,b,N){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var M=E(w),q=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function $(We,Ne){K[We].push(Ne)}function ne(We,Ne){let ze=(...Pt)=>{xe(We,ze),Ne(...Pt)};K[We].push(ze)}function xe(We,Ne){if(!We)return Object.keys(K).forEach(ze=>K[ze]=[]);if(!Ne)return K[We]=[];K[We]=K[We].filter(ze=>ze!==Ne)}function kt(We,...Ne){K[We].forEach(ze=>ze(...Ne))}var Jt=!1;function Ut(We,Ne,ze,Pt){if(Pt!=null&&typeof Pt!="function")throw new Error("task callback must be a function");Wt.started=!0;var Dr,qn;function $o(_f,...vy){if(_f)return ze?qn(_f):Dr();if(vy.length<=1)return Dr(vy[0]);Dr(vy)}var zm=Wt._createTaskItem(We,ze?$o:Pt||$o);if(Ne?Wt._tasks.unshift(zm):Wt._tasks.push(zm),Jt||(Jt=!0,c(()=>{Jt=!1,Wt.process()})),ze||!Pt)return new Promise((_f,vy)=>{Dr=_f,qn=vy})}function Zo(We){return function(Ne,...ze){q-=1;for(var Pt=0,Dr=We.length;Pt<Dr;Pt++){var qn=We[Pt],$o=W.indexOf(qn);$o===0?W.shift():$o>0&&W.splice($o,1),qn.callback(Ne,...ze),Ne!=null&&kt("error",Ne,qn.data)}q<=Wt.concurrency-Wt.buffer&&kt("unsaturated"),Wt.idle()&&kt("drain"),Wt.process()}}function Wm(We){return We.length===0&&Wt.idle()?(c(()=>kt("drain")),!0):!1}let Mf=We=>Ne=>{if(!Ne)return new Promise((ze,Pt)=>{ne(We,(Dr,qn)=>{if(Dr)return Pt(Dr);ze(qn)})});xe(We),$(We,Ne)};var ky=!1,Wt={_tasks:new oA,_createTaskItem(We,Ne){return{data:We,callback:Ne}},*[Symbol.iterator](){yield*Wt._tasks[Symbol.iterator]()},concurrency:b,payload:N,buffer:b/4,started:!1,paused:!1,push(We,Ne){return Array.isArray(We)?Wm(We)?void 0:We.map(ze=>Ut(ze,!1,!1,Ne)):Ut(We,!1,!1,Ne)},pushAsync(We,Ne){return Array.isArray(We)?Wm(We)?void 0:We.map(ze=>Ut(ze,!1,!0,Ne)):Ut(We,!1,!0,Ne)},kill(){xe(),Wt._tasks.empty()},unshift(We,Ne){return Array.isArray(We)?Wm(We)?void 0:We.map(ze=>Ut(ze,!0,!1,Ne)):Ut(We,!0,!1,Ne)},unshiftAsync(We,Ne){return Array.isArray(We)?Wm(We)?void 0:We.map(ze=>Ut(ze,!0,!0,Ne)):Ut(We,!0,!0,Ne)},remove(We){Wt._tasks.remove(We)},process(){if(!ky){for(ky=!0;!Wt.paused&&q<Wt.concurrency&&Wt._tasks.length;){var We=[],Ne=[],ze=Wt._tasks.length;Wt.payload&&(ze=Math.min(ze,Wt.payload));for(var Pt=0;Pt<ze;Pt++){var Dr=Wt._tasks.shift();We.push(Dr),W.push(Dr),Ne.push(Dr.data)}q+=1,Wt._tasks.length===0&&kt("empty"),q===Wt.concurrency&&kt("saturated");var qn=re(Zo(We));M(Ne,qn)}ky=!1}},length(){return Wt._tasks.length},running(){return q},workersList(){return W},idle(){return Wt._tasks.length+q===0},pause(){Wt.paused=!0},resume(){Wt.paused!==!1&&(Wt.paused=!1,c(Wt.process))}};return Object.defineProperties(Wt,{saturated:{writable:!1,value:Mf("saturated")},unsaturated:{writable:!1,value:Mf("unsaturated")},empty:{writable:!1,value:Mf("empty")},drain:{writable:!1,value:Mf("drain")},error:{writable:!1,value:Mf("error")}}),Wt}function Uu(w,b){return ZA(w,1,b)}function Pu(w,b,N){return ZA(w,b,N)}function Ii(w,b,N,M){M=Y(M);var q=E(N);return us(w,(W,K,$)=>{q(b,W,(ne,xe)=>{b=xe,$(ne)})},W=>M(W,b))}var Vs=m(Ii,4);function Ou(...w){var b=w.map(E);return function(...N){var M=this,q=N[N.length-1];return typeof q=="function"?N.pop():q=KA(),Vs(b,N,(W,K,$)=>{K.apply(M,W.concat((ne,...xe)=>{$(ne,xe)}))},(W,K)=>q(W,...K)),q[sA]}}function Rf(...w){return Ou(...w.reverse())}function Se(w,b,N,M){return y(de(b),w,N,M)}var G=m(Se,4);function x(w,b,N,M){var q=E(N);return G(w,b,(W,K)=>{q(W,($,...ne)=>$?K($):K($,ne))},(W,K)=>{for(var $=[],ne=0;ne<K.length;ne++)K[ne]&&($=$.concat(...K[ne]));return M(W,$)})}var V=m(x,4);function X(w,b,N){return V(w,1/0,b,N)}var ee=m(X,3);function ue(w,b,N){retu Line truncated
GFS4: `),console.error(t)});Vr[ys]||(W2e=global[ys]||[],j2e(Vr,W2e),Vr.close=(function(t){function e(r,n){return t.call(Vr,r,function(s){s||z2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,JM,{value:t}),e})(Vr.close),Vr.closeSync=(function(t){function e(r){t.apply(Vr,arguments),z2e()}return Object.defineProperty(e,JM,{value:t}),e})(Vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Am(Vr[ys]),Q("assert").equal(Vr[ys].length,0)}));var W2e;global[ys]||j2e(global,Vr[ys]);hX.exports=lX(qMt(Vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Vr.__patched&&(hX.exports=lX(Vr),Vr.__patched=!0);function lX(t){HMt(t),t.gracefulify=lX,t.createReadStream=F,t.createWriteStream=Y;var e=t.readFile;t.readFile=r;function r(k,j,Z){return typeof j=="function"&&(Z=j,j=null),re(k,j,Z);function re(Ae,de,ke,ve){return e(Ae,de,function(rt){rt&&(rt.code==="EMFILE"||rt.code==="ENFILE")?wI([re,[Ae,de,ke],rt,ve||Date.now(),Date.now()]):typeof ke=="function"&&ke.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,Z,re){return typeof Z=="function"&&(re=Z,Z=null),Ae(k,j,Z,re);function Ae(de,ke,ve,rt,_t){return n(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?wI([Ae,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,Z,re){return typeof Z=="function"&&(re=Z,Z=null),Ae(k,j,Z,re);function Ae(de,ke,ve,rt,_t){return i(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?wI([Ae,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(k,j,Z,re){return typeof Z=="function"&&(re=Z,Z=0),Ae(k,j,Z,re);function Ae(de,ke,ve,rt,_t){return a(de,ke,ve,function(Dt){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?wI([Ae,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,Z){typeof j=="function"&&(Z=j,j=null);var re=u.test(process.version)?function(ke,ve,rt,_t){return c(ke,Ae(ke,ve,rt,_t))}:function(ke,ve,rt,_t){return c(ke,ve,Ae(ke,ve,rt,_t))};return re(k,j,Z);function Ae(de,ke,ve,rt){return function(_t,Dt){_t&&(_t.code==="EMFILE"||_t.code==="ENFILE")?wI([re,[de,ke,ve],_t,rt||Date.now(),Date.now()]):(Dt&&Dt.sort&&Dt.sort(),typeof ve=="function"&&ve.call(this,_t,Dt))}}}if(process.version.substr(0,4)==="v0.8"){var d=GMt(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(k){m=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(k){y=k},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function m(k,j){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z),k.read())})}function y(k,j){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var k=this;P(k.path,k.flags,k.mode,function(j,Z){j?(k.destroy(),k.emit("error",j)):(k.fd=Z,k.emit("open",Z))})}function F(k,j){return new t.ReadStream(k,j)}function Y(k,j){return new t.WriteStream(k,j)}var L=t.open;t.open=P;function P(k,j,Z,re){return typeof Z=="function"&&(re=Z,Z=null),Ae(k,j,Z,re);function Ae(de,ke,ve,rt,_t){return L(de,ke,ve,function(Dt,Cr){Dt&&(Dt.code==="EMFILE"||Dt.code==="ENFILE")?wI([Ae,[de,ke,ve,rt],Dt,_t||Date.now(),Date.now()]):typeof rt=="function"&&rt.apply(this,arguments)})}}return t}function wI(t){Am("ENQUEUE",t[0].name,t[1]),Vr[ys].push(t),dX()}var VM;function z2e(){for(var t=Date.now(),e=0;e<Vr[ys].length;++e)Vr[ys][e].length>2&&(Vr[ys][e][3]=t,Vr[ys][e][4]=t);dX()}function dX(){if(clearTimeout(VM),VM=void 0,Vr[ys].length!==0){var t=Vr[ys].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Am("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Am("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(Am("RETRY",e.name,r),e.apply(null,r.concat([s]))):Vr[ys].push(t)}VM===void 0&&(VM=setTimeout(dX,0))}}});var WM=C((eTr,K2e)=>{"use strict";var yu=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";yu.writable=t=>yu(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";yu.readable=t=>yu(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};TFe.exports={AggregateError:jX,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 KX=C((uxr,xFe)=>{"use strict";xFe.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 Os=C((lxr,kFe)=>{"use strict";var{format:dOt,inspect:d_}=KX(),{AggregateError:hOt}=Pr(),fOt=globalThis.AggregateError||hOt,gOt=Symbol("kIsNodeError"),pOt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],mOt=/^([A-Z][a-z0-9]*)+$/,EOt="__node_internal_",h_={};function lm(t,e){if(!t)throw new h_.ERR_INTERNAL_ASSERTION(e)}function RFe(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 COt(t,e,r){if(typeof e=="function")return lm(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 lm(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:dOt(e,...r)}function bs(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(COt(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[gOt]=!0,h_[t]=n}function DFe(t){let e=EOt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function IOt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new fOt([e,t],e.message);return r.code=e.code,r}return t||e}var XX=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new h_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};bs("ERR_ASSERTION","%s",Error);bs("ERR_INVALID_ARG_TYPE",(t,e,r)=>{lm(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 A of e)lm(typeof A=="string","All expected entries have to be of type string"),pOt.includes(A)?s.push(A.toLowerCase()):mOt.test(A)?i.push(A):(lm(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,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+=Dee(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=Dee(" "+s+"="+n[s]+`
`);return Yt.from(r)};dy.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(Yt.toString(e.subarray(0,n)),10);if(!s)return r;let i=Yt.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};dy.encode=function(e){let r=Yt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),Yt.byteLength(n)!==n.length)return null;for(;Yt.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 Yt.byteLength(n)>100||Yt.byteLength(s)>155||e.linkname&&Yt.byteLength(e.linkname)>100?null:(Yt.write(r,n),Yt.write(r,bf(e.mode&_Jt,6),100),Yt.write(r,bf(e.uid,6),108),Yt.write(r,bf(e.gid,6),116),qJt(e.size,r,124),Yt.write(r,bf(e.mtime.getTime()/1e3|0,11),136),r[156]=HL+HJt(e.type),e.linkname&&Yt.write(r,e.linkname,157),Yt.copy(c8e,r,HS),Yt.copy(vJt,r,kee),e.uname&&Yt.write(r,e.uname,265),e.gname&&Yt.write(r,e.gname,297),Yt.write(r,bf(e.devmajor||0,6),329),Yt.write(r,bf(e.devminor||0,6),337),s&&Yt.write(r,s,345),Yt.write(r,bf(l8e(r),6),148),r)};dy.decode=function(e,r,n){let s=e[156]===0?0:e[156]-HL,i=ly(e,0,100,r),o=Bf(e,100,8),a=Bf(e,108,8),A=Bf(e,116,8),c=Bf(e,124,12),u=Bf(e,136,12),l=OJt(s),d=e[157]===0?null:ly(e,157,100,r),h=ly(e,265,32),f=ly(e,297,32),g=Bf(e,329,8),E=Bf(e,337,8),m=l8e(e);if(m===256)return null;if(m!==Bf(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(LJt(e))e[345]&&(i=ly(e,345,155,r)+"/"+i);else if(!UJt(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:A,size:c,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function LJt(t){return Yt.equals(c8e,t.subarray(HS,HS+6))}function UJt(t){return Yt.equals(FJt,t.subarray(HS,HS+6))&&Yt.equals(MJt,t.subarray(kee,kee+2))}function PJt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function OJt(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 HJt(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 u8e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function l8e(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 bf(t,e){return t=t.toString(8),t.length>e?kJt.slice(0,e)+" ":DJt.slice(0,e-t.length)+t+" "}function GJt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function qJt(t,e,r){t.toString(8).length>11?GJt(t,e,r):Yt.write(e,bf(t,11),r)}function YJt(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 Bf(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return YJt(t);{for(;e<t.length&&t[e]===32;)e++;let n=PJt(u8e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(Yt.toString(t.subarray(e,n)),8)}}function ly(t,e,r,n){return Yt.toString(t.subarray(e,u8e(t,0,e,e+r)),n)}function Dee(t){let e=Yt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var p8e=C((ODr,g8e)=>{var{Writable:VJt,Readable:JJt,getStreamError:d8e}=Ree(),WJt=fee(),h8e=oy(),hy=vee(),zJt=h8e.alloc(0),jJt=4*1024*1024,Mee=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new WJt,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 zJt;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 h8e.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)}},_ee=class extends JJt{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(d8e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=f8e(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 o8(t){process.exitCode=s8.Failure,oa(t)}function Vd(){return process.env.RUNNER_DEBUG==="1"}function J(t){Qd("debug",{},t)}function oa(t,e={}){Qd("error",hN(e),t instanceof Error?t.toString():t)}function $e(t,e={}){Qd("warning",hN(e),t instanceof Error?t.toString():t)}function Ix(t,e={}){Qd("notice",hN(e),t instanceof Error?t.toString():t)}function se(t){process.stdout.write(t+rue.EOL)}function nue(t){mU("group",t)}function sue(){mU("endgroup")}function UB(t,e){if(process.env.GITHUB_STATE||"")return dte("STATE",hte(t,e));Qd("save-state",{name:t},bd(e))}function hc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as iXe,existsSync as oXe}from"fs";import{EOL as aXe}from"os";var J0=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(oXe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(iXe(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${aXe}`)}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 u8=Ie(cue(),1),uue=Ie(dx(),1),IXe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function lue(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 due(t){return new u8.HttpClient().getAgent(t)}function yXe(t){return new u8.HttpClient().getAgentDispatcher(t)}function hue(t){let e=yXe(t);return(n,s)=>IXe(this,void 0,void 0,function*(){return(0,uue.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function fue(){return process.env.GITHUB_API_URL||"https://api.github.com"}function l8(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 Jd(){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 Nx(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)=>Nx.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 gue(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(A=>(a=A,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 pue(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 mue=Function.bind,Eue=mue.bind(mue);function Cue(t,e,r){let n=Eue(pue,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]=Eue(gue,null).apply(null,i)})}function bXe(){let t=Symbol("Singular"),e={registry:{}},r=Nx.bind(null,e,t);return Cue(r,e,t),r}function QXe(){let t={registry:{}},e=Nx.bind(null,t);return Cue(e,t),e}var Iue={Singular:bXe,Collection:QXe};var wXe="0.0.0-development",SXe=`octokit-endpoint.js/${wXe} ${Jd()}`,NXe={method:"GET",baseUrl:"h Line truncated
`+n.repeat(l));let E=f.val[f.index],m=o(f.val,String(f.index),E);if(E8(m))u.push("null"),f.first=!1,f.index++;else{let I=m!==null&&typeof m=="object",y=C8(m);if(I&&!y){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(Wd(m)),f.first=!1,f.index++}}else g=!0;else{for(;f.index<f.keys.length;){let m=f.keys[f.index++];if(i&&!i.has(m))continue;let y=f.val[m],B=o(f.val,m,y);if(E8(B))continue;f.first||u.push(","),n?u.push(`
`+n.repeat(l)+Wd(m)+": "):u.push(Wd(m)+":");let F=B!==null&&typeof B=="object",Y=C8(B);if(F&&!Y){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:m,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(Wd(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(g=!0)}g&&(l--,!f.first&&n&&u.push(`
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},Pue=(t,e,r)=>{try{return"rawJSON"in JSON?Wd(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?Wd(t,(a,A)=>typeof A=="string"&&xx.test(A)||typeof A=="bigint"?A.toString()+"n":typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r).replace(Fue,"$1$2$3").replace(Mue,"$1$2$3"):Wd(t,e,r)}catch(n){if(n instanceof RangeError){let s=qXe(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(Fue,"$1$2$3").replace(Mue,"$1$2$3")}throw n}},Tx=new Map,YXe=()=>{let t=JSON.parse.toString();if(Tx.has(t))return Tx.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return Tx.set(t,e),e}catch{return Tx.set(t,!1),!1}},VXe=(t,e,r,n)=>typeof e=="string"&&Uue.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&xx.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,JXe=(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,A=s&&GXe.test(s.source);return a&&A?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),Oue=Number.MAX_SAFE_INTEGER.toString(),_ue=Oue.length,WXe=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,zXe=/^"-?\d+n+"$/,jXe=(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"&&(Uue.test(a)?a=BigInt(a.slice(0,-1)):xx.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 A=a.length-1;A>=0;A--)n.push({parent:i,key:a[A],visited:!1})}}}return r[""]},Lue=t=>t.replace(WXe,(e,r,n,s)=>{let i=e[0]==='"';if(i&&zXe.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,A=r&&(r.length<_ue||r.length===_ue&&r<=Oue);return i||a||A?e:'"'+e+'n"'}),Hue=(t,e)=>{if(!t)return m8(t,e);try{if(YXe())return JXe(t,e);let r=Lue(t);return m8(r,(n,s,i)=>VXe(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=Lue(t),s=m8(n);return jXe(s,e)}throw r}};var al=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 KXe="10.0.16",XXe={headers:{"user-agent":`octokit-request.js/${KXe} ${Jd()}`}};function ZXe(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 Gue=()=>"";async function que(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=ZXe(t.body)||Array.isArray(t.body)?Pue(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 al(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 al(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await I8(o),new al("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await I8(o),new al(eZe(u.data),a,{response:u,request:t});return u.data=n?await I8(o):o.body,u}async function I8(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Gue);let r=Rue(e);if($Xe(r)){let n="";try{return n=await t.text(),Hue(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 Bje=class extends Error{constructor(t,e,r){super(yje(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},bje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Qje=["query","method","url"],bce=/\/api\/v3\/?$/;function wje(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(Qje.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)=>bje.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 bce.test(i)&&(s.url=i.replace(bce,"/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 Bje(s,a,o.data)}return o.data.data})}function gO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>wje(r,s,i),{defaults:gO.bind(null,r),endpoint:r.endpoint})}var yWt=gO(ly,{headers:{"user-agent":`octokit-graphql.js/${Ije} ${ql()}`},method:"POST",url:"/graphql"});function Qce(t){return gO(t,{method:"POST",url:"/graphql"})}var pO="(?:[a-zA-Z0-9_-]+)",wce="\\.",Sce=new RegExp(`^${pO}${wce}${pO}${wce}${pO}$`),Sje=Sce.test.bind(Sce);async function Nje(t){let e=Sje(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 Tje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function xje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Tje(t),e(s)}var Nce=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(Nje.bind(null,e),{hook:xje.bind(null,e)})};var mO="7.0.6";var Tce=()=>{},Rje=console.warn.bind(console),Dje=console.error.bind(console);function kje(t={}){return typeof t.debug!="function"&&(t.debug=Tce),typeof t.info!="function"&&(t.info=Tce),typeof t.warn!="function"&&(t.warn=Rje),typeof t.error!="function"&&(t.error=Dje),t}var xce=`octokit-core.js/${mO} ${ql()}`,YN=class{static VERSION=mO;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 Zae.Collection,n={baseUrl:ly.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} ${xce}`:xce,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=ly.defaults(n),this.graphql=Qce(this.request).defaults(n),this.log=kje(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=Nce(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 EO="17.0.0";var vje={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 nZe=class extends Error{constructor(t,e,r){super(rZe(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},sZe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],iZe=["query","method","url"],Yue=/\/api\/v3\/?$/;function oZe(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(iZe.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)=>sZe.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 Yue.test(i)&&(s.url=i.replace(Yue,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new nZe(s,a,o.data)}return o.data.data})}function B8(t,e){let r=t.defaults(e);return Object.assign((s,i)=>oZe(r,s,i),{defaults:B8.bind(null,r),endpoint:r.endpoint})}var QKt=B8(HB,{headers:{"user-agent":`octokit-graphql.js/${tZe} ${Jd()}`},method:"POST",url:"/graphql"});function Vue(t){return B8(t,{method:"POST",url:"/graphql"})}var b8="(?:[a-zA-Z0-9_-]+)",Jue="\\.",Wue=new RegExp(`^${b8}${Jue}${b8}${Jue}${b8}$`),aZe=Wue.test.bind(Wue);async function AZe(t){let e=aZe(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 cZe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function uZe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=cZe(t),e(s)}var zue=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(AZe.bind(null,e),{hook:uZe.bind(null,e)})};var Q8="7.0.8";var jue=()=>{},lZe=console.warn.bind(console),dZe=console.error.bind(console);function hZe(t={}){return typeof t.debug!="function"&&(t.debug=jue),typeof t.info!="function"&&(t.info=jue),typeof t.warn!="function"&&(t.warn=lZe),typeof t.error!="function"&&(t.error=dZe),t}var Kue=`octokit-core.js/${Q8} ${Jd()}`,Rx=class{static VERSION=Q8;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 Iue.Collection,n={baseUrl:HB.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} ${Kue}`:Kue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=HB.defaults(n),this.graphql=Vue(this.request).defaults(n),this.log=hZe(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=zue(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 w8="17.0.0";var fZe={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
`)}
`:`${Fce(t.status,e)}
`:`${rle(t.status,e)}
${QO[t.status]}
`}function Hce(t){return t==="enabled"||t==="read-only"||t==="write-only"}function Fce(t,e){if(!Hce(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 Hje(t){return t?Oje[t]:void 0}function Gje(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Fi}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${Pje}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Fi}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Fi}#enhanced-caching)** provider.`}function qje(t){let e=t.entries,r=e.filter(A=>A.restoredKey).length,n=e.filter(A=>A.savedKey).length,s=Gce(e)?`Entries: ${r} restored (${WN(e,A=>A.restoredSize)}Mb), ${n} saved (${WN(e,A=>A.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?Hje(t.cleanup):void 0,o=Yje(t.entries),a=`<pre>
${Vje(t.entries)}</pre>`,c=[QO[t.status],i,o,a].filter(Boolean).join(`
${D8[t.status]}
`}function Ale(t){return t==="enabled"||t==="read-only"||t==="write-only"}function rle(t,e){if(!Ale(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 bZe(t){return t?yZe[t]:void 0}function QZe(t){return t?BZe[t]:void 0}function wZe(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Zs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${IZe}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Zs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Zs}#enhanced-caching)** provider.`}function SZe(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,n=e.filter(u=>u.savedKey).length,s=cle(e)?`Entries: ${r} restored (${kx(e,u=>u.restoredSize)}Mb), ${n} saved (${kx(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?bZe(t.cleanup):void 0,o=QZe(t.projectCache),a=NZe(t.entries),A=`<pre>
${TZe(t.entries)}</pre>`,c=[D8[t.status],i,o,a,A].filter(Boolean).join(`
`);return`<details>
<summary>${s}</summary>
${c}
</details>`}function Gce(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function Yje(t){return Gce(t)?`<table>
</details>`}function cle(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function NZe(t){return cle(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>${Mce(t,e=>e.restoredSize)}</td>
<td>${WN(t,e=>e.restoredSize)}</td>
<td>${Lce(t,e=>e.restoredTime)}</td>
<td>${nle(t,e=>e.restoredSize)}</td>
<td>${kx(t,e=>e.restoredSize)}</td>
<td>${sle(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${Mce(t,e=>e.savedSize)}</td>
<td>${WN(t,e=>e.savedSize)}</td>
<td>${Lce(t,e=>e.savedTime)}</td>
<td>${nle(t,e=>e.savedSize)}</td>
<td>${kx(t,e=>e.savedSize)}</td>
<td>${sle(t,e=>e.savedTime)}</td>
</tr>
</table>`:""}function Vje(t){return t.map(e=>`Entry: ${e.entryName}
</table>`:""}function TZe(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${Uce(e.restoredSize)}
Time: ${Pce(e.restoredTime)}
Size: ${ile(e.restoredSize)}
Time: ${ole(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${Uce(e.savedSize)}
Time: ${Pce(e.savedTime)}
Size: ${ile(e.savedSize)}
Time: ${ole(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function Mce(t,e){return t.filter(r=>e(r)).length}function WN(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function Lce(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function Uce(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Pce(t){return t===void 0||t===0?"":`${t} ms`}import*as qB from"path";import*as Tm from"fs";function wO(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 XN from"path";import*as wm from"path";import of from"assert";var Yl=process.platform==="win32";function Eu(t){if(t=mu(t),Yl&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=wm.dirname(t);return Yl&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=mu(e)),e}function JN(t,e){if(of(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),of(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),dy(e))return e;if(Yl){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return of(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(va(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return of(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return of(dy(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Yl&&t.endsWith("\\")||(t+=wm.sep),t+e}function dy(t){return of(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=va(t),Yl?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function hy(t){return of(t,"isRooted parameter 'itemPath' must not be empty"),t=va(t),Yl?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function va(t){return t=t||"",Yl?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function mu(t){return t?(t=va(t),!t.endsWith(wm.sep)||t===wm.sep||Yl&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var _a;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(_a||(_a={}));var qce=process.platform==="win32";function NO(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=qce?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=qce?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 Yce(t,e){let r=_a.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function Vce(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as dAe from"os";import*as Nm from"path";var hAe=pe(lAe(),1);import uf from"assert";import*as cf from"path";import gy from"assert";var gKe=process.platform==="win32",Af=class{constructor(e){if(this.segments=[],typeof e=="string")if(gy(e,"Parameter 'itemPath' must not be empty"),e=mu(e),!hy(e))this.segments=e.split(cf.sep);else{let r=e,n=Eu(r);for(;n!==r;){let s=cf.basename(r);this.segments.unshift(s),r=n,n=Eu(r)}this.segments.unshift(r)}else{gy(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];gy(n,"Parameter 'itemPath' must not contain any empty segments"),n=va(e[r]),r===0&&hy(n)?(n=mu(n),gy(n===Eu(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(gy(!n.includes(cf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(cf.sep)||gKe&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=cf.sep,e+=this.segments[n];return e}};var{Minimatch:pKe}=hAe.default,Cu=process.platform==="win32",py=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],uf(n.length,"Parameter 'segments' must not empty");let A=t.getLiteral(n[0]);uf(A&&dy(A),"Parameter 'segments' first element must be a root path"),i=new Af(n).toString().trim(),e&&(i=`!${i}`)}for(;i.s Line truncated
`)}function nle(t,e){return t.filter(r=>e(r)).length}function kx(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function sle(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function ile(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function ole(t){return t===void 0||t===0?"":`${t} ms`}import*as NQ from"path";import*as X0 from"fs";function k8(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 Lx from"path";import*as j0 from"path";import dg from"assert";var zd=process.platform==="win32";function ul(t){if(t=cl(t),zd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=j0.dirname(t);return zd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=cl(e)),e}function vx(t,e){if(dg(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),dg(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),GB(e))return e;if(zd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return dg(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(IA(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return dg(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return dg(GB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||zd&&t.endsWith("\\")||(t+=j0.sep),t+e}function GB(t){return dg(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=IA(t),zd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function qB(t){return dg(t,"isRooted parameter 'itemPath' must not be empty"),t=IA(t),zd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function IA(t){return t=t||"",zd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function cl(t){return t?(t=IA(t),!t.endsWith(j0.sep)||t===j0.sep||zd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var yA;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(yA||(yA={}));var ule=process.platform==="win32";function F8(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=ule?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=ule?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=ul(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=ul(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function lle(t,e){let r=yA.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function dle(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as Fle from"os";import*as K0 from"path";var Mle=Ie(vle(),1);import pg from"assert";import*as fg from"path";import JB from"assert";var e$e=process.platform==="win32",gg=class{constructor(e){if(this.segments=[],typeof e=="string")if(JB(e,"Parameter 'itemPath' must not be empty"),e=cl(e),!qB(e))this.segments=e.split(fg.sep);else{let r=e,n=ul(r);for(;n!==r;){let s=fg.basename(r);this.segments.unshift(s),r=n,n=ul(r)}this.segments.unshift(r)}else{JB(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];JB(n,"Parameter 'itemPath' must not contain any empty segments"),n=IA(e[r]),r===0&&qB(n)?(n=cl(n),JB(n===ul(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(JB(!n.includes(fg.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(fg.sep)||e$e&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=fg.sep,e+=this.segments[n];return e}};var{Minimatch:t$e}=Mle.default,ll=process.platform==="win32",WB=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],pg(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);pg(c&&GB(c),"Parameter 'segments' first element must be a root path"),i=new gg(n).toString().trim(),e&&(i=`!${i}`)}for(;i.s 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 py(i));return n.searchPaths.push(...NO(n.patterns)),n})}static stat(e,r,n){return kO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Tm.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 s=yield Tm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Tm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var IKe=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 fAe(t,e){return IKe(this,void 0,void 0,function*(){return yield $N.create(t,e)})}var ale=pe(ile(),1);import*as hT from"crypto";import*as km from"fs";import*as lf from"path";import*as cle from"util";var by;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(by||(by={}));var Ts;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ts||(Ts={}));var Li;(function(t){t.GNU="gnu",t.BSD="bsd"})(Li||(Li={}));var lT=2,dT=5e3,ZO=5e3,e3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,ole=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Qy="cache.tar",t3="manifest.txt",lzt=10*Math.pow(1024,3);var Dm=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())})},TZe=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)}},xZe="1.0";function wy(){return Dm(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=lf.join(n,"actions","temp")}let r=lf.join(e,hT.randomUUID());return yield DN(r),r})}function Tc(t){return km.statSync(t).size}function r3(t){return Dm(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 fAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=TZe(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=lf.relative(a,s).replace(new RegExp(`\\${lf.sep}`,"g"),"/");V(`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 Sy(t){return Dm(this,void 0,void 0,function*(){return cle.promisify(km.unlink)(t)})}function Ale(t){return Dm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),V(`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){V(s.message)}return n=n.trim(),V(n),n})}function Ny(){return Dm(this,void 0,void 0,function*(){let t=yield Ale("zstd",["--quiet"]),e=ale.clean(t);return V(`zstd version: ${e}`),t===""?Ts.Gzip:Ts.ZstdWithoutLong})}function zl(t){return t===Ts.Gzip?by.Gzip:by.Zstd}function ule(){return Dm(this,void 0,void 0,function*(){return km.existsSync(e3)?e3:(yield Ale("tar")).toLowerCase().includes("gnu tar")?hu("tar"):""})}function n3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function vm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(xZe),hT.createHash("sha256").update(n.join("|")).digest("hex")}function lle(){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 A0 from"fs";import{URL as fat}from"url";var xc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as RZe}from"node:os";import DZe from"node:util";import kZe from"node:process";function dle(t,...e){kZe.stderr.write(`${DZe.format(t,...e)}${RZe}`)}import Ty from"node:process";function gT(t){return Ty.env[t]}var hle=typeof Ty.versions.deno=="string"&&Ty.versions.deno.length>0,fle=typeof Ty.versions.bun=="string"&&Ty.versions.bun.length>0,pT=!0;var gle=gT("DEBUG"),mle,s3=[],i3=[],mT=[];gle&&o3(gle);var Ele=Object.assign(t=>Cle(t),{enable:o3,enabled:a3,disable:vZe,log:dle});function o3(t){mle=t,s3=[],i3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?i3.push(r.substring(1)):s3.push(r);for(let r of mT)r.enabled=a3(r.namespace)}function a3(t){if(t.endsWith("*"))return!0;for(let e of i3)if(ple(t,e))return!1;for(let e of s3)if(ple(t,e))return!0;return!1}function ple(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 vZe(){let t=mle||"";return o3(""),t}function Cle(t){let e=Object.assign(r,{enabled:a3(t),destroy:_Ze,log:Ele.log,namespace:t,extend:FZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return mT.push(e),e}function _Ze(){let t=mT.indexOf(this);return t>=0?(mT.splice(t,1),!0):!1}function FZe(t){let e=Cle(`${this.namespace}:${t}`);return e.log=this.log,e}var _m=Ele;var c3=["verbose","info","warning","error"],Ile={verbose:400,info:300,warning:200,error:100};function yle(t,e){e.log=(...r)=>{t.log(...r)}}function Ble(t){return c3.includes(t)}function ET(t){let e=new Set,r=gT(t.logLevelEnvVarName),n,s=_m(t.namespace);s.log=(...u)=>{_m.log(...u)};function i(u){if(u&&!Ble(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${c3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);_m.enable(l.join(","))}r&&(Ble(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${c3.join(", ")}.`));function o(u){return!!(n&&Ile[u.level]<=Ile[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(yle(u,d),o(d)){let h=_m.disable();_m.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return yle(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 ble=ET({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),MZe=ble.logger;function xy(t){return ble.createClientLogger(t)}function CT(t){return t.toLowerCase()}function LZe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*UZe(t){for(let e of t.values())yield[e.name,e.value]}var A3=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(CT(e),{name:e,value:LZe(r)})}get(e){return this._headersMap.get(CT(e))?.value}has(e){return this._ Line truncated
${GZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Fm(t){return t instanceof xs?!0:hf(t)&&t.name==="RestError"}function Zs(t,e){return Buffer.from(t,e)}import h3 from"node:http";import f3 from"node:https";import Sle from"node:zlib";import{Transform as qZe}from"node:stream";var ei=xy("ts-http-runtime");var YZe={};function Ry(t){return t&&typeof t.pipe=="function"}function Nle(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 Tle(t){return t&&typeof t.byteLength=="number"}var BT=class extends qZe{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}},g3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new xc("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 Fa;ei.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=zZe(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new BT(f);p.on("error",I=>{ei.error("Error in upload progress",I)}),Ry(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=VZe(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?WZe(A,u):A;let h=e.onDownloadProgress;if(h){let f=new BT(h);f.on("error",p=>{ei.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await JZe(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Ry(a)&&(A=Nle(a));let u=Promise.resolve();Ry(c)&&(u=Nle(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ei.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?h3.request(a,c):f3.request(a,c);u.once("error",l=>{A(new xs(l.message,{code:l.code??xs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new xc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Ry(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Tle(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ei.error("Unrecognized body type",n),A(new xs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?h3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new h3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return f3.globalAgent;let s=e.tlsSettings??YZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ei.info("No cached TLS Agent exist, creating a new Agent"),i=new f3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function VZe(t){let e=Ui();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 WZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Sle.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Sle.createInflate();return t.pipe(n),n}return t}function JZe(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 xs(`Error reading response as text: ${s.message}`,{code:xs.PARSE_ERROR}))})})}function zZe(t){return t?Buffer.isBuffer(t)?t.length:Ry(t)?null:Tle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function xle(){return new g3}function bT(){return xle()}var p3="logPolicy";function QT(t={}){let e=t.logger??ei.info,r=new Fa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:p3,asy Line truncated
`;return e}function mtt(t){return t instanceof Uint8Array?t.byteLength:vy(t)?t.size===-1?void 0:t.size:void 0}function Ett(t){let e=0;for(let r of t){let n=mtt(r);if(n===void 0)return;e+=n}return e}async function Ctt(t,e,r){let n=[Zs(`--${r}`,"utf-8"),...e.flatMap(i=>[Zs(`\r
`,"utf-8"),Zs(ptt(i.headers),"utf-8"),Zs(`\r
`,"utf-8"),i.body,Zs(`\r
--${r}`,"utf-8")]),Zs(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new WB(i));return n.searchPaths.push(...F8(n.patterns)),n})}static stat(e,r,n){return O8(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield X0.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 X0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield X0.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})}};var i$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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function _le(t,e){return i$e(this,void 0,void 0,function*(){return yield _x.create(t,e)})}var xhe=Ie(Nhe(),1);import*as $x from"crypto";import*as tE from"fs";import*as mg from"path";import*as Rhe from"util";var eb;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(eb||(eb={}));var ei;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ei||(ei={}));var mo;(function(t){t.GNU="gnu",t.BSD="bsd"})(mo||(mo={}));var Kx=2,Xx=5e3,a4=5e3,A4=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,The=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,tb="cache.tar",c4="manifest.txt",gZt=10*Math.pow(1024,3),Zx="cache read denied:";var eE=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},prt=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,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},mrt="1.0";function rb(){return eE(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=mg.join(n,"actions","temp")}let r=mg.join(e,$x.randomUUID());return yield px(r),r})}function gc(t){return tE.statSync(t).size}function u4(t){return eE(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(),A=yield _le(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=prt(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=mg.relative(a,s).replace(new RegExp(`\\${mg.sep}`,"g"),"/");J(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function nb(t){return eE(this,void 0,void 0,function*(){return Rhe.promisify(tE.unlink)(t)})}function Dhe(t){return eE(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),J(`Checking ${e} ${r.join(" ")}`);try{yield Cx(`${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 sb(){return eE(this,void 0,void 0,function*(){let t=yield Dhe("zstd",["--quiet"]),e=xhe.clean(t);return J(`zstd version: ${e}`),t===""?ei.Gzip:ei.ZstdWithoutLong})}function Zd(t){return t===ei.Gzip?eb.Gzip:eb.Zstd}function khe(){return eE(this,void 0,void 0,function*(){return tE.existsSync(A4)?A4:(yield Dhe("tar")).toLowerCase().includes("gnu tar")?il("tar"):""})}function l4(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function rE(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(mrt),$x.createHash("sha256").update(n.join("|")).digest("hex")}function vhe(){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 UE from"fs";import{URL as Nut}from"url";var pc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Ert}from"node:os";import Crt from"node:util";import Irt from"node:process";function Fhe(t,...e){Irt.stderr.write(`${Crt.format(t,...e)}${Ert}`)}import ib from"node:process";function tR(t){return ib.env[t]}var Mhe=typeof ib.versions.deno=="string"&&ib.versions.deno.length>0,_he=typeof ib.versions.bun=="string"&&ib.versions.bun.length>0,rR=!0;var Lhe=tR("DEBUG"),Phe,d4=[],h4=[],nR=[];Lhe&&f4(Lhe);var Ohe=Object.assign(t=>Hhe(t),{enable:f4,enabled:g4,disable:yrt,log:Fhe});function f4(t){Phe=t,d4=[],h4=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?h4.push(r.substring(1)):d4.push(r);for(let r of nR)r.enabled=g4(r.namespace)}function g4(t){if(t.endsWith("*"))return!0;for(let e of h4)if(Uhe(t,e))return!1;for(let e of d4)if(Uhe(t,e))return!0;return!1}function Uhe(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,A=-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;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function yrt(){let t=Phe||"";return f4(""),t}function Hhe(t){let e=Object.assign(r,{enabled:g4(t),destroy:Brt,log:Ohe.log,namespace:t,extend:brt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return nR.push(e),e}function Brt(){let t=nR.indexOf(this);return t>=0?(nR.splice(t,1),!0):!1}function brt(t){let e=Hhe(`${this.namespace}:${t}`);return e.log=this.log,e}var nE=Ohe;var p4=["verbose","info","warning","error"],Ghe={verbose:400,info:300,warning:200,error:100};function qhe(t,e){e.log=(...r)=>{t.log(...r)}}function Yhe(t){return p4.includes(t)}function sR(t){let e=new Set,r=tR(t.logLevelEnvVarName),n,s=nE(t.namespace);s.log=(...u)=>{nE.log(...u)};function i(u){if(u&&!Yhe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${p4.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);nE.enable(l.join(","))}r&&(Yhe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${p4.join(", ")}.`));function o(u){return!!(n&&Ghe[u.level]<=Ghe[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(qhe(u,d),o(d)){let h=nE.disable();nE.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return qhe(s,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:s}}var Vhe=sR({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Qrt=Vhe.logger;function ob(t){return Vhe.createClientLogger(t)}function iR(t){return t.toLowerCase()}function wrt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Srt(t){for(let e of t.values())yield[e.name,e.value]}var m4=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(iR(e),{name:e,value:wrt(r)})}get(e){return this._headersMap.get(iR(e))?.value}has(e){return this._ Line truncated
${Rrt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function sE(t){return t instanceof ti?!0:Cg(t)&&t.name==="RestError"}function ab(t,e){return Buffer.from(t).toString(e)}function ri(t,e){return Buffer.from(t,e)}import y4 from"node:http";import B4 from"node:https";import zhe from"node:zlib";import{Transform as Drt}from"node:stream";var Ti=ob("ts-http-runtime");var krt={};function Ab(t){return t&&typeof t.pipe=="function"}function jhe(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 Khe(t){return t&&typeof t.byteLength=="number"}var AR=class extends Drt{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}},b4=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new pc("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new BA;Ti.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=_rt(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new AR(f);g.on("error",E=>{Ti.error("Error in upload progress",E)}),Ab(a)?a.pipe(g):g.end(a),a=g}let c=await this.makeRequest(e,r,a),u=vrt(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?Frt(c,u):c;let h=e.onDownloadProgress;if(h){let f=new AR(h);f.on("error",g=>{Ti.error("Error in download progress",g)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await Mrt(A),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let c=Promise.resolve();Ab(a)&&(c=jhe(a));let u=Promise.resolve();Ab(A)&&(u=jhe(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Ti.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((A,c)=>{let u=i?y4.request(a,A):B4.request(a,A);u.once("error",l=>{c(new ti(l.message,{code:l.code??ti.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new pc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&Ab(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Khe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(Ti.error("Unrecognized body type",n),c(new ti("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?y4.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new y4.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return B4.globalAgent;let s=e.tlsSettings??krt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Ti.info("No cached TLS Agent exist, creating a new Agent"),i=new B4.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function vrt(t){let e=Eo();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 Frt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=zhe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=zhe.createInflate();return t.pipe(n),n}return t}function Mrt(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 ti(`Error reading response as text: ${s.message}`,{code:ti.PARSE_ERROR}))})})}function _rt(t){return t?Buffer.isBuffer(t)?t.length:Ab(t)?null:Khe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Xhe(){return new b4}function cR(){return Xhe()}var Q4="logPolicy";function uR(t={}){let e=t.logger??Ti.info,r=new BA({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi Line truncated
`;return e}function nst(t){return t instanceof Uint8Array?t.byteLength:ub(t)?t.size===-1?void 0:t.size:void 0}function sst(t){let e=0;for(let r of t){let n=nst(r);if(n===void 0)return;e+=n}return e}async function ist(t,e,r){let n=[ri(`--${r}`,"utf-8"),...e.flatMap(i=>[ri(`\r
`,"utf-8"),ri(rst(i.headers),"utf-8"),ri(`\r
`,"utf-8"),i.body,ri(`\r
--${r}`,"utf-8")]),ri(`--\r
\r
`,"utf-8")],s=Ett(n);s&&t.headers.set("Content-Length",s),t.body=await yde(n)}var _y="multipartPolicy",Itt=70,ytt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Btt(t){if(t.length>Itt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ytt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function WT(){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?Btt(r):r=gtt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ctt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function JT(){return yT()}var Bde=ET({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),hXt=Bde.logger;function Do(t){return Bde.createClientLogger(t)}var Dc=Do("core-rest-pipeline");function _3(t={}){return QT({logger:Dc.info,...t})}var F3=YT;function M3(t={}){return VT(t)}import L3 from"node:os";import $l from"node:process";function bde(){return"User-Agent"}async function Qde(t){if($l&&$l.versions){let e=`${L3.type()} ${L3.release()}; ${L3.arch()}`;$l.versions.bun?t.set("Bun",`${$l.versions.bun} (${e})`):$l.versions.deno?t.set("Deno",`${$l.versions.deno} (${e})`):$l.versions.node&&t.set("Node",`${$l.versions.node} (${e})`)}}var zT="1.24.0";function Rtt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function wde(){return bde()}async function jT(t){let e=new Map;e.set("core-rest-pipeline",zT),await Qde(e);let r=Rtt(e);return t?`${t} ${r}`:r}var Sde=wde(),Nde="userAgentPolicy";function U3(t={}){let e=jT(t.userAgentPrefix);return{name:Nde,async sendRequest(r,n){return r.headers.has(Sde)||r.headers.set(Sde,await e),n(r)}}}var Tde=Symbol("rawContent");function P3(t){return typeof t[Tde]=="function"}function xde(t){return P3(t)?t[Tde]():t}var KT=_y;function O3(){let t=WT();return{name:KT,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)P3(n.body)&&(n.body=xde(n.body));return t.sendRequest(e,r)}}}var H3=GT;function G3(){return qT()}function q3(t={}){return NT(t)}function Y3(){return TT()}var Fy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function V3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Fy(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 Ptt="The delay was aborted.";function Hm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return V3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Ptt})}function Xl(t){if(hf(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 Rde(t){return hf(t)}function Gm(){return df()}var Wt=pT;function Zl(t){return R3(t)}function J3(t,e){return HT(t,e)}var Dde="setClientRequestIdPolicy";function z3(t="x-ms-client-request-id"){return{name:Dde,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function j3(t){return xT(t)}function K3(t){return RT(t)}var qm={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function kde(t={}){let e=new $3(t.parentContext);return t.span&&(e=e.setValue(qm.span,t.span)),t.namespace&&(e=e.setValue(qm.namespace,t.namespace)),e}var $3=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 _de=pe(vde(),1),XT=_de.state;function Ott(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Htt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Ott(),tracingContext:kde({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function My(){return XT.instrumenterImplementation||(XT.instrumenterImplementation=Htt()),XT.instrumenterImplementation}function Ly(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=My().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--),!Ant(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Xr("InvalidTag",l,Rs(t,i))}let A=snt(t,i);if(A===!1)return Xr("InvalidAttr","Attributes for '"+c+"' have open quote.",Rs(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=ghe(u,e);if(d===!0)n=!0;else return Xr(d.err.code,d.err.msg,Rs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Xr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Rs(t,o));if(r.length===0)return Xr("InvalidTag","Closing tag '"+c+"' has not been opened.",Rs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Rs(t,l.tagStartPos);return Xr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Rs(t,o))}r.length==0&&(s=!0)}}else return Xr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Rs(t,i));else{let l=ghe(u,e);if(l!==!0)return Xr(l.err.code,l.err.msg,Rs(t,i-u.length+l.err.line));if(s===!0)return Xr("InvalidXml","Multiple possible root nodes found.",Rs(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=fhe(t,i);continue}else if(t[i+1]==="?"){if(i=hhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=ant(t,i);if(l==-1)return Xr("InvalidChar","char '&' is not expected.",Rs(t,i));i=l}else if(s===!0&&!dhe(t[i]))return Xr("InvalidXml","Extra text at the end",Rs(t,i));t[i]==="<"&&i--}}else{if(dhe(t[i]))continue;return Xr("InvalidChar","char '"+t[i]+"' is not expected.",Rs(t,i))}if(n){if(r.length==1)return Xr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Rs(t,r[0].tagStartPos));if(r.length>0)return Xr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Xr("InvalidXml","Start tag expected.",1);return!0}function dhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function hhe(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 Xr("InvalidXml","XML declaration allowed only at the start of the document.",Rs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function fhe(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 rnt='"',nnt="'";function snt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===rnt||t[e]===nnt)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 int=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ghe(t,e){let r=ax(t,int),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Jy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Jy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Xr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Jy(r[s]));let i=r[s][2];if(!cnt(i))return Xr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Jy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Xr("InvalidAttr","Attribute '"+i+"' is repeated.",Jy(r[s]))}return!0}function ont(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 ant(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,ont(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 Xr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function cnt(t){return g8(t)}function Ant(t){return g8(t)}function Rs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Jy(t){return t.startIndex+t[1].length}var phe={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"},mhe={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"},Ehe={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 si("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Ky(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=jm(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=b8(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=Q8(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 si(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=jm(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=jm(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=Q8(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=b8(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 I=r;I&&s.unpairedTagsSet.has(I.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 C=null,y={},N;N=Fnt(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=_nt(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.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,O=P.tagContent}let k=new si(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=b8(s.transformTagName,l,h,s));let O=new si(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new si(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new si(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function Hnt(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 Gnt(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 qnt(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 Ynt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Vnt(t,e,r=">"){Line truncated
`;function Znt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(R8(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Yhe(t,e,r,n,s){return!r.sanitizeName||If(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function x8(t,e){let r="";e.format&&(r=Xnt);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 Gi(a)):a instanceof Gi&&n.push(a)}let s=Znt(t,e),i=new _c;return Vhe(t,e,r,i,n,s)}function Vhe(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=T8(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=R8(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Yhe(u,!1,e,n,i),h=est(A[":@"],e);n.push(d,h);let f=rst(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=T8(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],N=Ex(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=mx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=qhe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=qhe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=Whe(A[u],e):C=Vhe(A[u],e,p,n,s,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,n.pop()}return o}function est(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]=rd(t[s]),n=!0}return n?r:null}function Whe(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=R8(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=tst(s[":@"],e),a=Whe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function tst(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)}="${rd(s)}"`}return r}function R8(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 qhe(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:Yhe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=T8(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${rd(A)}"`}return i}function rst(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 T8(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 D8(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 nst={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 oi(t){if(this.options=Object.assign({},nst,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 Gi(r)):r instanceof Gi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=sst(n);s&&t.headers.set("Content-Length",s),t.body=await qfe(n)}var lb="multipartPolicy",ost=70,ast=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Ast(t){if(t.length>ost)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 vR(){return{name:lb,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?Ast(r):r=tst(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await ist(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function FR(){return aR()}var Yfe=sR({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),mrr=Yfe.logger;function ha(t){return Yfe.createClientLogger(t)}var Ec=ha("core-rest-pipeline");function H4(t={}){return uR({logger:Ec.info,...t})}var G4=DR;function q4(t={}){return kR(t)}import Y4 from"node:os";import th from"node:process";function Vfe(){return"User-Agent"}async function Jfe(t){if(th&&th.versions){let e=`${Y4.type()} ${Y4.release()}; ${Y4.arch()}`;th.versions.bun?t.set("Bun",`${th.versions.bun} (${e})`):th.versions.deno?t.set("Deno",`${th.versions.deno} (${e})`):th.versions.node&&t.set("Node",`${th.versions.node} (${e})`)}}var MR="1.25.0";function pst(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Wfe(){return Vfe()}async function _R(t){let e=new Map;e.set("core-rest-pipeline",MR),await Jfe(e);let r=pst(e);return t?`${t} ${r}`:r}var zfe=Wfe(),jfe="userAgentPolicy";function V4(t={}){let e=_R(t.userAgentPrefix);return{name:jfe,async sendRequest(r,n){return r.headers.has(zfe)||r.headers.set(zfe,await e),n(r)}}}var Kfe=Symbol("rawContent");function J4(t){return typeof t[Kfe]=="function"}function Xfe(t){return J4(t)?t[Kfe]():t}var LR=lb;function W4(){let t=vR();return{name:LR,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)J4(n.body)&&(n.body=Xfe(n.body));return t.sendRequest(e,r)}}}var z4=xR;function j4(){return RR()}function K4(t={}){return fR(t)}function X4(){return gR()}var ps=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Z4(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new ps(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var wst="The delay was aborted.";function uE(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return Z4(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??wst})}function rh(t){if(Cg(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 Zfe(t){return Cg(t)}function lE(){return Eg()}var br=rR;function e6(t,e){return ab(t,e)}function t6(t,e){return ri(t,e)}function nh(t){return U4(t)}function r6(t,e){return TR(t,e)}var $fe="setClientRequestIdPolicy";function n6(t="x-ms-client-request-id"){return{name:$fe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function s6(t){return pR(t)}function i6(t){return mR(t)}var dE={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function ege(t={}){let e=new o6(t.parentContext);return t.span&&(e=e.setValue(dE.span,t.span)),t.namespace&&(e=e.setValue(dE.namespace,t.namespace)),e}var o6=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 rge=Ie(tge(),1),PR=rge.state;function Sst(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Nst(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Sst(),tracingContext:ege({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function db(){return PR.instrumenterImplementation||(PR.instrumenterImplementation=Nst()),PR.instrumenterImplementation}function hb(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(c,u,l){let d=db().startSpan(c,{...l,packageName:r,packageVersion:n,tracingContext 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--),!Kit(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",dn("InvalidTag",l,ni(t,i))}let c=Vit(t,i);if(c===!1)return dn("InvalidAttr","Attributes for '"+A+"' have open quote.",ni(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=Lge(u,e);if(d===!0)n=!0;else return dn(d.err.code,d.err.msg,ni(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return dn("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",ni(t,o));if(r.length===0)return dn("InvalidTag","Closing tag '"+A+"' has not been opened.",ni(t,o));{let l=r.pop();if(A!==l.tagName){let d=ni(t,l.tagStartPos);return dn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",ni(t,o))}r.length==0&&(s=!0)}}else return dn("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",ni(t,i));else{let l=Lge(u,e);if(l!==!0)return dn(l.err.code,l.err.msg,ni(t,i-u.length+l.err.line));if(s===!0)return dn("InvalidXml","Multiple possible root nodes found.",ni(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=_ge(t,i);continue}else if(t[i+1]==="?"){if(i=Mge(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=zit(t,i);if(l==-1)return dn("InvalidChar","char '&' is not expected.",ni(t,i));i=l}else if(s===!0&&!gE(t[i]))return dn("InvalidXml","Extra text at the end",ni(t,i));t[i]==="<"&&i--}}else{if(gE(t[i]))continue;return dn("InvalidChar","char '"+t[i]+"' is not expected.",ni(t,i))}if(n){if(r.length==1)return dn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ni(t,r[0].tagStartPos));if(r.length>0)return dn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return dn("InvalidXml","Start tag expected.",1);return!0}function gE(t){return t===" "||t===" "||t===`
`||t==="\r"}function Mge(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 dn("InvalidXml","XML declaration allowed only at the start of the document.",ni(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function _ge(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 qit='"',Yit="'";function Vit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===qit||t[e]===Yit)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 Jit(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&gE(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&&!gE(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),A,c=n;for(;c<r&&gE(t[c]);)c++;c<r&&t[c]==="="&&(A=t.slice(n,c+1),n=c+1);let u,l,d=n;for(;d<r&&gE(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,g=t.indexOf(t[d],f);g!==-1&&(u=t[d],l=t.slice(f,g),n=g+1)}let h={startIndex:s};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 Lge(t,e){let r=Jit(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return dn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Qb(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return dn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Qb(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return dn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Qb(r[s]));let i=r[s][2];if(!jit(i))return dn("InvalidAttr","Attribute '"+i+"' is an invalid name.",Qb(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return dn("InvalidAttr","Attribute '"+i+"' is repeated.",Qb(r[s]))}return!0}function Wit(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 zit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Wit(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 dn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function jit(t){return Q6(t)}function Kit(t){return Q6(t)}function ni(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Qb(t){return t.startIndex+t[1].length}var w6={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 wb={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},S6={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 pE=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Xit=new Set("!?\\\\/[]$%{}^&*()<>|+");function Uge(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Xit.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Sb(...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 wg="external",jR="base",N6="all";function Zit(t){return!t||t===wg?new Set([wg]):t===N6?new Set([N6]):t===jR?new Set([jR]):Array.isArray(t)?new Set(t):new Set([wg])}var Di=Object.freeze({allow:0,leave:1,remove:2,throw:3}),$it=new Set([9,10,13]);function eot(t){if(!t)return{xmlVersion:1,onLevel:Di.allow,nullLevel:Di.remove};let e=t.xmlVersion===1.1?1.1:1,r=Di[t.onNCR]??Di.allow,n=Di[t.nullNCR]??Di.remove,s=Math.max(n,Di.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var mE=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=Zit(this._limit.applyLimitsTo??wg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Sb(wb,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 ki("!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 Tb(s.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=BE(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=O6(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(c===63){let u=H6(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 ki(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(c===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=BE(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(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=BE(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=H6(t,a,s.removeNSPrefix);if(!u){let Y=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${Y}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=O6(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=_ot(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=Mot(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=a;if(this.isCurrentNodeStopNode){let Y="";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,Y=P.tagContent}let L=new ki(l);I&&(L[":@"]=I),L.add(s.textNodeName,Y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(a+1)}else{if(m){({tagName:l,tagExp:h}=O6(s.transformTagName,l,h,s));let Y=new ki(l);I&&(Y[":@"]=I),this.addChild(r,Y,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(g+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let Y=new ki(l);I&&(Y[":@"]=I),this.addChild(r,Y,this.readonlyMatcher,F),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let Y=new ki(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(Y[":@"]=I),this.addChild(r,Y,this.readonlyMatcher,F),r=Y}n="",a=g}}}else n+=t[a];return e.child};function Got(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 qot(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 Yot(t,e,Line truncated
`;function eat(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(W6(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function npe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function J6(t,e){let r="";e.format&&(r=$ot);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let A=e.stopNodes[a];typeof A=="string"?n.push(new Bo(A)):A instanceof Bo&&n.push(A)}let s=eat(t,e),i=KR("qName",{xmlVersion:s}),o=new yc;return spe(t,e,r,o,n,i)}function spe(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 A=ms(t);return A=V6(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=W6(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:npe(u,!1,e,n,i),h=tat(c[":@"],e);n.push(d,h);let f=nat(n,s);if(d===e.textNodeName){let y=c[u];f||(y=e.tagValueProcessor(d,y),y=V6(y,e)),y=ms(y),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=c[u][0][e.textNodeName],B=tD(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=c[u][0][e.textNodeName],B=Db(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=rpe(c[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=rpe(c[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=ipe(c[u],e):I=spe(c[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 tat(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]=Bc(t[s]),n=!0}return n?r:null}function ipe(t,e){if(!Array.isArray(t))return t!=null?ms(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=W6(s);if(i===e.textNodeName)r+=ms(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=rat(s[":@"],e),a=ipe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function rat(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)}="${Bc(s)}"`}return r}function W6(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 rpe(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),A=r?a:npe(a,!0,e,n,s),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=V6(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${Bc(c)}"`}return i}function nat(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 V6(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 z6(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 sat={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({},sat,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 Bo(r)):r instanceof Bo&&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 sst(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 k8(t,e,r,n,s){return!r.sanitizeName||If(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}oi.prototype.build=function(t){if(this.options.preserveOrder)return x8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new _c,r=sst(t,this.options);return this.j2x(t,0,e,r).val}};oi.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:k8(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=k8(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 p=t[c][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,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);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,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=k8(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}};oi.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+'="'+rd(e)+'"'};function ist(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)}oi.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]=rd(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]=rd(t[n]),r=!0)}return r?e:null};oi.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 iat(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 j6(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Fi.prototype.build=function(t){if(this.options.preserveOrder)return J6(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new yc,r=iat(t,this.options),n=KR("qName",{xmlVersion:r});return this.j2x(t,0,e,n).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 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:j6(A,!1,this.options,r,n);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=j6(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,ms(t[A]),a)}else if(!l)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,ms(t[A]));i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=ms(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 g=t[A][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),E=ms(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=ms(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&&A===this.options.attributesGroupName){let l=Object.keys(t[A]),d=l.length;for(let h=0;h<d;h++){let f=j6(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,ms(t[A][l[h]]),a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,n)}return{attrStr:s,val:i}};Fi.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,ms(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Bc(e)+'"'};function oat(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let A=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(A,e,c,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]=Bc(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]=Bc(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.textNode Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ze.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((s,i)=>xx(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=Sx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Nx(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 Mr=class extends bf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new tB(e,r,this)}computeHMACSHA256(e){return mst("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Qf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pn=Do("storage-common");var ko;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ko||(ko={}));var sd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Est=new Qf("The operation was aborted."),rB=class extends Fc{retryOptions;constructor(e,r,n=sd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:sd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):sd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:sd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:sd.maxRetryDelayInMs):sd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:sd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:sd.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=wx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=nd(s.url,bu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(pn.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(pn.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 pn.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 pn.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 pn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return pn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(ze.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')?(pn.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 ko.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ko.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return pn.info(`RetryPolicy: Delay for ${s}ms`),Tx(s,n,Est)}};var nB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new rB(e,r,this.retryOptions)}};var Cst="storageBrowserPolicy";function $he(){return{name:Cst,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=nd(t.url,bu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var Ist="StorageCorrectContentLengthPolicy";function Xhe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Ist,async sendRequest(e,r){return t(e),r(e)}}}var yst="storageRetryPolicy",$m={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Bst=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],bst=new Qf("The operation was aborted.");function Zhe(t={}){let e=t.retryPolicyType??$m.retryPolicyType,r=t.maxTries??$m.maxTries,n=t.retryDelayInMs??$m.retryDelayInMs,s=t.maxRetryDelayInMs??$m.maxRetryDelayInMs,i=t.secondaryHost??$m.secondaryHost,o=t.tryTimeoutInMs??$m.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return pn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Bst)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(lt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===lt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(lt.PREFIX_FOR_STORAGE));r.sort((s,i)=>gD(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=dD(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=hD(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var jr=class extends xg{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Ub(e,r,this)}computeHMACSHA256(e){return Sat("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var kn=ha("storage-common");var fa;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(fa||(fa={}));var ah={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:fa.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Nat=new ps("The operation was aborted."),Pb=class extends bc{retryOptions;constructor(e,r,n=ah){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ah.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ah.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ah.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ah.maxRetryDelayInMs):ah.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ah.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ah.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=lD(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=uD(s.url,Lb.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(kn.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(kn.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 kn.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 kn.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 kn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return kn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(lt.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')?(kn.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 fa.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case fa.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return kn.info(`RetryPolicy: Delay for ${s}ms`),fD(s,n,Nat)}};var Ob=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Pb(e,r,this.retryOptions)}};var Tat="storageBrowserPolicy";function Epe(){return{name:Tat,async sendRequest(t,e){return e(t)}}}var xat="StorageCorrectContentLengthPolicy";function Cpe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(lt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:xat,async sendRequest(e,r){return t(e),r(e)}}}var Rat="storageRetryPolicy",wE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:fa.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Dat=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],kat=new ps("The operation was aborted.");function Ipe(t={}){let e=t.retryPolicyType??wE.retryPolicyType,r=t.maxTries??wE.maxTries,n=t.retryDelayInMs??wE.retryDelayInMs,s=t.maxRetryDelayInMs??wE.maxRetryDelayInMs,i=t.secondaryHost??wE.secondaryHost,o=t.tryTimeoutInMs??wE.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return kn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Dat)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().includes(h)||d.code&&d.code.toString().toUpperCase()===h)return kn.info(`RetryPolicy: Network error ${h} found, will retry.`),!0;if(d?.code==="PARSE_ERROR"&&d?.message.startsWith('Error "Error: Unclosed root tag'))return kn.info("RetryPolicy: Incomplete XML response likely Line truncated
`)+`
`+n(i)+s(i),a=Qst("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>xx(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=Sx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Nx(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:wst,async sendRequest(i,o){return e(i),o(i)}}}var Sst="storageRequestFailureDetailsParserPolicy";function efe(){return{name:Sst,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 Nst}from"node:crypto";var Rx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Nst("sha256",this.key).update(e,"utf8").digest("base64")}};var Dx="12.31.0",kx="2026-02-06";var vx="https://storage.azure.com/.default",Qu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ma="",U8="*",Tst=1*1024*1024;var xst=4*Tst;var tfe="AES256",rfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",nfe=["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"],sfe=["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"],ife="BlobUsesCustomerSpecifiedEncryption",ofe="BlobDoesNotUseCustomerSpecifiedEncryption",afe=["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 sB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Zr(t,e={}){t||(t=new Qr);let r=new sB([],e);return r._credential=t,r}function Rst(t){let e=[Dst,cfe,kst,vst,_st,Fst,Lst];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Mst(s));return{wrappedPolicies:h8(r),afterRetry:n}}}}function P8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?f8(e):M8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Dx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Oy({...r,loggingOptions:{additionalAllowedHeaderNames:nfe,additionalAllowedQueryParameters:sfe,logger:Ix.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Cx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:_8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:H3}),s.addPolicy(Xhe()),s.addPolicy(Zhe(r.retryOptions),{phase:"Retry"}),s.addPolicy(efe()),s.addPolicy($he());let a=Rst(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=O8(t);Oi(c)?s.addPolicy(Ym({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ha(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 Dot(t,e){if(t=vf(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=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oa(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 Ha(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 kot(t,e){if(t=vf(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=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oa(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 Ha(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 vot(t,e){if(t=vf(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=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(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?Oa(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 Ha(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 _ot(t,e){if(t=vf(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=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(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?Oa(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 Ha(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 Fot(t,e){if(t=vf(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=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(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?Oa(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 Ha(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 Mot(t,e){if(t=vf(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=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(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,void 0,t.delegatedUserObjectId,t.ipRange?Oa(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 Ha(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 kf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function vf(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 pB=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=Gm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ma||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ma||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=>ve(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!==Ma||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ma||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=ve(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!==Ma||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ma||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=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ma||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ma||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"}};a0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Mf=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"}};Mf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var QB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var iat=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())})},hH=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 yge(t,e,r){return iat(this,void 0,void 0,function*(){var n;let s=new Ga(t),i=s.getBlockBlobClient(),o=new hH((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(),V(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new NR(`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 bge from"buffer";import*as eA from"fs";import*as Qge from"stream";import*as wge from"util";var TR=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 xR(t){return t?t>=200&&t<300:!1}function oat(t){return t?t>=500:!0}function aat(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function cat(t){return TR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Bge(t,e,r){return TR(this,arguments,void 0,function*(n,s,i,o=lT,a=dT,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),!oat(d)))return l;if(d&&(h=aat(d),A=`Cache service responded with ${d}`),V(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){V(`${n} - Error is not retryable`);break}yield cat(a),u++}throw Error(`${n} failed: ${A}`)})}function wB(t,e){return TR(this,arguments,void 0,function*(r,n,s=lT,i=dT){return yield Bge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Qc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function c0(t,e){return TR(this,arguments,void 0,function*(r,n,s=lT,i=dT){return yield Bge(r,n,o=>o.message.statusCode,s,i)})}var Lo=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 Aat(t,e){return Lo(this,void 0,void 0,function*(){yield wge.promisify(Qge.pipeline)(t.message,e)})}var RR=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),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||[])V(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function mH(t,e,r){return ci(this,void 0,void 0,function*(){let n=new fat(t),s=xge(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Nge(t,e,s):s.concurrentBlobDownloads?yield Sge(t,e,s):yield DR(t,e):yield DR(t,e)})}function Mge(t,e,r){return ci(this,void 0,void 0,function*(){let n=pH(),s=vm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield wB("reserveCache",()=>ci(this,void 0,void 0,function*(){return n.postJson(NB("caches"),i)}))})}function _ge(t,e){return`bytes ${t}-${e}/*`}function Eat(t,e,r,n,s){return ci(this,void 0,void 0,function*(){V(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${_ge(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":_ge(n,s)},o=yield c0(`uploadChunk (start: ${n}, end: ${s})`,()=>ci(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!xR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Cat(t,e,r,n){return ci(this,void 0,void 0,function*(){let s=Tc(r),i=NB(`caches/${e.toString()}`),o=A0.openSync(r,"r"),a=fH(n),c=n3("uploadConcurrency",a.uploadConcurrency),A=n3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];V("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>ci(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 Eat(t,i,()=>A0.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{A0.closeSync(o)}})}function Iat(t,e,r){return ci(this,void 0,void 0,function*(){let n={size:r};return yield wB("commitCache",()=>ci(this,void 0,void 0,function*(){return t.postJson(NB(`caches/${e.toString()}`),n)}))})}function EH(t,e,r,n){return ci(this,void 0,void 0,function*(){if(fH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield yge(r,e,n)}else{let i=pH();V("Upload cache"),yield Cat(i,t,e,n),V("Commiting cache");let o=Tc(e);re(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Iat(i,t,o);if(!xR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);re("Cache saved successfully")}})}var xpe=pe(A9(),1),tn=pe(ct(),1),Vi=pe(ct(),1),Hf=pe(ct(),1),Gf=pe(ct(),1),qf=pe(ct(),1);var h9=pe(ct(),1),f9=pe(ct(),1),Spe=pe(ct(),1),Npe=pe(ct(),1),Tpe=pe(ct(),1);var u9=pe(ct(),1),l9=pe(ct(),1),bpe=pe(ct(),1),Qpe=pe(ct(),1),wpe=pe(ct(),1),d9=class extends wpe.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,Qpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,bpe.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?l9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,u9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,u9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?l9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},ED=new d9;var g9=class extends Tpe.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:()=>ED}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Npe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Spe.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(ED.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?f9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,h9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)ED.internalBinaryWrite(e.scope[i],r.tag(2,h9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?f9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield R9(r,"create");yield D9(n,t)})}var S0=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())})},Va=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},w0=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},yD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function vpe(t){if(!t||t.length===0)throw new Va("Path Validation Error: At least one directory or file path is required")}function _9(t){if(t.length>512)throw new Va(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Va(`Key Validation Error: ${t} cannot contain commas.`)}function _pe(){return SB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Fpe(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=SB();return V(`Cache service version: ${A}`),vpe(s),A==="v2"?yield LAt(s,i,o,a,c):yield MAt(s,i,o,a,c)})}function MAt(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(A)),A.length>10)throw new Va("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)_9(d);let u=yield Ny(),l="";try{let d=yield Fge(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return re("Lookup only - skipping download"),d.cacheKey;l=qB.join(yield wy(),zl(u)),V(`Archive Path: ${l}`),yield mH(d.archiveLocation,l,a),Gl()&&(yield GB(l,u));let h=Tc(l);return re(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield k9(l,u),re("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Va.name)throw d;h instanceof Qc&&typeof h.statusCode=="number"&&h.statusCode>=500?Qo(`Failed to restore: ${d.message}`):Xe(`Failed to restore: ${d.message}`)}finally{try{yield Sy(l)}catch(d){V(`Failed to delete archive: ${d}`)}}})}function LAt(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(A)),A.length>10)throw new Va("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)_9(l);let u="";try{let l=x9(),d=yield Ny(),h={key:i,restoreKeys:o,version:vm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){V(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?re(`Cache hit for restore-key: ${f.matchedKey}`):re(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return re("Lookup only - skipping download"),f.matchedKey;u=qB.join(yield wy(),zl(d)),V(`Archive path: ${u}`),V(`Starting download of archive to: ${u}`),yield mH(f.signedDownloadUrl,u,a);let I=Tc(u);return re(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Gl()&&(yield GB(u,d)),yield k9(u,d),re("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Va.name)throw l;d instanceof Qc&&typeof d.statusCode=="number"&&d.statusCode>=500?Qo(`Failed to restore: ${l.message}`):Xe(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Sy(u))}catch(l){V(`Failed to delete archive: ${l}`)}}})}function Mpe(t,e,r){return S0(this,arguments,void 0,function*(n,s,i,o=!1){let a=SB();return V(`Cache service version: ${a}`),vpe(n),_9(s),a==="v2"?yield PAt(n,s,i,o):yield UAt(n,s,i,o)})}function UAt(t,e,r){return S0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield Ny(),h=-1,f=yield r3(n);if(V("Cache Paths:"),V(`${JSON.stringify(f)}`),f.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 p=yield wy(),I=qB.join(p,zl(d));V(`Archive Path: ${I}`);try{yield v9(p,f,d),Gl()&&(yield GB(I,d));let m=10*1024*1024*1024,C=Tc(I);if(V(`File Size: ${C}`),C>m&&!gH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);V("Reserving Cache");let y=yield Mge(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new w0(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);V(`Saving Cache (ID: ${h})`),yield EH(h,I,"",i)}catch(m){let C=m;if(C.name===Va.name)throw m;C.name 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=vat("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(lt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===lt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(lt.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>gD(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 s(i){let o=dD(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=hD(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:Fat,async sendRequest(i,o){return e(i),o(i)}}}var Mat="storageRequestFailureDetailsParserPolicy";function ype(){return{name:Mat,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 _at}from"node:crypto";var pD=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return _at("sha256",this.key).update(e,"utf8").digest("base64")}};var mD="12.33.0",ED="2026-06-06";var CD="https://storage.azure.com/.default",gl={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var bA="",sH="*",Lat=1*1024*1024;var Uat=4*Lat;var Bpe="AES256",bpe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Qpe=["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"],wpe=["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"],Spe="BlobUsesCustomerSpecifiedEncryption",Npe="BlobDoesNotUseCustomerSpecifiedEncryption",Tpe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pl(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 Hb=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function hn(t,e={}){t||(t=new _r);let r=new Hb([],e);return r._credential=t,r}function Pat(t){let e=[Oat,xpe,Hat,Gat,qat,Yat,Jat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Vat(s));return{wrappedPolicies:B6(r),afterRetry:n}}}}function iH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?b6(e):rH(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${mD}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pb({...r,loggingOptions:{additionalAllowedHeaderNames:Qpe,additionalAllowedQueryParameters:wpe,logger:nD.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:rD,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:X6,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:z4}),s.addPolicy(Cpe()),s.addPolicy(Ipe(r.retryOptions),{phase:"Retry"}),s.addPolicy(ype()),s.addPolicy(Epe());let a=Pat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=oH(t);Io(A)?s.addPolicy(hE({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new No(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 Oct(t,e){if(t=Ql(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=Ca.parse(t.permissions.toString()).toString():s=Ia.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?So(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 No(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 Hct(t,e){if(t=Ql(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=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?So(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 No(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 Gct(t,e){if(t=Ql(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=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?So(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 No(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 qct(t,e){if(t=Ql(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=Ca.parse(t.permissions.toString()).toString():s=Ia.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?So(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 No(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 Yct(t,e){if(t=Ql(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=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?So(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 No(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 Vct(t,e){if(t=Ql(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=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?So(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 No(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 Jct(t,e){if(t=Ql(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=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?So(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 No(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 Wct(t,e){if(t=Ql(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=FE(t.blobName).split("/").length):(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId)));let i;t.permissions&&(t.blobName?i=Ca.parse(t.permissions.toString()).toString():i=Ia.parse(t.permissions.toString()).toString());let o=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",bl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,e.userDelegationKey.signedDelegatedUserTenantId,t.delegatedUserObjectId,t.ipRange?So(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,zct(t.requestHeaders),jct(t.requestQueryParameters),t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new No(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,Mme(t.requestHeaders),Mme(t.requestQueryParameters),s),stringToSign:o}}function zct(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+r+":"+t[r]+`
`}),e}function jct(t){if(t===void 0)return;let e="";return Object.keys(t).forEach(function(r){e=e+`
`+r+":"+t[r]}),e}function Mme(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 bl(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Ql(t){let e=t.version?t.version:ED;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 FE(t){let e=t;for(;e.startsWith("/");)e=e.substring(1);for(;e.endsWith("/");)e=e.substring(0,e.length-1);return e}var eQ=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=lE()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==bA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==bA||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 we.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ue(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!==bA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==bA||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 we.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ue(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!==bA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==bA||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 we.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ue(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!==bA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==bA||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 we.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracing 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"}};_E.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Gg=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"}};Gg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var AQ=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Eut=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},v9=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);se(`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 Jme(t,e,r){return Eut(this,void 0,void 0,function*(){var n;let s=new NA(t),i=s.getBlockBlobClient(),o=new v9((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 A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new h2(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw $e(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as zme from"buffer";import*as Oc from"fs";import*as jme from"stream";import*as Kme from"util";var f2=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function g2(t){return t?t>=200&&t<300:!1}function Cut(t){return t?t>=500:!0}function Iut(t){return t?[ur.BadGateway,ur.ServiceUnavailable,ur.GatewayTimeout].includes(t):!1}function yut(t){return f2(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Wme(t,e,r){return f2(this,arguments,void 0,function*(n,s,i,o=Kx,a=Xx,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!Cut(d)))return l;if(d&&(h=Iut(d),c=`Cache service responded with ${d}`),J(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){J(`${n} - Error is not retryable`);break}yield yut(a),u++}throw Error(`${n} failed: ${c}`)})}function cQ(t,e){return f2(this,arguments,void 0,function*(r,n,s=Kx,i=Xx){return yield Wme(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof uc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function LE(t,e){return f2(this,arguments,void 0,function*(r,n,s=Kx,i=Xx){return yield Wme(r,n,o=>o.message.statusCode,s,i)})}var ya=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function But(t,e){return ya(this,void 0,void 0,function*(){yield Kme.promisify(jme.pipeline)(t.message,e)})}var p2=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);se(`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 U9(t,e,r){return Ui(this,void 0,void 0,function*(){let n=new Nut(t),s=e0e(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Zme(t,e,s):s.concurrentBlobDownloads?yield Xme(t,e,s):yield m2(t,e):yield m2(t,e)})}function u0e(t,e,r){return Ui(this,void 0,void 0,function*(){let n=L9(),s=rE(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield cQ("reserveCache",()=>Ui(this,void 0,void 0,function*(){return n.postJson(lQ("caches"),i)}))})}function A0e(t,e){return`bytes ${t}-${e}/*`}function Dut(t,e,r,n,s){return Ui(this,void 0,void 0,function*(){J(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${A0e(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":A0e(n,s)},o=yield LE(`uploadChunk (start: ${n}, end: ${s})`,()=>Ui(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!g2(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function kut(t,e,r,n){return Ui(this,void 0,void 0,function*(){let s=gc(r),i=lQ(`caches/${e.toString()}`),o=UE.openSync(r,"r"),a=F9(n),A=l4("uploadConcurrency",a.uploadConcurrency),c=l4("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];J("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Ui(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield Dut(t,i,()=>UE.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{UE.closeSync(o)}})}function vut(t,e,r){return Ui(this,void 0,void 0,function*(){let n={size:r};return yield cQ("commitCache",()=>Ui(this,void 0,void 0,function*(){return t.postJson(lQ(`caches/${e.toString()}`),n)}))})}function P9(t,e,r,n){return Ui(this,void 0,void 0,function*(){if(F9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Jme(r,e,n)}else{let i=L9();J("Upload cache"),yield kut(i,t,e,n),J("Commiting cache");let o=gc(e);se(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield vut(i,t,o);if(!g2(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);se("Cache saved successfully")}})}var nEe=Ie(Rq(),1),gn=Ie(ft(),1),xo=Ie(ft(),1),Wg=Ie(ft(),1),zg=Ie(ft(),1),jg=Ie(ft(),1);var Fq=Ie(ft(),1),Mq=Ie(ft(),1),eEe=Ie(ft(),1),tEe=Ie(ft(),1),rEe=Ie(ft(),1);var Dq=Ie(ft(),1),kq=Ie(ft(),1),X0e=Ie(ft(),1),Z0e=Ie(ft(),1),$0e=Ie(ft(),1),vq=class extends $0e.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,Z0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,X0e.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,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.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?kq.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Dq.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Dq.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?kq.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},sk=new vq;var _q=class extends rEe.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:()=>sk}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,tEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,eEe.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,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(sk.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.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?Mq.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,Fq.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)sk.internalBinaryWrite(e.scope[i],r.tag(2,Fq.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?Mq.UnknownFieldHandler.onWrite Line truncated
`));let n=yield Xq(r,"create");yield Zq(n,t)})}var eC=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},RA=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Kg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},tY="cache write denied:",ak=class t extends Kg{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},aEe=Zx,Ak=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},ck=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function AEe(t){if(!t||t.length===0)throw new RA("Path Validation Error: At least one directory or file path is required")}function rY(t){if(t.length>512)throw new RA(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new RA(`Key Validation Error: ${t} cannot contain commas.`)}function cEe(){return uQ()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function uEe(t,e,r,n){return eC(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=uQ();J(`Cache service version: ${c}`),AEe(s);let u=_9();if(!r0e(u)){se(`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 c==="v2"?yield Kdt(s,i,o,a,A):yield jdt(s,i,o,a,A)})}function jdt(t,e,r,n){return eC(this,arguments,void 0,function*(s,i,o,a,A=!1){var c;o=o||[];let u=[i,...o];if(J("Resolved Keys:"),J(JSON.stringify(u)),u.length>10)throw new RA("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)rY(h);let l=yield sb(),d="";try{let h;try{h=yield c0e(u,s,{compressionMethod:l,enableCrossOsArchive:A})}catch(g){let E=(c=g?.message)!==null&&c!==void 0?c:"";throw E.includes(aEe)?new Ak(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return se("Lookup only - skipping download"),h.cacheKey;d=NQ.join(yield rb(),Zd(l)),J(`Archive Path: ${d}`),yield U9(h.archiveLocation,d,a),Vd()&&(yield SQ(d,l));let f=gc(d);return se(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield $q(d,l),se("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===RA.name)throw h;f instanceof uc&&typeof f.statusCode=="number"&&f.statusCode>=500?oa(`Failed to restore: ${h.message}`):$e(`Failed to restore: ${h.message}`)}finally{try{yield nb(d)}catch(h){J(`Failed to delete archive: ${h}`)}}})}function Kdt(t,e,r,n){return eC(this,arguments,void 0,function*(s,i,o,a,A=!1){var c;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 RA("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)rY(d);let l="";try{let d=Kq(),h=yield sb(),f={key:i,restoreKeys:o,version:rE(s,h,A)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(c=I?.message)!==null&&c!==void 0?c:"";throw y.includes(aEe)?new Ak(y):I}if(!g.ok){J(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?se(`Cache hit for restore-key: ${g.matchedKey}`):se(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return se("Lookup only - skipping download"),g.matchedKey;l=NQ.join(yield rb(),Zd(h)),J(`Archive path: ${l}`),J(`Starting download of archive to: ${l}`),yield U9(g.signedDownloadUrl,l,a);let m=gc(l);return se(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Vd()&&(yield SQ(l,h)),yield $q(l,h),se("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===RA.name)throw d;h instanceof uc&&typeof h.statusCode=="number"&&h.statusCode>=500?oa(`Failed to restore: ${d.message}`):$e(`Failed to restore: ${d.message}`)}finally{try{l&&(yield nb(l))}catch(d){J(`Failed to delete archive: ${d}`)}}})}function lEe(t,e,r){return eC(this,arguments,void 0,function*(n,s,i,o=!1){let a=uQ();J(`Cache service version: ${a}`),AEe(n),rY(s);let A=_9();return n0e(A)?a==="v2"?yield Zdt(n,s,i,o):yield Xdt(n,s,i,o):(se(`Cache save skipped: the effective cache-mode '${A}' does not permit writes.`),J(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Xdt(t,e,r){return eC(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l,d;let h=yield sb(),f=-1,g=yield u4(n);if(J("Cache Paths:"),J(`${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 rb(),m=NQ.join(E,Zd(h));J(`Archive Path: ${m}`);try{yield eY(E,g,h),Vd()&&(yield SQ(m,h));let I=10*1024*1024*1024 Line truncated
${r.join(`
`)}
`:""}function aht(t){return`<details>
<summary>${oY.eol} ${yEe(t)}</summary>
<p>${BEe(t)}</p>
<p>If you cannot upgrade, see the <a href="${CEe}">Gradle Security Subscription</a> for options.</p>
</details>`}async function TEe(t,e,r,n){nue("Generating Job Summary");let s=xEe(),i=lht();if(i){sl.addRaw(s),sl.addRaw(i),await sl.write();return}let o=uht(t),a=ale(e,r),A=ght(t);se(o),se("============================"),se(a),n.shouldGenerateJobSummary(A)&&(sl.addRaw(s),sl.addRaw(o),sl.addRaw(a),await sl.write()),sue(),n.canAddPRComment()&&await Iht(),n.shouldAddPRComment(A)&&await Aht(o)}async function Aht(t){let e=Al;if(e.payload.pull_request==null){se("No pull_request trigger detected: not adding PR comment");return}let r=e.payload.pull_request.number;se(`Adding Job Summary as comment to PR #${r}.`);let n=`${REe(e)}
${xEe()}<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=WB(),i=_i(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Xe(WAt(o));else throw o}}function WAt(t){let e=`Failed to generate PR comment.
${t}`,s=kQ(),i=go(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")$e(cht(o));else throw o}}function cht(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 JAt(t){return`${jAt()}
${$At(t)}`}function zAt(){let t=Ope();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function jAt(){let t=Ppe();return t.length===0?"":`
`:e}function uht(t){return`${dht()}
${fht(t)}
${SEe(t.map(e=>e.gradleVersion))}`}function xEe(){let t=TQ();return`<h3>Gradle Builds${t?` <sub><em>captured by ${t}</em></sub>`:""}</h3>
`}function lht(){let t=gEe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function dht(){let t=fEe();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${bD()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${TQ()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${KAt(e)}</li>`).join("")}
${t.map(e=>`<li>${hht(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function KAt(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function $At(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function hht(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function fht(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -308,16 +324,15 @@ This job uses deprecated functionality from the <code>${bD()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>ZAt(e)).join("")}
</table>
`}function XAt(t){return t.some(e=>e.buildFailed)}function ZAt(t){return`
</tr>${t.map(e=>pht(e)).join("")}
</table>`}function ght(t){return t.some(e=>e.buildFailed)}function pht(t){return`
<tr>
<td>${Ype(t.rootProjectName,30)}</td>
<td>${Ype(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${eut(t)}</td>
<td>${tut(t)}</td>
</tr>`}function eut(t){return t.buildFailed?":x:":":white_check_mark:"}function tut(t){return t.buildScanFailed?U9({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?U9({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):U9({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function U9({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 Ype(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function rut(){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=Wpe(t),n=_i(WB()),{owner:s,repo:i}=t.repo,o=`
<td>${NEe(t.rootProjectName,30)}</td>
<td>${NEe(t.requestedTasks,60)}</td>
<td align='center'>${mht(t.gradleVersion)}</td>
<td align='center'>${Eht(t)}</td>
<td>${Cht(t)}</td>
</tr>`}function mht(t){let e=QEe(t);return e?`${t} ${e}`:t}function Eht(t){return t.buildFailed?":x:":":white_check_mark:"}function Cht(t){return t.buildScanFailed?AY({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?AY({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):AY({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function AY({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 NEe(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function Iht(){let t=Al;if(t.payload.pull_request==null){se("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;se(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=REe(t),n=go(kQ()),{owner:s,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
@@ -327,66 +342,66 @@ This job uses deprecated functionality from the <code>${bD()}</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 $e(`Failed to fetch comments: ${u}`)}let A=`
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 Wpe(t){return`<!-- gradle-job-summary: ${T0.constructJobCorrelator(t.workflow,t.job,L9())} -->`}var Jpe=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 Ho from"fs";import*as _u from"path";function zpe(){return Kpe().map(e=>{let r=Ho.readFileSync(e,"utf8"),n=JSON.parse(r);return iut(e,n),n})}function jpe(){Kpe().forEach(aut)}function Kpe(){let t=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Ho.existsSync(t)?Ho.readdirSync(t).map(e=>_u.resolve(t,e)).filter(e=>_u.extname(e)===".json"&&!out(e)):[]}function iut(t,e){let r=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Ho.existsSync(r))return;let n=_u.resolve(r,_u.basename(t));if(Ho.existsSync(n)){let s=Ho.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function out(t){let e=`${t}.processed`;return Ho.existsSync(e)}function aut(t){let e=`${t}.processed`;Ho.writeFileSync(e,"")}import*as Dme from"fs";import*as kme from"path";import{pathToFileURL as blt}from"url";import*as D0 from"fs";function P9(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 RD from"path";import*as x0 from"path";import Vf from"assert";var fd=process.platform==="win32";function Mu(t){if(t=Fu(t),fd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=x0.dirname(t);return fd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Fu(e)),e}function ND(t,e){if(Vf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Vf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),zB(e))return e;if(fd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Vf(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(Wa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Vf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Vf(zB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||fd&&t.endsWith("\\")||(t+=x0.sep),t+e}function zB(t){return Vf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Wa(t),fd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function jB(t){return Vf(t,"isRooted parameter 'itemPath' must not be empty"),t=Wa(t),fd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Wa(t){return t=t||"",fd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Fu(t){return t?(t=Wa(t),!t.endsWith(x0.sep)||t===x0.sep||fd&&/^[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 $pe=process.platform==="win32";function H9(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=$pe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=$pe?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 Xpe(t,e){let r=Ja.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function Zpe(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as Cme from"os";import*as Line truncated
`,c=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(A,{id:u.id}).then(()=>se(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>$e(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function REe(t){return`<!-- gradle-job-summary: ${rC.constructJobCorrelator(t.workflow,t.job,sY())} -->`}var DEe=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 A=o.substring(0,a),c=o.substring(a+1);if(!A)return this.warnBadlyFormed(i,s.length,"empty server name");if(!c)return this.warnBadlyFormed(i,s.length,"empty key");if(this.whitespace.test(A))return this.warnBadlyFormed(i,s.length,"whitespace in the server name");if(this.whitespace.test(c))return this.warnBadlyFormed(i,s.length,"whitespace in the key");n.push({hostname:A,key:c})}return new t(n)}static warnBadlyFormed(e,r,n){let s=r>1?`entry ${e+1} of ${r}`:"the value";return $e(`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 wa from"fs";import*as Tl from"path";function kEe(){return FEe().map(e=>{let r=wa.readFileSync(e,"utf8"),n=JSON.parse(r);return bht(e,n),n})}function vEe(){FEe().forEach(wht)}function FEe(){let t=Tl.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return wa.existsSync(t)?wa.readdirSync(t).map(e=>Tl.resolve(t,e)).filter(e=>Tl.extname(e)===".json"&&!Qht(e)):[]}function bht(t,e){let r=Tl.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!wa.existsSync(r))return;let n=Tl.resolve(r,Tl.basename(t));if(wa.existsSync(n)){let s=wa.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function Qht(t){let e=`${t}.processed`;return wa.existsSync(e)}function wht(t){let e=`${t}.processed`;wa.writeFileSync(e,"")}import*as gCe from"fs";import*as pCe from"path";import{pathToFileURL as qft}from"url";import*as iC from"fs";function cY(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 Ek from"path";import*as nC from"path";import $g from"assert";var mh=process.platform==="win32";function Rl(t){if(t=xl(t),mh&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=nC.dirname(t);return mh&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=xl(e)),e}function gk(t,e){if($g(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),$g(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),FQ(e))return e;if(mh){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return $g(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(DA(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return $g(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return $g(FQ(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||mh&&t.endsWith("\\")||(t+=nC.sep),t+e}function FQ(t){return $g(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=DA(t),mh?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function MQ(t){return $g(t,"isRooted parameter 'itemPath' must not be empty"),t=DA(t),mh?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function DA(t){return t=t||"",mh?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function xl(t){return t?(t=DA(t),!t.endsWith(nC.sep)||t===nC.sep||mh&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var kA;(function(t){t[t.None=0]=" 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 eb(i));return n.searchPaths.push(...H9(n.patterns)),n})}static stat(e,r,n){return z9(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield D0.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 s=yield D0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield D0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as j9 from"crypto";import*as DD from"fs";import*as Ime from"stream";import*as yme from"util";import*as Bme from"path";var Elt=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())})},Clt=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 bme(t,e){return Elt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?re:V,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=j9.createHash("sha256"),f=0;try{for(var p=!0,I=Clt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${Bme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(DD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=j9.createHash("sha256");yield yme.promisify(Ime.pipeline)(DD.createReadStream(C),y),h.write(y.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 h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Qme=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 K9(t,e){return Qme(this,void 0,void 0,function*(){return yield xD.create(t,e)})}function wme(t){return Qme(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield K9(e,{followSymbolicLinks:i});return bme(o,r,s)})}import*as $9 from"path";var Ilt="Gradle User Home",Nme="BASIC_CACHE_PRIMARY_KEY",Tme="BASIC_CACHE_RESTORED_KEY",ylt="setup-java",xme=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],vD=class{async restore(e,r){let n=Rme(e),s=await Blt();cy(Nme,s);try{let i=await Fpe(n,s);i?(cy(Tme,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=fu(Nme),i=fu(Tme);if(n.readOnly)return{status:"read-only",entries:[kD({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:[kD({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=Rme(e);try{return await Mpe(o,s),re(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[kD({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:[kD({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function kD(t){return{entryName:Ilt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcomLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${xme}], make sure you have checked out the target repository`);return`${ylt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Qlt="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.",wlt="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.",Z9=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function vme(t){return t.isCacheDisabled()?(X9("Cache is disabled: will not restore state from previous builds."),new Z9):t.getCacheProvider()==="basic"?(X9(wlt),new vD):(X9(Qlt),Slt())}function _me(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function Slt(){let t=Nlt();return await import(blt(t).href)}function Nlt(){let t=import.meta.dirname,e=kme.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Dme.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function X9(t){console.info(t)}import*as Pme from"util";var _lt=pe(Ume(),1);import*as eG from"fs";var Fgr=Pme.promisify(eG.readdir);var Mlt={_useHtmlParser2:!1};function k0(t,e){if(!t)return e??Mlt;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 QG={};Ba(QG,{contains:()=>zD,extract:()=>Rdt,html:()=>Sdt,merge:()=>c0e,parseHTML:()=>Tdt,root:()=>xdt,text:()=>tg,xml:()=>Ndt});var yd={};Ba(yd,{DocumentPosition:()=>Vo,append:()=>cdt,appendChild:()=>adt,compareDocumentPosition:()=>s0e,existsOne:()=>r0e,filter:()=>L0,find:()=>YD,findAll:()=>ddt,findOne:()=>VD,findOneChild:()=>ldt,getAttributeValue:()=>ndt,getChildren:()=>M0,getElementById:()=>pdt,getElements:()=>gdt,getElementsByClassName:()=>mdt,getElementsByTagName:()=>eg,getElementsByTagType:()=>Edt,getFeed:()=>bG,getInnerHTML:()=>rdt,getName:()=>idt,getOuterHTML:()=>e0e,getParent:()=>t0e,getSiblings:()=>yG,getText:()=>HD,hasAttrib:()=>sdt,hasChildren:()=>tr,innerText:()=>ob,isCDATA:()=>v0,isComment:()=>Zf,isDocument:()=>Yo,isTag:()=>Qe,isText:()=>di,nextElementSibling:()=>GD,prepend:()=>udt,prependChild:()=>Adt,prevElementSibling:()=>qD,removeElement:()=>Ou,removeSubsets:()=>Cdt,replaceElement:()=>odt,testElement:()=>fdt,textContent:()=>Pu,uniqueSort:()=>Cd});var qo={};Ba(qo,{CDATA:()=>AG,Comment:()=>iG,Directive:()=>sG,Doctype:()=>uG,ElementType:()=>bt,Root:()=>rG,Script:()=>oG,Style:()=>aG,Tag:()=>cG,Text:()=>nG,isTag:()=>tG});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 tG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var rG=bt.Root,nG=bt.Text,sG=bt.Directive,iG=bt.Comment,oG=bt.Script,aG=bt.Style,cG=bt.Tag,AG=bt.CDATA,uG=bt.Doctype;var _D=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 _0(this,e)}},rb=class extends _D{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},oA=class extends rb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Kf=class extends rb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},$f=class extends rb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},nb=class extends _D{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}},sb=class extends nb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Ji=class extends nb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Xf=class extends nb{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
`:HD(t.children):v0(t)?HD(t.children):di(t)?t.data:""}function Pu(t){return Array.isArray(t)?t.map(Pu).join(""):tr(t)&&!Zf(t)?Pu(t.children):di(t)?t.data:""}function ob(t){return Array.isArray(t)?t.map(ob).join(""):tr(t)&&(t.type===bt.Tag||v0(t))?ob(t.children):di(t)?t.data:""}function M0(t){return tr(t)?t.children:[]}function t0e(t){return t.parent||null}function yG(t){let e=t0e(t);if(e!=null)return M0(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 ndt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function sdt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function idt(t){return t.name}function GD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function qD(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 odt(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 adt(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 cdt(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 Adt(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 udt(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 L0(t,e,r=!0,n=1/0){return YD(t,Array.isArray(e)?e:[e],r,n)}function YD(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 ldt(t,e){return e.find(t)}function VD(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&&tr(i)&&i.children.length>0){let o=VD(t,i.children,!0);if(o)return o}}return null}function r0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&r0e(t,r.children))}function ddt(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),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var WD={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=>di(e)&&t(e.data):e=>di(e)&&e.data===t}};function BG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function hdt(t,e){return r=>t(r)||e(r)}function n0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(WD,r)?WD[r](n):BG(r,n)});return e.length===0?null:e.reduce(hdt)}function fdt(t,e){let r=n0e(t);return r?r(e):!0}function gdt(t,e,r,n=1/0){let s=n0e(t);return s?L0(s,e,r,n):[]}function pdt(t,e,r=!0){return Array.isArray(e)||(e=[e]),VD(BG("id",t),e,r)}function eg(t,e,r=!0,n=1/0){return L0(WD.tag_name(t),e,r,n)}function mdt(t,e,r=!0,n=1/0){return L0(BG("class",t),e,r,n)}function Edt(t,e,r=!0,n=1/0){return L0(WD.tag_type(t),e,r,n)}function Cdt(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 Vo;(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"})(Vo||(Vo={}));function s0e(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 Vo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Vo.FOLLOWING|Vo.CONTAINED_BY:Vo.FOLLOWING:a===t?Vo.PRECEDING|Vo.CONTAINS:Vo.PRECEDING}function Cd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=s0e(e,r);return n&Vo.PRECEDING?-1:n&Vo.FOLLOWING?1:0}),t}function bG(t){let e=JD(Qdt,t);return e?e.name==="feed"?Idt(e):ydt(e):null}function Idt(t){var e;let r=t.children,n={type:"atom",items:eg("entry",r).map(o=>{var a;let{children:c}=o,A={media:i0e(c)};hi(A,"id","id",c),hi(A,"title","title",c);let u=(a=JD("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Id("summary",c)||Id("conten Line truncated
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new OQ(i));return n.searchPaths.push(...lY(n.patterns)),n})}static stat(e,r,n){return CY(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield iC.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 iC.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield iC.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 IY from"crypto";import*as Ck from"fs";import*as sCe from"stream";import*as iCe from"util";import*as oCe from"path";var Uft=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Pft=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,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function aCe(t,e){return Uft(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?se:J,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=IY.createHash("sha256"),f=0;try{for(var g=!0,E=Pft(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){A=m.value,g=!1;let I=A;if(u(I),!I.startsWith(`${d}${oCe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(Ck.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=IY.createHash("sha256");yield iCe.promisify(sCe.pipeline)(Ck.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 ACe=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function yY(t,e){return ACe(this,void 0,void 0,function*(){return yield mk.create(t,e)})}function cCe(t){return ACe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield yY(e,{followSymbolicLinks:i});return aCe(o,r,s)})}import*as BY from"path";var Oft="Gradle User Home",lCe="BASIC_CACHE_PRIMARY_KEY",dCe="BASIC_CACHE_RESTORED_KEY",Hft="setup-java",hCe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],Ik=class{async restore(e,r){let n=fCe(e),s=await Gft();UB(lCe,s);try{let i=await uEe(n,s);i?(UB(dCe,i),se(`Basic caching restored from cache key: ${i}`)):se("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){$e(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=hc(lCe),i=hc(dCe);if(n.readOnly)return{status:"read-only",entries:[GQ({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 se(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[GQ({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=fCe(e);try{return await lEe(o,s)===-1?($e(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[GQ({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(se(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[GQ({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 $e(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[GQ({primaryKey:s,restoredKey:i,restoredOutcome:i?"(ELine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${hCe}], make sure you have checked out the target repository`);return`${Hft}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Yft="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.",Vft="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.",Jft="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",Bk=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function mCe(t){return t.getCacheProvider()==="external"?(yk(Jft),new Bk("external")):t.isCacheDisabled()?(yk("Cache is disabled: will not restore state from previous builds."),new Bk("disabled")):t.getCacheProvider()==="basic"?(yk(Vft),new Ik):(yk(Yft),Wft())}function ECe(t){if(!(t.isCacheDisabled()||t.getCacheProvider()==="external"))return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function Wft(){let t=zft();return await import(qft(t).href)}function zft(){let t=import.meta.dirname,e=pCe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(gCe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function yk(t){console.info(t)}import*as bCe from"util";var tgt=Ie(BCe(),1);import*as bY from"fs";var zCr=bCe.promisify(bY.readdir);var ngt={_useHtmlParser2:!1};function oC(t,e){if(!t)return e??ngt;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 WY={};cA(WY,{contains:()=>Lk,extract:()=>Xgt,html:()=>Wgt,merge:()=>JCe,parseHTML:()=>jgt,root:()=>Kgt,text:()=>cp,xml:()=>zgt});var Qh={};cA(Qh,{DocumentPosition:()=>xa,append:()=>xgt,appendChild:()=>Tgt,compareDocumentPosition:()=>GCe,existsOne:()=>OCe,filter:()=>lC,find:()=>vk,findAll:()=>vgt,findOne:()=>Fk,findOneChild:()=>kgt,getAttributeValue:()=>Qgt,getChildren:()=>uC,getElementById:()=>Lgt,getElements:()=>_gt,getElementsByClassName:()=>Ugt,getElementsByTagName:()=>Ap,getElementsByTagType:()=>Pgt,getFeed:()=>JY,getInnerHTML:()=>bgt,getName:()=>Sgt,getOuterHTML:()=>UCe,getParent:()=>PCe,getSiblings:()=>YY,getText:()=>Rk,hasAttrib:()=>wgt,hasChildren:()=>lr,innerText:()=>WQ,isCDATA:()=>aC,isComment:()=>ap,isDocument:()=>Ta,isTag:()=>Te,isText:()=>Gi,nextElementSibling:()=>Dk,prepend:()=>Dgt,prependChild:()=>Rgt,prevElementSibling:()=>kk,removeElement:()=>Fl,removeSubsets:()=>Ogt,replaceElement:()=>Ngt,testElement:()=>Mgt,textContent:()=>vl,uniqueSort:()=>Bh});var Na={};cA(Na,{CDATA:()=>kY,Comment:()=>TY,Directive:()=>NY,Doctype:()=>vY,ElementType:()=>vt,Root:()=>wY,Script:()=>xY,Style:()=>RY,Tag:()=>DY,Text:()=>SY,isTag:()=>QY});var vt;(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"})(vt||(vt={}));function QY(t){return t.type===vt.Tag||t.type===vt.Script||t.type===vt.Style}var wY=vt.Root,SY=vt.Text,NY=vt.Directive,TY=vt.Comment,xY=vt.Script,RY=vt.Style,DY=vt.Tag,kY=vt.CDATA,vY=vt.Doctype;var bk=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 AC(this,e)}},qQ=class extends bk{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Jc=class extends qQ{constructor(){super(...arguments),this.type=vt.Text}get nodeType(){return 3}},sp=class extends qQ{constructor(){super(...arguments),this.type=vt.Comment}get nodeType(){return 8}},ip=class extends qQ{constructor(e,r){super(r),this.name=e,this.type=vt.Directive}get nodeType(){return 1}},YQ=class extends bk{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}},VQ=class extends YQ{constructor(){super(...arguments),this.type=vt.CDATA}get nodeType(){return 4}},Do=class extends YQ{constructor(){super(...arguments),this.type=vt.Root}get nodeType(){return 9}},op=class extends YQ{constructor(e,r,n=[],s=e==="script"?vt.Script:e==="style"?vt.Style:vt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){ret Line truncated
`:Rk(t.children):aC(t)?Rk(t.children):Gi(t)?t.data:""}function vl(t){return Array.isArray(t)?t.map(vl).join(""):lr(t)&&!ap(t)?vl(t.children):Gi(t)?t.data:""}function WQ(t){return Array.isArray(t)?t.map(WQ).join(""):lr(t)&&(t.type===vt.Tag||aC(t))?WQ(t.children):Gi(t)?t.data:""}function uC(t){return lr(t)?t.children:[]}function PCe(t){return t.parent||null}function YY(t){let e=PCe(t);if(e!=null)return uC(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 Qgt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function wgt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Sgt(t){return t.name}function Dk(t){let{next:e}=t;for(;e!==null&&!Te(e);)({next:e}=e);return e}function kk(t){let{prev:e}=t;for(;e!==null&&!Te(e);)({prev:e}=e);return e}function Fl(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 Ngt(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 Tgt(t,e){if(Fl(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 xgt(t,e){Fl(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 Rgt(t,e){if(Fl(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 Dgt(t,e){Fl(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 lC(t,e,r=!0,n=1/0){return vk(t,Array.isArray(e)?e:[e],r,n)}function vk(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&&lr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function kgt(t,e){return e.find(t)}function Fk(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Te(i)&&t(i))return i;if(r&&lr(i)&&i.children.length>0){let o=Fk(t,i.children,!0);if(o)return o}}return null}function OCe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Te(r)&&t(r)||lr(r)&&OCe(t,r.children))}function vgt(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]++];Te(i)&&t(i)&&r.push(i),lr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var Mk={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=>Gi(e)&&t(e.data):e=>Gi(e)&&e.data===t}};function VY(t,e){return typeof e=="function"?r=>Te(r)&&e(r.attribs[t]):r=>Te(r)&&r.attribs[t]===e}function Fgt(t,e){return r=>t(r)||e(r)}function HCe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(Mk,r)?Mk[r](n):VY(r,n)});return e.length===0?null:e.reduce(Fgt)}function Mgt(t,e){let r=HCe(t);return r?r(e):!0}function _gt(t,e,r,n=1/0){let s=HCe(t);return s?lC(s,e,r,n):[]}function Lgt(t,e,r=!0){return Array.isArray(e)||(e=[e]),Fk(VY("id",t),e,r)}function Ap(t,e,r=!0,n=1/0){return lC(Mk.tag_name(t),e,r,n)}function Ugt(t,e,r=!0,n=1/0){return lC(VY("class",t),e,r,n)}function Pgt(t,e,r=!0,n=1/0){return lC(Mk.tag_type(t),e,r,n)}function Ogt(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 xa;(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"})(xa||(xa={}));function GCe(t,e){let r=[],n=[];if(t===e)return 0;let s=lr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=lr(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 xa.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?xa.FOLLOWING|xa.CONTAINED_BY:xa.FOLLOWING:a===t?xa.PRECEDING|xa.CONTAINS:xa.PRECEDING}function Bh(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=GCe(e,r);return n&xa.PRECEDING?-1:n&xa.FOLLOWING?1:0}),t}function JY(t){let e=_k(Vgt,t);return e?e.name==="feed"?Hgt(e):Ggt(e):null}function Hgt(t){var e;let r=t.children,n={type:"atom",items:Ap("entry",r).map(o=>{var a;let{children:A}=o,c={media:qCe(A)};qi(c,"id","id",A),qi(c,"title","title",A);let u=(a=_k("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=bh("summary",A)||bh("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 zo=pe(Bd(),1);var OG={};function HG(t,e){return t===zo.default.falseFunc?zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function GG(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 PG(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 UG=(t,e,r,n,s)=>{let i=s(e,PG(r),n);return i===zo.default.trueFunc?t:i===zo.default.falseFunc?zo.default.falseFunc:o=>i(o)&&t(o)},o2={is:UG,matches:UG,where:UG,not(t,e,r,n,s){let i=s(e,PG(r),n);return i===zo.default.falseFunc?t:i===zo.default.trueFunc?zo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=PG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(hb))?[OG]:void 0,c=s(e,o,a);if(c===zo.default.falseFunc)return zo.default.falseFunc;let A=HG(c,i);if(a&&c!==zo.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,...GG(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function J0e(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in o2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return o2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:i2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,W0e.parse)(A);return o2.is(t,u,r,n,s)}if(typeof c=="function")return LG(c,o,a,1),u=>c(u,a)&&t(u);if(o in W0)return W0[o](t,a,r,n);if(o in gb){let u=gb[o];return LG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var jo=pe(Y0(),1);function qG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function z0e(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case jo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case jo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case jo.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()),G0e[e.action](t,e,r)}case jo.SelectorType.Pseudo:return J0e(t,e,r,n,s);case jo.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 jo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=qG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=qG(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=qG(A,i));return!1};case jo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case jo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case jo.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 jo.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 jo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function j0e(t,e,r){let n=a2(t,e,r);return HG(n,e.adapter)}function a2(t,e,r){let n=typeof t=="string"?(0,ja.parse)(t):t;return c2(n,e,r)}function K0e(t){return t.type===ja.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(K0e)))}var ght={type:ja.SelectorType.Descendant},pht={type:"_flexibleDescendant"},mht={type:ja.SelectorType.Pseudo,name:"scope",data:null};function Eht(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===OG||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(dEe,`\r
`)}}).toArray()}var iq={};Ba(iq,{extract:()=>vft});function kft(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 vft(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=kft(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 wd=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}}};wd.prototype.cheerio="[cheerio object]";wd.prototype.splice=Array.prototype.splice;wd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(wd.prototype,kG,tq,rq,nq,sq,iq);function hEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=k0(s),a=t(n,o,i,null);class c extends wd{_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&&Wo(u))return u;let f=k0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Wo(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&ab(u)?t(u,f,!1,null).children:_ft(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?ab(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Wo(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,QG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function _ft(t){return!!t.name||t.type===qo.Root||t.type===qo.Text||t.type===qo.Comment}var Fft=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",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 Fs={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function f2(t){return t>=55296&&t<=57343}function fEe(t){return t>=56320&&t<=57343}function gEe(t,e){return(t-55296)*1024+9216+e}function g2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function p2(t){return t>=64976&&t<=65007||Fft.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"]]),zTe=new Map([...dz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function jTe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of zTe)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 ka=Ie(wh(),1);var cV={};function uV(t,e){return t===ka.default.falseFunc?ka.default.falseFunc:r=>e.isTag(r)&&t(r)}function lV(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 AV(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 aV=(t,e,r,n,s)=>{let i=s(e,AV(r),n);return i===ka.default.trueFunc?t:i===ka.default.falseFunc?ka.default.falseFunc:o=>i(o)&&t(o)},jk={is:aV,matches:aV,where:aV,not(t,e,r,n,s){let i=s(e,AV(r),n);return i===ka.default.falseFunc?t:i===ka.default.trueFunc?ka.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=AV(r);o.relativeSelector=!0;let a=e.some(u=>u.some(ew))?[cV]:void 0,A=s(e,o,a);if(A===ka.default.falseFunc)return ka.default.falseFunc;let c=uV(A,i);if(a&&A!==ka.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,...lV(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function DIe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in jk))throw new Error(`Unknown pseudo-class :${o}(${a})`);return jk[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:zk[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,RIe.parse)(c);return jk.is(t,u,r,n,s)}if(typeof A=="function")return oV(A,o,a,1),u=>A(u,a)&&t(u);if(o in IC)return IC[o](t,a,r,n);if(o in rw){let u=rw[o];return oV(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var va=Ie(EC(),1);function dV(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function kIe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case va.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case va.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case va.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()),SIe[e.action](t,e,r)}case va.SelectorType.Pseudo:return DIe(t,e,r,n,s);case va.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 va.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=dV(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=dV(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=dV(c,i));return!1};case va.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case va.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case va.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 va.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 va.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function vIe(t,e,r){let n=Kk(t,e,r);return uV(n,e.adapter)}function Kk(t,e,r){let n=typeof t=="string"?(0,FA.parse)(t):t;return Xk(n,e,r)}function FIe(t){return t.type===FA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(FIe)))}var _pt={type:FA.SelectorType.Descendant},Lpt={type:"_flexibleDescendant"},Upt={type:FA.SelectorType.Pseudo,name:"scope",data:null};function Ppt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===cV||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(KIe,`\r
`)}}).toArray()}var TV={};cA(TV,{extract:()=>e0t});function $mt(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 e0t(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=$mt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)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 Th=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}}};Th.prototype.cheerio="[cheerio object]";Th.prototype.splice=Array.prototype.splice;Th.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Th.prototype,tV,QV,wV,SV,NV,TV);function XIe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=oC(s),a=t(n,o,i,null);class A extends Th{_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&&Ra(u))return u;let f=oC(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=Ra(g)?g:new A(g,null,f);if(E._root=E,!u)return new A(void 0,E,f);let m=typeof u=="string"&&zQ(u)?t(u,f,!1,null).children:t0t(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 y=u,B=l?typeof l=="string"?zQ(l)?new A([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):Ra(l)?l:new A(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(c,WY,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function t0t(t){return!!t.name||t.type===Na.Root||t.type===Na.Text||t.type===Na.Comment}var r0t=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]),Er="\uFFFD",T;(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"})(T||(T={}));var Ai={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function nv(t){return t>=55296&&t<=57343}function ZIe(t){return t>=56320&&t<=57343}function $Ie(t,e){return(t-55296)*1024+9216+e}function sv(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function iv(t){return t>=64976&&t<=65007||r0t.has(t)}var z;(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"]]),jDe=new Map([...XK,["\\"," Backslash \\"],["/"," Forward slash /"]]);function KDe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of jDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(zTe.values()).toString()}
Invalid characters include: ${Array.from(jDe.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 hz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of dz)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.`);se("Artifact name is valid!")}function ZK(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of XK)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(dz.values()).toString()}
Invalid characters include: ${Array.from(XK.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 ZTe=pe(XTe(),1);function kA(){return`@actions/artifact-${ZTe.version}`}var WE=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"}},ol=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},al=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},rh=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"}},cl=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"}};cl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Gg=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"}};Gg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var qg=class extends Error{};qg.prototype.name="InvalidTokenError";function g2t(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 p2t(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 g2t(e)}catch{return atob(e)}}function exe(t,e){if(typeof t!="string")throw new qg("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 qg(`Invalid token specified: missing part #${r+1}`);let s;try{s=p2t(n)}catch(i){throw new qg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new qg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var Jv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function vA(){let t=Vv(),e=exe(t);if(!e.scp)throw Jv;let r=e.scp.split(" ");if(r.length===0)throw Jv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw Jv;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return V(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),V(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw Jv}function txe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(wc(r),wc(encodeURIComponent(r)))}catch(e){V(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function rxe(t){if(typeof t!="object"||t===null){V("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&txe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&txe(t.signed_url)}var zv=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())})},fz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Vv();this.baseUrl=LTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new zn(e,[new du(i)])}request(e,r,n,s){return zv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;V(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>zv(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 zv(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(),V(`[Response] - ${a.message.statusCode}`),V(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(rxe(A),V(`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(Gg.isUsageErrorMessage(A.msg))throw new Gg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&V(`Raw Body: ${s}`),a instanceof Gg)throw a;if(cl.isNetworkErrorCode(a?.code))throw new cl(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?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return zv(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 fz(kA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Wv(e)}import*as JE from"fs";import{normalize as nxe,resolve as sxe}from"path";function ixe(t){if(!JE.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: ${pOe(u)}`);try{re(`Starting download of artifact to: ${r}`);let l=yield mOe(u,r,e?.skipDecompress);re("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,V(`Computed digest: ${l.sha256Digest}`),V(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function IOe(){return HC(this,arguments,void 0,function*(t=UTe()){return(yield Jqt(t))?V(`Artifact destination folder already exists: ${t}`):(V(`Artifact destination folder does not exist, creating: ${t}`),yield lOe.mkdir(t,{recursive:!0})),t})}var jqt=5,Kqt=[400,401,403,404,422];function GC(t,e=jqt,r=Kqt){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 V(`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 yOe="6.0.0";function Ep(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})})}Ep.VERSION=yOe;var QOe=pe(BOe(),1);var tM=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 $qt="0.0.0-development";async function bOe(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 Xqt(t,e,r,n){let s=new QOe.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(Zqt.bind(null,t,e,r),n)}async function Zqt(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 tM(s.data.errors[0].message,500,{request:n,response:s});return bOe(t,e,i,n)}return s}function Cp(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",bOe.bind(null,r,t)),t.hook.wrap("request",Xqt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Cp.VERSION=$qt;var wOe=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 rM(t,e,r,n,s){return wOe(this,void 0,void 0,function*(){var i;let[o,a]=GC(sf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},u=yield _i(s,c,Cp,Ep).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 ol(`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 e2e=Ie($De(),1);function Eu(){return`@actions/artifact-${e2e.version}`}var BI=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"}},td=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},rd=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},rf=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"}},nd=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"}};nd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var om=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"}};om.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var am=class extends Error{};am.prototype.name="InvalidTokenError";function AMt(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 cMt(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 AMt(e)}catch{return atob(e)}}function t2e(t,e){if(typeof t!="string")throw new am("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 am(`Invalid token specified: missing part #${r+1}`);let s;try{s=cMt(n)}catch(i){throw new am(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new am(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var UM=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Cu(){let t=_M(),e=t2e(t);if(!e.scp)throw UM;let r=e.scp.split(" ");if(r.length===0)throw UM;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw UM;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 UM}function r2e(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(lc(r),lc(encodeURIComponent(r)))}catch(e){J(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function n2e(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"&&r2e(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&r2e(t.signed_url)}var PM=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},$K=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=_M();this.baseUrl=UDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new hs(e,[new nl(i)])}request(e,r,n,s){return PM(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(()=>PM(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 PM(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),J(`[Response] - ${a.message.statusCode}`),J(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(n2e(c),J(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(om.isUsageErrorMessage(c.msg))throw new om;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&J(`Raw Body: ${s}`),a instanceof om)throw a;if(nd.isNetworkErrorCode(a?.code))throw new nd(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);se(`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?[ur.BadGateway,ur.GatewayTimeout,ur.InternalServerError,ur.ServiceUnavailable,ur.TooManyRequests].includes(e):!1}sleep(e){return PM(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 Iu(t){let e=new $K(Eu(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new LM(e)}import*as bI from"fs";import{normalize as s2e,resolve as i2e}from"path";function o2e(t){if(!bI.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&$e("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);se(`Redirecting to blob download url: ${D4e(u)}`);try{se(`Starting download of artifact to: ${r}`);let l=yield k4e(u,r,e?.skipDecompress);se("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 M4e(){return my(this,arguments,void 0,function*(t=PDe()){return(yield jWt(t))?J(`Artifact destination folder already exists: ${t}`):(J(`Artifact destination folder does not exist, creating: ${t}`),yield S4e.mkdir(t,{recursive:!0})),t})}var XWt=5,ZWt=[400,401,403,404,422];function Ey(t,e=XWt,r=ZWt){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 _4e="6.0.0";function vm(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})})}vm.VERSION=_4e;var P4e=Ie(L4e(),1);var $Wt="0.0.0-development";function e7t(t){return t.request!==void 0}async function U4e(t,e,r,n){if(!e7t(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 t7t(t,e,r,n){let s=new P4e.default;return s.on("failed",function(i,o){let a=~~i.request.request?.retries,A=~~i.request.request?.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(r7t.bind(null,t,e,r),n)}async function r7t(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 al(s.data.errors[0].message,500,{request:n,response:s});return U4e(t,e,i,n)}return s}function Fm(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",U4e.bind(null,r,n)),t.hook.wrap("request",t7t.bind(null,r,n))),n}Fm.VERSION=$Wt;var O4e=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function JL(t,e,r,n,s){return O4e(this,void 0,void 0,function*(){var i;let[o,a]=Ey(lg),A={log:void 0,userAgent:Eu(),previews:void 0,retry:o,request:a},u=yield go(s,A,Fm,vm).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 td(`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 rd(`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],V(`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 SOe(t){return wOe(this,void 0,void 0,function*(){var e;let r=_A(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=vA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:ln.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 H4e(t){return O4e(this,void 0,void 0,function*(){var e;let r=Iu(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Cu(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Nn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new rd(`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],V(`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?ao.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var NOe=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 TOe(t,e,r,n,s){return NOe(this,void 0,void 0,function*(){var i;let[o,a]=GC(sf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},A=_i(s,c,Cp,Ep),u=yield rM(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 ol(`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 xOe(t){return NOe(this,void 0,void 0,function*(){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:ln.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],V(`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 ROe=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())})},nM=HTe(),sM=100,eYt=Math.ceil(nM/sM);function DOe(t,e,r,n){return ROe(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]=GC(sf),d={log:void 0,userAgent:kA(),previews:void 0,retry:u,request:l},h=_i(a,d,Cp,Ep),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:sM,page:f}),I=Math.ceil(p.total_count/sM),m=p.total_count;m>nM&&(Xe(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${nM}. Results will be incomplete as only the first ${nM} artifacts will be returned`),I=eYt);for(let C of p.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<=I;f++){V(`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:sM,page:f});for(let y of C.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=vOe(A)),re(`Found ${A.length} artifact(s)`),{artifacts:A}})}function kOe(){return ROe(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?ao.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=vOe(o)),re(`Found ${o.length} artifact(s)`),{artifacts:o}})}function vOe(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 i1=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())})},tYt=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},qC=class{uploadArtifact(e,r,n,s){return i1(this,void 0,void 0,function*(){try{if(qE())throw new rh;return RPe(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((A,c)=>Number(c.databaseId)-Number(A.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?Yo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function q4e(t,e,r,n,s){return G4e(this,void 0,void 0,function*(){var i;let[o,a]=Ey(lg),A={log:void 0,userAgent:Eu(),previews:void 0,retry:o,request:a},c=go(s,A,Fm,vm),u=yield JL(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new td(`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 Y4e(t){return G4e(this,void 0,void 0,function*(){let e=Iu(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Cu(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Nn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new rd(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.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},A=yield e.DeleteArtifact(a);return se(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var V4e=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},WL=GDe(),zL=100,n7t=Math.ceil(WL/zL);function J4e(t,e,r,n){return V4e(this,arguments,void 0,function*(s,i,o,a,A=!1){se(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=Ey(lg),d={log:void 0,userAgent:Eu(),previews:void 0,retry:u,request:l},h=go(a,d,Fm,vm),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:zL,page:f}),E=Math.ceil(g.total_count/zL),m=g.total_count;m>WL&&($e(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${WL}. Results will be incomplete as only the first ${WL} artifacts will be returned`),E=n7t);for(let I of g.artifacts)c.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++){J(`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:zL,page:f});for(let y of I.artifacts)c.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 A&&(c=z4e(c)),se(`Found ${c.length} artifact(s)`),{artifacts:c}})}function W4e(){return V4e(this,arguments,void 0,function*(t=!1){let e=Iu(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Cu(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Yo.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=z4e(o)),se(`Found ${o.length} artifact(s)`),{artifacts:o}})}function z4e(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 zS=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{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},s7t=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},Cy=class{uploadArtifact(e,r,n,s){return zS(this,void 0,void 0,function*(){try{if(CI())throw new rf;return V8e(e,r,n,s)}catch(i){throw $e(`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 i1(this,void 0,void 0,function*(){try{if(qE())throw new rh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=tYt(r,["findBy"]);return EOe(e,n,s,i,o)}return COe(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 zS(this,void 0,void 0,function*(){try{if(CI())throw new rf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=s7t(r,["findBy"]);return v4e(e,n,s,i,o)}return F4e(e,r)}catch(n){throw $e(`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 i1(this,void 0,void 0,function*(){try{if(qE())throw new rh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return DOe(r,n,s,i,e?.latest)}return kOe(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 zS(this,void 0,void 0,function*(){try{if(CI())throw new rf;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return J4e(r,n,s,i,e?.latest)}return W4e(e?.latest)}catch(r){throw $e(`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 i1(this,void 0,void 0,function*(){try{if(qE())throw new rh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return rM(e,n,s,i,o)}return SOe(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 zS(this,void 0,void 0,function*(){try{if(CI())throw new rf;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return JL(e,n,s,i,o)}return H4e(e)}catch(n){throw $e(`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 i1(this,void 0,void 0,function*(){try{if(qE())throw new rh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return TOe(e,i,n,s,o)}return xOe(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 zS(this,void 0,void 0,function*(){try{if(CI())throw new rf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return q4e(e,i,n,s,o)}return Y4e(e)}catch(n){throw $e(`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 yTr=new qC;import*as iM from"path";import uX from"fs";var rYt="dependency-graph_";async function FOe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await _Oe(t,!1);return;case"generate-submit-and-upload":await _Oe(t,!0);return;case"generate-and-upload":await nYt(t)}}catch(r){uYt(t,e,r)}}async function _Oe(t,e){if(LOe()){re("Dependency graph not supported in the ACT environment.");return}let r=await MOe();try{await sYt(r)}catch(n){try{await AX(r,t)}catch(s){re(String(s))}throw n}e&&await AX(r,t)}async function nYt(t){if(LOe()){re("Dependency graph not supported in the ACT environment.");return}await AX(await MOe(),t)}async function MOe(){let r=(await(await K9(`${aYt()}/**/*.json`)).glob()).filter(n=>!cYt(n));return r.forEach(AYt),re(`Found dependency graph files: ${r.join(", ")}`),r}async function AX(t,e){if(t.length===0){re("No dependency graph files found to upload.");return}let r=JB(),n=new qC;for(let s of t){let i=lX(s);re(`Uploading dependency graph file: ${i}`);let o=`${rYt}${iM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function sYt(t){if(t.length===0){re("No dependency graph files found to submit.");return}for(let e of t)try{await oYt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=iYt(e,r)),r}}function iYt(t,e){let n=`Dependency submission failed for ${lX(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 Pkr=new Cy;import*as jL from"path";import Zee from"fs";var i7t="dependency-graph_";async function K4e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await j4e(t,!1);return;case"generate-submit-and-upload":await j4e(t,!0);return;case"generate-and-upload":await o7t(t)}}catch(r){h7t(t,e,r)}}async function j4e(t,e){if(Z4e()){se("Dependency graph not supported in the ACT environment.");return}let r=await X4e();try{await a7t(r)}catch(n){try{await Xee(r,t)}catch(s){se(String(s))}throw n}e&&await Xee(r,t)}async function o7t(t){if(Z4e()){se("Dependency graph not supported in the ACT environment.");return}await Xee(await X4e(),t)}async function X4e(){let r=(await(await yY(`${u7t()}/**/*.json`)).glob()).filter(n=>!l7t(n));return r.forEach(d7t),se(`Found dependency graph files: ${r.join(", ")}`),r}async function Xee(t,e){if(t.length===0){se("No dependency graph files found to upload.");return}let r=vQ(),n=new Cy;for(let s of t){let i=$ee(s);se(`Uploading dependency graph file: ${i}`);let o=`${i7t}${jL.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function a7t(t){if(t.length===0){se("No dependency graph files found to submit.");return}for(let e of t)try{await c7t(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=A7t(e,r)),r}}function A7t(t,e){let n=`Dependency submission failed for ${$ee(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 oYt(t){let e=lYt(),r=uX.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=lX(t);Lae(`Submitted ${i}: ${s.data.message}`)}function aYt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function cYt(t){let e=`${t}.processed`;return uX.existsSync(e)}function AYt(t){let e=`${t}.processed`;uX.writeFileSync(e,"")}function uYt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new GE(r);Xe(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function lYt(){return _i(WB())}function lX(t){let e=JB();return iM.relative(e,t)}function LOe(){return process.env.ACT!==void 0}function hYt(t=process.platform){return t==="win32"?50:0}async function UOe(t=process.platform){let e=hYt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>RJ(t));async function fYt(){try{Gpe(),Hpe(),await MTe(new QD,new wD)&&await FOe(new T0)}catch(t){RJ(t)}await UOe()}fYt();export{fYt as run};
`:n}async function c7t(t){let e=f7t(),r=Zee.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Al.repo.owner,n.repo=Al.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=$ee(t);Ix(`Submitted ${i}: ${s.data.message}`)}function u7t(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function l7t(t){let e=`${t}.processed`;return Zee.existsSync(e)}function d7t(t){let e=`${t}.processed`;Zee.writeFileSync(e,"")}function h7t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new EI(r);$e(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function f7t(){return go(kQ())}function $ee(t){let e=vQ();return jL.relative(e,t)}function Z4e(){return process.env.ACT!==void 0}function p7t(t=process.platform){return t==="win32"?50:0}async function $4e(t=process.platform){let e=p7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>gK(t));async function m7t(){try{mEe(),pEe(),await LDe(new lk,new RQ,new dk)&&await K4e(new rC)}catch(t){gK(t)}await $4e()}m7t();export{m7t as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -397,13 +412,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 +481,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": ";s1BAAA,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
}
+97 -91
View File
@@ -1,104 +1,104 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var lse=Object.create;var CB=Object.defineProperty;var dse=Object.getOwnPropertyDescriptor;var gse=Object.getOwnPropertyNames;var hse=Object.getPrototypeOf,fse=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)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nn=(t,e)=>{for(var r in e)CB(t,r,{get:e[r],enumerable:!0})},mse=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of gse(e))!fse.call(t,n)&&n!==r&&CB(t,n,{get:()=>e[n],enumerable:!(s=dse(e,n))||s.enumerable});return t};var ae=(t,e,r)=>(r=t!=null?lse(hse(t)):{},mse(e||!t||!t.__esModule?CB(r,"default",{value:t,enumerable:!0}):r,t));var nF=m(ZA=>{"use strict";var dYe=Q("net"),Qse=Q("tls"),wB=Q("http"),tF=Q("https"),yse=Q("events"),gYe=Q("assert"),bse=Q("util");ZA.httpOverHttp=wse;ZA.httpsOverHttp=Nse;ZA.httpOverHttps=Sse;ZA.httpsOverHttps=Tse;function wse(t){var e=new Ei(t);return e.request=wB.request,e}function Nse(t){var e=new Ei(t);return e.request=wB.request,e.createSocket=rF,e.defaultPort=443,e}function Sse(t){var e=new Ei(t);return e.request=tF.request,e}function Tse(t){var e=new Ei(t);return e.request=tF.request,e.createSocket=rF,e.defaultPort=443,e}function Ei(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||wB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=sF(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)})}bse.inherits(Ei,yse.EventEmitter);Ei.prototype.addRequest=function(e,r,s,n){var i=this,o=NB({request:e},i.options,sF(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)}})};Ei.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=NB({},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")),no("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(d){d.upgrade=!0}function A(d,g,h){process.nextTick(function(){c(d,g,h)})}function c(d,g,h){if(o.removeAllListeners(),g.removeAllListeners(),d.statusCode!==200){no("tunneling socket could not be established, statusCode=%d",d.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+d.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){no("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 no("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(d){o.removeAllListeners(),no(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var g=new Error("tunneling socket could not be established, cause="+d.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};Ei.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 rF(t,e){var r=this;Ei.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=NB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=Qse.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function sF(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function NB(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 no;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?no=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)}:no=function(){};ZA.debug=no});var SB=m((fYe,iF)=>{iF.exports=nF()});var je=m((mYe,oF)=>{oF.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((pYe,RF)=>{"use strict";var aF=Symbol.for("undici.error.UND_ERR"),Ze=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[aF]===!0}[aF]=!0},AF=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),TB=class extends Ze{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[AF]===!0}[AF]=!0},cF=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),DB=class extends Ze{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[cF]===!0}[cF]=!0},uF=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),xB=class extends Ze{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[uF]===!0}[uF]=!0},lF=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),RB=class extends Ze{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[lF]===!0}[lF]=!0},dF=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),kB=class extends Ze{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(Tie.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Vie(){return"allowed"}function Jie(){return"success"}function Wie(){return"success"}function zie(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Kie(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&&yQ(t.origin)&&!yQ(Xl(t))&&(e=null);break;case"same-origin":Mf(t,Xl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ac(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:Ac(t.domainLookupStartTime,r),domainLookupEndTime:Ac(t.domainLookupEndTime,r),connectionStartTime:Ac(t.connectionStartTime,r),connectionEndTime:Ac(t.connectionEndTime,r),secureConnectionStartTime:Ac(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function jie(t){return Ac(Fie.now(),t)}function Zie(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 VM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function $ie(t){return{referrerPolicy:t.referrerPolicy}}function eoe(t){let e=t.referrerPolicy;wa(e);let r=null;if(t.referrer==="client"){let a=OM();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=QQ(r),n=QQ(r,!0);s.toString().length>4096&&(s=n);let i=Mf(t,s),o=Kl(s)&&!Kl(t.url);switch(e){case"origin":return n??QQ(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=Xl(t);return Mf(s,a)?s:Kl(s)&&!Kl(a)?"no-referrer":n}default:return o?"no-referrer":n}}function QQ(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 Kl(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 toe(t,e){if(Ff===void 0)return!0;let r=JM(e);if(r==="no metadata"||r.length===0)return!0;let s=soe(r),n=noe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=Ff.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)),ioe(A,a))return!0}return!1}var roe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function JM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=roe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();HM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function soe(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 noe(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 ioe(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 ooe(t){}function Mf(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function aoe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Aoe(t){return t.controller.state==="aborted"}function coe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function uoe(t){return Lie[t.toLowerCase()]??t}function loe(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 doe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function WM(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Goe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Yoe(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 qoe(t,e){Lf(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&&Pf(t,_oe,i)||i.position===t.length-4&&Pf(t,Hoe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Voe(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:d}=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,d==="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",Goe(u)||(u=""),h=new voe([g],c,{type:u})):h=Foe(Buffer.from(g)),Lf(iU(A)),Lf(typeof h=="string"&&iU(h)||Uoe(h)),n.push(Loe(A,h,c))}}function Voe(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=uc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=xQ(o,!0,!0,a=>a===9||a===32),!Moe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,uc(a=>a===32||a===9,t,e),koe(o)){case"content-disposition":{if(r=s=null,!Pf(t,Ooe,e)||(e.position+=17,r=AU(t,e),r===null))return"failure";if(Pf(t,aU,e)){let a=e.position+aU.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=AU(t,e),s===null))return"failure"}break}case"content-type":{let a=uc(A=>A!==10&&A!==13,t,e);a=xQ(a,!1,!0,A=>A===9||A===32),n=oU(a);break}case"content-transfer-encoding":{let a=uc(A=>A!==10&&A!==13,t,e);a=xQ(a,!1,!0,A=>A===9||A===32),i=oU(a);break}default:uc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function AU(t,e){Lf(t[e.position-1]===34);let r=uc(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 uc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function xQ(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 Pf(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}cU.exports={multipartFormDataParser:qoe,validateBoundary:Yoe}});var gc=m((GYe,IU)=>{"use strict";var $l=me(),{ReadableStreamFrom:Joe,isBlobLike:lU,isReadableStreamLike:Woe,readableStreamClose:zoe,createDeferredPromise:Koe,fullyReadBody:Xoe,extractMimeType:joe,utf8DecodeBytes:hU}=Gr(),{FormData:dU}=Zl(),{kState:dc}=io(),{webidl:Zoe}=Ht(),{Blob:$oe}=Q("node:buffer"),RQ=Q("node:assert"),{isErrored:fU,isDisturbed:eae}=Q("node:stream"),{isArrayBuffer:tae}=Q("node:util/types"),{serializeAMimeType:rae}=Cr(),{multipartFormDataParser:sae}=uU(),kQ;try{let t=Q("node:crypto");kQ=e=>t.randomInt(0,e)}catch{kQ=t=>Math.floor(Math.random(t))}var vf=new TextEncoder;function nae(){}var mU=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,pU;mU&&(pU=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!eae(e)&&!fU(e)&&e.cancel("Response object has been garbage collected").catch(nae)}));function EU(t,e=!1){let r=null;t instanceof ReadableStream?r=t:lU(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?vf.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>zoe(A))},start(){},type:"bytes"}),RQ(Woe(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(tae(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($l.isFormDataLike(t)){let A=`----formdata-undici-0${`${kQ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=w=>w.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=w=>w.replace(/\r?\n|\r/g,`\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[w,p]of t)if(typeof p=="string"){let y=vf.encode(c+`; name="${u(d(w))}"\r
var Roe=Object.create;var MQ=Object.defineProperty;var koe=Object.getOwnPropertyDescriptor;var Foe=Object.getOwnPropertyNames;var Moe=Object.getPrototypeOf,Uoe=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)MQ(t,r,{get:e[r],enumerable:!0})},Loe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Foe(e))!Uoe.call(t,n)&&n!==r&&MQ(t,n,{get:()=>e[n],enumerable:!(s=koe(e,n))||s.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?Roe(Moe(t)):{},Loe(e||!t||!t.__esModule?MQ(r,"default",{value:t,enumerable:!0}):r,t));var eU=p(Pc=>{"use strict";var M7e=w("net"),Goe=w("tls"),HQ=w("http"),jM=w("https"),Yoe=w("events"),U7e=w("assert"),qoe=w("util");Pc.httpOverHttp=Joe;Pc.httpsOverHttp=Voe;Pc.httpOverHttps=Woe;Pc.httpsOverHttps=zoe;function Joe(t){var e=new _i(t);return e.request=HQ.request,e}function Voe(t){var e=new _i(t);return e.request=HQ.request,e.createSocket=ZM,e.defaultPort=443,e}function Woe(t){var e=new _i(t);return e.request=jM.request,e}function zoe(t){var e=new _i(t);return e.request=jM.request,e.createSocket=ZM,e.defaultPort=443,e}function _i(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HQ.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=$M(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)})}qoe.inherits(_i,Yoe.EventEmitter);_i.prototype.addRequest=function(e,r,s,n){var i=this,o=_Q({request:e},i.options,$M(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)}})};_i.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=_Q({},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")),Ro("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){Ro("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){Ro("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 Ro("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(l){o.removeAllListeners(),Ro(`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)}};_i.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 ZM(t,e){var r=this;_i.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=_Q({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=Goe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function $M(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function _Q(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 Ro;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ro=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)}:Ro=function(){};Pc.debug=Ro});var GQ=p((v7e,tU)=>{tU.exports=eU()});var At=p((P7e,rU)=>{rU.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((O7e,SU)=>{"use strict";var sU=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[sU]===!0}[sU]=!0},nU=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),YQ=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[nU]===!0}[nU]=!0},iU=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),qQ=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},oU=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),JQ=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[oU]===!0}[oU]=!0},aU=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),VQ=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[aU]===!0}[aU]=!0},AU=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),WQ=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 uce(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(zAe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function lce(){return"allowed"}function dce(){return"success"}function gce(){return"success"}function hce(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function fce(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&&Py(t.origin)&&!Py(Jd(t))&&(e=null);break;case"same-origin":vm(t,Jd(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function zc(t,e){return t}function mce(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:zc(t.domainLookupStartTime,r),domainLookupEndTime:zc(t.domainLookupEndTime,r),connectionStartTime:zc(t.connectionStartTime,r),connectionEndTime:zc(t.connectionEndTime,r),secureConnectionStartTime:zc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function pce(t){return zc($Ae.now(),t)}function Ece(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 _L(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Cce(t){return{referrerPolicy:t.referrerPolicy}}function Ice(t){let e=t.referrerPolicy;ja(e);let r=null;if(t.referrer==="client"){let a=UL();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=vy(r),n=vy(r,!0);s.toString().length>4096&&(s=n);let i=vm(t,s),o=qd(s)&&!qd(t.url);switch(e){case"origin":return n??vy(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=Jd(t);return vm(s,a)?s:qd(s)&&!qd(a)?"no-referrer":n}default:return o?"no-referrer":n}}function vy(t,e){return ja(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 qd(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 Bce(t,e){if(Lm===void 0)return!0;let r=GL(e);if(r==="no metadata"||r.length===0)return!0;let s=yce(r),n=bce(r,s);for(let i of n){let o=i.algo,a=i.hash,A=Lm.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)),wce(A,a))return!0}return!1}var Qce=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function GL(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Qce.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();vL.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function yce(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 bce(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 wce(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 Nce(t){}function vm(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Sce(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Dce(t){return t.controller.state==="aborted"}function Tce(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function xce(t){return rce[t.toLowerCase()]??t}function Rce(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ja(typeof e=="string"),e}var kce=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function YL(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Aue(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function cue(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 uue(t,e){Om(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&&Hm(t,oue,i)||i.position===t.length-4&&Hm(t,aue,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=lue(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",Aue(u)||(u=""),h=new nue([g],c,{type:u})):h=$ce(Buffer.from(g)),Om(tv(A)),Om(typeof h=="string"&&tv(h)||tue(h)),n.push(rue(A,h,c))}}function lue(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=Xc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Jy(o,!0,!0,a=>a===9||a===32),!eue.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Xc(a=>a===32||a===9,t,e),Zce(o)){case"content-disposition":{if(r=s=null,!Hm(t,iue,e)||(e.position+=17,r=nv(t,e),r===null))return"failure";if(Hm(t,sv,e)){let a=e.position+sv.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=nv(t,e),s===null))return"failure"}break}case"content-type":{let a=Xc(A=>A!==10&&A!==13,t,e);a=Jy(a,!1,!0,A=>A===9||A===32),n=rv(a);break}case"content-transfer-encoding":{let a=Xc(A=>A!==10&&A!==13,t,e);a=Jy(a,!1,!0,A=>A===9||A===32),i=rv(a);break}default:Xc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function nv(t,e){Om(t[e.position-1]===34);let r=Xc(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 Xc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function Jy(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 Hm(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}iv.exports={multipartFormDataParser:uue,validateBoundary:cue}});var $c=p((uWe,mv)=>{"use strict";var zd=we(),{ReadableStreamFrom:due,isBlobLike:av,isReadableStreamLike:gue,readableStreamClose:hue,createDeferredPromise:fue,fullyReadBody:mue,extractMimeType:pue,utf8DecodeBytes:uv}=as(),{FormData:Av}=Wd(),{kState:Zc}=ko(),{webidl:Eue}=rr(),{Blob:Cue}=w("node:buffer"),Vy=w("node:assert"),{isErrored:lv,isDisturbed:Iue}=w("node:stream"),{isArrayBuffer:Bue}=w("node:util/types"),{serializeAMimeType:Que}=Pr(),{multipartFormDataParser:yue}=ov(),Wy;try{let t=w("node:crypto");Wy=e=>t.randomInt(0,e)}catch{Wy=t=>Math.floor(Math.random(t))}var _m=new TextEncoder;function bue(){}var dv=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,gv;dv&&(gv=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Iue(e)&&!lv(e)&&e.cancel("Response object has been garbage collected").catch(bue)}));function hv(t,e=!1){let r=null;t instanceof ReadableStream?r=t:av(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?_m.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>hue(A))},start(){},type:"bytes"}),Vy(gue(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(Bue(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(zd.isFormDataLike(t)){let A=`----formdata-undici-0${`${Wy(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=_m.encode(c+`; name="${u(l(B))}"\r
\r
${d(p)}\r
`);g.push(y),i+=y.byteLength}else{let y=vf.encode(`${c}; name="${u(d(w))}"`+(p.name?`; filename="${u(p.name)}"`:"")+`\r
Content-Type: ${p.type||"application/octet-stream"}\r
${l(E)}\r
`);g.push(b),i+=b.byteLength}else{let b=_m.encode(`${c}; name="${u(l(B))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);g.push(y,p,h),typeof p.size=="number"?i+=y.byteLength+p.size+h.byteLength:f=!0}let E=vf.encode(`--${A}--\r
`);g.push(E),i+=E.byteLength,f&&(i=null),n=t,s=async function*(){for(let w of g)w.stream?yield*w.stream():yield w},o=`multipart/form-data; boundary=${A}`}else if(lU(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($l.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Joe(t)}if((typeof n=="string"||$l.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:d}=await A.next();if(d)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!fU(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 iae(t,e=!1){return t instanceof ReadableStream&&(RQ(!$l.isDisturbed(t),"The body has already been consumed."),RQ(!t.locked,"The stream is locked.")),EU(t,e)}function oae(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function aae(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Aae(t){return{blob(){return lc(this,r=>{let s=gU(this);return s===null?s="":s&&(s=rae(s)),new $oe([r],{type:s})},t)},arrayBuffer(){return lc(this,r=>new Uint8Array(r).buffer,t)},text(){return lc(this,hU,t)},json(){return lc(this,uae,t)},formData(){return lc(this,r=>{let s=gU(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=sae(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new dU;return i[dc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new dU;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 lc(this,r=>new Uint8Array(r),t)}}}function cae(t){Object.assign(t.prototype,Aae(t))}async function lc(t,e,r){if(Zoe.brandCheck(t,r),CU(t))throw new TypeError("Body is unusable: Body has already been read");aae(t[dc]);let s=Koe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[dc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Xoe(t[dc].body,i,n),s.promise)}function CU(t){let e=t[dc].body;return e!=null&&(e.stream.locked||$l.isDisturbed(e.stream))}function uae(t){return JSON.parse(hU(t))}function gU(t){let e=t[dc].headersList,r=joe(e);return r==="failure"?null:r}IU.exports={extractBody:EU,safelyExtractBody:iae,cloneBody:oae,mixinBody:cae,streamRegistry:pU,hasFinalizationRegistry:mU,bodyUnusable:CU}});var RU=m((YYe,xU)=>{"use strict";var ee=Q("node:assert"),Ae=me(),{channels:BU}=ec(),FQ=hQ(),{RequestContentLengthMismatchError:Na,ResponseContentLengthMismatchError:lae,RequestAbortedError:SU,HeadersTimeoutError:dae,HeadersOverflowError:gae,SocketError:qf,InformationalError:hc,BodyTimeoutError:hae,HTTPParserError:fae,ResponseExceededMaxSizeError:mae}=Se(),{kUrl:TU,kReset:Ir,kClient:PQ,kParser:nt,kBlocking:rd,kRunning:zt,kPending:pae,kSize:QU,kWriting:ao,kQueue:on,kNoRef:ed,kKeepAliveDefaultTimeout:Eae,kHostHeader:Cae,kPendingIdx:Iae,kRunningIdx:Is,kError:Bs,kPipelining:Gf,kSocket:fc,kKeepAliveTimeoutValue:Vf,kMaxHeadersSize:MQ,kKeepAliveMaxTimeout:Bae,kKeepAliveTimeoutThreshold:Qae,kHeadersTimeout:yae,kBodyTimeout:bae,kStrictContentLength:vQ,kMaxRequests:yU,kCounter:wae,kMaxResponseSize:Nae,kOnError:Sae,kResume:oo,kHTTPContext:DU}=je(),Fn=pM(),Tae=Buffer.alloc(0),Of=Buffer[Symbol.species],_f=Ae.addListener,Dae=Ae.removeAllListeners,UQ;async function xae(){let t=process.env.JEST_WORKER_ID?pQ():void 0,e;try{e=await WebAssembly.compile(IM())}catch{e=await WebAssembly.compile(t||pQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onStatus(new Of(Mn.buffer,i,n))||0},wasm_on_message_begin:r=>(ee(wt.ptr===r),wt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onHeaderField(new Of(Mn.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onHeaderValue(new Of(Mn.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ee(wt.ptr===r),wt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onBody(new Of(Mn.buffer,i,n))||0},wasm_on_message_complete:r=>(ee(wt.ptr===r),wt.onMessageComplete()||0)}})}var LQ=null,OQ=xae();OQ.catch();var wt=null,Mn=null,Hf=0,Un=null,Rae=0,td=1,mc=2|td,Yf=4|td,_Q=8|Rae,HQ=class{constructor(e,r,{exports:s}){ee(Number.isFinite(e[MQ])&&e[MQ]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Fn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.header Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[Cae],i?E+=`connection: upgrade\r
`);g.push(b,E,h),typeof E.size=="number"?i+=b.byteLength+E.size+h.byteLength:f=!0}let m=_m.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(av(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(zd.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"||zd.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(!lv(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 wue(t,e=!1){return t instanceof ReadableStream&&(Vy(!zd.isDisturbed(t),"The body has already been consumed."),Vy(!t.locked,"The stream is locked.")),hv(t,e)}function Nue(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function Sue(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Due(t){return{blob(){return jc(this,r=>{let s=cv(this);return s===null?s="":s&&(s=Que(s)),new Cue([r],{type:s})},t)},arrayBuffer(){return jc(this,r=>new Uint8Array(r).buffer,t)},text(){return jc(this,uv,t)},json(){return jc(this,xue,t)},formData(){return jc(this,r=>{let s=cv(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=yue(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Av;return i[Zc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new Av;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 jc(this,r=>new Uint8Array(r),t)}}}function Tue(t){Object.assign(t.prototype,Due(t))}async function jc(t,e,r){if(Eue.brandCheck(t,r),fv(t))throw new TypeError("Body is unusable: Body has already been read");Sue(t[Zc]);let s=fue(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Zc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await mue(t[Zc].body,i,n),s.promise)}function fv(t){let e=t[Zc].body;return e!=null&&(e.stream.locked||zd.isDisturbed(e.stream))}function xue(t){return JSON.parse(uv(t))}function cv(t){let e=t[Zc].headersList,r=pue(e);return r==="failure"?null:r}mv.exports={extractBody:hv,safelyExtractBody:wue,cloneBody:Nue,mixinBody:Tue,streamRegistry:gv,hasFinalizationRegistry:dv,bodyUnusable:fv}});var kv=p((lWe,Rv)=>{"use strict";var ee=w("node:assert"),se=we(),{channels:pv}=Hc(),zy=Ty(),{RequestContentLengthMismatchError:Za,ResponseContentLengthMismatchError:Ev,RequestAbortedError:Nv,InvalidArgumentError:Rue,HeadersTimeoutError:kue,HeadersOverflowError:Fue,SocketError:eu,InformationalError:tu,BodyTimeoutError:Mue,HTTPParserError:Uue,ResponseExceededMaxSizeError:Lue}=Le(),{kUrl:Sv,kReset:Or,kClient:Jm,kParser:rt,kBlocking:jd,kRunning:Ft,kPending:Dv,kSize:Cv,kWriting:Fo,kQueue:Dn,kNoRef:Kd,kKeepAliveDefaultTimeout:vue,kHostHeader:Pue,kPendingIdx:Oue,kRunningIdx:Gs,kError:Br,kPipelining:Vm,kSocket:$a,kKeepAliveTimeoutValue:zm,kMaxHeadersSize:Ky,kKeepAliveMaxTimeout:Hue,kKeepAliveTimeoutThreshold:_ue,kHeadersTimeout:Gue,kBodyTimeout:Yue,kStrictContentLength:Zy,kMaxRequests:Iv,kCounter:que,kMaxResponseSize:Jue,kOnError:Bv,kResume:Wi,kHTTPContext:Tv}=At(),As=gL(),Qv=Buffer.alloc(0),Gm=Buffer[Symbol.species],Ym=se.addListener,Vue=se.removeAllListeners,eA=Symbol("kIdleSocketValidation"),ru=Symbol("kIdleSocketValidationTimeout"),rb=Symbol("kSocketUsed"),Xy;async function Wue(){let t=process.env.JEST_WORKER_ID?ky():void 0,e;try{e=await WebAssembly.compile(mL())}catch{e=await WebAssembly.compile(t||ky())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ee(pt.ptr===r);let i=s-ti+ei.byteOffset;return pt.onStatus(new Gm(ei.buffer,i,n))||0},wasm_on_message_begin:r=>(ee(pt.ptr===r),pt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ee(pt.ptr===r);let i=s-ti+ei.byteOffset;return pt.onHeaderField(new Gm(ei.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ee(pt.ptr===r);let i=s-ti+ei.byteOffset;return pt.onHeaderValue(new Gm(ei.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ee(pt.ptr===r),pt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ee(pt.ptr===r);let i=s-ti+ei.byteOffset;return pt.onBody(new Gm(ei.buffer,i,n))||0},wasm_on_message_complete:r=>(ee(pt.ptr===r),pt.onMessageComplete()||0)}})}var jy=null,$y=Wue();$y.catch();var pt=null,ei=null,qm=0,ti=null,zue=0,Xd=1,su=2|Xd,Wm=4|Xd,eb=8|zue,tb=class{constructor(e,r,{exports:s}){ee(Number.isFinite(e[Ky])&&e[Ky]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(As.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[Pue],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Gf]&&!h[Ir]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let p=c[w+0],y=c[w+1];if(Array.isArray(y))for(let N=0;N<y.length;N++)E+=`${p}: ${y[N]}\r
`;else E+=`${p}: ${y}\r
`}return BU.sendHeaders.hasSubscribers&&BU.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?wU(f,null,t,e,h,u,E,d):Ae.isBuffer(A)?wU(f,A,t,e,h,u,E,d):Ae.isBlobLike(A)?typeof A.stream=="function"?NU(f,A.stream(),t,e,h,u,E,d):Pae(f,A,t,e,h,u,E,d):Ae.isStream(A)?Lae(f,A,t,e,h,u,E,d):Ae.isIterable(A)?NU(f,A,t,e,h,u,E,d):ee(!1),!0}function Lae(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===0,"stream body cannot be pipelined");let A=!1,c=new Jf({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(E){Ae.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new SU;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ee(n.destroyed||n[ao]&&r[zt]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ae.destroy(e,f):Ae.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).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 wU(t,e,r,s,n,i,o,a){try{e?Ae.isBuffer(e)&&(ee(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`:t[Vm]&&!h[Or]?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 pv.sendHeaders.hasSubscribers&&pv.sendHeaders.publish({request:e,headers:m,socket:h}),!A||g===0?bv(f,null,t,e,h,u,m,l):se.isBuffer(A)?bv(f,A,t,e,h,u,m,l):se.isBlobLike(A)?typeof A.stream=="function"?wv(f,A.stream(),t,e,h,u,m,l):tle(f,A,t,e,h,u,m,l):se.isStream(A)?ele(f,A,t,e,h,u,m,l):se.isIterable(A)?wv(f,A,t,e,h,u,m,l):ee(!1),!0}function ele(t,e,r,s,n,i,o,a){ee(i!==0||r[Ft]===0,"stream body cannot be pipelined");let A=!1,c=new Km({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 Nv;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ee(n.destroyed||n[Fo]&&r[Ft]<=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 bv(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[Ir]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Or]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(ee(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[oo]()}catch(A){t(A)}}async function Pae(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 Na;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[Wi]()}catch(A){t(A)}}async function tle(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 Za;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[Ir]=!0),r[oo]()}catch(A){t(A)}}async function NU(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===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[Bs]?h(n[Bs]):A=g});n.on("close",c).on("drain",c);let d=new Jf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Bs])throw n[Bs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Jf=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[ao]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bs])throw r[Bs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[vQ])throw new Na;process.emitWarning(new Na)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ir]=!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[Or]=!0),r[Wi]()}catch(A){t(A)}}async function wv(t,e,r,s,n,i,o,a){ee(i!==0||r[Ft]===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[Br]?h(n[Br]):A=g});n.on("close",c).on("drain",c);let l=new Km({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Br])throw n[Br];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Km=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[Fo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Br])throw r[Br];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[Zy])throw new Za;process.emitWarning(new Za)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Or]=!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[nt].timeout&&r[nt].timeoutType===mc&&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[ao]=!1,e[Bs])throw e[Bs];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===su&&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[Fo]=!1,e[Br])throw e[Br];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[vQ])throw new Na;process.emitWarning(new Na)}e[nt].timeout&&e[nt].timeoutType===mc&&e[nt].timeout.refresh&&e[nt].timeout.refresh(),s[oo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ao]=!1,e&&(ee(s[zt]<=1,"pipeline should only contain this request"),n(e))}};xU.exports=kae});var OU=m((qYe,vU)=>{"use strict";var Qs=Q("node:assert"),{pipeline:vae}=Q("node:stream"),Ee=me(),{RequestContentLengthMismatchError:GQ,RequestAbortedError:kU,SocketError:sd,InformationalError:YQ}=Se(),{kUrl:Wf,kReset:Kf,kClient:pc,kRunning:Xf,kPending:Oae,kQueue:Ao,kPendingIdx:qQ,kRunningIdx:an,kError:cn,kSocket:xt,kStrictContentLength:_ae,kOnError:VQ,kMaxConcurrentStreams:PU,kHTTP2Session:An,kResume:co,kSize:Hae,kHTTPContext:Gae}=je(),bi=Symbol("open streams"),FU,MU=!1,zf;try{zf=Q("node:http2")}catch{zf={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Yae,HTTP2_HEADER_METHOD:qae,HTTP2_HEADER_PATH:Vae,HTTP2_HEADER_SCHEME:Jae,HTTP2_HEADER_CONTENT_LENGTH:Wae,HTTP2_HEADER_EXPECT:zae,HTTP2_HEADER_STATUS:Kae}}=zf;function Xae(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 jae(t,e){t[xt]=e,MU||(MU=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zf.connect(t[Wf],{createConnection:()=>e,peerMaxConcurrentStreams:t[PU]});r[bi]=0,r[pc]=t,r[xt]=e,Ee.addListener(r,"error",$ae),Ee.addListener(r,"frameError",eAe),Ee.addListener(r,"end",tAe),Ee.addListener(r,"goaway",rAe),Ee.addListener(r,"close",function(){let{[pc]:n}=this,{[xt]:i}=n,o=this[xt][cn]||this[cn]||new sd("closed",Ee.getSocketInfo(i));if(n[An]=null,n.destroyed){Qs(n[Oae]===0);let a=n[Ao].splice(n[an]);for(let A=0;A<a.length;A++){let c=a[A];Ee.errorRequest(n,c,o)}}}),r.unref(),t[An]=r,e[An]=r,Ee.addListener(e,"error",function(n){Qs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn]=n,this[pc][VQ](n)}),Ee.addListener(e,"end",function(){Ee.destroy(this,new sd("other side closed",Ee.getSocketInfo(this)))}),Ee.addListener(e,"close",function(){let n=this[cn]||new sd("closed",Ee.getSocketInfo(this));t[xt]=null,this[An]!=null&&this[An].destroy(n),t[qQ]=t[an],Qs(t[Xf]===0),t.emit("disconnect",t[Wf],[t],n),t[co]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return nAe(t,...n)},resume(){Zae(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Zae(t){let e=t[xt];e?.destroyed===!1&&(t[Hae]===0&&t[PU]===0?(e.unref(),t[An].unref()):(e.ref(),t[An].ref()))}function $ae(t){Qs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][cn]=t,this[pc][VQ](t)}function eAe(t,e,r){if(r===0){let s=new YQ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xt][cn]=s,this[pc][VQ](s)}}function tAe(){let t=new sd("other side closed",Ee.getSocketInfo(this[xt]));this.destroy(t),Ee.destroy(this[xt],t)}function rAe(t){let e=this[cn]||new sd(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ee.getSocketInfo(this)),r=this[pc];if(r[xt]=null,r[Gae]=null,this[An]!=null&&(this[An].destroy(e),this[An]=null),Ee.destroy(this[xt],e),r[an]<r[Ao].length){let s=r[Ao][r[an]];r[Ao][r[an]++]=null,Ee.errorRequest(r,s,e),r[qQ]=r[an]}Qs(r[Xf]===0),r.emit("disconnect",r[Wf],[r],e),r[co]()}function sAe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function nAe(t,e){let r=t[An],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ee.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let D=0;D<c.length;D+=2){let U=c[D+0],v=c[D+1];if(Array.isArray(v))for(let k=0;k<v.length;k++)d[U]?d[U]+=`,${v[k]}`:d[U]=v[k];else d[U]=v}let g,{hostname:h,port:f}=t[Wf];d[Yae]=i||`${h}${f?`:${f}`:""}`,d[qae]=s;let E=D=>{e.aborted||e.completed||(D=D||new kU,Ee.errorRequest(t,e,D),g!=null&&Ee.destroy(g,D),Ee.destroy(u,D),t[Ao][t[an]++]=null,t[co]())};try{e.onConnect(E)}catch(D){Ee.errorRequest(t,e,D)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(d,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[bi],t[Ao][t[an]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[bi],t[Ao][t[an]++]=null}),g.once("close",()=>{r[bi]-=1,r[bi]===0&&r.unref()}),!0;d[Vae]=n,d[Jae]="https";let w=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let p=Ee.bodyLength(u);if(Ee.isFormDataLike(u)){FU??=gc().extractBody;let[D,U]=FU(u);d["content-type"]=U,u=D.stream,p=D.length}if(p==null&&(p=e.contentLength),(p===0||!w)&&(p=null),sAe(s)&&p>0&&e.contentLength!=null&&e.contentLength!==p){if(t[_ae])return Ee.errorRequest(t,e,new GQ),!1;process.emitWarning(new GQ)}p!=null&&(Qs(u,"no body must not have content length"),d[Wae]=`${p}`),r.ref();let y=s==="GET"||s==="HEAD"||u===null;return a?(d[zae]="100-continue",g=r.request(d,{endStream:y,signal:A}),g.once("continue",N)):(g=r Line truncated
`,this[xAe]=A??3e5,this[DAe]=n??3e5,this[RAe]=y??!0,this[kAe]=D,this[KQ]=v,this[lo]=null,this[PAe]=O>-1?O:-1,this[OAe]=Ge??100,this[gt]=null,this[un]=[],this[Ni]=0,this[ln]=0,this[ad]=fe=>jQ(this,fe),this[vAe]=fe=>jU(this,fe)}get pipelining(){return this[em]}set pipelining(e){this[em]=e,this[ad](!0)}get[ud](){return this[un].length-this[ln]}get[cd](){return this[ln]-this[Ni]}get[Ad](){return this[un].length-this[Ni]}get[QAe](){return!!this[gt]&&!this[Cc]&&!this[gt].destroyed}get[zQ](){return!!(this[gt]?.busy(null)||this[Ad]>=(XU(this)||1)||this[ud]>0)}[BAe](e){ZU(this),this.once("connect",e)}[LAe](e,r){let s=e.origin||this[Pn].origin,n=new fAe(s,e,r);return this[un].push(n),this[Ta]||(Sa.bodyLength(n.body)==null&&Sa.isIterable(n.body)?(this[Ta]=1,queueMicrotask(()=>jQ(this))):this[ad](!0)),this[Ta]&&this[go]!==2&&this[zQ]&&(this[go]=2),this[go]<2}async[MAe](){return new Promise(e=>{this[Ad]?this[lo]=e:e(null)})}async[UAe](e){return new Promise(r=>{let s=this[un].splice(this[ln]);for(let i=0;i<s.length;i++){let o=s[i];Sa.errorRequest(this,o,e)}let n=()=>{this[lo]&&(this[lo](),this[lo]=null),r(null)};this[gt]?(this[gt].destroy(e,n),this[gt]=null):queueMicrotask(n),this[ad]()})}},GAe=$f();function jU(t,e){if(t[cd]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){wi(t[ln]===t[Ni]);let r=t[un].splice(t[Ni]);for(let s=0;s<r.length;s++){let n=r[s];Sa.errorRequest(t,n,e)}wi(t[Ad]===0)}}async function ZU(t){wi(!t[Cc]),wi(!t[gt]);let{host:e,hostname:r,protocol:s,port:n}=t[Pn];if(r[0]==="["){let i=r.indexOf("]");wi(i!==-1);let o=r.substring(1,i);wi(KU.isIP(o)),r=o}t[Cc]=!0,Ec.beforeConnect.hasSubscribers&&Ec.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id]});try{let i=await new Promise((o,a)=>{t[id]({host:e,hostname:r,protocol:s,port:n,servername:t[uo],localAddress:t[od]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Sa.destroy(i.on("error",WU),new EAe);return}wi(i);try{t[gt]=i.alpnProtocol==="h2"?await HAe(t,i):await _Ae(t,i)}catch(o){throw i.destroy().on("error",WU),o}t[Cc]=!1,i[FAe]=0,i[KQ]=t[KQ],i[IAe]=t,i[bAe]=null,Ec.connected.hasSubscribers&&Ec.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id],socket:i}),t.emit("connect",t[Pn],[t])}catch(i){if(t.destroyed)return;if(t[Cc]=!1,Ec.connectError.hasSubscribers&&Ec.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(wi(t[cd]===0);t[ud]>0&&t[un][t[ln]].servername===t[uo];){let o=t[un][t[ln]++];Sa.errorRequest(t,o,i)}else jU(t,i);t.emit("connectionError",t[Pn],[t],i)}t[ad]()}function zU(t){t[go]=0,t.emit("drain",t[Pn],[t])}function jQ(t,e){t[Ta]!==2&&(t[Ta]=2,YAe(t,e),t[Ta]=0,t[Ni]>256&&(t[un].splice(0,t[Ni]),t[ln]-=t[Ni],t[Ni]=0))}function YAe(t,e){for(;;){if(t.destroyed){wi(t[ud]===0);return}if(t[lo]&&!t[Ad]){t[lo](),t[lo]=null;return}if(t[gt]&&t[gt].resume(),t[zQ])t[go]=2;else if(t[go]===2){e?(t[go]=1,queueMicrotask(()=>zU(t))):zU(t);continue}if(t[ud]===0||t[cd]>=(XU(t)||1))return;let r=t[un][t[ln]];if(t[Pn].protocol==="https:"&&t[uo]!==r.servername){if(t[cd]>0)return;t[uo]=r.servername,t[gt]?.destroy(new pAe("servername changed"),()=>{t[gt]=null,jQ(t)})}if(t[Cc])return;if(!t[gt]){ZU(t);return}if(t[gt].destroyed||t[gt].busy(r))return;!r.aborted&&t[gt].write(r)?t[ln]++:t[un].splice(t[ln],1)}}$U.exports=XQ});var ZQ=m((KYe,eL)=>{"use strict";var tm=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)}};eL.exports=class{constructor(){this.head=this.tail=new tm}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tm),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var rL=m((XYe,tL)=>{var{kFree:qAe,kConnected:VAe,kPending:JAe,kQueued:WAe,kRunning:zAe,kSize:KAe}=je(),Da=Symbol("pool"),$Q=class{constructor(e){this[Da]=e}get connected(){return this[Da][VAe]}get free(){return this[Da][qAe]}get pending(){return this[Da][JAe]}get queued(){return this[Da][WAe]}get running(){return this[Da][zAe]}get size(){return this[Da][KAe]}};tL.exports=$Q});var iy=m((jYe,dL)=>{"use strict";var XAe=nc(),jAe=ZQ(),{kConnected:ey,kSize:sL,kRunning:nL,kPending:iL,kQueued:ld,kBusy:ZAe,kFree:$Ae,kUrl:ece,kClose:tce,kDestroy:rce,kDispatch:sce}=je(),nce=rL(),Br=Symbol("clients"),ir=Symbol("needDrain"),dd=Symbol("queue"),ty=Symbol("closed resolve"),ry=Symbol("onDrain"),oL=Symbol("onConnect"),aL=Symbol("onDisconnect"),AL=Symbol("onConnectionError"),sy=Symbol(" Line truncated
`,"latin1"),r!==null&&n!==r){if(s[Zy])throw new Za;process.emitWarning(new Za)}e[rt].timeout&&e[rt].timeoutType===su&&e[rt].timeout.refresh&&e[rt].timeout.refresh(),s[Wi]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Fo]=!1,e&&(ee(s[Ft]<=1,"pipeline should only contain this request"),n(e))}};Rv.exports=Kue});var Hv=p((dWe,Ov)=>{"use strict";var Ys=w("node:assert"),{pipeline:rle}=w("node:stream"),De=we(),{RequestContentLengthMismatchError:sb,RequestAbortedError:Fv,SocketError:Zd,InformationalError:nb}=Le(),{kUrl:Xm,kReset:Zm,kClient:nu,kRunning:$m,kPending:sle,kQueue:Mo,kPendingIdx:ib,kRunningIdx:Tn,kError:Rn,kSocket:Jt,kStrictContentLength:nle,kOnError:ob,kMaxConcurrentStreams:Pv,kHTTP2Session:xn,kResume:Uo,kSize:ile,kHTTPContext:ole}=At(),zi=Symbol("open streams"),Mv,Uv=!1,jm;try{jm=w("node:http2")}catch{jm={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:ale,HTTP2_HEADER_METHOD:Ale,HTTP2_HEADER_PATH:cle,HTTP2_HEADER_SCHEME:ule,HTTP2_HEADER_CONTENT_LENGTH:lle,HTTP2_HEADER_EXPECT:dle,HTTP2_HEADER_STATUS:gle}}=jm;function hle(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 fle(t,e){t[Jt]=e,Uv||(Uv=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=jm.connect(t[Xm],{createConnection:()=>e,peerMaxConcurrentStreams:t[Pv]});r[zi]=0,r[nu]=t,r[Jt]=e,De.addListener(r,"error",ple),De.addListener(r,"frameError",Ele),De.addListener(r,"end",Cle),De.addListener(r,"goaway",Ile),De.addListener(r,"close",function(){let{[nu]:n}=this,{[Jt]:i}=n,o=this[Jt][Rn]||this[Rn]||new Zd("closed",De.getSocketInfo(i));if(n[xn]=null,n.destroyed){Ys(n[sle]===0);let a=n[Mo].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){Ys(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn]=n,this[nu][ob](n)}),De.addListener(e,"end",function(){De.destroy(this,new Zd("other side closed",De.getSocketInfo(this)))}),De.addListener(e,"close",function(){let n=this[Rn]||new Zd("closed",De.getSocketInfo(this));t[Jt]=null,this[xn]!=null&&this[xn].destroy(n),t[ib]=t[Tn],Ys(t[$m]===0),t.emit("disconnect",t[Xm],[t],n),t[Uo]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Qle(t,...n)},resume(){mle(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function mle(t){let e=t[Jt];e?.destroyed===!1&&(t[ile]===0&&t[Pv]===0?(e.unref(),t[xn].unref()):(e.ref(),t[xn].ref()))}function ple(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Jt][Rn]=t,this[nu][ob](t)}function Ele(t,e,r){if(r===0){let s=new nb(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Jt][Rn]=s,this[nu][ob](s)}}function Cle(){let t=new Zd("other side closed",De.getSocketInfo(this[Jt]));this.destroy(t),De.destroy(this[Jt],t)}function Ile(t){let e=this[Rn]||new Zd(`HTTP/2: "GOAWAY" frame received with code ${t}`,De.getSocketInfo(this)),r=this[nu];if(r[Jt]=null,r[ole]=null,this[xn]!=null&&(this[xn].destroy(e),this[xn]=null),De.destroy(this[Jt],e),r[Tn]<r[Mo].length){let s=r[Mo][r[Tn]];r[Mo][r[Tn]++]=null,De.errorRequest(r,s,e),r[ib]=r[Tn]}Ys(r[$m]===0),r.emit("disconnect",r[Xm],[r],e),r[Uo]()}function Ble(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Qle(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],L=c[R+1];if(Array.isArray(L))for(let Y=0;Y<L.length;Y++)l[F]?l[F]+=`,${L[Y]}`:l[F]=L[Y];else l[F]=L}let g,{hostname:h,port:f}=t[Xm];l[ale]=i||`${h}${f?`:${f}`:""}`,l[Ale]=s;let m=R=>{e.aborted||e.completed||(R=R||new Fv,De.errorRequest(t,e,R),g!=null&&De.destroy(g,R),De.destroy(u,R),t[Mo][t[Tn]++]=null,t[Uo]())};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[zi],t[Mo][t[Tn]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[zi],t[Mo][t[Tn]++]=null}),g.once("close",()=>{r[zi]-=1,r[zi]===0&&r.unref()}),!0;l[cle]=n,l[ule]="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)){Mv??=$c().extractBody;let[R,F]=Mv(u);l["content-type"]=F,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!B)&&(E=null),Ble(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[nle])return De.errorRequest(t,e,new sb),!1;process.emitWarning(new sb)}E!=null&&(Ys(u,"no body must not have content length"),l[lle]=`${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[zle]=A??3e5,this[Wle]=n??3e5,this[Kle]=b??!0,this[Xle]=R,this[ub]=L,this[vo]=null,this[tde]=O>-1?O:-1,this[sde]=Ce??100,this[Nt]=null,this[kn]=[],this[Xi]=0,this[Fn]=0,this[rg]=Ie=>db(this,Ie),this[rde]=Ie=>Zv(this,Ie)}get pipelining(){return this[sp]}set pipelining(e){this[sp]=e,this[rg](!0)}get[ig](){return this[kn].length-this[Fn]}get[ng](){return this[Fn]-this[Xi]}get[sg](){return this[kn].length-this[Xi]}get[Hle](){return!!this[Nt]&&!this[ou]&&!this[Nt].destroyed}get[cb](){return!!(this[Nt]?.busy(null)||this[sg]>=(jv(this)||1)||this[ig]>0)}[Ole](e){$v(this),this.once("connect",e)}[ede](e,r){let s=e.origin||this[si].origin,n=new Fle(s,e,r);return this[kn].push(n),this[rA]||(tA.bodyLength(n.body)==null&&tA.isIterable(n.body)?(this[rA]=1,queueMicrotask(()=>db(this))):this[rg](!0)),this[rA]&&this[Po]!==2&&this[cb]&&(this[Po]=2),this[Po]<2}async[Zle](){return new Promise(e=>{this[sg]?this[vo]=e:e(null)})}async[$le](e){return new Promise(r=>{let s=this[kn].splice(this[Fn]);for(let i=0;i<s.length;i++){let o=s[i];tA.errorRequest(this,o,e)}let n=()=>{this[vo]&&(this[vo](),this[vo]=null),r(null)};this[Nt]?(this[Nt].destroy(e,n),this[Nt]=null):queueMicrotask(n),this[rg]()})}},ode=rp();function Zv(t,e){if(t[ng]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ki(t[Fn]===t[Xi]);let r=t[kn].splice(t[Xi]);for(let s=0;s<r.length;s++){let n=r[s];tA.errorRequest(t,n,e)}Ki(t[sg]===0)}}async function $v(t){Ki(!t[ou]),Ki(!t[Nt]);let{host:e,hostname:r,protocol:s,port:n}=t[si];if(r[0]==="["){let i=r.indexOf("]");Ki(i!==-1);let o=r.substring(1,i);Ki(Xv.isIP(o)),r=o}t[ou]=!0,iu.beforeConnect.hasSubscribers&&iu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Nt]?.version,servername:t[Lo],localAddress:t[tg]},connector:t[eg]});try{let i=await new Promise((o,a)=>{t[eg]({host:e,hostname:r,protocol:s,port:n,servername:t[Lo],localAddress:t[tg]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){tA.destroy(i.on("error",zv),new Lle);return}Ki(i);try{t[Nt]=i.alpnProtocol==="h2"?await ide(t,i):await nde(t,i)}catch(o){throw i.destroy().on("error",zv),o}t[ou]=!1,i[jle]=0,i[ub]=t[ub],i[Ple]=t,i[Gle]=null,iu.connected.hasSubscribers&&iu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Nt]?.version,servername:t[Lo],localAddress:t[tg]},connector:t[eg],socket:i}),t.emit("connect",t[si],[t])}catch(i){if(t.destroyed)return;if(t[ou]=!1,iu.connectError.hasSubscribers&&iu.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Nt]?.version,servername:t[Lo],localAddress:t[tg]},connector:t[eg],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ki(t[ng]===0);t[ig]>0&&t[kn][t[Fn]].servername===t[Lo];){let o=t[kn][t[Fn]++];tA.errorRequest(t,o,i)}else Zv(t,i);t.emit("connectionError",t[si],[t],i)}t[rg]()}function Kv(t){t[Po]=0,t.emit("drain",t[si],[t])}function db(t,e){t[rA]!==2&&(t[rA]=2,ade(t,e),t[rA]=0,t[Xi]>256&&(t[kn].splice(0,t[Xi]),t[Fn]-=t[Xi],t[Xi]=0))}function ade(t,e){for(;;){if(t.destroyed){Ki(t[ig]===0);return}if(t[vo]&&!t[sg]){t[vo](),t[vo]=null;return}if(t[Nt]&&t[Nt].resume(),t[cb])t[Po]=2;else if(t[Po]===2){e?(t[Po]=1,queueMicrotask(()=>Kv(t))):Kv(t);continue}if(t[ig]===0||t[ng]>=(jv(t)||1))return;let r=t[kn][t[Fn]];if(t[si].protocol==="https:"&&t[Lo]!==r.servername){if(t[ng]>0)return;t[Lo]=r.servername,t[Nt]?.destroy(new Ule("servername changed"),()=>{t[Nt]=null,db(t)})}if(t[ou])return;if(!t[Nt]){$v(t);return}if(t[Nt].destroyed||t[Nt].busy(r))return;!r.aborted&&t[Nt].write(r)?t[Fn]++:t[kn].splice(t[Fn],1)}}eP.exports=lb});var gb=p((pWe,tP)=>{"use strict";var np=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)}};tP.exports=class{constructor(){this.head=this.tail=new np}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new np),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var sP=p((EWe,rP)=>{var{kFree:Ade,kConnected:cde,kPending:ude,kQueued:lde,kRunning:dde,kSize:gde}=At(),sA=Symbol("pool"),hb=class{constructor(e){this[sA]=e}get connected(){return this[sA][cde]}get free(){return this[sA][Ade]}get pending(){return this[sA][ude]}get queued(){return this[sA][lde]}get running(){return this[sA][dde]}get size(){return this[sA][gde]}};rP.exports=hb});var Ib=p((CWe,gP)=>{"use strict";var hde=qc(),fde=gb(),{kConnected:fb,kSize:nP,kRunning:iP,kPending:oP,kQueued:og,kBusy:mde,kFree:pde,kUrl:Ede,kClose:Cde,kDestroy:Ide,kDispatch:Bde}=At(),Qde=sP(),Hr=Symbol("clients"),Qr=Symbol("needDrain"),ag=Symbol("queue"),mb=Symbol("closed resolve"),pb=Symbol("onDrain"),aP=Symbol("onConnect"),AP=Symbol("onDisconnect"),cP=Symbol("onConnectionError"),Eb=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};E3.exports=ib});var Cm=m((wqe,y3)=>{"use strict";var I3=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:xle}=Se(),Rle=Qc();Q3()===void 0&&B3(new Rle);function B3(t){if(!t||typeof t.dispatch!="function")throw new xle("Argument agent must implement Agent");Object.defineProperty(globalThis,I3,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Q3(){return globalThis[I3]}y3.exports={setGlobalDispatcher:B3,getGlobalDispatcher:Q3}});var Im=m((Sqe,b3)=>{"use strict";b3.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 N3=m((Tqe,w3)=>{"use strict";var kle=Zf();w3.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 kle(r,o,n,i);return r(a,A)}}});var T3=m((Dqe,S3)=>{"use strict";var Fle=cm();S3.exports=t=>e=>function(s,n){return e(s,new Fle({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var x3=m((xqe,D3)=>{"use strict";var Mle=me(),{InvalidArgumentError:Ule,RequestAbortedError:Lle}=Se(),Ple=Im(),ob=class extends Ple{#e=1024*1024;#t=null;#r=!1;#s=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Ule("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.#s=!0,this.#n=e}onHeaders(e,r,s,n){let o=Mle.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Lle(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#s?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function vle({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new ob({maxSize:i},n);return e(s,o)}}D3.exports=vle});var F3=m((Rqe,k3)=>{"use strict";var{isIP:Ole}=Q("node:net"),{lookup:_le}=Q("node:dns"),Hle=Im(),{InvalidArgumentError:kc,InformationalError:Gle}=Se(),R3=Math.pow(2,31)-1,ab=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.#s,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 Gle("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}`)}}#s(e,r,s){_le(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===R3?(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===R3?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 Ab(this,e,r)}},Ab=class extends Hle{#e=null;#t=null;#r=null;#s=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#s=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.#s.onError(r);le Line truncated
${i}`;break;case"retry":d4(i)&&(r[n]=i);break;case"id":g4(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&d4(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&g4(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}}};h4.exports={EventSourceStream:Wb}});var y4=m((AVe,Q4)=>{"use strict";var{pipeline:Zfe}=Q("node:stream"),{fetching:$fe}=wd(),{makeRequest:eme}=Uc(),{webidl:Ri}=Ht(),{EventSourceStream:tme}=f4(),{parseMIMEType:rme}=Cr(),{createFastMessageEvent:sme}=Hc(),{isNetworkError:m4}=yd(),{delay:nme}=Vb(),{kEnumerableProperty:qa}=me(),{environmentSettingsObject:p4}=Gr(),E4=!1,C4=3e3,vd=0,I4=1,Od=2,ime="anonymous",ome="use-credentials",Jc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=vd;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ri.util.markAsUncloneable(this);let s="EventSource constructor";Ri.argumentLengthCheck(arguments,1,s),E4||(E4=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ri.converters.USVString(e,s,"url"),r=Ri.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:C4};let n=p4,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=ime;r.withCredentials&&(o=ome,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=p4.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=eme(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===Od)return;this.#s=vd;let e={request:this.#i,dispatcher:this.#a},r=s=>{m4(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(m4(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?rme(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.#s=I4,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new tme({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(sme(A.type,A.options))}});Zfe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=$fe(e)}async#c(){this.#s!==Od&&(this.#s=vd,this.dispatchEvent(new Event("error")),await nme(this.#o.reconnectionTime),this.#s===vd&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ri.brandCheck(this,t),this.#s!==Od&&(this.#s=Od,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}},B4={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:vd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:I4,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Od,writable:!1}};Object.defineProperties(Jc,B4);Object.defineProperties(Jc.prototype,B4);Object.defineProperties(Jc.prototype,{close:qa,onerror:qa,onmessage:qa,onopen:qa,readyState:qa,url:qa,withCredentials:qa});Ri.converters.EventSourceInitDict=Ri.dictionaryConverter([{key:"withCredentials",converter:Ri.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ri.converters.any}]);Q4.exports={EventSource:Jc,defaultReconnectionTime:C4}});var Ap=m((cVe,re)=>{"use strict";var ame=Ic(),b4=Yl(),Ame=Bc(),cme=BL(),ume=Qc(),lme=Ey(),dme=VL(),gme=jL(),w4=Se(),ap=me(),{InvalidArgumentError:op}=w4,Wc=PP(),hme=Vl(),fme=$y(),mme=C3(),pme=rb(),Eme=_y(),Cme=cm(),{getGlobalDispatcher:N4,setGlobalDispatcher:Ime}=Cm(),Bme=Im(),Qme=Zf(),yme=$f();Object.assign(b4.prototype,Wc);re.exports.Dispatcher=b4;re.exports.Client=ame;re.exports.Pool=Ame;re.exports.BalancedPool=cme;re.exports.Agent=ume;re.exports.ProxyAgent=lme;re.exports.EnvHttpProxyAgent=dme;re.exports.RetryAgent=gme;re.exports.RetryHandle Line truncated
`.trim())}};I8.exports=Iw});var Qp=p((WWe,w8)=>{"use strict";var Q8=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:zhe}=Le(),Khe=cu();b8()===void 0&&y8(new Khe);function y8(t){if(!t||typeof t.dispatch!="function")throw new zhe("Argument agent must implement Agent");Object.defineProperty(globalThis,Q8,{value:t,writable:!0,enumerable:!1,configurable:!1})}function b8(){return globalThis[Q8]}w8.exports={setGlobalDispatcher:y8,getGlobalDispatcher:b8}});var yp=p((KWe,N8)=>{"use strict";N8.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 D8=p((XWe,S8)=>{"use strict";var Xhe=tp();S8.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 Xhe(r,o,n,i);return r(a,A)}}});var x8=p((jWe,T8)=>{"use strict";var jhe=dp();T8.exports=t=>e=>function(s,n){return e(s,new jhe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var k8=p((ZWe,R8)=>{"use strict";var Zhe=we(),{InvalidArgumentError:$he,RequestAbortedError:efe}=Le(),tfe=yp(),Bw=class extends tfe{#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 $he("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=Zhe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new efe(`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 rfe({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)}}R8.exports=rfe});var U8=p(($We,M8)=>{"use strict";var{isIP:sfe}=w("node:net"),{lookup:nfe}=w("node:dns"),ife=yp(),{InvalidArgumentError:Eu,InformationalError:ofe}=Le(),F8=Math.pow(2,31)-1,Qw=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 ofe("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){nfe(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===F8?(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===F8?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 yw(this,e,r)}},yw=class extends ife{#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
${o}`;return}if(cE(e,n,C0e)){I0e(e,i)&&(r.retry=e.toString("utf8",i));return}if(cE(e,n,E0e)){B0e(e,i)&&(r.id=e.toString("utf8",i));return}if(cE(e,n,p0e)){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&&g0e(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===ku[0]||(this.checkBOM=!1),!0):s===void 0?e===ku[0]&&r===ku[1]?!0:(this.checkBOM=!1,!1):(e===ku[0]&&r===ku[1]&&s===ku[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};g6.exports={EventSourceStream:d1}});var Q6=p((xze,B6)=>{"use strict";var{pipeline:Q0e}=w("node:stream"),{fetching:y0e}=Ig(),{makeRequest:b0e}=Bu(),{webidl:eo}=rr(),{EventSourceStream:w0e}=h6(),{parseMIMEType:N0e}=Pr(),{createFastMessageEvent:S0e}=Su(),{isNetworkError:f6}=Eg(),{delay:D0e}=u1(),{kEnumerableProperty:CA}=we(),{environmentSettingsObject:m6}=as(),p6=!1,E6=3e3,Mg=0,C6=1,Ug=2,T0e="anonymous",x0e="use-credentials",Fu=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#n=Mg;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),eo.util.markAsUncloneable(this);let s="EventSource constructor";eo.argumentLengthCheck(arguments,1,s),p6||(p6=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=eo.converters.USVString(e,s,"url"),r=eo.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:E6};let n=m6,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=T0e;r.withCredentials&&(o=x0e,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=m6.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=b0e(a),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===Ug)return;this.#n=Mg;let e={request:this.#i,dispatcher:this.#a},r=s=>{f6(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(f6(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?N0e(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=C6,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new w0e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(S0e(A.type,A.options))}});Q0e(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=y0e(e)}async#c(){this.#n!==Ug&&(this.#n=Mg,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 P_=m(L_=>{"use strict";var Zw=_i().Buffer;L_._dbcs=Hi;var Gt=-1,U_=-2,Ls=-10,lr=-1e3,fu=new Array(256),Eg=-1;for(I0=0;I0<256;I0++)fu[I0]=Gt;var I0;function Hi(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]=fu.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(fu.slice(0));var i=this.decodeTables.length;this.decodeTables.push(fu.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[lr-o[s]],A=48;A<=57;A++){if(a[A]===Gt)a[A]=lr-n;else if(a[A]>lr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[lr-a[A]],u=129;u<=254;u++){if(c[u]===Gt)c[u]=lr-i;else{if(c[u]===lr-i)continue;if(c[u]>lr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var d=this.decodeTables[lr-c[u]],g=48;g<=57;g++)d[g]===Gt&&(d[g]=U_)}}}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 Zbe(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(Pbe.has(n)){r=n;break}}return r}function $be(t,e){let r=Zbe(e);r!==""&&(t.referrerPolicy=r)}function e1e(){return"allowed"}function t1e(){return"success"}function r1e(){return"success"}function s1e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function n1e(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&&mS(t.origin)&&!mS(uA(t))&&(e=null);break;case"same-origin":Sg(t,uA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Iu(t,e){return t}function i1e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Iu(t.domainLookupStartTime,r),domainLookupEndTime:Iu(t.domainLookupEndTime,r),connectionStartTime:Iu(t.connectionStartTime,r),connectionEndTime:Iu(t.connectionEndTime,r),secureConnectionStartTime:Iu(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function o1e(t){return Iu(Hbe.now(),t)}function a1e(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 g9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function A1e(t){return{referrerPolicy:t.referrerPolicy}}function c1e(t){let e=t.referrerPolicy;Tg(e);let r=null;if(t.referrer==="client"){let i=A9();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Go.is.URL(t.referrer)&&(r=t.referrer);let s=fS(r),n=fS(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??fS(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=uA(t);return cA(s)&&!cA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=uA(t);return Sg(s,i)?s:cA(s)&&!cA(i)?"no-referrer":n}case"same-origin":return Sg(t,s)?s:"no-referrer";case"origin-when-cross-origin":return Sg(t,s)?s:n;case"no-referrer-when-downgrade":{let i=uA(t);return cA(s)&&!cA(i)?"no-referrer":s}}}function fS(t,e=!1){return Tg(Go.is.URL(t)),t=new URL(t),p9(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var u1e=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)$/),l1e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function h9(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),l1e(t)):u1e(t)}function d1e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||h9(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function cA(t){return Go.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:d1e(t.origin):!1}function g1e(t){}function Sg(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function h1e(t){return t.controller.state==="aborted"}function f1e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function m1e(t){return Ybe[t.toLowerCase()]??t}var p1e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function f9(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 d;switch(this.#t){case"key":d=c;break;case"value":d=u;break;case"key+value":d=[c,u];break}return{value:d,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,p1e),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 E1e(t,e,r,s=0,n=1){let i=f9(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Go.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Go.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Os(a=>wS(a)&&a!==59,t,e);i=yS.decode(o)}return{name:s,value:i}}function G1e(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 Rr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Os(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bS(o,!0,!0,a=>a===9||a===32),!M1e.test(o.toString()))throw Rr("header name does not match the field-name token production");if(t[e.position]!==58)throw Rr("expected :");switch(e.position++,Os(a=>a===32||a===9,t,e),F1e(o)){case"content-disposition":{if(r=s=null,Os(A=>wS(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Rr("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=H1e(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Rr("name attribute is required in content-disposition header");break}case"content-type":{let a=Os(A=>A!==10&&A!==13,t,e);a=bS(a,!1,!0,A=>A===9||A===32),n=y9(a);break}case"content-transfer-encoding":{let a=Os(A=>A!==10&&A!==13,t,e);a=bS(a,!1,!0,A=>A===9||A===32),i=y9(a);break}default:Os(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Rr("expected CRLF");e.position+=2}}function Os(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function bS(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 Y1e(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 Rr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function q1e(t){return t<=31||t===127}function V1e(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 wS(t){return t<=127&&t!==32&&t!==9&&!q1e(t)&&!V1e(t)}b9.exports={multipartFormDataParser:_1e,validateBoundary:O1e}});var Dg=m((pXe,N9)=>{"use strict";function J1e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}N9.exports={createDeferredPromise:J1e}});var yu=m((EXe,R9)=>{"use strict";var TS=ce(),{ReadableStreamFrom:W1e,readableStreamClose:z1e,fullyReadBody:K1e,extractMimeType:X1e}=rs(),{FormData:S9,setFormDataState:j1e}=V0(),{webidl:Bn}=Yt(),NS=Q("node:assert"),{isErrored:SS,isDisturbed:Z1e}=Q("node:stream"),{isUint8Array:$1e}=Q("node:util/types"),{serializeAMimeType:ewe}=vs(),{multipartFormDataParser:twe}=w9(),{createDeferredPromise:rwe}=Dg(),{parseJSONFromBytes:swe}=qi(),{utf8DecodeBytes:nwe}=O0(),{runtimeFeatures:iwe}=Vi(),owe=iwe.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),J0=new TextEncoder;function awe(){}var Awe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Z1e(e)&&!SS(e)&&e.cancel("Response object has been garbage collected").catch(awe)});function D9(t,e=!1){let r=null,s=null;Bn.is.ReadableStream(t)?r=t:Bn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),NS(Bn.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(Bn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Bn.is.BufferSource(t))i=Bn.util.getCopyOfBytesHeldByBufferSource(t);else if(Bn.is.FormData(t)){let c=`----formdata-undici-0${`${owe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let d=p=>p.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=p=>p.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let E=!1;for(let[p,y]of t)if(typeof y=="string"){let N=J0.encode(u+`; name="${d(g(p))}"\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 L5=p(U5=>{"use strict";var pS=co().Buffer;U5._dbcs=uo;var sr=-1,M5=-2,sn=-10,Dr=-1e3,rl=new Array(256),hh=-1;for(b0=0;b0<256;b0++)rl[b0]=sr;var b0;function uo(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]=rl.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(rl.slice(0));var i=this.decodeTables.length;this.decodeTables.push(rl.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[Dr-o[s]],A=48;A<=57;A++){if(a[A]===sr)a[A]=Dr-n;else if(a[A]>Dr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Dr-a[A]],u=129;u<=254;u++){if(c[u]===sr)c[u]=Dr-i;else{if(c[u]===Dr-i)continue;if(c[u]>Dr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Dr-c[u]],g=48;g<=57;g++)l[g]===sr&&(l[g]=M5)}}}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 ySe(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(ASe.has(n)){r=n;break}}return r}function bSe(t,e){let r=ySe(e);r!==""&&(t.referrerPolicy=r)}function wSe(){return"allowed"}function NSe(){return"success"}function SSe(){return"success"}function DSe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function TSe(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&&LD(t.origin)&&!LD(OA(t))&&(e=null);break;case"same-origin":bh(t,OA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function al(t,e){return t}function xSe(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 RSe(t){return al(dSe.now(),t)}function kSe(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 lY(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function FSe(t){return{referrerPolicy:t.referrerPolicy}}function MSe(t){let e=t.referrerPolicy;wh(e);let r=null;if(t.referrer==="client"){let i=oY();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else ga.is.URL(t.referrer)&&(r=t.referrer);let s=UD(r),n=UD(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??UD(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=OA(t);return PA(s)&&!PA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=OA(t);return bh(s,i)?s:PA(s)&&!PA(i)?"no-referrer":n}case"same-origin":return bh(t,s)?s:"no-referrer";case"origin-when-cross-origin":return bh(t,s)?s:n;case"no-referrer-when-downgrade":{let i=OA(t);return PA(s)&&!PA(i)?"no-referrer":s}}}function UD(t,e=!1){return wh(ga.is.URL(t)),t=new URL(t),fY(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var USe=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)$/),LSe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function dY(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),LSe(t)):USe(t)}function vSe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||dY(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function PA(t){return ga.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:vSe(t.origin):!1}function PSe(t){}function bh(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function OSe(t){return t.controller.state==="aborted"}function HSe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function _Se(t){return hSe[t.toLowerCase()]??t}var GSe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function gY(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,GSe),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 YSe(t,e,r,s=0,n=1){let i=gY(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return ga.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return ga.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=an(a=>JD(a)&&a!==59,t,e);i=YD.decode(o)}return{name:s,value:i,extended:n}}function gDe(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 Xr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=an(a=>a!==10&&a!==13&&a!==58,t,e);if(o=qD(o,!0,!0,a=>a===9||a===32),!iDe.test(o.toString()))throw Xr("header name does not match the field-name token production");if(t[e.position]!==58)throw Xr("expected :");switch(e.position++,an(a=>a===32||a===9,t,e),nDe(o)){case"content-disposition":{r=s=null;let a=!1;if(an(c=>JD(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Xr("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 Xr("name attribute is required in content-disposition header");break}case"content-type":{let a=an(A=>A!==10&&A!==13,t,e);a=qD(a,!1,!0,A=>A===9||A===32),n=BY(a);break}case"content-transfer-encoding":{let a=an(A=>A!==10&&A!==13,t,e);a=qD(a,!1,!0,A=>A===9||A===32),i=BY(a);break}default:an(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Xr("expected CRLF");e.position+=2}}function an(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function qD(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 hDe(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 Xr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function fDe(t){return t<=31||t===127}function mDe(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 JD(t){return t<=127&&t!==32&&t!==9&&!fDe(t)&&!mDe(t)}QY.exports={multipartFormDataParser:lDe,validateBoundary:uDe}});var Nh=p((_et,bY)=>{"use strict";function pDe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}bY.exports={createDeferredPromise:pDe}});var ul=p((Get,TY)=>{"use strict";var zD=me(),{ReadableStreamFrom:EDe,readableStreamClose:CDe,fullyReadBody:IDe,extractMimeType:BDe}=Qs(),{FormData:wY,setFormDataState:QDe}=K0(),{webidl:Yn}=nr(),VD=w("node:assert"),{isErrored:WD,isDisturbed:yDe}=w("node:stream"),{isUint8Array:bDe}=w("node:util/types"),{serializeAMimeType:wDe}=on(),{multipartFormDataParser:NDe}=yY(),{createDeferredPromise:SDe}=Nh(),{parseJSONFromBytes:DDe}=ho(),{utf8DecodeBytes:TDe}=Y0(),{runtimeFeatures:xDe}=fo(),RDe=xDe.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),X0=new TextEncoder;function kDe(){}var FDe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!yDe(e)&&!WD(e)&&e.cancel("Response object has been garbage collected").catch(kDe)});function SY(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"}),VD(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${`${RDe(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 m=!1;for(let[E,b]of t)if(typeof b=="string"){let S=X0.encode(u+`; name="${l(g(E))}"\r
\r
${g(y)}\r
`);h.push(N),o+=N.byteLength}else{let N=J0.encode(`${u}; name="${d(g(p))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
${g(b)}\r
`);h.push(S),o+=S.byteLength}else{let S=X0.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,y,f),typeof y.size=="number"?o+=N.byteLength+y.size+f.byteLength:E=!0}let w=J0.encode(`--${c}--\r
`);h.push(w),o+=w.byteLength,E&&(o=null),i=t,n=async function*(){for(let p of h)p.stream?yield*p.stream():yield p},a=`multipart/form-data; boundary=${c}`}else if(Bn.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(TS.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Bn.is.ReadableStream(t)?t:W1e(t)}return(typeof i=="string"||$1e(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 d of u){if(SS(r))break;d.length&&s.enqueue(new Uint8Array(d))}else c?.length&&!SS(r)&&s.enqueue(typeof c=="string"?J0.encode(c):new Uint8Array(c));queueMicrotask(()=>z1e(s))})(),[{stream:r,source:i,length:o},a]}function cwe(t,e=!1){return Bn.is.ReadableStream(t)&&(NS(!TS.isDisturbed(t),"The body has already been consumed."),NS(!t.locked,"The stream is locked.")),D9(t,e)}function uwe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function lwe(t,e){return{blob(){return Qu(this,s=>{let n=T9(e(this));return n===null?n="":n&&(n=ewe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Qu(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Qu(this,nwe,t,e)},json(){return Qu(this,swe,t,e)},formData(){return Qu(this,s=>{let n=T9(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=twe(s,n),o=new S9;return j1e(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new S9;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 Qu(this,s=>new Uint8Array(s),t,e)}}}function dwe(t,e){Object.assign(t.prototype,lwe(t,e))}function Qu(t,e,r,s){try{Bn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),x9(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=rwe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(K1e(t.body,o,i),n.promise)}function x9(t){let e=t.body;return e!=null&&(e.stream.locked||TS.isDisturbed(e.stream))}function T9(t){let e=t.headersList,r=X1e(e);return r==="failure"?null:r}R9.exports={extractBody:D9,safelyExtractBody:cwe,cloneBody:uwe,mixinBody:dwe,streamRegistry:Awe,bodyUnusable:x9}});var G9=m((CXe,H9)=>{"use strict";var se=Q("node:assert"),ne=ce(),{channels:k9}=_o(),DS=uN(),{RequestContentLengthMismatchError:lA,ResponseContentLengthMismatchError:gwe,RequestAbortedError:v9,HeadersTimeoutError:hwe,HeadersOverflowError:fwe,SocketError:kg,InformationalError:bu,BodyTimeoutError:mwe,HTTPParserError:pwe,ResponseExceededMaxSizeError:Ewe}=oe(),{kUrl:O9,kReset:kr,kClient:LS,kParser:at,kBlocking:Fg,kRunning:rr,kPending:Cwe,kSize:F9,kWriting:qo,kQueue:Qn,kNoRef:xg,kKeepAliveDefaultTimeout:Iwe,kHostHeader:Bwe,kPendingIdx:Qwe,kRunningIdx:_s,kError:Hs,kPipelining:K0,kSocket:wu,kKeepAliveTimeoutValue:j0,kMaxHeadersSize:ywe,kKeepAliveMaxTimeout:bwe,kKeepAliveTimeoutThreshold:wwe,kHeadersTimeout:Nwe,kBodyTimeout:Swe,kStrictContentLength:kS,kMaxRequests:M9,kCounter:Twe,kMaxResponseSize:Dwe,kOnError:xwe,kResume:Yo,kHTTPContext:_9,kClosed:FS}=Me(),zn=RH(),Rwe=Buffer.alloc(0),W0=Buffer[Symbol.species],kwe=ne.removeAllListeners,xS;function Fwe(){let t=process.env.JEST_WORKER_ID?rS():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(MH())}catch{}return e||(e=new WebAssembly.Module(t||rS())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onStatus(new W0(Kn.buffer,o,i))},wasm_on_message_begin:s=>(se(Nt.ptr===s),Nt.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onHeaderField(new W0(Kn.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onHeaderValue(new W0(Kn.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(se(Nt.ptr===s),Nt.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onBody(new W0(Kn.buffer,o,i))},wasm_on_message_complete:s=>(se(Nt.ptr===s),Nt.onMessageComplete())}})}var RS=null,Nt=null,Kn=null,z0=0,Xn=null,Mwe=0,Rg=1,Nu=2|Rg,X0=4|Rg,MS=8|Mwe,US=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(zn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[ywe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[Dwe]}setTimeout(e,r){e!==this.t Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[Bwe],i?E+=`connection: upgrade\r
`);h.push(S,b,f),typeof b.size=="number"?o+=S.byteLength+b.size+f.byteLength:m=!0}let B=X0.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(zD.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Yn.is.ReadableStream(t)?t:EDe(t)}return(typeof i=="string"||bDe(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(WD(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!WD(r)&&s.enqueue(typeof c=="string"?X0.encode(c):new Uint8Array(c));queueMicrotask(()=>CDe(s))})(),[{stream:r,source:i,length:o},a]}function MDe(t,e=!1){return Yn.is.ReadableStream(t)&&(VD(!zD.isDisturbed(t),"The body has already been consumed."),VD(!t.locked,"The stream is locked.")),SY(t,e)}function UDe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function LDe(t,e){return{blob(){return cl(this,s=>{let n=NY(e(this));return n===null?n="":n&&(n=wDe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return cl(this,s=>new Uint8Array(s).buffer,t,e)},text(){return cl(this,TDe,t,e)},json(){return cl(this,DDe,t,e)},formData(){return cl(this,s=>{let n=NY(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=NDe(s,n),o=new wY;return QDe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new wY;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 cl(this,s=>new Uint8Array(s),t,e)}}}function vDe(t,e){Object.assign(t.prototype,LDe(t,e))}function cl(t,e,r,s){try{Yn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),DY(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=SDe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(IDe(t.body,o,i),n.promise)}function DY(t){let e=t.body;return e!=null&&(e.stream.locked||zD.isDisturbed(e.stream))}function NY(t){let e=t.headersList,r=BDe(e);return r==="failure"?null:r}TY.exports={extractBody:SY,safelyExtractBody:MDe,cloneBody:UDe,mixinBody:vDe,streamRegistry:FDe,bodyUnusable:DY}});var qY=p((Yet,YY)=>{"use strict";var ie=w("node:assert"),Z=me(),{channels:xY}=la(),KD=TS(),{RequestContentLengthMismatchError:HA,ResponseContentLengthMismatchError:RY,RequestAbortedError:OY,InvalidArgumentError:PDe,HeadersTimeoutError:ODe,HeadersOverflowError:HDe,SocketError:_A,InformationalError:ll,BodyTimeoutError:_De,HTTPParserError:GDe,ResponseExceededMaxSizeError:YDe}=le(),{kUrl:HY,kReset:jr,kClient:tC,kParser:it,kBlocking:Th,kRunning:vt,kPending:rT,kSize:kY,kWriting:ha,kQueue:qn,kNoRef:Sh,kKeepAliveDefaultTimeout:qDe,kHostHeader:JDe,kPendingIdx:VDe,kRunningIdx:An,kError:Tr,kPipelining:$0,kSocket:GA,kKeepAliveTimeoutValue:rC,kMaxHeadersSize:WDe,kKeepAliveMaxTimeout:zDe,kKeepAliveTimeoutThreshold:KDe,kHeadersTimeout:XDe,kBodyTimeout:jDe,kStrictContentLength:ZD,kMaxRequests:FY,kCounter:ZDe,kMaxResponseSize:$De,kOnError:MY,kResume:po,kHTTPContext:_Y,kClosed:$D}=Ye(),ys=TG(),UY=Buffer.alloc(0),j0=Buffer[Symbol.species],eTe=Z.removeAllListeners,YA=Symbol("kIdleSocketValidation"),dl=Symbol("kIdleSocketValidationTimeout"),sT=Symbol("kSocketUsed"),XD;function tTe(){let t=process.env.JEST_WORKER_ID?QD():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(kG())}catch{}return e||(e=new WebAssembly.Module(t||QD())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{ie(It.ptr===s);let o=n-fi+hi.byteOffset;return It.onStatus(new j0(hi.buffer,o,i))},wasm_on_message_begin:s=>(ie(It.ptr===s),It.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{ie(It.ptr===s);let o=n-fi+hi.byteOffset;return It.onHeaderField(new j0(hi.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{ie(It.ptr===s);let o=n-fi+hi.byteOffset;return It.onHeaderValue(new j0(hi.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(ie(It.ptr===s),It.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{ie(It.ptr===s);let o=n-fi+hi.byteOffset;return It.onBody(new j0(hi.buffer,o,i))},wasm_on_message_complete:s=>(ie(It.ptr===s),It.onMessageComplete())}})}var jD=null,It=null,hi=null,Z0=0,fi=null,rTe=0,Dh=1,gl=2|Dh,eC=4|Dh,eT=8|rTe,tT=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(ys.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[WDe],this.shouldKeepAlive=!1,this.paused=!1,this.r Line truncated
`;if(typeof n=="string"?m+=`host: ${n}\r
`:m+=t[JDe],i?m+=`connection: upgrade\r
upgrade: ${i}\r
`:t[K0]&&!h[kr]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let p=c[w+0],y=c[w+1];if(Array.isArray(y))for(let N=0;N<y.length;N++)E+=`${p}: ${y[N]}\r
`;else E+=`${p}: ${y}\r
`}return k9.sendHeaders.hasSubscribers&&k9.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?L9(f,null,t,e,h,u,E,d):ne.isBuffer(A)?L9(f,A,t,e,h,u,E,d):ne.isBlobLike(A)?typeof A.stream=="function"?P9(f,A.stream(),t,e,h,u,E,d):Vwe(f,A,t,e,h,u,E,d):ne.isStream(A)?qwe(f,A,t,e,h,u,E,d):ne.isIterable(A)?P9(f,A,t,e,h,u,E,d):se(!1),!0}function qwe(t,e,r,s,n,i,o,a){se(i!==0||r[rr]===0,"stream body cannot be pipelined");let A=!1,c=new Z0({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(E){ne.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new v9;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,se(n.destroyed||n[qo]&&r[rr]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ne.destroy(e,f):ne.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).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 L9(t,e,r,s,n,i,o,a){try{e?ne.isBuffer(e)&&(se(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`:t[$0]&&!h[jr]?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 xY.sendHeaders.hasSubscribers&&xY.sendHeaders.publish({request:e,headers:m,socket:h}),!A||g===0?vY(f,null,t,e,h,u,m,l):Z.isBuffer(A)?vY(f,A,t,e,h,u,m,l):Z.isBlobLike(A)?typeof A.stream=="function"?PY(f,A.stream(),t,e,h,u,m,l):hTe(f,A,t,e,h,u,m,l):Z.isStream(A)?gTe(f,A,t,e,h,u,m,l):Z.isIterable(A)?PY(f,A,t,e,h,u,m,l):ie(!1),!0}function gTe(t,e,r,s,n,i,o,a){ie(i!==0||r[vt]===0,"stream body cannot be pipelined");let A=!1,c=new sC({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 OY;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ie(n.destroyed||n[ha]&&r[vt]<=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 vY(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[kr]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[jr]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(se(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Yo]()}catch(A){t(A)}}async function Vwe(t,e,r,s,n,i,o,a){se(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new lA;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[po]()}catch(A){t(A)}}async function hTe(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 HA;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[kr]=!0),r[Yo]()}catch(A){t(A)}}async function P9(t,e,r,s,n,i,o,a){se(i!==0||r[rr]===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)=>{se(A===null),n[Hs]?h(n[Hs]):A=g});n.on("close",c).on("drain",c);let d=new Z0({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Hs])throw n[Hs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Z0=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[qo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Hs])throw r[Hs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[kS])throw new lA;process.emitWarning(new lA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[kr]=!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[jr]=!0),r[po]()}catch(A){t(A)}}async function PY(t,e,r,s,n,i,o,a){ie(i!==0||r[vt]===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[Tr]?h(n[Tr]):A=g});n.on("close",c).on("drain",c);let l=new sC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Tr])throw n[Tr];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var sC=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[ha]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Tr])throw r[Tr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[ZD])throw new HA;process.emitWarning(new HA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[jr]=!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[at].timeout&&r[at].timeoutType===Nu&&r[at].timeout.refresh&&r[at].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[qo]=!1,e[Hs])throw e[Hs];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===gl&&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[ha]=!1,e[Tr])throw e[Tr];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[kS])throw new lA;process.emitWarning(new lA)}e[at].timeout&&e[at].timeoutType===Nu&&e[at].timeout.refresh&&e[at].timeout.refresh(),s[Yo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[qo]=!1,e&&(se(s[rr]<=1,"pipeline should only contain this request"),n(e))}};H9.exports=Uwe});var j9=m((IXe,X9)=>{"use strict";var Ys=Q("node:assert"),{pipeline:Jwe}=Q("node:stream"),he=ce(),{RequestContentLengthMismatchError:_S,RequestAbortedError:Wwe,SocketError:Pg,InformationalError:Vo,InvalidArgumentError:zwe}=oe(),{kUrl:Lg,kReset:rE,kClient:ss,kRunning:vg,kPending:Kwe,kQueue:Jo,kPendingIdx:GS,kRunningIdx:yn,kError:ns,kSocket:st,kStrictContentLength:Xwe,kOnError:Su,kMaxConcurrentStreams:eE,kPingInterval:Y9,kHTTP2Session:Wi,kHTTP2InitialWindowSize:jwe,kHTTP2ConnectionWindowSize:Zwe,kResume:jn,kSize:$we,kHTTPContext:YS,kClosed:HS,kBodyTimeout:eNe,kEnableConnectProtocol:Mg,kRemoteSettings:Ug,kHTTP2Stream:$0,kHTTP2SessionState:qS}=Me(),{channels:q9}=_o(),Gs=Symbol("open streams"),V9,tE;try{tE=Q("node:http2")}catch{tE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tNe,HTTP2_HEADER_METHOD:J9,HTTP2_HEADER_PATH:W9,HTTP2_HEADER_SCHEME:PS,HTTP2_HEADER_CONTENT_LENGTH:rNe,HTTP2_HEADER_EXPECT:sNe,HTTP2_HEADER_STATUS:vS,HTTP2_HEADER_PROTOCOL:nNe,NGHTTP2_REFUSED_STREAM:iNe,NGHTTP2_CANCEL:oNe}}=tE;function OS(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 aNe(t,e){t[st]=e;let r=t[jwe],s=t[Zwe],n=tE.connect(t[Lg],{createConnection:()=>e,peerMaxConcurrentStreams:t[eE],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[st]=e,n[Gs]=0,n[ss]=t,n[st]=e,n[qS]={ping:{interval:t[Y9]===0?null:setInterval(lNe,t[Y9],n).unref()}},n[Mg]=!1,n[Ug]=!1,s&&he.addListener(n,"connect",cNe.bind(n,s)),he.addListener(n,"error",dNe),he.addListener(n,"frameError",gNe),he.addListener(n,"end",hNe),he.addListener(n,"goaway",fNe),he.addListener(n,"close",mNe),he.addListener(n,"remoteSettings",uNe),n.unref(),t[Wi]=n,e[Wi]=n,he.addListener(e,"error",ENe),he.addListener(e,"end",CNe),he.addListener(e,"close",pNe),e[HS]=!1,e.on("close",INe),{version:"h2",defaultPipelining:1/0,write(i){return QNe(t,i)},resume(){ANe(t)},destroy(i,o){e[HS]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[vg]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Ug]===!1||he.bodyLength(i.body)!==0&&(he.isStream(i.body)||he.isAsyncIterable(i.body)||he.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Ug]===!1;return!1}}}function ANe(t){let e=t[st];e?.destroyed===!1&&(t[$we]===0||t[eE]===0?(e.unref(),t[Wi].unref()):(e.ref(),t[Wi].ref()))}function cNe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function uNe(t){if(this[ss][eE]=t.maxConcurrentStreams??this[ss][eE],this[Ug]===!0&&this[Mg]===!0&&t.enableConnectProtocol===!1){let e=new Vo("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[st][ns]=e,this[ss][Su](e);return}this[Mg]=t.enableConnectProtocol??this[Mg],this[Ug]=!0,this[ss][jn]()}function lNe(t){let e=t[qS];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 Vo(`HTTP/2: "PING" errored - type ${s.message}`);o[ns]=a,i[Su](a)}else i.emit("ping",n)}}function dNe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[st][ns]=t,this[ss][Su](t)}function gNe(t,e,r){if(r===0){let s=new Vo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[st][ns]=s,this[ss][Su](s)}}function hNe(){let t=new Pg("other side closed",he.getSocketInfo(this[st]));this.destroy(t),he.destroy(this[st],t)}function fNe(t){let e=this[ns]||new Pg(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this[st])),r=this[ss];if(r[st]=null,r[YS]=null,this.close(),this[Wi]=null,he.destroy(this[st],e),r[yn]<r[Jo].length){let s=r[Jo][r[yn]];r[Jo][r[yn]++]=null,he.errorRequest(r,s,e),r[GS]=r[yn]}Ys(r[vg]===0),r.emit("disconnect",r[Lg],[r],e),r.emit("connectionError",r[Lg],[r],e),r[jn]()}function mNe(){let{[ss]:t,[qS]:e}=this,{[st]:r}=t,s=this[st][ns]||this[ns]||new Pg("closed",he.getSocketInfo(r));if(t[st]=null,t[YS]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Ys(t[Kwe]===0);let n=t[Jo].splice(t[yn]);for(let i=0;i<n.length;i++){let o=n[i];he.errorRequest(t,o,s)}}}function pNe(){let t=this[ns]||new Pg("closed",he.getSocketInfo(this)),e=this[Wi][ss];e[st]=null,e[YS]=null,this[Wi]!==null&&this[Wi].destroy(t),e[GS]=e[yn],Ys(e[vg]===0),e.emit("disconnect",e[Lg],[e],t),e[jn]()}function ENe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ns]=t,this[ss][Su](t)}function CNe(){he.destroy(this,new Pg("other side closed",he.getSocketInfo(this)))}function INe() Line truncated
`;q9.sendHeaders.publish({request:e,headers:k,socket:s[st]})}let D=n==="GET"||n==="HEAD"||g===null;A?(h[sNe]="100-continue",f=s.request(h,{endStream:D,signal:c}),f[$0]=!0,f.once("continue",v)):(f=s.request(h,{endStream:D,signal:c}),f[$0]=!0,v()),++s[Gs],f.setTimeout(r);let U=!1;return f.once("response",k=>{let{[vS]:O,..._}=k;if(e.onResponseStarted(),U=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(O),OS(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ne=>{e.aborted||e.completed||e.onData(Ne)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),U?(!e.aborted&&!e.completed&&e.onComplete({}),t[Jo][t[yn]++]=null,t[jn]()):(p(new Vo("HTTP/2: stream half-closed (remote)")),t[Jo][t[yn]++]=null,t[GS]=t[yn],t[jn]())}),f.once("close",()=>{f.removeAllListeners("data"),s[Gs]-=1,s[Gs]===0&&s.unref()}),f.once("error",function(k){f.removeAllListeners("data"),p(k)}),f.once("frameError",(k,O)=>{f.removeAllListeners("data"),p(new Vo(`HTTP/2: "frameError" received - type ${k}, code ${O}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Vo(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[Gs]-=1,s[Gs]===0&&s.unref(),p(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function v(){!g||N===0?z9(p,f,null,t,e,t[st],N,y):he.isBuffer(g)?z9(p,f,g,t,e,t[st],N,y):he.isBlobLike(g)?typeof g.stream=="function"?K9(p,f,g.stream(),t,e,t[st],N,y):bNe(p,f,g,t,e,t[st],N,y):he.isStream(g)?yNe(p,t[st],y,f,g,t,e,N):he.isIterable(g)?K9(p,f,g,t,e,t[st],N,y):Ys(!1)}}function z9(t,e,r,s,n,i,o,a){try{r!=null&&he.isBuffer(r)&&(Ys(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[rE]=!0),n.onRequestSent(),s[jn]()}catch(A){t(A)}}function yNe(t,e,r,s,n,i,o,a){Ys(a!==0||i[vg]===0,"stream body cannot be pipelined");let A=Jwe(n,s,u=>{u?(he.destroy(A,u),t(u)):(he.removeAllListeners(A),o.onRequestSent(),r||(e[rE]=!0),i[jn]())});he.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function bNe(t,e,r,s,n,i,o,a){Ys(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new _S;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[rE]=!0),s[jn]()}catch(A){t(A)}}async function K9(t,e,r,s,n,i,o,a){Ys(o!==0||s[vg]===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)=>{Ys(A===null),i[ns]?g(i[ns]):A=d});e.on("close",c).on("drain",c);try{for await(let d of r){if(i[ns])throw i[ns];let g=e.write(d);n.onBodySent(d),g||await u()}e.end(),n.onRequestSent(),a||(i[rE]=!0),s[jn]()}catch(d){t(d)}finally{e.off("close",c).off("drain",c)}}X9.exports=aNe});var jo=m((BXe,oG)=>{"use strict";var zi=Q("node:assert"),rG=Q("node:net"),Og=Q("node:http"),dA=ce(),{ClientStats:wNe}=ON(),{channels:Tu}=_o(),NNe=CH(),SNe=oA(),{InvalidArgumentError:Ke,InformationalError:TNe,ClientDestroyedError:DNe}=oe(),xNe=aA(),{kUrl:Zn,kServerName:Xo,kClient:RNe,kBusy:VS,kConnect:kNe,kResuming:gA,kRunning:Yg,kPending:qg,kSize:_g,kQueue:bn,kConnected:FNe,kConnecting:Du,kNeedDrain:zo,kKeepAliveDefaultTimeout:Z9,kHostHeader:MNe,kPendingIdx:wn,kRunningIdx:Ki,kError:UNe,kPipelining:sE,kKeepAliveTimeoutValue:LNe,kMaxHeadersSize:PNe,kKeepAliveMaxTimeout:vNe,kKeepAliveTimeoutThreshold:ONe,kHeadersTimeout:_Ne,kBodyTimeout:HNe,kStrictContentLength:GNe,kConnector:Hg,kMaxRequests:JS,kCounter:YNe,kClose:qNe,kDestroy:VNe,kDispatch:JNe,kLocalAddress:Gg,kMaxResponseSize:WNe,kOnError:zNe,kHTTPContext:ft,kMaxConcurrentStreams:KNe,kHTTP2InitialWindowSize:XNe,kHTTP2ConnectionWindowSize:jNe,kResume:Ko,kPingInterval:ZNe}=Me(),$Ne=G9(),eSe=j9(),Wo=Symbol("kClosedResolve"),tSe=Og&&Og.maxHeaderSize&&Number.isInteger(Og.maxHeaderSize)&&Og.maxHeaderSize>0?()=>Og.maxHeaderSize:()=>{throw new Ke("http module not available or http.maxHeaderSize invalid")},$9=()=>{};function sG(t){return t[sE]??t[ft]?.defaultPipelining??1}var WS=class extends SNe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:d,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:E,tls:w,strictContentLength:p,maxCachedSessions:y,connect:N,maxRequestsPerClient:D,localAddress:U,maxResponseSize:v,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:O,maxConcurrentStreams:_,allowH2:Ne,useH2c:Ge,initialWindowSize:ue,connectionWindowSize:fe,pingInterval:Ie}={}){if(c!==void 0)throw new Ke("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Ke("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Ke("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new Ke("unsupported idleTimeout, use keepAliveTimeout instead");if(d!==void 0)throw new Ke("unsupported maxK Line truncated
`,this[HNe]=a??3e5,this[_Ne]=s??3e5,this[GNe]=p??!0,this[JS]=D,this[Wo]=null,this[WNe]=v>-1?v:-1,this[ft]=null,this[KNe]=_??100,this[XNe]=ue??262144,this[jNe]=fe??524288,this[ZNe]=Ie??6e4,this[bn]=[],this[Ki]=0,this[wn]=0,this[Ko]=lt=>zS(this,lt),this[zNe]=lt=>nG(this,lt)}get pipelining(){return this[sE]}set pipelining(e){this[sE]=e,this[Ko](!0)}get stats(){return new wNe(this)}get[qg](){return this[bn].length-this[wn]}get[Yg](){return this[wn]-this[Ki]}get[_g](){return this[bn].length-this[Ki]}get[FNe](){return!!this[ft]&&!this[Du]&&!this[ft].destroyed}get[VS](){return!!(this[ft]?.busy(null)||this[_g]>=(sG(this)||1)||this[qg]>0)}[kNe](e){iG(this),this.once("connect",e)}[JNe](e,r){let s=new NNe(this[Zn].origin,e,r);return this[bn].push(s),this[gA]||(dA.bodyLength(s.body)==null&&dA.isIterable(s.body)?(this[gA]=1,queueMicrotask(()=>zS(this))):this[Ko](!0)),this[gA]&&this[zo]!==2&&this[VS]&&(this[zo]=2),this[zo]<2}[qNe](){return new Promise(e=>{this[_g]?this[Wo]=e:e(null)})}[VNe](e){return new Promise(r=>{let s=this[bn].splice(this[wn]);for(let i=0;i<s.length;i++){let o=s[i];dA.errorRequest(this,o,e)}let n=()=>{this[Wo]&&(this[Wo](),this[Wo]=null),r(null)};this[ft]?(this[ft].destroy(e,n),this[ft]=null):queueMicrotask(n),this[Ko]()})}};function nG(t,e){if(t[Yg]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){zi(t[wn]===t[Ki]);let r=t[bn].splice(t[Ki]);for(let s=0;s<r.length;s++){let n=r[s];dA.errorRequest(t,n,e)}zi(t[_g]===0)}}function iG(t){zi(!t[Du]),zi(!t[ft]);let{host:e,hostname:r,protocol:s,port:n}=t[Zn];if(r[0]==="["){let i=r.indexOf("]");zi(i!==-1);let o=r.substring(1,i);zi(rG.isIPv6(o)),r=o}t[Du]=!0,Tu.beforeConnect.hasSubscribers&&Tu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg]}),t[Hg]({host:e,hostname:r,protocol:s,port:n,servername:t[Xo],localAddress:t[Gg]},(i,o)=>{if(i){eG(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}if(t.destroyed){dA.destroy(o.on("error",$9),new DNe),t[Ko]();return}zi(o);try{t[ft]=o.alpnProtocol==="h2"?eSe(t,o):$Ne(t,o)}catch(a){o.destroy().on("error",$9),eG(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}t[Du]=!1,o[YNe]=0,o[JS]=t[JS],o[RNe]=t,o[UNe]=null,Tu.connected.hasSubscribers&&Tu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg],socket:o}),t.emit("connect",t[Zn],[t]),t[Ko]()})}function eG(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Du]=!1,Tu.connectError.hasSubscribers&&Tu.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(zi(t[Yg]===0);t[qg]>0&&t[bn][t[wn]].servername===t[Xo];){let o=t[bn][t[wn]++];dA.errorRequest(t,o,e)}else nG(t,e);t.emit("connectionError",t[Zn],[t],e)}}function tG(t){t[zo]=0,t.emit("drain",t[Zn],[t])}function zS(t,e){t[gA]!==2&&(t[gA]=2,rSe(t,e),t[gA]=0,t[Ki]>256&&(t[bn].splice(0,t[Ki]),t[wn]-=t[Ki],t[Ki]=0))}function rSe(t,e){for(;;){if(t.destroyed){zi(t[qg]===0);return}if(t[Wo]&&!t[_g]){t[Wo](),t[Wo]=null;return}if(t[ft]&&t[ft].resume(),t[VS])t[zo]=2;else if(t[zo]===2){e?(t[zo]=1,queueMicrotask(()=>tG(t))):tG(t);continue}if(t[qg]===0||t[Yg]>=(sG(t)||1))return;let r=t[bn][t[wn]];if(r===null)return;if(t[Zn].protocol==="https:"&&t[Xo]!==r.servername){if(t[Yg]>0)return;t[Xo]=r.servername,t[ft]?.destroy(new TNe("servername changed"),()=>{t[ft]=null,zS(t)})}if(t[Du])return;if(!t[ft]){iG(t);return}if(t[ft].destroyed||t[ft].busy(r))return;!r.aborted&&t[ft].write(r)?t[wn]++:t[bn].splice(t[wn],1)}}oG.exports=WS});var KS=m((yXe,aG)=>{"use strict";var nE=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)}};aG.exports=class{constructor(){this.head=this.tail=new nE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new nE),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 iE=m((bXe,mG)=>{"use strict";var{PoolStats:sSe}=ON(),nSe=oA(),iSe=KS(),{kConnected:XS,kSize:AG,kRunning:cG,kPending:uG,kQueued:Vg,kBusy:oSe,kFree:aSe,kUrl:ASe,kClose:cSe,kDestroy:uSe,kDispatch:lSe}=Me(),Pt=Symbol("clients"),dr=Symbol("needDrain"),Jg=Symbol("queue"),jS=Symbol("closed resolve"),ZS=Symbol("onDrain"),lG=Symbol("onConnect"),dG=Symbol("onDisconnect"),gG=Symbol("onConnectionError"),$S=Symbol("get dispatcher"),hG=Symbol("add client"),fG=Symbol("remove client"),eT=class extends nSe{[Jg]=new iSe;[Vg]=0;[Pt]=[];[dr]=!1;[ZS](e,r,s){let n=this[Jg],i=!1;for(;!i;){let o=n.shift();if(!o)break;this[Vg]--,i Line truncated
`,"latin1"),r!==null&&n!==r){if(s[ZD])throw new HA;process.emitWarning(new HA)}e[it].timeout&&e[it].timeoutType===gl&&e[it].timeout.refresh&&e[it].timeout.refresh(),s[po]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ha]=!1,e&&(ie(s[vt]<=1,"pipeline should only contain this request"),n(e))}};YY.exports=sTe});var $Y=p((qet,ZY)=>{"use strict";var un=w("node:assert"),{pipeline:fTe}=w("node:stream"),Qe=me(),{RequestContentLengthMismatchError:aT,RequestAbortedError:mTe,SocketError:Uh,InformationalError:fa,InvalidArgumentError:pTe,HeadersTimeoutError:ETe,BodyTimeoutError:CTe}=le(),{kUrl:Mh,kReset:oC,kClient:bs,kRunning:Lh,kPending:ITe,kQueue:Rh,kPendingIdx:qA,kRunningIdx:mi,kError:ws,kSocket:ft,kStrictContentLength:BTe,kOnError:hl,kMaxConcurrentStreams:AT,kPingInterval:JY,kHTTP2Session:Eo,kHTTP2InitialWindowSize:QTe,kHTTP2ConnectionWindowSize:yTe,kResume:pi,kSize:bTe,kHTTPContext:uT,kClosed:cT,kBodyTimeout:wTe,kHeadersTimeout:NTe,kEnableConnectProtocol:kh,kRemoteSettings:Fh,kHTTP2Stream:nC,kHTTP2SessionState:lT}=Ye(),{channels:VY}=la(),cn=Symbol("open streams"),WY,iC;try{iC=w("node:http2")}catch{iC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:STe,HTTP2_HEADER_METHOD:zY,HTTP2_HEADER_PATH:KY,HTTP2_HEADER_SCHEME:nT,HTTP2_HEADER_CONTENT_LENGTH:DTe,HTTP2_HEADER_EXPECT:TTe,HTTP2_HEADER_STATUS:iT,HTTP2_HEADER_PROTOCOL:xTe,NGHTTP2_REFUSED_STREAM:RTe,NGHTTP2_CANCEL:kTe}}=iC;function oT(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 FTe(t,e){t[ft]=e;let r=t[QTe],s=t[yTe],n=iC.connect(t[Mh],{createConnection:()=>e,peerMaxConcurrentStreams:t[AT],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[ft]=e,n[cn]=0,n[bs]=t,n[ft]=e,n[lT]={ping:{interval:t[JY]===0?null:setInterval(vTe,t[JY],n).unref()}},n[kh]=!1,n[Fh]=!1,s&&Qe.addListener(n,"connect",UTe.bind(n,s)),Qe.addListener(n,"error",PTe),Qe.addListener(n,"frameError",OTe),Qe.addListener(n,"end",HTe),Qe.addListener(n,"goaway",_Te),Qe.addListener(n,"close",GTe),Qe.addListener(n,"remoteSettings",LTe),n.unref(),t[Eo]=n,e[Eo]=n,Qe.addListener(e,"error",qTe),Qe.addListener(e,"end",JTe),Qe.addListener(e,"close",YTe),e[cT]=!1,e.on("close",VTe),{version:"h2",defaultPipelining:1/0,write(i){return zTe(t,i)},resume(){MTe(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[Lh]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Fh]===!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[Fh]===!1;return!1}}}function MTe(t){let e=t[ft];e?.destroyed===!1&&(t[bTe]===0?(e.unref(),t[Eo].unref()):(e.ref(),t[Eo].ref()))}function UTe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function LTe(t){if(this[bs][AT]=t.maxConcurrentStreams??this[bs][AT],this[Fh]===!0&&this[kh]===!0&&t.enableConnectProtocol===!1){let e=new fa("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[ft][ws]=e,this[bs][hl](e);return}this[kh]=t.enableConnectProtocol??this[kh],this[Fh]=!0,this[bs][pi]()}function vTe(t){let e=t[lT];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[bs],o=this[bs];if(s!=null){let a=new fa(`HTTP/2: "PING" errored - type ${s.message}`);o[ws]=a,i[hl](a)}else i.emit("ping",n)}}function PTe(t){un(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ft][ws]=t,this[bs][hl](t)}function OTe(t,e,r){if(r===0){let s=new fa(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[ft][ws]=s,this[bs][hl](s)}}function HTe(){let t=new Uh("other side closed",Qe.getSocketInfo(this[ft]));this.destroy(t),Qe.destroy(this[ft],t)}function xh(t,e,r=!1){let s=t[Rh],n=t[mi];if(n<t[qA]&&s[n]===e){s[n]=null,t[mi]=n+1;return}let i=s.indexOf(e,n);i===-1||i>=t[qA]||(s.splice(i,1),t[qA]--,r&&t[qA]<t[mi]&&(t[qA]=t[mi]))}function _Te(t){let e=this[ws]||new Uh(`HTTP/2: "GOAWAY" frame received with code ${t}`,Qe.getSocketInfo(this[ft])),r=this[bs];if(r[ft]=null,r[uT]=null,this.close(),this[Eo]=null,Qe.destroy(this[ft],e),r[mi]<r[Rh].length){let s=r[Rh][r[mi]];r[Rh][r[mi]++]=null,s!=null&&Qe.errorRequest(r,s,e),r[qA]=r[mi]}un(r[Lh]===0),r.emit("disconnect",r[Mh],[r],e),r.emit("connectionError",r[Mh],[r],e),r[pi]()}function GTe(){let{[bs]:t,[lT]:e}=this,{[ft]:r}=t,s=this[ft][ws]||this[ws]||new Uh("closed",Qe.getSocketInfo(r));if(t[ft]=null,t[uT]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){un(t[ITe]===0);let n=t[Rh].splice(t[mi]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&Qe.errorRequest(t,o,s)}}}function YTe(){let t=this[ws]||new Uh("closed",Qe.getSocketInfo(this)),e=this[Eo][bs];e[ft]=null,e[uT]=null,this[Eo]!==null&&this[Eo].destro Line truncated
`;VY.sendHeaders.publish({request:e,headers:O,socket:n[ft]})}let F=i==="GET"||i==="HEAD"||h===null;c?(f[TTe]="100-continue",m=n.request(f,{endStream:F,signal:u}),m[nC]=!0,m.once("continue",Y)):(m=n.request(f,{endStream:F,signal:u}),m[nC]=!0,Y()),++n[cn],m.setTimeout(r);let L=!1;return m.once("response",O=>{let{[iT]:v,...de}=O;if(e.onResponseStarted(),L=!0,m.setTimeout(s),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(v),oT(de),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",Ce=>{e.aborted||e.completed||e.onData(Ce)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),L?(!e.aborted&&!e.completed&&e.onComplete({}),xh(t,e),t[pi]()):(b(new fa("HTTP/2: stream half-closed (remote)")),xh(t,e,!0),t[pi]())}),m.once("close",()=>{m.removeAllListeners("data"),n[cn]-=1,n[cn]===0&&n.unref(),!e.aborted&&!e.completed&&b(new fa("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(O){m.removeAllListeners("data"),b(O)}),m.once("frameError",(O,v)=>{m.removeAllListeners("data"),b(new fa(`HTTP/2: "frameError" received - type ${O}, code ${v}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let O=L?new CTe(`HTTP/2: "body timeout after ${s}"`):new ETe(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),n[cn]-=1,n[cn]===0&&n.unref(),b(O)}),m.once("trailers",O=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(O))}),!0;function Y(){!h||R===0?XY(b,m,null,t,e,t[ft],R,S):Qe.isBuffer(h)?XY(b,m,h,t,e,t[ft],R,S):Qe.isBlobLike(h)?typeof h.stream=="function"?jY(b,m,h.stream(),t,e,t[ft],R,S):XTe(b,m,h,t,e,t[ft],R,S):Qe.isStream(h)?KTe(b,t[ft],S,m,h,t,e,R):Qe.isIterable(h)?jY(b,m,h,t,e,t[ft],R,S):un(!1)}}function XY(t,e,r,s,n,i,o,a){try{r!=null&&Qe.isBuffer(r)&&(un(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[oC]=!0),n.onRequestSent(),s[pi]()}catch(A){t(A)}}function KTe(t,e,r,s,n,i,o,a){un(a!==0||i[Lh]===0,"stream body cannot be pipelined");let A=fTe(n,s,u=>{u?(Qe.destroy(A,u),t(u)):(Qe.removeAllListeners(A),o.onRequestSent(),r||(e[oC]=!0),i[pi]())});Qe.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function XTe(t,e,r,s,n,i,o,a){un(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[oC]=!0),s[pi]()}catch(A){t(A)}}async function jY(t,e,r,s,n,i,o,a){un(o!==0||s[Lh]===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)=>{un(A===null),i[ws]?g(i[ws]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ws])throw i[ws];let g=e.write(l);n.onBodySent(l),g||await u()}e.end(),n.onRequestSent(),a||(i[oC]=!0),s[pi]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}ZY.exports=FTe});var Ca=p((Jet,aq)=>{"use strict";var Co=w("node:assert"),sq=w("node:net"),vh=w("node:http"),JA=me(),{ClientStats:jTe}=nD(),{channels:fl}=la(),ZTe=pG(),$Te=UA(),{InvalidArgumentError:ot,InformationalError:e2e,ClientDestroyedError:t2e}=le(),r2e=LA(),{kUrl:Ei,kServerName:Ea,kClient:s2e,kBusy:gT,kConnect:n2e,kResuming:VA,kRunning:_h,kPending:Gh,kSize:Ph,kQueue:Jn,kConnected:i2e,kConnecting:ml,kNeedDrain:pa,kKeepAliveDefaultTimeout:eq,kHostHeader:o2e,kPendingIdx:Vn,kRunningIdx:Bo,kError:a2e,kPipelining:aC,kKeepAliveTimeoutValue:A2e,kMaxHeadersSize:c2e,kKeepAliveMaxTimeout:u2e,kKeepAliveTimeoutThreshold:l2e,kHeadersTimeout:d2e,kBodyTimeout:g2e,kStrictContentLength:h2e,kConnector:Oh,kMaxRequests:hT,kCounter:f2e,kClose:m2e,kDestroy:p2e,kDispatch:E2e,kLocalAddress:Hh,kMaxResponseSize:C2e,kOnError:I2e,kHTTPContext:Dt,kMaxConcurrentStreams:B2e,kHTTP2InitialWindowSize:Q2e,kHTTP2ConnectionWindowSize:y2e,kResume:Io,kPingInterval:b2e}=Ye(),w2e=qY(),N2e=$Y(),ma=Symbol("kClosedResolve"),S2e=vh&&vh.maxHeaderSize&&Number.isInteger(vh.maxHeaderSize)&&vh.maxHeaderSize>0?()=>vh.maxHeaderSize:()=>{throw new ot("http module not available or http.maxHeaderSize invalid")},tq=()=>{};function nq(t){return t[aC]??t[Dt]?.defaultPipelining??1}var fT=class extends $Te{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:L,autoSelectFamily:Y,autoSelectFamilyAttemptTimeout:O,maxConcurrentStreams:v,allowH2:de,useH2c:Ce,initialWindowSize:ce,connectionWindowSize:ae,pingInterval:Ie,webSocket:gt}={}){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[g2e]=a??3e5,this[d2e]=s??3e5,this[h2e]=E??!0,this[hT]=R,this[ma]=null,this[C2e]=L>-1?L:-1,this[Dt]=null,this[B2e]=v??100,this[Q2e]=ce??262144,this[y2e]=ae??524288,this[b2e]=Ie??6e4,this[Jn]=[],this[Bo]=0,this[Vn]=0,this[Io]=mt=>mT(this,mt),this[I2e]=mt=>iq(this,mt)}get pipelining(){return this[aC]}set pipelining(e){this[aC]=e,this[Io](!0)}get stats(){return new jTe(this)}get[Gh](){return this[Jn].length-this[Vn]}get[_h](){return this[Vn]-this[Bo]}get[Ph](){return this[Jn].length-this[Bo]}get[i2e](){return!!this[Dt]&&!this[ml]&&!this[Dt].destroyed}get[gT](){return!!(this[Dt]?.busy(null)||this[Ph]>=(nq(this)||1)||this[Gh]>0)}[n2e](e){oq(this),this.once("connect",e)}[E2e](e,r){let s=new ZTe(this[Ei].origin,e,r);return this[Jn].push(s),this[VA]||(JA.bodyLength(s.body)==null&&JA.isIterable(s.body)?(this[VA]=1,queueMicrotask(()=>mT(this))):this[Io](!0)),this[VA]&&this[pa]!==2&&this[gT]&&(this[pa]=2),this[pa]<2}[m2e](){return new Promise(e=>{this[Ph]?this[ma]=e:e(null)})}[p2e](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&&JA.errorRequest(this,o,e)}let n=()=>{this[ma]&&(this[ma](),this[ma]=null),r(null)};this[Dt]?(this[Dt].destroy(e,n),this[Dt]=null):queueMicrotask(n),this[Io]()})}};function iq(t,e){if(t[_h]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Co(t[Vn]===t[Bo]);let r=t[Jn].splice(t[Bo]);for(let s=0;s<r.length;s++){let n=r[s];n!=null&&JA.errorRequest(t,n,e)}Co(t[Ph]===0)}}function oq(t){Co(!t[ml]),Co(!t[Dt]);let{host:e,hostname:r,protocol:s,port:n}=t[Ei];if(r[0]==="["){let i=r.indexOf("]");Co(i!==-1);let o=r.substring(1,i);Co(sq.isIPv6(o)),r=o}t[ml]=!0,fl.beforeConnect.hasSubscribers&&fl.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Dt]?.version,servername:t[Ea],localAddress:t[Hh]},connector:t[Oh]});try{t[Oh]({host:e,hostname:r,protocol:s,port:n,servername:t[Ea],localAddress:t[Hh]},(i,o)=>{if(i){dT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Io]();return}if(t.destroyed){JA.destroy(o.on("error",tq),new t2e),t[Io]();return}Co(o);try{t[Dt]=o.alpnProtocol==="h2"?N2e(t,o):w2e(t,o)}catch(a){o.destroy().on("error",tq),dT(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Io]();return}t[ml]=!1,o[f2e]=0,o[hT]=t[hT],o[s2e]=t,o[a2e]=null,fl.connected.hasSubscribers&&fl.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Dt]?.version,servername:t[Ea],localAddress:t[Hh]},connector:t[Oh],socket:o}),t.emit("connect",t[Ei],[t]),t[Io]()})}catch(i){dT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Io]()}}function dT(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[ml]=!1,fl.connectError.hasSubscribers&&fl.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[Dt]?.version,servername:t[Ea],localAddress:t[Hh]},connector:t[Oh],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Co(t[_h]===0);t[Gh]>0&&t[Jn][t[Vn]].servername===t[Ea];){let o=t[Jn][t[Vn]++];JA.errorRequest(t,o,e)}else iq(t,e);t.emit("connectionError",t[Ei],[t],e)}}function rq(t){t[pa]=0,t.emit("drain",t[Ei],[t])}function mT(t,e){t[VA]!==2&&(t[VA]=2,D2e(t,e),t[VA]=0,t[Bo]>256&&(t[Jn].splice(0,t[Bo]),t[Vn]-=t[Bo],t[Bo]=0))}function D2e(t,e){for(;;){if(t.destroyed){Co(t[Gh]===0);return}if(t[ma]&&!t[Ph]){t[ma](),t[ma]=null;return}if(t[Dt]&&t[Dt].resume(),t[gT])t[pa]=2;else if(t[pa]===2){e?(t[pa]=1,queueMicrotask(()=>rq(t))):rq(t);continue}if(t[Gh]===0||t[_h]>=(nq(t)||1))return;let r=t[Jn][t[Vn]];if(r===null)return;if(t[Ei].protocol==="https:"&&t[Ea]!==r.servername){if(t[_h]>0)return;t[Ea]=r.servername,t[Dt]?.destroy(new e2e("servername changed"),()=>{t[Dt]=null,mT(t)})}if(t[ml])return;if(!t[Dt]){oq(t);return}if(t[Dt].destroyed||t[Dt].busy(r))return;!r.aborted&&t[Dt].write(r)?t[Vn]++:t[Jn].splice(t[Vn],1)}}aq.exports=fT});var pT=p((Wet,Aq)=>{"use strict";var AC=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)}};Aq.exports=class{constructor(){this.head=this.tail=new AC}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new AC),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 cC=p((zet,pq)=>{"use strict";var{PoolStats:T2e}=nD(),x2e=UA(),R2e=pT(),{kConnected:ET,kSize:cq,kRunning:uq,kPending:lq,kQueued:Yh,kBusy:k2e,kFree:F2e,kUrl:M2e,kClose:U2e,kDestroy:L2e,kDispatch:v2e}=Ye(),Zt=Symbol("clients"),xr=Symbol("needDrain"),qh=Symbol("queue"),CT=Symbol("closed resolve"),IT=Symbol("onDrain"),dq=Symbol("onConnect"),gq=Symbol("onDisconnect"),hq=Symbol("onConnectionError"),BT=Symbol("get dispatcher"),fq=Symbol("add client"),mq=Symbol("remove client"),QT=class extends x2e{[qh]=new R2e;[Yh]=0;[Zt]=[];[xr] Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{InvalidArgumentError:ADe}=oe(),{runtimeFeatures:cDe}=Vi();function uDe(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 Oq=cDe.has("crypto")?Q("node:crypto"):null,lDe=Oq?.hash?t=>Oq.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Hq(t){return Array.isArray(t)&&(t.length&1)===0}function dDe(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 gDe(t){let e={};if(!t)return e;if(Hq(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 _q=["record","playback","update"];function hDe(t){if(!_q.includes(t))throw new ADe(`Invalid snapshot mode: ${t}. Must be one of: ${_q.join(", ")}`)}Gq.exports={createHeaderFilters:uDe,hashId:lDe,isUndiciHeaders:Hq,normalizeHeaders:gDe,isUrlExcludedFactory:dDe,validateSnapshotMode:hDe}});var jq=m((rje,Xq)=>{"use strict";var{writeFile:fDe,readFile:mDe,mkdir:pDe}=Q("node:fs/promises"),{dirname:EDe,resolve:Yq}=Q("node:path"),{setTimeout:CDe,clearTimeout:qq}=Q("node:timers"),{InvalidArgumentError:Vq,UndiciError:IDe}=oe(),{hashId:BDe,isUrlExcludedFactory:QDe,normalizeHeaders:Jq,createHeaderFilters:Wq}=p2();function oh(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||Jq(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:zq(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function zq(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 Kq(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 ah(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 BDe(r)}var E2=class{#e;#t;#r=new Map;#s;#i=1/0;#n=!1;#a;constructor(e={}){this.#s=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=Wq(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=QDe(e.excludeUrls),this.#n&&this.#s&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=oh(e,this.#a,this.matchOptions),n=ah(s),i=Jq(r.headers),o={statusCode:r.statusCode,headers:Kq(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.#n&&this.#s&&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=oh(e,this.#a,this.matchOptions),s=ah(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.#s;if(!r)throw new Vq("Snapshot path is required");try{let s=await mDe(Yq(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 IDe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#s;if(!r)throw new Vq("Snapshot path is required");let s=Yq(r);await pDe(EDe(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await fDe(s,JSON.stringify(n,null,2),{flush:!0}) Line truncated
${e.format(r)}`.trim())}};GV.exports=H2});var G2=p((wtt,VV)=>{"use strict";var{InvalidArgumentError:Fke}=le(),{runtimeFeatures:Mke}=fo();function Uke(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 YV=Mke.has("crypto")?w("node:crypto"):null,Lke=YV?.hash?t=>YV.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function JV(t){return Array.isArray(t)&&(t.length&1)===0}function vke(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 Pke(t){let e={};if(!t)return e;if(JV(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 qV=["record","playback","update"];function Oke(t){if(!qV.includes(t))throw new Fke(`Invalid snapshot mode: ${t}. Must be one of: ${qV.join(", ")}`)}VV.exports={createHeaderFilters:Uke,hashId:Lke,isUndiciHeaders:JV,normalizeHeaders:Pke,isUrlExcludedFactory:vke,validateSnapshotMode:Oke}});var t7=p((Ntt,e7)=>{"use strict";var{writeFile:Hke,readFile:_ke,mkdir:Gke}=w("node:fs/promises"),{dirname:Yke,resolve:WV}=w("node:path"),{setTimeout:qke,clearTimeout:zV}=w("node:timers"),{InvalidArgumentError:KV,UndiciError:Jke}=le(),{hashId:Vke,isUrlExcludedFactory:Wke,normalizeHeaders:XV,createHeaderFilters:jV}=G2();function sf(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||XV(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:ZV(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function ZV(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 $V(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 nf(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 Vke(r)}var Y2=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=jV(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Wke(e.excludeUrls),this.#s&&this.#n&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=sf(e,this.#a,this.matchOptions),n=nf(s),i=XV(r.headers),o={statusCode:r.statusCode,headers:$V(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=sf(e,this.#a,this.matchOptions),s=nf(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 KV("Snapshot path is required");try{let s=await _ke(WV(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 Jke(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#n;if(!r)throw new KV("Snapshot path is required");let s=WV(r);await Gke(Yke(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Hke(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${as} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Ss} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -117,9 +117,9 @@ ${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{I
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${as}_getValuesQuery ON cacheInterceptorV${as}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${as}_deleteByUrlQuery ON cacheInterceptorV${as}(deleteAt);
`),this.#s=this.#r.prepare(`
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Ss}_getValuesQuery ON cacheInterceptorV${Ss}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Ss}_deleteByUrlQuery ON cacheInterceptorV${Ss}(deleteAt);
`),this.#n=this.#r.prepare(`
SELECT
id,
body,
@@ -132,14 +132,14 @@ ${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{I
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${as}
FROM cacheInterceptorV${Ss}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#i=this.#r.prepare(`
UPDATE cacheInterceptorV${as} SET
UPDATE cacheInterceptorV${Ss} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -151,8 +151,8 @@ ${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{I
staleAt = ?
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${as} (
`),this.#s=this.#r.prepare(`
INSERT INTO cacheInterceptorV${Ss} (
url,
method,
body,
@@ -166,55 +166,58 @@ ${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{I
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${as} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${as}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${as} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${as}
`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${Ss} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Ss}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${Ss} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${Ss}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${as}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${Ss}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){_2(e);let r=this.#l(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){_2(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(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.#d(),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))}createWriteStream(e,r){_2(e),ARe(r);let s=0,n=[],i=this;return new aRe({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.#u(e))}#d(){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}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(e),{headers:n,method:i}=e,o=this.#s.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let d in u)if(!cRe(n[d],u[d])){c=!1;break}}if(c)return A}}};function cRe(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var SA=m((bje,nJ)=>{"use strict";var{kConstruct:uRe}=Me(),{kEnumerableProperty:qu}=ce(),{iteratorMixin:lRe,isValidHeaderName:lh,isValidHeaderValue:$V}=rs(),{webidl:ye}=Yt(),G2=Q("node:assert"),LE=Q("node:util");function ZV(t){return t===10||t===13||t===9||t===32}function eJ(t){let e=0,r=t.length;for(;r>e&&ZV(t.charCodeAt(r-1));)--r;for(;r>e&&ZV(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function tJ(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw ye.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});Y2(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)Y2(t,r[s],e[r[s]])}else throw ye.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Y2(t,e,r){if(r=eJ(r),lh(e)){if(!$V(r))throw ye.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ye.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(sJ(t)==="immutable")throw new TypeError("immutable");return vE(t).append(e,r,!1)}function dRe(t){let e=vE(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 rJ(t,e){return t[0]<e[0]?-1:1}var PE=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.values()}get entriesList(){let e=[];if(this.headersMap.size!==0)for(let Line truncated
${i}`;break;case"retry":lW(i)&&(r[n]=i);break;case"id":dW(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&lW(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&dW(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}}};gW.exports={EventSourceStream:ND}});var QW=m((Kje,BW)=>{"use strict";var{pipeline:DUe}=Q("node:stream"),{fetching:xUe}=mh(),{makeRequest:RUe}=Ju(),{webidl:hr}=Yt(),{EventSourceStream:kUe}=hW(),{parseMIMEType:FUe}=vs(),{createFastMessageEvent:MUe}=cC(),{isNetworkError:fW}=gh(),{kEnumerableProperty:UA}=ce(),{environmentSettingsObject:mW}=rs(),pW=!1,EW=3e3,yh=0,CW=1,bh=2,UUe="anonymous",LUe="use-credentials",rl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#s=yh;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),hr.util.markAsUncloneable(this);let s="EventSource constructor";hr.argumentLengthCheck(arguments,1,s),pW||(pW=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hr.converters.USVString(e),r=hr.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=mW,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=UUe;r.withCredentials===!0&&(o=LUe,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=mW.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=RUe(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===bh)return;this.#s=yh;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!fW(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(fW(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?FUe(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.#s=CW,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new kUe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(MUe(A.type,A.options))}});DUe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=xUe(e)}#c(){this.#s!==bh&&(this.#s=yh,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#s===yh&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){hr.brandCheck(this,t),this.#s!==bh&&(this.#s=bh,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=hr.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=hr.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=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},IW={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:yh,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:CW,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:bh,writable:!1}};Object.defineProperties(rl,IW);Object.defineProperties(rl.prototype,IW);Object.defineProperties(rl.prototype,{close:UA,onerror:UA,onmessage:UA,onopen:UA,readyState:UA,url:UA,withCredentials:UA});hr.converters.EventSourceInitDict=hr.dictionaryConverter([{key:"withCredentials",converter:hr.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:hr.converters.any},{key:"node",converter:hr.dictionaryConverter([{key:"reconnectionTime",converter:hr.converters["unsigned long"],defaultValue:()=>EW},{key:"dispatcher",converter:hr.converters.any}]),defaultValue:()=>({})}]);BW.exports={EventSource:rl,defaultReconnectionTime:EW}});var TW=m((Xje,H)=>{"use strict";var PUe=jo(),bW=Qg(),vUe=hA(),OUe=bG(),_Ue=TG(),HUe=pA(),GUe=IT(),YUe=mT(),qUe=lY(),VUe=pY(),JUe=IY(),wW=oe(),QC=ce(),{InvalidArgumentError:BC}=wW,sl=tq(),WUe=aA(),zUe=n2(),{MockCallHistory:KUe,MockCallHistoryLog:XUe}=a2(),jUe=m2( Line truncated
`)}close(){this.#r.close()}get(e){Ex(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){Ex(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){Ex(e),jMe(r);let s=0,n=[],i=this;return new XMe({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(!ZMe(n[l],u[l])){c=!1;break}}if(c)return A}}};function ZMe(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 dc=p((ztt,wW)=>{"use strict";var{kConstruct:$Me}=Ye(),{kEnumerableProperty:kl}=me(),{iteratorMixin:eUe,isValidHeaderName:uf,isValidHeaderValue:IW}=Qs(),{webidl:Fe}=nr(),Ix=w("node:assert"),_C=w("node:util");function CW(t){return t===10||t===13||t===9||t===32}function BW(t){let e=0,r=t.length;for(;r>e&&CW(t.charCodeAt(r-1));)--r;for(;r>e&&CW(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function QW(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=BW(r),uf(e)){if(!IW(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(bW(t)==="immutable")throw new TypeError("immutable");return YC(t).append(e,r,!1)}function tUe(t){let e=YC(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 yW(t,e){return t[0]<e[0]?-1:1}var GC=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(NI(e,n,Q3e)){y3e(e,i)&&(r.retry=e.toString("utf8",i));return}if(NI(e,n,B3e)){b3e(e,i)&&(r.id=e.toString("utf8",i));return}if(NI(e,n,I3e)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&f3e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&m3e(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===ql[0]||(this.checkBOM=!1),!0):s===void 0?e===ql[0]&&r===ql[1]?!0:(this.checkBOM=!1,!1):(e===ql[0]&&r===ql[1]&&s===ql[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};xK.exports={EventSourceStream:aR}});var OK=p((Crt,PK)=>{"use strict";var{pipeline:w3e}=w("node:stream"),{fetching:N3e}=ff(),{makeRequest:S3e}=Ml(),{webidl:kr}=nr(),{EventSourceStream:D3e}=RK(),{parseMIMEType:T3e}=on(),{createFastMessageEvent:x3e}=hI(),{isNetworkError:kK}=df(),{kEnumerableProperty:Ic}=me(),{environmentSettingsObject:FK}=Qs(),MK=!1,UK=3e3,Qf=0,LK=1,yf=2,R3e="anonymous",k3e="use-credentials",Jl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#n=Qf;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),kr.util.markAsUncloneable(this);let s="EventSource constructor";kr.argumentLengthCheck(arguments,1,s),MK||(MK=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=kr.converters.USVString(e),r=kr.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=FK,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=R3e;r.withCredentials===!0&&(o=k3e,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=FK.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=S3e(a),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===yf)return;this.#n=Qf;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!kK(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(kK(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?T3e(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=LK,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new D3e({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(x3e(A.type,A.options))}});w3e(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=N3e(e)}#c(){this.#n!==yf&&(this.#n=Qf,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#n Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:n.stack}H.exports.fetch=function(e,r=void 0){return oLe(e,r).catch(s=>{throw yW?SW(s,yW):s&&typeof s=="object"&&Error.captureStackTrace(s,H.exports.fetch),s})};H.exports.Headers=SA().Headers;H.exports.Response=gh().Response;H.exports.Request=Ju().Request;H.exports.FormData=V0().FormData;var{setGlobalOrigin:aLe,getGlobalOrigin:ALe}=iS();H.exports.setGlobalOrigin=aLe;H.exports.getGlobalOrigin=ALe;var{CacheStorage:cLe}=a7(),{kConstruct:uLe}=Me();H.exports.caches=new cLe(uLe);var{deleteCookie:lLe,getCookies:dLe,getSetCookies:gLe,setCookie:hLe,parseCookie:fLe}=I7();H.exports.deleteCookie=lLe;H.exports.getCookies=dLe;H.exports.getSetCookies=gLe;H.exports.setCookie=hLe;H.exports.parseCookie=fLe;var{parseMIMEType:mLe,serializeAMimeType:pLe}=vs();H.exports.parseMIMEType=mLe;H.exports.serializeAMimeType=pLe;var{CloseEvent:ELe,ErrorEvent:CLe,MessageEvent:ILe}=cC(),{WebSocket:BLe,ping:QLe}=eW();H.exports.WebSocket=BLe;H.exports.CloseEvent=ELe;H.exports.ErrorEvent=CLe;H.exports.MessageEvent=ILe;H.exports.ping=QLe;H.exports.WebSocketStream=AW().WebSocketStream;H.exports.WebSocketError=BD().WebSocketError;H.exports.request=wh(sl.request);H.exports.stream=wh(sl.stream);H.exports.pipeline=wh(sl.pipeline);H.exports.connect=wh(sl.connect);H.exports.upgrade=wh(sl.upgrade);H.exports.MockClient=zUe;H.exports.MockCallHistory=KUe;H.exports.MockCallHistoryLog=XUe;H.exports.MockPool=ZUe;H.exports.MockAgent=jUe;H.exports.SnapshotAgent=$Ue;H.exports.mockErrors=eLe;var{EventSource:yLe}=QW();H.exports.EventSource=yLe;function bLe(){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=bLe});var Nh=m(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 xW=m(($je,DW)=>{"use strict";var{asciiLowercase:yC,solelyContainsHTTPTokenCodePoints:wLe,soleyContainsHTTPQuotedStringTokenCodePoints:NLe}=Nh();DW.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=yC(String(e)),this._map.get(e)}has(e){return e=yC(String(e)),this._map.has(e)}set(e,r){if(e=yC(String(e)),r=String(r),!wLe(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!NLe(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=yC(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 FW=m((eZe,kW)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:SLe,removeTrailingHTTPWhitespace:RW,isHTTPWhitespaceChar:TLe,solelyContainsHTTPTokenCodePoints:SD,soleyContainsHTTPQuotedStringTokenCodePoints:DLe,asciiLowercase:TD,collectAnHTTPQuotedString:xLe}=Nh();kW.exports=t=>{t=SLe(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!SD(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=RW(s),s.length===0||!SD(s))return null;let n={type:TD(r),subtype:TD(s),parameters:new Map};for(;e<t.length;){for(++e;TLe(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=TD(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=xLe(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=RW(o),o==="")continue}i.length>0&&SD(i)&&DLe(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var UW=m((tZe,MW)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:RLe}=Nh();MW.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+="=",(!RLe(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var OW=m((sZe,vW)=>{"use strict";var kLe=xW(),FLe=FW(),MLe=UW(),{asciiLowercase:LW,solelyContainsHTTPTokenCodePoints:PW}=Nh();vW.exports=class{constructor(e){e=String(e);let r=FLe(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 kLe(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=LW(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!PW(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=LW(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!PW(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return MLe(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 KW=m(SC=>{"use strict";Object.defineProperty(SC,"__esModule",{value:!0});SC.getProxyUrl=XLe;SC.checkBypass=zW;function XLe(t){let e=t.protocol==="https:";if(zW(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 NC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new NC(`http://${r}`)}else return}function zW(t){if(!t.hostname)return!1;let e=t.hostname;if(jLe(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`,U,U,y,s);var v=y.type==="*"?sx:y.type==="?"?rx:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+v+"\\("+U}f(),i&&(s+="\\\\");var k=!1;switch(s.charAt(0)){case"[":case".":case"(":k=!0}for(var O=a.length-1;O>-1;O--){var _=a[O],Ne=s.slice(0,_.reStart),Ge=s.slice(_.reStart,_.reEnd-8),ue=s.slice(_.reEnd-8,_.reEnd),fe=s.slice(_.reEnd);ue+=fe;var Ie=Ne.split("(").length-1,lt=fe;for(E=0;E<Ie;E++)lt=lt.replace(/\)[+*?]?/,"");fe=lt;var Es="";fe===""&&e!==LC&&(Es="$");var Ia=Ne+Ge+fe+Es+ue;s=Ia}if(s!==""&&n&&(s="(?=.)"+s),k&&(s=g+s),e===LC)return[s,n];if(!n)return _3e(t);var Ba=r.nocase?"i":"";try{var pB=new RegExp("^"+s+"$",Ba)}catch{return new RegExp("$.")}return pB._glob=t,pB._src=s,pB}ds.makeRe=function(t,e){return new bt(t,e||{}).makeRe()};bt.prototype.makeRe=O3e;function O3e(){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?sx:e.dot?R3e:k3e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===vA?r:typeof o=="string"?H3e(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}ds.match=function(t,e,r){r=r||{};var s=new bt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};bt.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;Rh.sep!=="/"&&(e=e.split(Rh.sep).join("/")),e=e.split(iK),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};bt.prototype.matchOne=function(t,e,r){return e.indexOf(vA)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};bt.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===vA){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===vA){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 d=t.slice(s,s+A.length);if(!this._matchOne(d,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 E=String(t[i]);if(f=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return r||f}for(var w=[[[],0]],p=w[0],y=0,N=[0],D=0;D<c.length;D++){var U=c[D];U===vA?(N.push(y),p=[[],0],w.push(p)):(p[0].push(U),y++)}for(var v=w.length-1,k=t.length-g,O=0;O<w.length;O++)w[O][1]=k-(N[v--]+w[O][0].length);return!!this._matchGlobStarBodySections(t,w,s,0,r,0,!!g)};bt.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],d=a[1];r<=d;){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};bt.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===vA)return!1;var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)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 _3e(t){return t.replace(/\\(.)/g,"$1")}function H3e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Al=m((tet,uK)=>{"use strict";var J3e="2.0.0",W3e=Number.MAX_SAFE_INTEGER||9007199254740991,z3e=16,K3e=250,X3e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uK.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:z3e,MAX_SAFE_BUILD_LENGTH:K3e,MAX_SAFE_INTEGER:W3e,RELEASE_TYPES:X3e,SEMVER_SPEC_VERSION:J3e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var kh=m((ret,lK)=>{"use strict";var j3e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};lK.exports=j3e});var cl=m((ci,dK)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:nx,MAX_SAFE_BUILD_LENGTH:Z3e,MAX_LENGTH:$3e}=Al(),eve=kh();ci=dK.exports={};var tve=ci.re=[],rve=ci.safeRe=[],G=ci.src=[],sve=ci.safeSrc=[],Y=ci.t={},nve=0,ix="[a-zA-Z0-9-]",ive=[["\\s",1],["\\d",$3e],[ix,Z3e]],ove=t=>{for(let[e,r]of ive)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
${i}`:n.stack}q.exports.fetch=function(e,r=void 0){return r8e(e,r).catch(s=>{throw HK?qK(s,HK):s&&typeof s=="object"&&Error.captureStackTrace(s,q.exports.fetch),s})};q.exports.Headers=dc().Headers;q.exports.Response=df().Response;q.exports.Request=Ml().Request;q.exports.FormData=K0().FormData;var{setGlobalOrigin:s8e,getGlobalOrigin:n8e}=wD();q.exports.setGlobalOrigin=s8e;q.exports.getGlobalOrigin=n8e;var{CacheStorage:i8e}=Dz(),{kConstruct:o8e}=Ye();q.exports.caches=new i8e(o8e);var{deleteCookie:a8e,getCookies:A8e,getSetCookies:c8e,setCookie:u8e,parseCookie:l8e}=Hz();q.exports.deleteCookie=a8e;q.exports.getCookies=A8e;q.exports.getSetCookies=c8e;q.exports.setCookie=u8e;q.exports.parseCookie=l8e;var{parseMIMEType:d8e,serializeAMimeType:g8e}=on();q.exports.parseMIMEType=d8e;q.exports.serializeAMimeType=g8e;var{CloseEvent:h8e,ErrorEvent:f8e,MessageEvent:m8e}=hI(),{WebSocket:p8e,ping:E8e}=CK();q.exports.WebSocket=p8e;q.exports.CloseEvent=h8e;q.exports.ErrorEvent=f8e;q.exports.MessageEvent=m8e;q.exports.ping=E8e;q.exports.WebSocketStream=SK().WebSocketStream;q.exports.WebSocketError=rR().WebSocketError;q.exports.request=bf(Vl.request);q.exports.stream=bf(Vl.stream);q.exports.pipeline=bf(Vl.pipeline);q.exports.connect=bf(Vl.connect);q.exports.upgrade=bf(Vl.upgrade);q.exports.MockClient=q3e;q.exports.MockCallHistory=J3e;q.exports.MockCallHistoryLog=V3e;q.exports.MockPool=z3e;q.exports.MockAgent=W3e;q.exports.SnapshotAgent=K3e;q.exports.mockErrors=X3e;var{EventSource:C8e}=OK();q.exports.EventSource=C8e;function I8e(){globalThis.fetch=q.exports.fetch,globalThis.Headers=q.exports.Headers,globalThis.Response=q.exports.Response,globalThis.Request=q.exports.Request,globalThis.FormData=q.exports.FormData,globalThis.WebSocket=q.exports.WebSocket,globalThis.CloseEvent=q.exports.CloseEvent,globalThis.ErrorEvent=q.exports.ErrorEvent,globalThis.MessageEvent=q.exports.MessageEvent,globalThis.EventSource=q.exports.EventSource}q.exports.install=I8e});var wf=p(ka=>{"use strict";ka.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ka.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ka.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";ka.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ka.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ka.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ka.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 WK=p((yrt,VK)=>{"use strict";var{asciiLowercase:TI,solelyContainsHTTPTokenCodePoints:B8e,soleyContainsHTTPQuotedStringTokenCodePoints:Q8e}=wf();VK.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=TI(String(e)),this._map.get(e)}has(e){return e=TI(String(e)),this._map.has(e)}set(e,r){if(e=TI(String(e)),r=String(r),!B8e(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Q8e(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=TI(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 XK=p((brt,KK)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:y8e,removeTrailingHTTPWhitespace:zK,isHTTPWhitespaceChar:b8e,solelyContainsHTTPTokenCodePoints:AR,soleyContainsHTTPQuotedStringTokenCodePoints:w8e,asciiLowercase:cR,collectAnHTTPQuotedString:N8e}=wf();KK.exports=t=>{t=y8e(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!AR(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=zK(s),s.length===0||!AR(s))return null;let n={type:cR(r),subtype:cR(s),parameters:new Map};for(;e<t.length;){for(++e;b8e(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=cR(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=N8e(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=zK(o),o==="")continue}i.length>0&&AR(i)&&w8e(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var ZK=p((wrt,jK)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:S8e}=wf();jK.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+="=",(!S8e(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var rX=p((Srt,tX)=>{"use strict";var D8e=WK(),T8e=XK(),x8e=ZK(),{asciiLowercase:$K,solelyContainsHTTPTokenCodePoints:eX}=wf();tX.exports=class{constructor(e){e=String(e);let r=T8e(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 D8e(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=$K(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!eX(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=$K(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!eX(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return x8e(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 dX=p(FI=>{"use strict";Object.defineProperty(FI,"__esModule",{value:!0});FI.getProxyUrl=V8e;FI.checkBypass=lX;function V8e(t){let e=t.protocol==="https:";if(lX(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 kI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new kI(`http://${r}`)}else return}function lX(t){if(!t.hostname)return!1;let e=t.hostname;if(W8e(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`,F,F,b,s);var L=b.type==="*"?_R:b.type==="?"?HR:"\\"+b.type;n=!0,s=s.slice(0,b.reStart)+L+"\\("+F}f(),i&&(s+="\\\\");var Y=!1;switch(s.charAt(0)){case"[":case".":case"(":Y=!0}for(var O=a.length-1;O>-1;O--){var v=a[O],de=s.slice(0,v.reStart),Ce=s.slice(v.reStart,v.reEnd-8),ce=s.slice(v.reEnd-8,v.reEnd),ae=s.slice(v.reEnd);ce+=ae;var Ie=de.split("(").length-1,gt=ae;for(m=0;m<Ie;m++)gt=gt.replace(/\)[+*?]?/,"");ae=gt;var mt="";ae===""&&e!==GI&&(mt="$");var wn=de+Ce+ae+mt+ce;s=wn}if(s!==""&&n&&(s="(?=.)"+s),Y&&(s=g+s),e===GI)return[s,n];if(!n)return kOe(t);var Nn=r.nocase?"i":"";try{var Sd=new RegExp("^"+s+"$",Nn)}catch{return new RegExp("$.")}return Sd._glob=t,Sd._src=s,Sd}Rs.makeRe=function(t,e){return new Ot(t,e||{}).makeRe()};Ot.prototype.makeRe=ROe;function ROe(){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?_R:e.dot?yOe:bOe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===yc?r:typeof o=="string"?FOe(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}Rs.match=function(t,e,r){r=r||{};var s=new Ot(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Ot.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;Rf.sep!=="/"&&(e=e.split(Rf.sep).join("/")),e=e.split(Qj),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};Ot.prototype.matchOne=function(t,e,r){return e.indexOf(yc)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Ot.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===yc){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===yc){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 m=String(t[i]);if(f=!0,m==="."||m===".."||!this.options.dot&&m.charAt(0)===".")return!1}return r||f}for(var B=[[[],0]],E=B[0],b=0,S=[0],R=0;R<c.length;R++){var F=c[R];F===yc?(S.push(b),E=[[],0],B.push(E)):(E[0].push(F),b++)}for(var L=B.length-1,Y=t.length-g,O=0;O<B.length;O++)B[O][1]=Y-(S[L--]+B[O][0].length);return!!this._matchGlobStarBodySections(t,B,s,0,r,0,!!g)};Ot.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};Ot.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===yc)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 kOe(t){return t.replace(/\\(.)/g,"$1")}function FOe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Xl=p((Snt,Sj)=>{"use strict";var POe="2.0.0",OOe=Number.MAX_SAFE_INTEGER||9007199254740991,HOe=16,_Oe=250,GOe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Sj.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:HOe,MAX_SAFE_BUILD_LENGTH:_Oe,MAX_SAFE_INTEGER:OOe,RELEASE_TYPES:GOe,SEMVER_SPEC_VERSION:POe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var kf=p((Dnt,Dj)=>{"use strict";var YOe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Dj.exports=YOe});var jl=p((Ti,Tj)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:GR,MAX_SAFE_BUILD_LENGTH:qOe,MAX_LENGTH:JOe}=Xl(),VOe=kf();Ti=Tj.exports={};var WOe=Ti.re=[],zOe=Ti.safeRe=[],J=Ti.src=[],KOe=Ti.safeSrc=[],V=Ti.t={},XOe=0,YR="[a-zA-Z0-9-]",jOe=[["\\s",1],["\\d",JOe],[YR,qOe]],ZOe=t=>{for(let[e,r]of jOe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+i),t.push(n+"m+"+iI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=kOe()+e+" "+t[0]}function kOe(){return Ot.inspectOpts.hideDate?"":new Date().toISOString()+" "}function FOe(...t){return process.stderr.write(nI.formatWithOptions(Ot.inspectOpts,...t)+`
`)}function MOe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function UOe(){return process.env.DEBUG}function LOe(t){t.inspectOpts={};let e=Object.keys(Ot.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ot.inspectOpts[e[r]]}iI.exports=Px()(Ot);var{formatters:Nj}=iI.exports;Nj.o=function(t){return this.inspectOpts.colors=this.useColors,nI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nj.O=function(t){return this.inspectOpts.colors=this.useColors,nI.inspect(t,this.inspectOpts)}});var oI=m((Ort,_x)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_x.exports=Ij():_x.exports=Sj()});var xj=m(Or=>{"use strict";var POe=Or&&Or.__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]})),vOe=Or&&Or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tj=Or&&Or.__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)&&POe(e,t,r);return vOe(e,t),e};Object.defineProperty(Or,"__esModule",{value:!0});Or.req=Or.json=Or.toBuffer=void 0;var OOe=Tj(Q("http")),_Oe=Tj(Q("https"));async function Dj(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Or.toBuffer=Dj;async function HOe(t){let r=(await Dj(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Or.json=HOe;function GOe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?_Oe:OOe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Or.req=GOe});var Gx=m(gs=>{"use strict";var kj=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]})),YOe=gs&&gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Fj=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)&&kj(e,t,r);return YOe(e,t),e},qOe=gs&&gs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kj(e,t,r)};Object.defineProperty(gs,"__esModule",{value:!0});gs.Agent=void 0;var VOe=Fj(Q("net")),Rj=Fj(Q("http")),JOe=Q("https");qOe(xj(),gs);var ui=Symbol("AgentBaseInternalState"),Hx=class extends Rj.Agent{constructor(e){super(e),this[ui]={}}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 VOe.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)?JOe.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 Rj.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[ui].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[ui].currentSocket;if(this[ui].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ui].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ui]&&(this[ui].defaultPort=e)}get protocol(){return this[ui].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ui]&&(this[ui].protocol=e)}};gs.Agent=Hx});var Mj=m(fl=>{"use strict";var WOe=fl&&fl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fl,"__esModule",{value:!0});fl.parseProxyResponse=void 0;var zOe=WOe(oI()),aI=(0,zOe.default)("https-proxy-agent:parse-proxy-response");function KOe(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(),aI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),aI("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let d=Buffer.concat(n,s),g=d.indexOf(`\r
`+i),t.push(n+"m+"+lB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=w5e()+e+" "+t[0]}function w5e(){return er.inspectOpts.hideDate?"":new Date().toISOString()+" "}function N5e(...t){return process.stderr.write(uB.formatWithOptions(er.inspectOpts,...t)+`
`)}function S5e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function D5e(){return process.env.DEBUG}function T5e(t){t.inspectOpts={};let e=Object.keys(er.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=er.inspectOpts[e[r]]}lB.exports=Ik()(er);var{formatters:q$}=lB.exports;q$.o=function(t){return this.inspectOpts.colors=this.useColors,uB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};q$.O=function(t){return this.inspectOpts.colors=this.useColors,uB.inspect(t,this.inspectOpts)}});var dB=p((cat,yk)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?yk.exports=P$():yk.exports=J$()});var z$=p(ns=>{"use strict";var x5e=ns&&ns.__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]})),R5e=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),V$=ns&&ns.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&x5e(e,t,r);return R5e(e,t),e};Object.defineProperty(ns,"__esModule",{value:!0});ns.req=ns.json=ns.toBuffer=void 0;var k5e=V$(w("http")),F5e=V$(w("https"));async function W$(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}ns.toBuffer=W$;async function M5e(t){let r=(await W$(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}ns.json=M5e;function U5e(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?F5e:k5e).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}ns.req=U5e});var wk=p(ks=>{"use strict";var X$=ks&&ks.__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]})),L5e=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),j$=ks&&ks.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&X$(e,t,r);return L5e(e,t),e},v5e=ks&&ks.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&X$(e,t,r)};Object.defineProperty(ks,"__esModule",{value:!0});ks.Agent=void 0;var P5e=j$(w("net")),K$=j$(w("http")),O5e=w("https");v5e(z$(),ks);var xi=Symbol("AgentBaseInternalState"),bk=class extends K$.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 P5e.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)?O5e.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 K$.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)}};ks.Agent=bk});var Z$=p(rd=>{"use strict";var H5e=rd&&rd.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rd,"__esModule",{value:!0});rd.parseProxyResponse=void 0;var _5e=H5e(dB()),gB=(0,_5e.default)("https-proxy-agent:parse-proxy-response");function G5e(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(),gB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),gB("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){aI("have not received end of HTTP headers yet..."),i();return}let h=d.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 E=f.split(" "),w=+E[1],p=E.slice(2).join(" "),y={};for(let N of h){if(!N)continue;let D=N.indexOf(":");if(D===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${N}"`));let U=N.slice(0,D).toLowerCase(),v=N.slice(D+1).trimStart(),k=y[U];typeof k=="string"?y[U]=[k,v]:Array.isArray(k)?k.push(v):y[U]=v}aI("got proxy server response: %o %o",f,y),o(),e({connect:{statusCode:w,statusText:p,headers:y},buffered:d})}t.on("error",A),t.on("end",a),i()})}fl.parseProxyResponse=KOe});var _j=m(Zs=>{"use strict";var XOe=Zs&&Zs.__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]})),jOe=Zs&&Zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vj=Zs&&Zs.__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)&&XOe(e,t,r);return jOe(e,t),e},Oj=Zs&&Zs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.HttpsProxyAgent=void 0;var AI=vj(Q("net")),Uj=vj(Q("tls")),ZOe=Oj(Q("assert")),$Oe=Oj(oI()),e6e=Gx(),t6e=Q("url"),r6e=Mj(),Gh=(0,$Oe.default)("https-proxy-agent"),Lj=t=>t.servername===void 0&&t.host&&!AI.isIP(t.host)?{...t,servername:t.host}:t,cI=class extends e6e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new t6e.URL(e):e,this.proxyHeaders=r?.headers??{},Gh("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?Pj(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:"?(Gh("Creating `tls.Socket`: %o",this.connectOpts),n=Uj.connect(Lj(this.connectOpts))):(Gh("Creating `net.Socket`: %o",this.connectOpts),n=AI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=AI.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(g===-1){gB("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(),L=S.slice(R+1).trimStart(),Y=b[F];typeof Y=="string"?b[F]=[Y,L]:Array.isArray(Y)?Y.push(L):b[F]=L}gB("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()})}rd.parseProxyResponse=G5e});var nee=p(Cn=>{"use strict";var Y5e=Cn&&Cn.__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]})),q5e=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ree=Cn&&Cn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Y5e(e,t,r);return q5e(e,t),e},see=Cn&&Cn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.HttpsProxyAgent=void 0;var hB=ree(w("net")),$$=ree(w("tls")),J5e=see(w("assert")),V5e=see(dB()),W5e=wk(),z5e=w("url"),K5e=Z$(),Yf=(0,V5e.default)("https-proxy-agent"),eee=t=>t.servername===void 0&&t.host&&!hB.isIP(t.host)?{...t,servername:t.host}:t,fB=class extends W5e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new z5e.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?tee(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=$$.connect(eee(this.connectOpts))):(Yf("Creating `net.Socket`: %o",this.connectOpts),n=hB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=hB.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,r6e.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",s6e),r.secureEndpoint?(Gh("Upgrading socket connection to TLS"),Uj.connect({...Pj(Lj(r),"host","path","port"),socket:n})):n;n.destroy();let d=new AI.Socket({writable:!1});return d.readable=!0,e.once("socket",g=>{Gh("Replaying proxy buffer for failed request"),(0,ZOe.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),d}};cI.protocols=["http","https"];Zs.HttpsProxyAgent=cI;function s6e(t){t.resume()}function Pj(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Yj=m($s=>{"use strict";var n6e=$s&&$s.__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]})),i6e=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gj=$s&&$s.__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)&&n6e(e,t,r);return i6e(e,t),e},o6e=$s&&$s.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($s,"__esModule",{value:!0});$s.HttpProxyAgent=void 0;var a6e=Gj(Q("net")),A6e=Gj(Q("tls")),c6e=o6e(oI()),u6e=Q("events"),l6e=Gx(),Hj=Q("url"),ml=(0,c6e.default)("http-proxy-agent"),uI=class extends l6e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Hj.URL(e):e,this.proxyHeaders=r?.headers??{},ml("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?d6e(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 Hj.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;ml("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(ml("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let A=(0,K5e.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",X5e),r.secureEndpoint?(Yf("Upgrading socket connection to TLS"),$$.connect({...tee(eee(r),"host","path","port"),socket:n})):n;n.destroy();let l=new hB.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{Yf("Replaying proxy buffer for failed request"),(0,J5e.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};fB.protocols=["http","https"];Cn.HttpsProxyAgent=fB;function X5e(t){t.resume()}function tee(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var aee=p(In=>{"use strict";var j5e=In&&In.__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]})),Z5e=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oee=In&&In.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&j5e(e,t,r);return Z5e(e,t),e},$5e=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});In.HttpProxyAgent=void 0;var e9e=oee(w("net")),t9e=oee(w("tls")),r9e=$5e(dB()),s9e=w("events"),n9e=wk(),iee=w("url"),sd=(0,r9e.default)("http-proxy-agent"),mB=class extends n9e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new iee.URL(e):e,this.proxyHeaders=r?.headers??{},sd("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?i9e(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 iee.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;sd("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(sd("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),ml("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(ml("Creating `tls.Socket`: %o",this.connectOpts),i=A6e.connect(this.connectOpts)):(ml("Creating `net.Socket`: %o",this.connectOpts),i=a6e.connect(this.connectOpts)),await(0,u6e.once)(i,"connect"),i}};uI.protocols=["http","https"];$s.HttpProxyAgent=uI;function d6e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var uZ=m(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0});dI.state=void 0;dI.state={instrumenterImplementation:void 0}});var QZ=m(mI=>{"use strict";Object.defineProperty(mI,"__esModule",{value:!0});mI.state=void 0;mI.state={operationRequestMap:new WeakMap}});var ere=m((LIt,vHe)=>{vHe.exports={name:"@actions/cache",version:"6.0.1",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 rre=m((PIt,tre)=>{var OHe=ere();tre.exports={version:OHe.version}});var xI=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.isJsonObject=Nl.typeofJsonValue=void 0;function JHe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Nl.typeofJsonValue=JHe;function WHe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Nl.isJsonObject=WHe});var kI=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.base64encode=Sl.base64decode=void 0;var so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),RI=[];for(let t=0;t<so.length;t++)RI[so[t].charCodeAt(0)]=t;RI[45]=so.indexOf("+");RI[95]=so.indexOf("/");function zHe(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=RI[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)}Sl.base64decode=zHe;function KHe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=so[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=so[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=so[n|s>>6],e+=so[s&63],r=0;break}return r&&(e+=so[n],e+="=",r==1&&(e+="=")),e}Sl.base64encode=KHe});var sre=m(FI=>{"use strict";Object.defineProperty(FI,"__esModule",{value:!0});FI.utf8read=void 0;var YR=t=>String.fromCharCode.apply(String,t);function XHe(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(YR(s)),n=0);return r.length?(n&&r.push(YR(s.slice(0,n))),r.join("")):YR(s.slice(0,n))}FI.utf8read=XHe});var Xh=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WireType=di.mergeBinaryOptions=di.UnknownFieldHandler=void 0;var jHe;(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])})(jHe=di.UnknownFieldHandler||(di.UnknownFieldHandler={}));function ZHe(t,e){return Object.assign(Object.assign({},t),e)}di.mergeBinaryOptions=ZHe;var $He;(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"})($He=di.WireType||(di.WireType={}))});var UI=m(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.varint32read=_r.varint32write=_r.int64toString=_r.int64fromString=_r.varint64write=_r.varint64read=void 0;function e9e(){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")}_r.varint64read=e9e;function t9e(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)}}_r.varint64write=t9e;var MI=65536*65536;function r9e(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>=MI&&(n=n+(s/MI|0),s=s%MI)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}_r.int64fromString=r9e;function s9e(t,e){if(e>>>0<=2097151)return""+(MI*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,d){let g=u?String(u):"";return d?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}_r.int64toString=s9e;function n9e(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)}}_r.varint32write=n9e;function i9e(){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}_r.varint32read=i9e});var Ea=m(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.PbLong=pa.PbULong=pa.detectBi=void 0;var jh=UI(),He;function nre(){let t=new DataView(new ArrayBuffer(8));He=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}pa.detectBi=nre;nre();function ire(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var ore=/^-?[0-9]+$/,PI=4294967296,LI=2147483648,vI=c Line truncated
`)}};AB.RpcError=mk});var Ek=m(uB=>{"use strict";Object.defineProperty(uB,"__esModule",{value:!0});uB.mergeRpcOptions=void 0;var Lre=Et();function SGe(t,e){if(!e)return t;let r={};cB(t,r),cB(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Lre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Lre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},cB(t.meta,r.meta),cB(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}uB.mergeRpcOptions=SGe;function cB(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 Ik=m(WA=>{"use strict";Object.defineProperty(WA,"__esModule",{value:!0});WA.Deferred=WA.DeferredState=void 0;var fi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(fi=WA.DeferredState||(WA.DeferredState={}));var Ck=class{constructor(e=!0){this._state=fi.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!==fi.PENDING)throw new Error(`cannot resolve ${fi[this.state].toLowerCase()}`);this._resolve(e),this._state=fi.RESOLVED}reject(e){if(this.state!==fi.PENDING)throw new Error(`cannot reject ${fi[this.state].toLowerCase()}`);this._reject(e),this._state=fi.REJECTED}resolvePending(e){this._state===fi.PENDING&&this.resolve(e)}rejectPending(e){this._state===fi.PENDING&&this.reject(e)}};WA.Deferred=Ck});var Qk=m(lB=>{"use strict";Object.defineProperty(lB,"__esModule",{value:!0});lB.RpcOutputStreamController=void 0;var Pre=Ik(),zA=Et(),Bk=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){zA.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){zA.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){zA.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(){zA.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;zA.assert(e,"bad state"),zA.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 Pre.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;zA.assert(s.state==Pre.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};lB.RpcOutputStreamController=Bk});var bk=m(Ml=>{"use strict";var TGe=Ml&&Ml.__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(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.UnaryCall=void 0;var yk=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 TGe(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}})}};Ml.UnaryCall=yk});var Nk=m(Ul=>{"use strict";var DGe=Ul&&Ul.__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(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ul,"__esModule",{value:!0});Ul.ServerStreamingCall=void 0;var wk=class{constructor(e Line truncated
`:Ip(t.children):Kc(t)?Ip(t.children):Nr(t)?t.data:""}function Ui(t){return Array.isArray(t)?t.map(Ui).join(""):ve(t)&&!za(t)?Ui(t.children):Nr(t)?t.data:""}function zd(t){return Array.isArray(t)?t.map(zd).join(""):ve(t)&&(t.type===Be.Tag||Kc(t))?zd(t.children):Nr(t)?t.data:""}function Zc(t){return ve(t)?t.children:[]}function aO(t){return t.parent||null}function B1(t){let e=aO(t);if(e!=null)return Zc(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 Ope(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function _pe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Hpe(t){return t.name}function Bp(t){let{next:e}=t;for(;e!==null&&!q(e);)({next:e}=e);return e}function Qp(t){let{prev:e}=t;for(;e!==null&&!q(e);)({prev:e}=e);return e}function Li(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 Gpe(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 Ype(t,e){if(Li(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 qpe(t,e){Li(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 Vpe(t,e){if(Li(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 Jpe(t,e){Li(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 $c(t,e,r=!0,s=1/0){return yp(t,Array.isArray(e)?e:[e],r,s)}function yp(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&&ve(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Wpe(t,e){return e.find(t)}function bp(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&&ve(i)&&i.children.length>0){let o=bp(t,i.children,!0);if(o)return o}}return null}function AO(t,e){return(Array.isArray(e)?e:[e]).some(r=>q(r)&&t(r)||ve(r)&&AO(t,r.children))}function zpe(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),ve(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var wp={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=>Nr(e)&&t(e.data):e=>Nr(e)&&e.data===t}};function Q1(t,e){return typeof e=="function"?r=>q(r)&&e(r.attribs[t]):r=>q(r)&&r.attribs[t]===e}function Kpe(t,e){return r=>t(r)||e(r)}function cO(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(wp,r)?wp[r](s):Q1(r,s)});return e.length===0?null:e.reduce(Kpe)}function Xpe(t,e){let r=cO(t);return r?r(e):!0}function jpe(t,e,r,s=1/0){let n=cO(t);return n?$c(n,e,r,s):[]}function Zpe(t,e,r=!0){return Array.isArray(e)||(e=[e]),bp(Q1("id",t),e,r)}function Ka(t,e,r=!0,s=1/0){return $c(wp.tag_name(t),e,r,s)}function $pe(t,e,r=!0,s=1/0){return $c(Q1("class",t),e,r,s)}function e0e(t,e,r=!0,s=1/0){return $c(wp.tag_type(t),e,r,s)}function t0e(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 Ts;(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"})(Ts||(Ts={}));function uO(t,e){let r=[],s=[];if(t===e)return 0;let n=ve(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=ve(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 Ts.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Ts.FOLLOWING|Ts.CONTAINED_BY:Ts.FOLLOWING:a===t?Ts.PRECEDING|Ts.CONTAINS:Ts.PRECEDING}function To(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=uO(e,r);return s&Ts.PRECEDING?-1:s&Ts.FOLLOWING?1:0}),t}function y1(t){let e=Np(o0e,t);return e?e.name==="feed"?r0e(e):s0e(e):null}function r0e(t){var e;let r=t.children,s={type:"atom",items:Ka("entry",r).map(o=>{var a;let{children:A}=o,c={media:lO(A)};Sr(c,"id","id",A),Sr(c,"title","title",A);let u=(a=Np("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let d=Do("summary",A)||Do("content",A);d&&(c.descript Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),sd("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(sd("Creating `tls.Socket`: %o",this.connectOpts),i=t9e.connect(this.connectOpts)):(sd("Creating `net.Socket`: %o",this.connectOpts),i=e9e.connect(this.connectOpts)),await(0,s9e.once)(i,"connect"),i}};mB.protocols=["http","https"];In.HttpProxyAgent=mB;function i9e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Dee=p(EB=>{"use strict";Object.defineProperty(EB,"__esModule",{value:!0});EB.state=void 0;EB.state={instrumenterImplementation:void 0}});var Hee=p(QB=>{"use strict";Object.defineProperty(QB,"__esModule",{value:!0});QB.state=void 0;QB.state={operationRequestMap:new WeakMap}});var Nne=p((Lwt,Rqe)=>{Rqe.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 Dne=p((vwt,Sne)=>{var kqe=Nne();Sne.exports={version:kqe.version}});var UB=p(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.isJsonObject=dd.typeofJsonValue=void 0;function Hqe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}dd.typeofJsonValue=Hqe;function _qe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}dd.isJsonObject=_qe});var vB=p(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.base64encode=gd.base64decode=void 0;var Do="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),LB=[];for(let t=0;t<Do.length;t++)LB[Do[t].charCodeAt(0)]=t;LB[45]=Do.indexOf("+");LB[95]=Do.indexOf("/");function Gqe(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=LB[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)}gd.base64decode=Gqe;function Yqe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Do[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Do[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Do[n|s>>6],e+=Do[s&63],r=0;break}return r&&(e+=Do[n],e+="=",r==1&&(e+="=")),e}gd.base64encode=Yqe});var Tne=p(PB=>{"use strict";Object.defineProperty(PB,"__esModule",{value:!0});PB.utf8read=void 0;var DF=t=>String.fromCharCode.apply(String,t);function qqe(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(DF(s)),n=0);return r.length?(n&&r.push(DF(s.slice(0,n))),r.join("")):DF(s.slice(0,n))}PB.utf8read=qqe});var Zf=p(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.WireType=Ri.mergeBinaryOptions=Ri.UnknownFieldHandler=void 0;var Jqe;(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])})(Jqe=Ri.UnknownFieldHandler||(Ri.UnknownFieldHandler={}));function Vqe(t,e){return Object.assign(Object.assign({},t),e)}Ri.mergeBinaryOptions=Vqe;var Wqe;(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"})(Wqe=Ri.WireType||(Ri.WireType={}))});var HB=p(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.varint32read=is.varint32write=is.int64toString=is.int64fromString=is.varint64write=is.varint64read=void 0;function zqe(){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")}is.varint64read=zqe;function Kqe(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)}}is.varint64write=Kqe;var OB=65536*65536;function Xqe(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>=OB&&(n=n+(s/OB|0),s=s%OB)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}is.int64fromString=Xqe;function jqe(t,e){if(e>>>0<=2097151)return""+(OB*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)}is.int64toString=jqe;function Zqe(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)}}is.varint32write=Zqe;function $qe(){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}is.varint32read=$qe});var Ga=p(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.PbLong=_a.PbULong=_a.detectBi=void 0;var $f=HB(),je;function xne(){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}_a.detectBi=xne;xne();function Rne(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var kne=/^-?[0-9]+$/,GB=4294967296,_B=2147483648,YB=c Line truncated
`)}};gQ.RpcError=tM});var sM=p(fQ=>{"use strict";Object.defineProperty(fQ,"__esModule",{value:!0});fQ.mergeRpcOptions=void 0;var Aie=Rt();function BVe(t,e){if(!e)return t;let r={};hQ(t,r),hQ(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Aie.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Aie.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},hQ(t.meta,r.meta),hQ(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}fQ.mergeRpcOptions=BVe;function hQ(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(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.Deferred=Rc.DeferredState=void 0;var Mi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Mi=Rc.DeferredState||(Rc.DeferredState={}));var nM=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)}};Rc.Deferred=nM});var aM=p(mQ=>{"use strict";Object.defineProperty(mQ,"__esModule",{value:!0});mQ.RpcOutputStreamController=void 0;var cie=iM(),kc=Rt(),oM=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){kc.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){kc.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){kc.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(){kc.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;kc.assert(e,"bad state"),kc.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 cie.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;kc.assert(s.state==cie.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};mQ.RpcOutputStreamController=oM});var cM=p(Id=>{"use strict";var QVe=Id&&Id.__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(Id,"__esModule",{value:!0});Id.UnaryCall=void 0;var AM=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 QVe(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}})}};Id.UnaryCall=AM});var lM=p(Bd=>{"use strict";var yVe=Bd&&Bd.__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(Bd,"__esModule",{value:!0});Bd.ServerStreamingCall=void 0;var uM=class{constructor(e Line truncated
`:bE(t.children):Lu(t)?bE(t.children):Jr(t)?t.data:""}function no(t){return Array.isArray(t)?t.map(no).join(""):ze(t)&&!yA(t)?no(t.children):Jr(t)?t.data:""}function qg(t){return Array.isArray(t)?t.map(qg).join(""):ze(t)&&(t.type===Re.Tag||Lu(t))?qg(t.children):Jr(t)?t.data:""}function Ou(t){return ze(t)?t.children:[]}function oH(t){return t.parent||null}function H1(t){let e=oH(t);if(e!=null)return Ou(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 cIe(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function uIe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function lIe(t){return t.name}function wE(t){let{next:e}=t;for(;e!==null&&!W(e);)({next:e}=e);return e}function NE(t){let{prev:e}=t;for(;e!==null&&!W(e);)({prev:e}=e);return e}function io(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 gIe(t,e){if(io(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 hIe(t,e){io(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 fIe(t,e){if(io(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 mIe(t,e){io(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 Hu(t,e,r=!0,s=1/0){return SE(t,Array.isArray(e)?e:[e],r,s)}function SE(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 pIe(t,e){return e.find(t)}function DE(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=DE(t,i.children,!0);if(o)return o}}return null}function aH(t,e){return(Array.isArray(e)?e:[e]).some(r=>W(r)&&t(r)||ze(r)&&aH(t,r.children))}function EIe(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 TE={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=>Jr(e)&&t(e.data):e=>Jr(e)&&e.data===t}};function _1(t,e){return typeof e=="function"?r=>W(r)&&e(r.attribs[t]):r=>W(r)&&r.attribs[t]===e}function CIe(t,e){return r=>t(r)||e(r)}function AH(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(TE,r)?TE[r](s):_1(r,s)});return e.length===0?null:e.reduce(CIe)}function IIe(t,e){let r=AH(t);return r?r(e):!0}function BIe(t,e,r,s=1/0){let n=AH(t);return n?Hu(n,e,r,s):[]}function QIe(t,e,r=!0){return Array.isArray(e)||(e=[e]),DE(_1("id",t),e,r)}function bA(t,e,r=!0,s=1/0){return Hu(TE.tag_name(t),e,r,s)}function yIe(t,e,r=!0,s=1/0){return Hu(_1("class",t),e,r,s)}function bIe(t,e,r=!0,s=1/0){return Hu(TE.tag_type(t),e,r,s)}function wIe(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 Ks;(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"})(Ks||(Ks={}));function cH(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 Ks.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Ks.FOLLOWING|Ks.CONTAINED_BY:Ks.FOLLOWING:a===t?Ks.PRECEDING|Ks.CONTAINS:Ks.PRECEDING}function $o(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=cH(e,r);return s&Ks.PRECEDING?-1:s&Ks.FOLLOWING?1:0}),t}function G1(t){let e=xE(xIe,t);return e?e.name==="feed"?NIe(e):SIe(e):null}function NIe(t){var e;let r=t.children,s={type:"atom",items:bA("entry",r).map(o=>{var a;let{children:A}=o,c={media:uH(A)};Vr(c,"id","id",A),Vr(c,"title","title",A);let u=(a=xE("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ea("summary",A)||ea("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 Rs=ae(Ro(),1);var _1={};function H1(t,e){return t===Rs.default.falseFunc?Rs.default.falseFunc:r=>e.isTag(r)&&t(r)}function G1(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 O1(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 v1=(t,e,r,s,n)=>{let i=n(e,O1(r),s);return i===Rs.default.trueFunc?t:i===Rs.default.falseFunc?Rs.default.falseFunc:o=>i(o)&&t(o)},Op={is:v1,matches:v1,where:v1,not(t,e,r,s,n){let i=n(e,O1(r),s);return i===Rs.default.falseFunc?t:i===Rs.default.trueFunc?Rs.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=O1(r);o.relativeSelector=!0;let a=e.some(u=>u.some(tg))?[_1]:void 0,A=n(e,o,a);if(A===Rs.default.falseFunc)return Rs.default.falseFunc;let c=H1(A,i);if(a&&A!==Rs.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return d=>{if(!t(d))return!1;a[0]=d;let g=i.getChildren(d),h=u?[...g,...G1(d,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function $O(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in Op))throw new Error(`Unknown pseudo-class :${o}(${a})`);return Op[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:vp[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,ZO.parse)(c);return Op.is(t,u,r,s,n)}if(typeof A=="function")return P1(A,o,a,1),u=>A(u,a)&&t(u);if(o in Au)return Au[o](t,a,r,s);if(o in sg){let u=sg[o];return P1(u,o,a,2),d=>u(d,r,a)&&t(d)}throw new Error(`Unknown pseudo-class :${o}`)}var ks=ae(ou(),1);function Y1(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function e6(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ks.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ks.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ks.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()),zO[e.action](t,e,r)}case ks.SelectorType.Pseudo:return $O(t,e,r,s,n);case ks.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 ks.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=Y1(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=Y1(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=Y1(c,i));return!1};case ks.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ks.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ks.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let d=c[u];if(o(A,d))break;if(i.isTag(d)&&t(d))return!0}return!1};case ks.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 d=0;d<c.length;d++){let g=c[d];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case ks.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function t6(t,e,r){let s=_p(t,e,r);return H1(s,e.adapter)}function _p(t,e,r){let s=typeof t=="string"?(0,pn.parse)(t):t;return Hp(s,e,r)}function r6(t){return t.type===pn.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(r6)))}var j0e={type:pn.SelectorType.Descendant},Z0e={type:"_flexibleDescendant"},$0e={type:pn.SelectorType.Pseudo,name:"scope",data:null};function eEe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===_1||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(E6,`\r
`)}}).toArray()}var iw={};nn(iw,{extract:()=>fCe});function hCe(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 fCe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=hCe(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 Mo=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}}};Mo.prototype.cheerio="[cheerio object]";Mo.prototype.splice=Array.prototype.splice;Mo.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Mo.prototype,k1,tw,rw,sw,nw,iw);function C6(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=zc(n),a=t(s,o,i,null);class A extends Mo{_make(d,g){let h=c(d,g);return h.prevObject=this,h}_parse(d,g,h,f){return t(d,g,h,f)}_render(d){return e(d,this.options)}}function c(u,d,g=a,h){if(u&&Ds(u))return u;let f=zc(h,o),E=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],w=Ds(E)?E:new A(E,null,f);if(w._root=w,!u)return new A(void 0,w,f);let p=typeof u=="string"&&Kd(u)?t(u,f,!1,null).children:mCe(u)?[u]:Array.isArray(u)?u:void 0,y=new A(p,w,f);if(p)return y;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let N=u,D=d?typeof d=="string"?Kd(d)?new A([t(d,f,!1,null)],w,f):(N=`${d} ${N}`,w):Ds(d)?d:new A(Array.isArray(d)?d:[d],w,f):w;return D?D.find(N):y}return Object.assign(c,b1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function mCe(t){return!!t.name||t.type===Ns.Root||t.type===Ns.Text||t.type===Ns.Comment}var pCe=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 ur={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Wp(t){return t>=55296&&t<=57343}function I6(t){return t>=56320&&t<=57343}function B6(t,e){return(t-55296)*1024+9216+e}function zp(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Kp(t){return t>=64976&&t<=65007||pCe.has(t)}var x;(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 Zs=fe(ra(),1);var iN={};function oN(t,e){return t===Zs.default.falseFunc?Zs.default.falseFunc:r=>e.isTag(r)&&t(r)}function aN(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 nN(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 sN=(t,e,r,s,n)=>{let i=n(e,nN(r),s);return i===Zs.default.trueFunc?t:i===Zs.default.falseFunc?Zs.default.falseFunc:o=>i(o)&&t(o)},YE={is:sN,matches:sN,where:sN,not(t,e,r,s,n){let i=n(e,nN(r),s);return i===Zs.default.falseFunc?t:i===Zs.default.trueFunc?Zs.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=nN(r);o.relativeSelector=!0;let a=e.some(u=>u.some(jg))?[iN]:void 0,A=n(e,o,a);if(A===Zs.default.falseFunc)return Zs.default.falseFunc;let c=oN(A,i);if(a&&A!==Zs.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,...aN(l,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function ZH(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in YE))throw new Error(`Unknown pseudo-class :${o}(${a})`);return YE[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:GE[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,jH.parse)(c);return YE.is(t,u,r,s,n)}if(typeof A=="function")return rN(A,o,a,1),u=>A(u,a)&&t(u);if(o in Ku)return Ku[o](t,a,r,s);if(o in $g){let u=$g[o];return rN(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var $s=fe(Wu(),1);function AN(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 $s.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case $s.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case $s.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()),WH[e.action](t,e,r)}case $s.SelectorType.Pseudo:return ZH(t,e,r,s,n);case $s.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 $s.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=AN(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=AN(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=AN(c,i));return!1};case $s.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case $s.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case $s.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 $s.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 $s.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function e_(t,e,r){let s=qE(t,e,r);return oN(s,e.adapter)}function qE(t,e,r){let s=typeof t=="string"?(0,On.parse)(t):t;return JE(s,e,r)}function t_(t){return t.type===On.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(t_)))}var BBe={type:On.SelectorType.Descendant},QBe={type:"_flexibleDescendant"},yBe={type:On.SelectorType.Pseudo,name:"scope",data:null};function bBe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===iN||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(p_,`\r
`)}}).toArray()}var bN={};Sn(bN,{extract:()=>OQe});function PQe(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 OQe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=PQe(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 ia=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}}};ia.prototype.cheerio="[cheerio object]";ia.prototype.splice=Array.prototype.splice;ia.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(ia.prototype,j1,IN,BN,QN,yN,bN);function E_(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Uu(n),a=t(s,o,i,null);class A extends ia{_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&&Xs(u))return u;let f=Uu(h,o),m=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],B=Xs(m)?m:new A(m,null,f);if(B._root=B,!u)return new A(void 0,B,f);let E=typeof u=="string"&&Jg(u)?t(u,f,!1,null).children:HQe(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"?Jg(l)?new A([t(l,f,!1,null)],B,f):(S=`${l} ${S}`,B):Xs(l)?l:new A(Array.isArray(l)?l:[l],B,f):B;return R?R.find(S):b}return Object.assign(c,Y1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function HQe(t){return!!t.name||t.type===Ws.Root||t.type===Ws.Text||t.type===Ws.Comment}var _Qe=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 Sr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function jE(t){return t>=55296&&t<=57343}function C_(t){return t>=56320&&t<=57343}function I_(t,e){return(t-55296)*1024+9216+e}function ZE(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function $E(t){return t>=64976&&t<=65007||_Qe.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(`
`)}`}},wC=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as WLe,existsSync as zLe}from"fs";import{EOL as KLe}from"os";var nl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(zLe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(WLe(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${KLe}`)}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 UD=ae(jW(),1),ZW=ae(Ap(),1),APe=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(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function $W(t){return new UD.HttpClient().getAgent(t)}function cPe(t){return new UD.HttpClient().getAgentDispatcher(t)}function ez(t){let e=cPe(t);return(s,n)=>APe(this,void 0,void 0,function*(){return(0,ZW.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function tz(){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 kC(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)=>kC.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 rz(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 sz(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 nz=Function.bind,iz=nz.bind(nz);function oz(t,e,r){let s=iz(sz,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]=iz(rz,null).apply(null,i)})}function lPe(){let t=Symbol("Singular"),e={registry:{}},r=kC.bind(null,e,t);return oz(r,e,t),r}function dPe(){let t={registry:{}},e=kC.bind(null,t);return oz(e,t),e}var az={Singular:lPe,Collection:dPe};var gPe="0.0.0-development",hPe=`octokit-endpoint.js/${gPe} ${la()}`,fPe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":hPe},mediaType:{format:""}};function mPe(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function pPe(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 uz(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(s=>{pPe(e[s])?s in t?r[s]=uz(t[s],e[s]):Object.assign(r,{[s]:e[s]}):Object.assign(r,{[s]:e[s]})}),r}function Az(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function PD(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=mPe(r.headers),Az(r),Az(r.headers);let s=uz(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(s.mediaType.preLine truncated
`)}`}},RI=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as Y8e,existsSync as q8e}from"fs";import{EOL as J8e}from"os";var Wl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(q8e(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Y8e(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${J8e}`)}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 mR=fe(hX(),1),fX=fe(dE(),1),n4e=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 mX(t){return new mR.HttpClient().getAgent(t)}function i4e(t){return new mR.HttpClient().getAgentDispatcher(t)}function pX(t){let e=i4e(t);return(s,n)=>n4e(this,void 0,void 0,function*(){return(0,fX.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function EX(){return process.env.GITHUB_API_URL||"https://api.github.com"}function Fa(){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 PI(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)=>PI.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 CX(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 IX(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 BX=Function.bind,QX=BX.bind(BX);function yX(t,e,r){let s=QX(IX,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]=QX(CX,null).apply(null,i)})}function a4e(){let t=Symbol("Singular"),e={registry:{}},r=PI.bind(null,e,t);return yX(r,e,t),r}function A4e(){let t={registry:{}},e=PI.bind(null,t);return yX(e,t),e}var bX={Singular:a4e,Collection:A4e};var c4e="0.0.0-development",u4e=`octokit-endpoint.js/${c4e} ${Fa()}`,l4e={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":u4e},mediaType:{format:""}};function d4e(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function g4e(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 SX(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(s=>{g4e(e[s])?s in t?r[s]=SX(t[s],e[s]):Object.assign(r,{[s]:e[s]}):Object.assign(r,{[s]:e[s]})}),r}function wX(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function ER(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),wX(r),wX(r.headers);let s=SX(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(yR(E))u.push("null"),f.first=!1,f.index++;else{let b=E!==null&&typeof E=="object",S=bR(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(Ma(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(yR(R))continue;f.first||u.push(","),s?u.push(`
`+s.repeat(l)+Ma(E)+": "):u.push(Ma(E)+":");let F=R!==null&&typeof R=="object",L=bR(R);if(F&&!L){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(Ma(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("")},YX=(t,e,r)=>{try{return"rawJSON"in JSON?Ma(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?Ma(t,(a,A)=>typeof A=="string"&&HI.test(A)||typeof A=="bigint"?A.toString()+"n":typeof e=="function"?e(a,A):(Array.isArray(e)&&e.includes(a),A),r).replace(PX,"$1$2$3").replace(OX,"$1$2$3"):Ma(t,e,r)}catch(s){if(s instanceof RangeError){let n=S4e(t,e,r);return n===void 0?void 0:"rawJSON"in JSON?n:n.replace(PX,"$1$2$3").replace(OX,"$1$2$3")}throw s}},OI=new Map,D4e=()=>{let t=JSON.parse.toString();if(OI.has(t))return OI.get(t);try{let e=JSON.parse("1",(r,s,n)=>!!n?.source&&n.source==="1");return OI.set(t,e),e}catch{return OI.set(t,!1),!1}},T4e=(t,e,r,s)=>typeof e=="string"&&GX.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&HI.test(e)?e.slice(0,-1):typeof s=="function"?s(t,e,r):e,x4e=(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&&N4e.test(n.source);return a&&A?BigInt(n.source):typeof e=="function"?e(r,s,n):s}),qX=Number.MAX_SAFE_INTEGER.toString(),HX=qX.length,R4e=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,k4e=/^"-?\d+n+"$/,F4e=(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"&&(GX.test(a)?a=BigInt(a.slice(0,-1)):HI.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[""]},_X=t=>t.replace(R4e,(e,r,s,n)=>{let i=e[0]==='"';if(i&&k4e.test(e))return e.substring(0,e.length-1)+'n"';let a=s||n,A=r&&(r.length<HX||r.length===HX&&r<=qX);return i||a||A?e:'"'+e+'n"'}),JX=(t,e)=>{if(!t)return QR(t,e);try{if(D4e())return x4e(t,e);let r=_X(t);return QR(r,(s,n,i)=>T4e(s,n,i,e))}catch(r){if(r instanceof RangeError){let s=_X(t),n=QR(s);return F4e(n,e)}throw r}};var Bc=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 M4e="10.0.16",U4e={headers:{"user-agent":`octokit-request.js/${M4e} ${Fa()}`}};function L4e(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 VX=()=>"";async function WX(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=L4e(t.body)||Array.isArray(t.body)?YX(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 Bc(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 Bc(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await wR(o),new Bc("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await wR(o),new Bc(P4e(u.data),a,{response:u,request:t});return u.data=s?await wR(o):o.body,u}async function wR(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(VX);let r=MX(e);if(v4e(r)){let s="";try{return s=await t.text(),JX(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 jPe=class extends Error{constructor(t,e,r){super(XPe(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},ZPe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],$Pe=["query","method","url"],Rz=/\/api\/v3\/?$/;function e3e(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($Pe.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)=>ZPe.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 Rz.test(i)&&(n.url=i.replace(Rz,"/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 jPe(n,a,o.data)}return o.data.data})}function qD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>e3e(r,n,i),{defaults:qD.bind(null,r),endpoint:r.endpoint})}var GZe=qD(Dh,{headers:{"user-agent":`octokit-graphql.js/${KPe} ${la()}`},method:"POST",url:"/graphql"});function kz(t){return qD(t,{method:"POST",url:"/graphql"})}var VD="(?:[a-zA-Z0-9_-]+)",Fz="\\.",Mz=new RegExp(`^${VD}${Fz}${VD}${Fz}${VD}$`),t3e=Mz.test.bind(Mz);async function r3e(t){let e=t3e(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 s3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function n3e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=s3e(t),e(n)}var Uz=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(r3e.bind(null,e),{hook:n3e.bind(null,e)})};var JD="7.0.6";var Lz=()=>{},i3e=console.warn.bind(console),o3e=console.error.bind(console);function a3e(t={}){return typeof t.debug!="function"&&(t.debug=Lz),typeof t.info!="function"&&(t.info=Lz),typeof t.warn!="function"&&(t.warn=i3e),typeof t.error!="function"&&(t.error=o3e),t}var Pz=`octokit-core.js/${JD} ${la()}`,UC=class{static VERSION=JD;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 az.Collection,s={baseUrl:Dh.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} ${Pz}`:Pz,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Dh.defaults(s),this.graphql=kz(this.request).defaults(s),this.log=a3e(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=Uz(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 WD="17.0.0";var A3e={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"}};TI.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var DI=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"}};DI.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var _He=ae(rre(),1);var Xre=ae(Yre(),1),Ct=ae(Et(),1),ps=ae(Et(),1),KA=ae(Et(),1),XA=ae(Et(),1),jA=ae(Et(),1);var Lk=ae(Et(),1),Pk=ae(Et(),1),Wre=ae(Et(),1),zre=ae(Et(),1),Kre=ae(Et(),1);var Fk=ae(Et(),1),Mk=ae(Et(),1),qre=ae(Et(),1),Vre=ae(Et(),1),Jre=ae(Et(),1),Uk=class extends Jre.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,Vre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,qre.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?Mk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Fk.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Fk.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Mk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},hB=new Uk;var vk=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:()=>hB}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,zre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Wre.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(hB.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?Pk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Lk.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)hB.internalBinaryWrite(e.scope[i],r.tag(2,Lk.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Pk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},mi=new vk;var Ok=class extends jA.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>mi},{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,XA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,KA.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=mi.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?ps.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&mi.internalBinaryWrite(e.metadata,r.tag(1,Ct.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,Ct.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,Ct.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?ps.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},jre=new Ok,_k=class extends jA.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,XA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,KA.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?ps.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,Ct.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;sYe.push(s),Fi(s)}function nse(t=!0){if(sse.length>0){No(`This job uses deprecated functionality from the '${fB()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of sse)jt(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var ose="GRADLE_ACTION_ID";var ise=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ase("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return ar("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return ar("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return ar("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return ar("develocity-token-expiry")}getDevelocityInjectionEnabled(){return mB("develocity-injection-enabled")}getDevelocityUrl(){return ar("develocity-url")}getDevelocityAllowUntrustedServer(){return mB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return mB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return mB("develocity-enforce-url")}getDevelocityPluginVersion(){return ar("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return ar("develocity-ccud-plugin-version")}getPluginRepository(){return new zk}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:(No("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},zk=class{getUrl(){return Wk("gradle-plugin-repository-url")}getUsername(){return Wk("gradle-plugin-repository-username")}getPassword(){return Wk("gradle-plugin-repository-password")}};function fB(){return process.env[ose]}function ase(t){L4(ose,t)}function Wk(t){let e=ar(t);if(e.length>0)return e}function Ase(t,e=!1){let r=ar(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 mB(t){if(ar(t)!=="")return Ase(t)}var Kk=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function cse(t){if(t instanceof AggregateError){Fi("Multiple errors returned");for(let e of t.errors)up(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&jt(e.stack)}else t instanceof Kk?(Fi(String(t)),t.stack&&jt(t.stack)):(Fi(String(t)),t instanceof Error&&t.stack&&jt(t.stack))}async function iYe(){try{fB()==="gradle/wrapper-validation-action"&&Jk("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),ase("gradle/actions/wrapper-validation");let t=await JW(use.resolve("."),ar("allow-snapshots")==="true",ar("allow-checksums").split(","));if(t.isValid()){jt(t.toDisplayString());let e=+ar("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}.`;Fi(r)}}else Fi(`At least one Gradle Wrapper Jar failed validation!
`)}var _4e=class extends Error{constructor(t,e,r){super(H4e(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},G4e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Y4e=["query","method","url"],zX=/\/api\/v3\/?$/;function q4e(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(Y4e.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)=>G4e.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 zX.test(i)&&(n.url=i.replace(zX,"/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 _4e(n,a,o.data)}return o.data.data})}function SR(t,e){let r=t.defaults(e);return Object.assign((n,i)=>q4e(r,n,i),{defaults:SR.bind(null,r),endpoint:r.endpoint})}var gst=SR(Df,{headers:{"user-agent":`octokit-graphql.js/${O4e} ${Fa()}`},method:"POST",url:"/graphql"});function KX(t){return SR(t,{method:"POST",url:"/graphql"})}var DR="(?:[a-zA-Z0-9_-]+)",XX="\\.",jX=new RegExp(`^${DR}${XX}${DR}${XX}${DR}$`),J4e=jX.test.bind(jX);async function V4e(t){let e=J4e(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 W4e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function z4e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=W4e(t),e(n)}var ZX=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(V4e.bind(null,e),{hook:z4e.bind(null,e)})};var TR="7.0.8";var $X=()=>{},K4e=console.warn.bind(console),X4e=console.error.bind(console);function j4e(t={}){return typeof t.debug!="function"&&(t.debug=$X),typeof t.info!="function"&&(t.info=$X),typeof t.warn!="function"&&(t.warn=K4e),typeof t.error!="function"&&(t.error=X4e),t}var ej=`octokit-core.js/${TR} ${Fa()}`,_I=class{static VERSION=TR;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 bX.Collection,s={baseUrl:Df.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} ${ej}`:ej,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Df.defaults(s),this.graphql=KX(this.request).defaults(s),this.log=j4e(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=ZX(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 xR="17.0.0";var Z4e={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"}};FB.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var MB=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"}};MB.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Fqe=fe(Dne(),1);var Qie=fe(fie(),1),kt=fe(Rt(),1),vs=fe(Rt(),1),Fc=fe(Rt(),1),Mc=fe(Rt(),1),Uc=fe(Rt(),1);var BM=fe(Rt(),1),QM=fe(Rt(),1),Cie=fe(Rt(),1),Iie=fe(Rt(),1),Bie=fe(Rt(),1);var EM=fe(Rt(),1),CM=fe(Rt(),1),mie=fe(Rt(),1),pie=fe(Rt(),1),Eie=fe(Rt(),1),IM=class extends Eie.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,pie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,mie.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?CM.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,EM.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,EM.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?CM.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},CQ=new IM;var yM=class extends Bie.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:()=>CQ}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Iie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Cie.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(CQ.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?QM.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,BM.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)CQ.internalBinaryWrite(e.scope[i],r.tag(2,BM.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?QM.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Ui=new yM;var bM=class extends Uc.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,Mc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Fc.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?vs.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&Ui.internalBinaryWrite(e.metadata,r.tag(1,kt.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,kt.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,kt.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?vs.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},yie=new bM,wM=class extends Uc.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,Mc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Fc.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?vs.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,kt.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;jVe.push(s),ro(s)}function xie(t=!0){if(Tie.length>0){jo(`This job uses deprecated functionality from the '${IQ()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of Tie)lr(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var kie="GRADLE_ACTION_ID";var Rie=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Mie("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return br("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return br("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return br("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return br("develocity-token-expiry")}getDevelocityInjectionEnabled(){return BQ("develocity-injection-enabled")}getDevelocityUrl(){return br("develocity-url")}getDevelocityAllowUntrustedServer(){return BQ("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return BQ("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return BQ("develocity-enforce-url")}getDevelocityPluginVersion(){return br("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return br("develocity-ccud-plugin-version")}getPluginRepository(){return new FM}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:(jo("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},FM=class{getUrl(){return kM("gradle-plugin-repository-url")}getUsername(){return kM("gradle-plugin-repository-username")}getPassword(){return kM("gradle-plugin-repository-password")}};function IQ(){return process.env[kie]}function Fie(t){U6(kie,t)}function kM(t){let e=br(t);if(e.length>0)return e}function Mie(t,e=!1){let r=br(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(br(t)!=="")return Mie(t)}var MM=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function Uie(t){if(t instanceof AggregateError){ro("Multiple errors returned");for(let e of t.errors)hE(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&lr(e.stack)}else t instanceof MM?(ro(String(t)),t.stack&&lr(t.stack)):(ro(String(t)),t instanceof Error&&t.stack&&lr(t.stack))}async function $Ve(){try{IQ()==="gradle/wrapper-validation-action"&&RM("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),Fie("gradle/actions/wrapper-validation");let t=await cX(Lie.resolve("."),br("allow-snapshots")==="true",br("allow-checksums").split(","));if(t.isValid()){lr(t.toDisplayString());let e=+br("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}.`;ro(r)}}else ro(`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&&P4("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);nse(!1)}catch(t){cse(t)}}iYe();export{iYe as run};
${t.toDisplayString()}`),t.invalid.length>0&&L6("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);xie(!1)}catch(t){Uie(t)}}$Ve();export{$Ve as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -238,5 +241,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": ";s1BAAA,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.4.2` 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.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 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
View File
@@ -1 +0,0 @@
v16
+3041 -1000
View File
File diff suppressed because it is too large. Load diff
+10 -12
View File
@@ -36,7 +36,7 @@
},
"dependencies": {
"@actions/artifact": "6.2.1",
"@actions/cache": "6.0.1",
"@actions/cache": "6.2.0",
"@actions/core": "3.0.1",
"@actions/exec": "3.0.0",
"@actions/github": "9.1.1",
@@ -45,7 +45,6 @@
"@actions/tool-cache": "4.0.0",
"@octokit/webhooks-types": "7.6.1",
"cheerio": "1.2.0",
"semver": "7.8.3",
"string-argv": "0.3.2",
"unhomoglyph": "1.0.6",
"which": "7.0.0"
@@ -53,20 +52,19 @@
"devDependencies": {
"@jest/globals": "30.4.1",
"@types/jest": "30.0.0",
"@types/node": "25.9.2",
"@types/semver": "7.7.1",
"@types/node": "24.13.3",
"@types/unzipper": "0.10.11",
"@types/which": "3.0.4",
"@typescript-eslint/eslint-plugin": "8.61.0",
"@typescript-eslint/eslint-plugin": "8.69.0",
"dedent": "1.7.2",
"esbuild": "0.28.0",
"eslint": "10.4.1",
"globals": "17.6.0",
"esbuild": "0.28.2",
"eslint": "10.10.0",
"globals": "17.12.0",
"jest": "30.4.2",
"nock": "15.0.0",
"nock": "14.0.17",
"npm-run-all": "4.1.5",
"prettier": "3.8.4",
"ts-jest": "29.4.11",
"typescript": "5.9.3"
"prettier": "3.9.6",
"ts-jest": "29.4.12",
"typescript": "6.0.3"
}
}
@@ -47,6 +47,7 @@ export async function run(): Promise<void> {
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
-Dorg.gradle.isolated-projects=false
${taskList}
${additionalArgs}
`
@@ -1,6 +1,6 @@
import * as setupGradle from '../../setup-gradle'
import {CacheConfig, SummaryConfig} from '../../configuration'
import {CacheConfig, DevelocityConfig, SummaryConfig} from '../../configuration'
import {handlePostActionError} from '../../errors'
import {forceExit} from '../../force-exit'
@@ -14,7 +14,7 @@ process.on('uncaughtException', e => handlePostActionError(e))
*/
export async function run(): Promise<void> {
try {
await setupGradle.complete(new CacheConfig(), new SummaryConfig())
await setupGradle.complete(new CacheConfig(), new DevelocityConfig(), new SummaryConfig())
} catch (error) {
handlePostActionError(error)
}
+2 -2
View File
@@ -1,7 +1,7 @@
import * as setupGradle from '../../setup-gradle'
import * as dependencyGraph from '../../dependency-graph'
import {CacheConfig, DependencyGraphConfig, SummaryConfig} from '../../configuration'
import {CacheConfig, DependencyGraphConfig, DevelocityConfig, SummaryConfig} from '../../configuration'
import {handlePostActionError} from '../../errors'
import {emitDeprecationWarnings, restoreDeprecationState} from '../../deprecation-collector'
import {forceExit} from '../../force-exit'
@@ -19,7 +19,7 @@ export async function run(): Promise<void> {
restoreDeprecationState()
emitDeprecationWarnings()
if (await setupGradle.complete(new CacheConfig(), new SummaryConfig())) {
if (await setupGradle.complete(new CacheConfig(), new DevelocityConfig(), new SummaryConfig())) {
// Only submit the dependency graphs once per job
await dependencyGraph.complete(new DependencyGraphConfig())
}
+22 -1
View File
@@ -80,7 +80,28 @@ export class BasicCacheService implements CacheService {
const cachePaths = getCachePaths(gradleUserHome)
try {
await cache.saveCache(cachePaths, primaryKey)
// A cacheId of -1 means the save failed: `saveCache` reports the underlying cause and returns
// normally, rather than throwing. Warn and continue: caching failures should not fail the build.
const cacheId = await cache.saveCache(cachePaths, primaryKey)
if (cacheId === -1) {
core.warning(
`Basic caching failed to save entry with key \`${primaryKey}\`. See preceding log output for the cause.`
)
return {
status: 'enabled',
entries: [
entryReport({
primaryKey,
restoredKey,
restoredOutcome: restoredKey
? '(Entry restored: exact match found)'
: '(Entry not restored: no match found)',
savedOutcome: '(Entry not saved: save failed)'
})
]
}
}
core.info(`Basic caching saved entry with key: ${primaryKey}`)
return {
status: 'enabled',
+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'}
+22 -11
View File
@@ -8,24 +8,34 @@ export interface CacheOptions {
strictMatch: boolean
cleanup: string
encryptionKey?: string
develocityAccessToken?: string
develocityServerUrl?: string
includes: string[]
excludes: string[]
}
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)
| 'trial-expired' // past the hard trial expiry
| 'trial-not-licensed' // Develocity trial token missing or invalid
| 'no-encryption-key' // Cannot store due to missing encryption key
| 'enabled' // Trial in effect: will attempt to save project state
export interface CacheEntryReport {
entryName: string
@@ -47,6 +57,7 @@ export interface CacheEntryReport {
export interface CacheReport {
status: CacheStatus
cleanup?: CacheCleanupStatus
projectCache?: ProjectCacheStatus
entries: CacheEntryReport[]
}
+25 -4
View File
@@ -1,4 +1,4 @@
import {CacheCleanupStatus, CacheEntryReport, CacheReport, CacheStatus} from './cache-service'
import {CacheCleanupStatus, CacheEntryReport, CacheReport, CacheStatus, ProjectCacheStatus} from './cache-service'
const DOCS = 'https://github.com/gradle/actions/blob/main/docs/setup-gradle.md'
const DISTRIBUTION = 'https://github.com/gradle/actions/blob/main/DISTRIBUTION.md'
@@ -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> = {
@@ -28,6 +29,14 @@ const CLEANUP_COPY: Record<CacheCleanupStatus, string> = {
'disabled-readonly': `[Cache cleanup](${DOCS}#configuring-cache-cleanup) is always disabled when the cache is read-only.`
}
const PROJECT_CACHE_COPY: Record<ProjectCacheStatus, string> = {
'not-enabled': ``,
'trial-expired': `Project state (build-logic and configuration cache) was not cached - the Develocity caching trial has expired.`,
'trial-not-licensed': `Project state (build-logic and configuration cache) was not cached - a develocity-access-key and develocity-server-url is required.`,
'no-encryption-key': `Project state (build-logic and configuration cache) was not cached - a [cache-encryption-key](${DOCS}#cache-encryption-key) is required.`,
enabled: `Caching of project state (build-logic and configuration cache) was enabled.`
}
/**
* Renders a cache report into the unified Job Summary markdown, with a consistent
* skeleton across every variant: a section heading, a status line, an integrated
@@ -55,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>`
}
@@ -69,6 +84,11 @@ function renderCleanupLine(cleanup?: CacheCleanupStatus): string | undefined {
return cleanup ? CLEANUP_COPY[cleanup] : undefined
}
function renderProjectCacheLine(projectCache?: ProjectCacheStatus): string | undefined {
// PROJECT_CACHE_COPY['not-enabled'] is '', which the .filter(Boolean) at the call site drops.
return projectCache ? PROJECT_CACHE_COPY[projectCache] : undefined
}
function renderProviderNote(providerNote?: ProviderNote): string | undefined {
if (!providerNote) {
return undefined
@@ -88,9 +108,10 @@ function renderDetails(report: CacheReport): string {
: `Entries: ${restored} restored, ${saved} saved - Expand for more details`
const cleanup = report.status === 'enabled' ? renderCleanupLine(report.cleanup) : undefined
const projectCache = renderProjectCacheLine(report.projectCache)
const table = renderEntryTable(report.entries)
const pre = `<pre>\n${renderEntryDetails(report.entries)}</pre>`
const body = [STATUS_COPY[report.status], cleanup, table, pre].filter(Boolean).join('\n\n')
const body = [STATUS_COPY[report.status], cleanup, projectCache, table, pre].filter(Boolean).join('\n\n')
return `<details>
<summary>${summary}</summary>
+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 {
+2 -9
View File
@@ -1,8 +1,7 @@
import * as core from '@actions/core'
import {DevelocityConfig} from '../configuration'
import {setupToken} from './short-lived-token'
export async function setup(config: DevelocityConfig): Promise<void> {
export function setup(config: DevelocityConfig): void {
maybeExportVariable('DEVELOCITY_INJECTION_INIT_SCRIPT_NAME', 'gradle-actions.inject-develocity.init.gradle')
maybeExportVariable('DEVELOCITY_INJECTION_CUSTOM_VALUE', 'gradle-actions')
@@ -34,17 +33,11 @@ export async function setup(config: DevelocityConfig): Promise<void> {
// except if they are defined in the configuration
if (config.getBuildScanPublishEnabled()) {
maybeExportVariable('DEVELOCITY_INJECTION_ENABLED', 'true')
maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.4.2')
maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.5.0')
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())
}
return setupToken(
config.getDevelocityAccessKey(),
config.getDevelocityAllowUntrustedServer(),
config.getDevelocityTokenExpiry()
)
}
function maybeExportVariable(variableName: string, value: unknown): void {
+103 -32
View File
@@ -3,28 +3,41 @@ import * as httpm from '@actions/http-client'
import {DevelocityConfig} from '../configuration'
import {recordDeprecation} from '../deprecation-collector'
export async function setupToken(
develocityAccessKey: string,
develocityAllowUntrustedServer: boolean | undefined,
develocityTokenExpiry: string
): Promise<void> {
if (develocityAccessKey) {
try {
core.debug('Fetching short-lived token...')
const tokens = await getToken(develocityAccessKey, develocityAllowUntrustedServer, develocityTokenExpiry)
if (tokens != null && !tokens.isEmpty()) {
core.debug(`Got token(s), setting the access key env vars`)
const token = tokens.raw()
core.setSecret(token)
exportAccessKeyEnvVars(token)
} else {
handleMissingAccessToken()
}
} catch (e) {
handleMissingAccessToken()
core.warning(`Failed to fetch short-lived token, reason: ${e}`)
}
/**
* Exchange the configured Develocity access key(s) for short-lived tokens, export them as the access
* key env vars, and return the short-lived token matching the configured Develocity server URL (for
* use as the `develocityAccessToken` cache option). Returns `undefined` when there is no access key,
* token fetching fails, or no token matches the configured server.
*/
export async function setupToken(config: DevelocityConfig): Promise<string | undefined> {
const develocityAccessKey = config.getDevelocityAccessKey()
if (!develocityAccessKey) {
return undefined
}
try {
core.debug('Fetching short-lived token...')
const tokens = await getToken(
develocityAccessKey,
config.getDevelocityAllowUntrustedServer(),
config.getDevelocityTokenExpiry()
)
if (tokens != null && !tokens.isEmpty()) {
core.debug(`Got token(s), setting the access key env vars`)
const token = tokens.raw()
core.setSecret(token)
exportAccessKeyEnvVars(token)
for (const k of tokens.keys) {
core.setSecret(k.key)
}
const serverUrl = config.getDevelocityUrl()
return serverUrl ? resolveTokenForServer(tokens, serverUrl) : undefined
}
handleMissingAccessToken()
} catch (e) {
handleMissingAccessToken()
core.warning(`Failed to fetch short-lived token, reason: ${e}`)
}
return undefined
}
function exportAccessKeyEnvVars(value: string): void {
@@ -134,7 +147,6 @@ type HostnameAccessKey = {
}
export class DevelocityAccessCredentials {
static readonly accessKeyRegexp = /^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/
readonly keys: HostnameAccessKey[]
private constructor(allKeys: HostnameAccessKey[]) {
@@ -147,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 {
@@ -169,8 +227,21 @@ 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)
}
}
/**
* Resolve the token whose hostname matches a given Develocity server URL. Returns `undefined`
* (fail-closed) when the server URL is empty or no token matches the server's host.
*/
export function resolveTokenForServer(tokens: DevelocityAccessCredentials, serverUrl: string): string | undefined {
if (!serverUrl) {
return undefined
}
let host: string
try {
host = new URL(serverUrl).hostname
} catch {
host = serverUrl // tolerate a bare hostname (no scheme)
}
return tokens.keys.find(k => k.hostname === host)?.key
}
-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
}
}
+28 -14
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[],
@@ -13,8 +14,13 @@ export async function generateJobSummary(
providerNote: ProviderNote | undefined,
config: SummaryConfig
): 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
@@ -23,19 +29,18 @@ export async function generateJobSummary(
const summaryTable = renderSummaryTable(buildResults)
const cachingReport = renderCachingReport(cacheReport, providerNote)
const hasFailure = anyFailed(buildResults)
if (config.shouldGenerateJobSummary(hasFailure)) {
core.info('Generating Job Summary')
core.info(summaryTable)
core.info('============================')
core.info(cachingReport)
if (config.shouldGenerateJobSummary(hasFailure)) {
core.summary.addRaw(heading)
core.summary.addRaw(summaryTable)
core.summary.addRaw(cachingReport)
await core.summary.write()
} else {
core.info('============================')
core.info(summaryTable)
core.info('============================')
core.info(cachingReport)
core.info('============================')
}
core.endGroup()
if (config.canAddPRComment()) {
await minimizeObsoletePRComments()
@@ -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.1'
def dependencyGraphPluginVersion = getInputParam('dependency-graph-plugin.version') ?: '1.5.0'
logger.lifecycle("Resolving dependency graph plugin ${dependencyGraphPluginVersion} from plugin repository: ${pluginRepositoryUrl}")
repositories {
+32 -5
View File
@@ -5,6 +5,7 @@ import * as path from 'path'
import * as os from 'os'
import * as jobSummary from './job-summary'
import * as buildScan from './develocity/build-scan'
import {setupToken} from './develocity/short-lived-token'
import {loadBuildResults, markBuildResultsProcessed} from './build-results'
import {getCacheService, getProviderNote} from './cache-service-loader'
@@ -18,9 +19,12 @@ 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'
// Short-lived Develocity token for the configured server, resolved during setup and reused on save.
const DEVELOCITY_CACHE_TOKEN = 'DEVELOCITY_CACHE_TOKEN'
export async function setup(
cacheConfig: CacheConfig,
@@ -44,17 +48,27 @@ export async function setup(
initializeGradleUserHome(userHome, gradleUserHome, cacheConfig.getCacheEncryptionKey())
// Exchange the long-lived access key(s) for short-lived tokens, resolving the token for the
// configured Develocity server and retaining it for the post-action (save) step.
const develocityServerUrl = develocityConfig.getDevelocityUrl() || undefined
const cacheToken = await setupToken(develocityConfig)
core.saveState(DEVELOCITY_CACHE_TOKEN, cacheToken ?? '')
const cacheService = await getCacheService(cacheConfig)
await cacheService.restore(gradleUserHome, cacheOptionsFrom(cacheConfig))
await cacheService.restore(gradleUserHome, cacheOptionsFrom(cacheConfig, develocityServerUrl, cacheToken))
await wrapperValidator.validateWrappers(wrapperValidationConfig, getWorkspaceDirectory(), gradleUserHome)
await buildScan.setup(develocityConfig)
buildScan.setup(develocityConfig)
return true
}
export async function complete(cacheConfig: CacheConfig, summaryConfig: SummaryConfig): Promise<boolean> {
export async function complete(
cacheConfig: CacheConfig,
develocityConfig: DevelocityConfig,
summaryConfig: SummaryConfig
): Promise<boolean> {
if (!core.getState(GRADLE_SETUP_VAR)) {
core.info('Gradle setup post-action only performed for first gradle/actions step in workflow.')
return false
@@ -64,9 +78,16 @@ export async function complete(cacheConfig: CacheConfig, summaryConfig: SummaryC
const buildResults = loadBuildResults()
const gradleUserHome = core.getState(GRADLE_USER_HOME)
const develocityServerUrl = develocityConfig.getDevelocityUrl() || undefined
const cacheToken = core.getState(DEVELOCITY_CACHE_TOKEN) || undefined
const cacheService = await getCacheService(cacheConfig)
const cacheReport = await cacheService.save(gradleUserHome, buildResults, cacheOptionsFrom(cacheConfig))
const cacheReport = await cacheService.save(
gradleUserHome,
buildResults,
cacheOptionsFrom(cacheConfig, develocityServerUrl, cacheToken)
)
await jobSummary.generateJobSummary(buildResults, cacheReport, getProviderNote(cacheConfig), summaryConfig)
reportSupportStatus(buildResults.map(result => result.gradleVersion))
markBuildResultsProcessed()
@@ -75,7 +96,11 @@ export async function complete(cacheConfig: CacheConfig, summaryConfig: SummaryC
return true
}
function cacheOptionsFrom(config: CacheConfig): CacheOptions {
function cacheOptionsFrom(
config: CacheConfig,
develocityServerUrl: string | undefined,
develocityAccessToken: string | undefined
): CacheOptions {
return {
disabled: config.isCacheDisabled(),
readOnly: config.isCacheReadOnly(),
@@ -84,6 +109,8 @@ function cacheOptionsFrom(config: CacheConfig): CacheOptions {
strictMatch: config.isCacheStrictMatch(),
cleanup: config.getCacheCleanupOption(),
encryptionKey: config.getCacheEncryptionKey() || undefined,
develocityAccessToken,
develocityServerUrl,
includes: config.getCacheIncludes(),
excludes: config.getCacheExcludes()
}
@@ -1,4 +1,60 @@
[
{
"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"
},
{
"version": "9.7.0-rc-1",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
},
{
"version": "9.7.0-milestone-3",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
},
{
"version": "9.7.0-milestone-2",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
},
{
"version": "9.6.1",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.6.0",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.7.0-milestone-1",
"checksum": "8a23bf708fd4e02674e77fb34b0fa7c02f0d53c2ad377385ab507422313d26d1"
},
{
"version": "9.6.0-rc-3",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.6.0-rc-2",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.6.0-rc-1",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
Binary file not shown.
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+2 -2
View File
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
Loaded 100 of 114 files, more files were not shown because too many files have changed in this diff. Show more